/* NACCIMA Theme – WordPress path fixes matching HTML design */

.site-footer::before {
	background-image: url('../images/new%20naccima%20logo%20updated%20alone%202.svg');
}

.footer-desktop::before {
	background-image: url('../images/new%20naccima%20logo%20updated%20alone%202.svg') !important;
}

/* Prevent WordPress admin bar from breaking fixed header on logged-in view */
.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.page-gutenberg-content .entry-content > *:last-child {
	margin-bottom: 0;
}

/* Solid white header on all pages — no transparent / blur hero overlay */
:root {
	--naccima-header-height: 100px;
}

@media (min-width: 992px) and (max-width: 1199px) {
	:root {
		--naccima-header-height: 96px;
	}
}

body.has-inner-nav {
	padding-top: var(--naccima-header-height) !important;
}

.admin-bar body.has-inner-nav {
	padding-top: calc(var(--naccima-header-height) + 32px) !important;
}

@media screen and (max-width: 782px) {
	.admin-bar body.has-inner-nav {
		padding-top: calc(var(--naccima-header-height) + 46px) !important;
	}
}

#siteHeader.site-header,
.site-header.site-header--inner {
	background: #ffffff !important;
	background-color: #ffffff !important;
	box-shadow: var(--naccima-shadow-nav) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

#siteHeader.site-header .nav-brand-text {
	color: var(--naccima-primary) !important;
}

#siteHeader.site-header .nav-link-item {
	color: var(--naccima-black) !important;
}

#siteHeader.site-header .nav-link-item:hover,
#siteHeader.site-header .nav-link-item.active {
	color: var(--naccima-primary) !important;
}

#siteHeader.site-header .btn-join {
	border-color: var(--naccima-primary) !important;
	color: var(--naccima-primary) !important;
	background: transparent !important;
}

#siteHeader.site-header .btn-join:hover {
	background: var(--naccima-primary) !important;
	color: var(--naccima-white) !important;
}

#siteHeader.site-header .nav-toggle-icon span {
	background: var(--naccima-black) !important;
}

/* Override legacy home / slider navbar theme classes if they get applied */
#siteHeader.site-header.navbar-dark-transparent-theme,
#siteHeader.site-header.navbar-light-blue-theme,
#siteHeader.site-header.navbar-dark-theme,
#siteHeader.site-header.navbar-light-theme,
#siteHeader.site-header.site-header--home {
	background: #ffffff !important;
	background-color: #ffffff !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	box-shadow: var(--naccima-shadow-nav) !important;
}

#siteHeader.site-header.site-header--home .nav-brand-text,
#siteHeader.site-header.site-header--home .nav-link-item,
#siteHeader.site-header.navbar-dark-transparent-theme .nav-link-item,
#siteHeader.site-header.navbar-dark-transparent-theme .nav-brand-text {
	color: var(--naccima-black) !important;
}

#siteHeader.site-header.site-header--home .nav-brand-text {
	color: var(--naccima-primary) !important;
}

#siteHeader.site-header.site-header--home .btn-join,
#siteHeader.site-header.navbar-dark-transparent-theme .btn-join {
	border-color: var(--naccima-primary) !important;
	color: var(--naccima-primary) !important;
}

#siteHeader.site-header.site-header--home .nav-toggle-icon span,
#siteHeader.site-header.navbar-dark-transparent-theme .nav-toggle-icon span {
	background: var(--naccima-black) !important;
}

/* ── Compact header: fit nav links + Join / Contact buttons ── */
.site-header .nav-brand {
	max-width: 220px;
	gap: 6px;
}

.site-header .nav-brand img {
	height: 56px;
}

.site-header .nav-brand-text {
	font-size: 10px;
	line-height: 1.25;
}

.site-header .nav-menu {
	gap: 24px;
	flex-shrink: 1;
	min-width: 0;
}

.site-header .nav-links {
	gap: 4px;
}

.site-header .nav-link-item {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.2px;
	padding: 2px 4px;
}

.site-header .nav-actions {
	gap: 8px;
	flex-shrink: 0;
}

.site-header .btn-join,
.site-header .btn-contact-nav {
	padding: 8px 12px;
	font-size: 13px;
	letter-spacing: 0.2px;
	white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199px) {
	.site-header .naccima-nav {
		padding-left: 24px;
		padding-right: 24px;
	}

	.site-header .nav-brand {
		max-width: 180px;
	}

	.site-header .nav-brand img {
		height: 48px;
	}

	.site-header .nav-brand-text {
		font-size: 9px;
	}

	.site-header .nav-menu {
		gap: 16px;
	}

	.site-header .nav-link-item {
		font-size: 12px;
	}

	.site-header .btn-join,
	.site-header .btn-contact-nav {
		padding: 7px 10px;
		font-size: 12px;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.site-header .nav-menu {
		gap: 32px;
	}

	.site-header .nav-link-item {
		font-size: 14px;
	}
}

/* ── Sidebar pages: sticky nav without overlapping footer ── */
.about-side-links,
.membership .about-side-links {
	position: sticky !important;
	top: 6rem !important;
	bottom: auto !important;
	height: auto !important;
	max-height: calc(100vh - 8rem) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	align-self: flex-start !important;
	z-index: 2 !important;
}

.about-side-links .about-link-pages-wrapper,
.about-side-links .nav,
.about-side-links ul {
	padding-bottom: 1rem;
}

.sidebar,
.media-page .sidebar {
	position: sticky !important;
	top: 6rem !important;
	align-self: flex-start !important;
	height: auto !important;
	max-height: calc(100vh - 8rem) !important;
	overflow-y: auto !important;
	overflow-x: hidden !important;
	z-index: 2 !important;
}

/* Main content clearance so sidebars and page content don't cut into footer */
.main-content,
.site-main {
	padding-bottom: 4rem !important;
	position: relative;
	z-index: 1;
}

.aboutUsContent,
.membership-content-area,
.media-content-area {
	padding-bottom: 3rem;
}

/* Past Presidents sits flush above the footer on Board of Directors */
body.past-presidents-view .main-content,
body.past-presidents-view .site-main {
	padding-bottom: 0 !important;
}

body.past-presidents-view .aboutUsContent {
	padding-bottom: 0 !important;
}

.site-footer {
	position: relative;
	z-index: 10;
}

/* ── Contact page icons (replace expired Figma assets) ── */
.contact-icon-bi {
	font-size: 20px;
	color: #00A758;
	line-height: 1;
}

.contact-icon-mobile .contact-icon-bi {
	font-size: 16px;
}

/* Trade group arrow icons */
.tg-arrow {
	background-image: url('../images/open-website%20icon%20(1).svg') !important;
	background-size: 20px 20px !important;
}

/* Flush main content with fixed header — no white gap */
body.has-inner-nav .page-banner,
.page-banner {
	margin-top: 0 !important;
}

.home .naccima-front-page > .hero-swiper.hero-slider-figma {
	margin-top: 0 !important;
}

.national-president-desktop,
.leadership-profile-desktop {
	padding-top: 0 !important;
}

/* Testimonial quote icons */
.testimonials-track .testimonial .quote-mark {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	width: 28px;
	height: 24px;
	font-size: 0;
	line-height: 0;
}

.testimonials-track .testimonial .quote-mark svg {
	display: block;
	width: 28px;
	height: 24px;
	flex-shrink: 0;
}

/* Clearer logo rendering */
.footer-brand-block img {
	height: 56px;
	width: auto;
	max-width: none;
}

/* Member directory logos */
.figma-member-logo {
	max-height: 72px !important;
	width: auto !important;
	min-width: 48px;
	object-fit: contain;
}

/* Form feedback */
.naccima-form-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.naccima-form-notice.is-success {
	background: #e6f6ee;
	color: #005c30;
	border: 1px solid #8ad7b2;
}

.naccima-form-notice.is-error {
	background: #fdecec;
	color: #8a1f1f;
	border: 1px solid #f5b5b5;
}

/* News modal */
.naccima-news-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 2000;
	display: none;
	padding: 24px;
}

.naccima-news-modal__dialog {
	background: #fff;
	max-width: 720px;
	margin: 8vh auto 0;
	padding: 24px;
	border-radius: 12px;
	position: relative;
}

.naccima-news-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.naccima-news-modal__body {
	color: #444;
	line-height: 1.7;
}

#news-content .news-card,
#press-release-content .press-card {
	cursor: pointer;
}

.committee-member .member-photo img {
	object-fit: cover;
}

/* ── NACCIMA Documentation UI updates ── */

/* Hero: pagination bottom-right, outline bullets, decorative brackets */
.hero-swiper-pagination {
	left: auto !important;
	right: 48px !important;
	width: auto !important;
	text-align: right;
}

.hero-swiper-pagination .swiper-pagination-bullet {
	background: transparent !important;
	border: 2px solid rgba(255, 255, 255, 0.75);
	opacity: 1;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
	background: #fff !important;
	border-color: #fff;
	transform: none;
}

.hero-decor--tr {
	position: absolute;
	top: 32px;
	right: 32px;
	width: 72px;
	height: 72px;
	border-top: 3px solid rgba(0, 167, 88, 0.85);
	border-right: 3px solid rgba(0, 167, 88, 0.85);
	z-index: 3;
	pointer-events: none;
}

.hero-title {
	position: relative;
	padding-left: 18px;
}

.hero-title-bracket {
	position: absolute;
	left: 0;
	top: 4px;
	width: 10px;
	height: calc(100% - 8px);
	border-left: 3px solid #00a758;
	border-top: 3px solid #00a758;
	border-bottom: 3px solid #00a758;
}

/* Who We Are: full-width badge, wrapped name, title-case button */
.who-portrait-badge {
	width: 100% !important;
}

.who-name {
	white-space: normal !important;
}

.who-body .btn-black {
	text-transform: none !important;
	letter-spacing: 0;
	font-weight: 600;
}

.who-role {
	text-align: left !important;
}

/* Statistics strip spacing */
.stats-strip {
	padding-top: 56px !important;
	padding-bottom: 56px !important;
	margin-bottom: 0 !important;
	height: auto !important;
}

.our-services {
	padding-top: 2rem !important;
}

/* What We Offer: tighter top spacing */
.what-we-offer.what-we-are {
	padding-top: 2rem !important;
}

/* Callout CTA buttons: pill shape, title case */
.callouts .callout-card .btn,
.callouts .callout-card1 .btn,
.callouts .callout-card2 .btn {
	border-radius: 999px !important;
	text-transform: none !important;
	letter-spacing: 0;
	font-size: 14px !important;
	font-weight: 600;
	padding: 10px 20px !important;
	width: auto !important;
	min-width: 160px;
}

/* Chamber news layout */
.chamber-news .news-feature .card-body {
	background: #f2f2f2;
}

.chamber-news .news-feature-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.chamber-news .col-lg-5 .news-card-media {
	width: 100%;
	height: 135px;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
	background: #e8e8e8;
}

.chamber-news .col-lg-5 .news-card-media .card-img-top {
	width: 100% !important;
	height: 100% !important;
	min-height: 135px;
	object-fit: cover !important;
	object-position: center top;
	display: block;
}

/* Chamber map interactive pins + popup */
.chamber-map-wrap {
	position: relative;
	background: #f7faf8;
	border-radius: 16px;
	overflow: visible;
}

.chamber-map-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}

.chamber-map-pins {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: visible;
}

.chamber-map-pin {
	position: absolute;
	transform: translate(-50%, -50%);
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	z-index: 2;
	pointer-events: auto;
	min-width: 34px;
	height: 34px;
}

.chamber-map-pin-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	margin: 0 auto;
	background: #00a758;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chamber-map-pin-icon::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	background: inherit;
	transform: translateX(-50%) rotate(45deg);
	border-radius: 1px;
	z-index: -1;
}

.chamber-map-pin-code {
	position: relative;
	z-index: 1;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1;
	white-space: nowrap;
	font-family: Montserrat, Inter, sans-serif;
	text-transform: uppercase;
}

.chamber-map-pin:hover .chamber-map-pin-icon {
	transform: scale(1.08);
	z-index: 3;
}

.chamber-map-pin.is-active {
	z-index: 4;
}

.chamber-map-pin.is-active .chamber-map-pin-icon {
	background: #da0001;
	transform: scale(1.14);
	box-shadow: 0 4px 12px rgba(218, 0, 1, 0.35);
}

.chamber-map-popup {
	position: absolute;
	z-index: 6;
	width: min(360px, calc(100% - 24px));
	background: #fff;
	border-radius: 12px;
	padding: 20px 20px 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.chamber-map-popup::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 28px;
	width: 16px;
	height: 16px;
	background: #fff;
	transform: rotate(45deg);
	box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.04);
}

.chamber-map-popup.is-left::before {
	left: auto;
	right: -8px;
	box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.04);
}

.chamber-map-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: 0;
	background: transparent;
	padding: 4px;
	line-height: 0;
	cursor: pointer;
}

.chamber-map-popup__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding-right: 24px;
}

.chamber-map-popup__logo img {
	max-height: 56px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
	display: block;
}

.chamber-map-popup__code-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	background: #e6f6ee;
	color: #00a758;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.chamber-map-popup__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 16px;
	color: #121212;
	padding-right: 20px;
}

.chamber-map-popup__details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chamber-map-popup__row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.chamber-map-popup__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	line-height: 0;
}

.chamber-map-popup__icon img,
.chamber-map-popup__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.chamber-map-popup__text {
	font-size: 14px;
	line-height: 1.45;
	color: #4a4a4a;
	text-decoration: none;
	word-break: break-word;
}

a.chamber-map-popup__text:hover {
	color: #00a758;
}

.chamber-map-popup__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.chamber-map-popup__website {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #00a758;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.chamber-map-popup__website:hover {
	color: #008a48;
}

.chamber-map-popup__website-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #00a758;
}

.chamber-map-popup__website:hover .chamber-map-popup__website-icon {
	background: #008a48;
}

@media (max-width: 767.98px) {
	.chamber-map-pin-code {
		font-size: 7px;
	}

	.chamber-map-pin-icon {
		min-width: 30px;
		height: 30px;
		padding: 0 4px;
	}

	.chamber-map-popup {
		width: min(300px, calc(100% - 16px));
		padding: 16px;
	}

	.chamber-map-popup__title {
		font-size: 16px;
	}
}

/* Trade spotlight: reduce gap after events marquee */
.naccima-front-page .section-divider + .trade-spotlight,
.trade-spotlight {
	padding-top: 2rem !important;
}

.upcoming-events {
	padding-bottom: 2rem !important;
}

.event-poster-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.event-poster-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 16px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.event-poster-title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.event-poster-cta {
	color: #8ad7b2;
	font-size: 13px;
	font-weight: 600;
}

.event-poster-card:hover .event-poster-overlay,
.event-poster-card:focus-within .event-poster-overlay {
	opacity: 1;
}

.event-poster-card img {
	transition: transform 0.35s ease;
}

.event-poster-card:hover img,
.event-poster-card:focus-within img {
	transform: scale(1.04);
}

/* Testimonials: equal-height cards */
@media (min-width: 768px) {
	.testimonials-track .testimonial {
		display: flex;
		flex-direction: column;
		min-height: 320px;
	}

	.testimonials-track .testimonial .preview,
	.testimonials-track .testimonial .collapse-content {
		flex: 1 1 auto;
	}

	.testimonials-track .testimonial .testimonial-footer {
		margin-top: auto !important;
		opacity: 1 !important;
		visibility: visible !important;
	}
}

/* Footer: wider column spacing, centered watermark, newsletter right-aligned */
.site-footer::before {
	left: 50%;
	right: auto;
	top: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.06;
	width: 420px;
	height: 420px;
}

@media (min-width: 992px) {
	.footer-top {
		grid-template-columns: 260px repeat(3, minmax(120px, 1fr)) minmax(260px, 320px);
		gap: 48px 64px;
		align-items: start;
	}

	.footer-col {
		gap: 16px;
	}

	.footer-newsletter-box {
		justify-self: end;
		width: 100%;
		max-width: 320px;
	}
}

@media (max-width: 767.98px) {
	.hero-swiper-pagination {
		right: 24px !important;
	}
}
