/* ==========================================================================
   WCPA Theme — base, layout, components.
   Loaded on every page. Page-specific styles live in /home.css and /page.css.
   ========================================================================== */

/* 0. TOKENS ================================================================ */
:root {
	--wcpa-navy:        #0f2144;
	--wcpa-dark-navy:   #0a1a33;
	--wcpa-gold:        #e2a83e;
	--wcpa-gold-2:      #c8902f;
	--wcpa-off-white:   #f5f3ee;
	--wcpa-white:       #ffffff;
	--wcpa-text:        #1f2937;
	--wcpa-muted:       #6b7280;
	--wcpa-line:        #e5e7eb;
	--wcpa-success:     #15803d;
	--wcpa-warn:        #b45309;

	--wcpa-shadow-sm:   0 1px 2px rgba(15,33,68,0.06), 0 1px 3px rgba(15,33,68,0.08);
	--wcpa-shadow-md:   0 4px 12px rgba(15,33,68,0.10), 0 2px 4px rgba(15,33,68,0.06);
	--wcpa-shadow-lg:   0 12px 32px rgba(15,33,68,0.14), 0 4px 12px rgba(15,33,68,0.08);
	--wcpa-shadow-xl:   0 24px 60px rgba(15,33,68,0.18);

	--wcpa-radius-sm:   6px;
	--wcpa-radius-md:   12px;
	--wcpa-radius-lg:   18px;
	--wcpa-radius-xl:   24px;

	--wcpa-ease:        cubic-bezier(.2,.7,.2,1);

	--wcpa-fs-base:     17px;
	--wcpa-leading:     1.6;
	--wcpa-container:   1180px;
	--wcpa-wide:        1440px;

	--wcpa-header-h:    96px;
}

/* 1. RESET (light) ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
img,picture,svg { max-width: 100%; display: block; }
input,button,textarea,select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--wcpa-navy); text-decoration: none; transition: color .2s var(--wcpa-ease); }
a:hover { color: var(--wcpa-gold-2); }
:focus-visible { outline: 3px solid var(--wcpa-gold); outline-offset: 2px; border-radius: 4px; }

/* 2. BASE TYPE ============================================================= */
body {
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: var(--wcpa-fs-base);
	line-height: var(--wcpa-leading);
	color: var(--wcpa-text);
	background: var(--wcpa-off-white);
	min-height: 100vh;
}
h1,h2,h3,h4 { font-family: 'Source Serif Pro', Georgia, serif; line-height: 1.15; color: var(--wcpa-navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
p { font-size: 1.0625rem; }
strong { font-weight: 600; }

/* 3. LAYOUT HELPERS ======================================================== */
.wcpa-container { width: 100%; max-width: var(--wcpa-container); margin-inline: auto; padding-inline: 24px; }
.wcpa-container--wide { max-width: var(--wcpa-wide); }
.wcpa-stack > * + * { margin-top: 2.5rem; }
.wcpa-stack__center { text-align: center; }
.wcpa-section { padding-block: clamp(48px, 6vw, 96px); }
.wcpa-section--alt { background: var(--wcpa-white); }
.wcpa-section__head { text-align: center; margin-bottom: 2.5rem; }
.wcpa-section__title { display: inline-block; }
.wcpa-section__rule { display: block; width: 64px; height: 4px; background: var(--wcpa-gold); border-radius: 4px; margin: 16px auto 0; }
.wcpa-section__cta { text-align: center; margin-top: 2.5rem; }
.wcpa-muted { color: var(--wcpa-muted); }

/* 4. SKIP LINK + ACCESSIBILITY ============================================ */
.wcpa-skiplink {
	position: absolute; left: -9999px; top: 0;
	background: var(--wcpa-navy); color: var(--wcpa-white);
	padding: 12px 18px; border-radius: 0 0 8px 0;
	font-weight: 600; z-index: 99;
}
.wcpa-skiplink:focus { left: 0; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* 5. HEADER + NAV ========================================================= */
.wcpa-header { position: sticky; top: 0; z-index: 50; }
.wcpa-header__banner {
	position: absolute; inset: 0; height: var(--wcpa-header-h);
	background-color: var(--wcpa-dark-navy);
	background-size: cover; background-position: center;
	z-index: 0;
}
.wcpa-header__banner::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(10,26,51,.45) 0%, rgba(10,26,51,.85) 100%);
}
.wcpa-header__bar {
	position: relative; z-index: 1;
	background: rgba(15, 33, 68, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 6px 20px rgba(10,26,51,0.25);
}
.wcpa-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	min-height: var(--wcpa-header-h);
}
.wcpa-brand { display: inline-flex; align-items: center; }
/* Catch every image variant: our hardcoded fallback (.wcpa-brand__mark),
   WordPress's the_custom_logo() output (.custom-logo / wrapped in .custom-logo-link),
   and a generic safety-net <img> direct child. The hard cap on max-height keeps
   the header at ~96px even if a future image regression strips the targeted class. */
.wcpa-brand img,
.wcpa-brand .custom-logo,
.wcpa-brand .custom-logo-link img,
.wcpa-brand__mark {
	height: 72px; width: auto; max-height: 72px;
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
/* On mobile (≤960px), shrink slightly so the header doesn't feel cramped. */
@media (max-width: 960px) {
	.wcpa-brand img,
	.wcpa-brand .custom-logo,
	.wcpa-brand .custom-logo-link img,
	.wcpa-brand__mark { height: 56px; max-height: 56px; }
}
.wcpa-brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
/* Belt-and-suspenders: never let any <img> in the bar push it taller than the header. */
.wcpa-header__bar img { max-height: calc(var(--wcpa-header-h) - 16px); width: auto; }

.wcpa-nav { justify-self: center; }
.wcpa-nav__list {
	display: flex; gap: 4px; list-style: none; padding: 0; margin: 0;
}
.wcpa-nav__list > li > a,
.wcpa-nav__list > li > .mega-menu-link {
	display: inline-flex; align-items: center; height: var(--wcpa-header-h);
	padding: 0 18px;
	color: var(--wcpa-white);
	font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
	border-bottom: 3px solid transparent;
	transition: all .2s var(--wcpa-ease);
}
.wcpa-nav__list > li > a:hover,
.wcpa-nav__list > li.is-current > a,
.wcpa-nav__list > li.current-menu-item > a,
.wcpa-nav__list > li.current-page-ancestor > a {
	color: var(--wcpa-gold);
	border-bottom-color: var(--wcpa-gold);
	background: rgba(255,255,255,0.04);
}

.wcpa-header__tools { display: flex; align-items: center; gap: 12px; }
.wcpa-search-toggle, .wcpa-nav-toggle {
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	color: var(--wcpa-white);
	border-radius: 999px;
	transition: background .2s var(--wcpa-ease);
}
.wcpa-search-toggle:hover, .wcpa-nav-toggle:hover { background: rgba(255,255,255,0.10); }
.wcpa-nav-toggle { display: none; flex-direction: column; gap: 4px; }
.wcpa-nav-toggle span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* Submenu expand button — JS-injected after every parent <a>. Hidden on desktop
   (CSS hover handles dropdowns there); shown only inside the open mobile drawer. */
.wcpa-submenu-toggle { display: none; }
.wcpa-submenu-toggle__chev {
	display: inline-block; width: 10px; height: 10px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s var(--wcpa-ease);
}
.menu-item-has-children.is-open > .wcpa-submenu-toggle .wcpa-submenu-toggle__chev {
	transform: rotate(-135deg);
}

/* ----- Desktop dropdown panels -------------------------------------------
   wp_nav_menu emits nested <ul class="sub-menu"> for every parent item.
   Without these rules each one renders as a visible inline block, cascading
   down the page (the bug Cowork caught — 138 links stacked vertically
   covering the homepage).

   Strategy: scope all dropdown CSS to (min-width: 961px) so it never conflicts
   with the off-canvas mobile menu at ≤960px. Submenus are absolutely positioned,
   hidden by default, revealed under their parent on hover or keyboard focus-within.
   ------------------------------------------------------------------------ */
@media (min-width: 961px) {
	.wcpa-nav__list > li { position: relative; }
	.wcpa-nav__list .sub-menu {
		list-style: none; margin: 0; padding: 8px 0;
		min-width: 260px;
		background: var(--wcpa-dark-navy);
		border-top: 3px solid var(--wcpa-gold);
		border-radius: 0 0 var(--wcpa-radius-md) var(--wcpa-radius-md);
		box-shadow: var(--wcpa-shadow-lg);
		position: absolute; left: 0; top: 100%;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .18s var(--wcpa-ease), transform .18s var(--wcpa-ease), visibility .18s;
		z-index: 60;
	}
	/* Right-align dropdowns near the end of the bar so they don't clip off-screen */
	.wcpa-nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
	.wcpa-nav__list > li:hover > .sub-menu,
	.wcpa-nav__list > li:focus-within > .sub-menu {
		opacity: 1; visibility: visible; transform: translateY(0);
	}
	.wcpa-nav__list .sub-menu li { display: block; }
	.wcpa-nav__list .sub-menu a {
		display: block;
		padding: 10px 18px;
		color: rgba(255,255,255,0.92);
		font-weight: 500; font-size: 0.92rem; letter-spacing: 0.01em;
		text-transform: none; line-height: 1.35;
		border-left: 3px solid transparent;
		transition: background .15s var(--wcpa-ease), color .15s var(--wcpa-ease), border-color .15s var(--wcpa-ease);
	}
	.wcpa-nav__list .sub-menu a:hover,
	.wcpa-nav__list .sub-menu a:focus-visible {
		background: rgba(255,255,255,0.06);
		color: var(--wcpa-gold);
		border-left-color: var(--wcpa-gold);
	}
	/* Visual indicator on parent that a dropdown exists */
	.wcpa-nav__list > li.menu-item-has-children > a::after {
		content: ''; display: inline-block;
		width: 6px; height: 6px;
		margin-left: 8px; vertical-align: 2px;
		border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
		transform: rotate(45deg); opacity: .6;
		transition: transform .15s var(--wcpa-ease), opacity .15s var(--wcpa-ease);
	}
	.wcpa-nav__list > li.menu-item-has-children:hover > a::after,
	.wcpa-nav__list > li.menu-item-has-children:focus-within > a::after {
		opacity: 1; transform: rotate(225deg);
	}
	/* Nested sub-sub-menus (3rd level): flyout to the right of the parent item. */
	.wcpa-nav__list .sub-menu .sub-menu {
		top: -8px; left: 100%; border-top: 0;
		border-left: 3px solid var(--wcpa-gold);
		border-radius: 0 var(--wcpa-radius-md) var(--wcpa-radius-md) 0;
	}
	.wcpa-nav__list .sub-menu li.menu-item-has-children > a::after {
		content: '›'; margin-left: 10px; opacity: .55;
	}
	/* Long submenu lists (e.g. Offices with 25 children) should scroll, not overflow */
	.wcpa-nav__list .sub-menu {
		max-height: calc(100vh - var(--wcpa-header-h) - 24px);
		overflow-y: auto;
	}
}

.wcpa-search { background: rgba(10,26,51,0.94); padding: 16px 0; }
.wcpa-searchform { display: flex; align-items: stretch; max-width: 560px; margin: 0 auto;
	background: var(--wcpa-white); border-radius: 999px; overflow: hidden; box-shadow: var(--wcpa-shadow-md); }
.wcpa-searchform__input { flex: 1; border: 0; padding: 14px 20px; font-size: 1rem; background: transparent; }
.wcpa-searchform__input:focus { outline: 0; }
.wcpa-searchform__submit { padding: 0 22px; background: var(--wcpa-navy); color: var(--wcpa-white); display: inline-flex; align-items: center; justify-content: center; }
.wcpa-searchform__submit:hover { background: var(--wcpa-gold); color: var(--wcpa-navy); }

/* 6. MAIN ================================================================= */
.wcpa-main { background: var(--wcpa-off-white); }

/* 7. BUTTONS ============================================================== */
.wcpa-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px;
	font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
	border-radius: 999px;
	background: var(--wcpa-navy); color: var(--wcpa-white);
	transition: transform .15s var(--wcpa-ease), background .2s var(--wcpa-ease), box-shadow .2s var(--wcpa-ease);
	box-shadow: var(--wcpa-shadow-sm);
}
.wcpa-btn:hover { background: var(--wcpa-dark-navy); color: var(--wcpa-white); transform: translateY(-1px); box-shadow: var(--wcpa-shadow-md); }
.wcpa-btn--gold { background: var(--wcpa-gold); color: var(--wcpa-navy); }
.wcpa-btn--gold:hover { background: var(--wcpa-gold-2); color: var(--wcpa-navy); }
.wcpa-btn--ghost { background: transparent; color: var(--wcpa-navy); border: 2px solid var(--wcpa-navy); }
.wcpa-btn--ghost:hover { background: var(--wcpa-navy); color: var(--wcpa-white); }
.wcpa-btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* 8. PAGE BANNER ========================================================== */
.wcpa-pagebanner {
	background: linear-gradient(135deg, var(--wcpa-navy), var(--wcpa-dark-navy));
	color: var(--wcpa-white);
	padding: clamp(48px, 7vw, 96px) 0;
	position: relative; overflow: hidden;
}
.wcpa-pagebanner::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(circle at 80% 50%, rgba(226,168,62,0.18), transparent 60%);
}
.wcpa-pagebanner__eyebrow { color: var(--wcpa-gold); text-transform: uppercase; letter-spacing: 0.1em; font-size: .85rem; font-weight: 600; margin-bottom: 8px; position: relative; }
.wcpa-pagebanner__title { color: var(--wcpa-white); margin: 0; position: relative; }
.wcpa-pagebanner__meta { color: rgba(255,255,255,0.7); margin-top: 12px; position: relative; }
.wcpa-pagebanner__desc { color: rgba(255,255,255,0.85); margin-top: 16px; max-width: 640px; position: relative; }
.wcpa-pagebanner a {
	color: var(--wcpa-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	position: relative;
}
.wcpa-pagebanner a:hover,
.wcpa-pagebanner a:focus-visible { color: #fff; }

/* 9. CARDS ================================================================ */
.wcpa-cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
.wcpa-cards--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .wcpa-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wcpa-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.wcpa-card {
	background: var(--wcpa-white);
	border-radius: var(--wcpa-radius-lg);
	overflow: hidden;
	box-shadow: var(--wcpa-shadow-sm);
	border: 1px solid var(--wcpa-line);
	transition: transform .2s var(--wcpa-ease), box-shadow .2s var(--wcpa-ease);
	display: flex; flex-direction: column;
}
.wcpa-card:hover { transform: translateY(-4px); box-shadow: var(--wcpa-shadow-lg); border-color: transparent; }
.wcpa-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wcpa-line); }
.wcpa-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--wcpa-ease); }
.wcpa-card:hover .wcpa-card__media img { transform: scale(1.04); }
.wcpa-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.wcpa-card__date { color: var(--wcpa-muted); font-size: .85rem; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.wcpa-card__title { font-size: 1.25rem; margin-bottom: 12px; }
.wcpa-card__title a:hover { color: var(--wcpa-gold-2); }
.wcpa-card__excerpt { color: var(--wcpa-text); margin-bottom: 16px; flex: 1; }
.wcpa-card__more { color: var(--wcpa-navy); font-weight: 600; align-self: flex-start; border-bottom: 2px solid transparent; }
.wcpa-card__more:hover { border-bottom-color: var(--wcpa-gold); }

/* 10. PROSE (content from the editor) ===================================== */
.wcpa-prose { max-width: 72ch; margin-inline: auto; font-size: 1.075rem; }
.wcpa-prose > * + * { margin-top: 1.2em; }
.wcpa-prose h2 { margin-top: 1.8em; }
.wcpa-prose h3 { margin-top: 1.4em; }
.wcpa-prose a { color: var(--wcpa-navy); border-bottom: 2px solid var(--wcpa-gold); }
.wcpa-prose a:hover { color: var(--wcpa-gold-2); }
.wcpa-prose ul, .wcpa-prose ol { padding-left: 1.4em; }
.wcpa-prose li + li { margin-top: 0.4em; }
.wcpa-prose blockquote {
	border-left: 4px solid var(--wcpa-gold);
	padding: 8px 0 8px 20px;
	color: var(--wcpa-muted);
	font-style: italic;
}
.wcpa-prose code { background: var(--wcpa-off-white); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.wcpa-prose img { border-radius: var(--wcpa-radius-md); }

/* 11. PAGINATION ========================================================== */
.wcpa-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.wcpa-pagination a, .wcpa-pagination .current {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px;
	background: var(--wcpa-white); color: var(--wcpa-navy);
	border: 1px solid var(--wcpa-line);
}
.wcpa-pagination .current { background: var(--wcpa-navy); color: var(--wcpa-white); border-color: var(--wcpa-navy); }

/* 12. FOOTER ============================================================== */
.wcpa-footer { background: var(--wcpa-dark-navy); color: rgba(255,255,255,0.85); padding-top: clamp(48px, 6vw, 80px); margin-top: clamp(48px, 8vw, 120px); }
.wcpa-footer__cols { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 900px) { .wcpa-footer__cols { grid-template-columns: 1fr 1fr 1fr; gap: 56px; } }
.wcpa-footer__col { color: rgba(255,255,255,0.85); }
.wcpa-footer__col--brand { display: flex; flex-direction: column; align-items: flex-start; }
.wcpa-footer__seal { width: 96px; height: 96px; margin-bottom: 12px; }
.wcpa-footer__heading { color: var(--wcpa-gold); font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 700; }
.wcpa-footer__address { font-style: normal; line-height: 1.7; }
.wcpa-footer__contact { margin-top: 14px; line-height: 1.8; }
.wcpa-footer__contact a { color: var(--wcpa-gold); border-bottom: 1px solid transparent; }
.wcpa-footer__contact a:hover { border-bottom-color: var(--wcpa-gold); }
.wcpa-footer__menu { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.wcpa-footer__menu li { break-inside: avoid; margin-bottom: 8px; }
.wcpa-footer__menu a { color: rgba(255,255,255,0.85); padding: 6px 0; display: inline-block; }
.wcpa-footer__menu a:hover { color: var(--wcpa-gold); }
.wcpa-footer__map {
	display: block; border-radius: var(--wcpa-radius-md); overflow: hidden;
	box-shadow: var(--wcpa-shadow-md);
	background: var(--wcpa-dark-navy);
}
.wcpa-footer__map img { width: 100%; height: auto; }
.wcpa-footer__mapframe {
	display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 220px;
	filter: saturate(0.85) brightness(0.95);
	transition: filter .25s var(--wcpa-ease);
	pointer-events: none; /* keep clicks on the wrapper <a>, not the iframe */
}
.wcpa-footer__map:hover .wcpa-footer__mapframe { filter: saturate(1) brightness(1); }
.wcpa-footer__maplink {
	display: block; text-align: center; padding: 12px;
	background: rgba(255,255,255,0.06); color: var(--wcpa-gold); font-weight: 600;
	transition: background .2s var(--wcpa-ease);
}
.wcpa-footer__map:hover .wcpa-footer__maplink { background: rgba(255,255,255,0.10); }
.wcpa-footer__copy { background: rgba(0,0,0,0.25); padding: 18px 0 14px; text-align: center; font-size: .9rem; }
.wcpa-footer__copy a { color: var(--wcpa-gold); border-bottom: 1px solid transparent; }
.wcpa-footer__copy a:hover { border-bottom-color: var(--wcpa-gold); }
.wcpa-footer__copy .wcpa-footer__copyline { margin: 0; }
.wcpa-footer__sep { margin: 0 8px; color: rgba(255,255,255,0.4); }
.wcpa-footer__brandline {
	margin: 8px 0 0; font-size: .82rem; letter-spacing: 0.04em;
	color: rgba(255,255,255,0.62);
}
.wcpa-footer__brandline em { font-style: italic; color: rgba(255,255,255,0.78); }
.wcpa-footer__brandspark {
	display: inline-block; color: var(--wcpa-gold); margin-right: 6px;
	transform-origin: center; animation: wcpa-spark 4s ease-in-out infinite;
}
@keyframes wcpa-spark {
	0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
	50%      { opacity: 1;   transform: scale(1.15) rotate(15deg); }
}
.wcpa-footer__brandlink {
	color: var(--wcpa-gold); font-weight: 600;
	border-bottom: 1px solid rgba(226,168,62,0.35);
	transition: border-color .2s var(--wcpa-ease), color .2s var(--wcpa-ease);
}
.wcpa-footer__brandlink:hover { border-bottom-color: var(--wcpa-gold); color: #f4c97c; }
@media (prefers-reduced-motion: reduce) {
	.wcpa-footer__brandspark { animation: none; opacity: .8; }
}

/* 13. RESPONSIVE: nav collapses to off-canvas on small screens ============ */
@media (max-width: 960px) {
	.wcpa-header__inner { grid-template-columns: auto 1fr auto; }
	.wcpa-nav { display: none; }
	.wcpa-nav-toggle { display: inline-flex; }
	.wcpa-nav.is-open {
		display: block;
		position: fixed; inset: var(--wcpa-header-h) 0 0 0;
		background: var(--wcpa-dark-navy);
		padding: 24px;
		overflow-y: auto;
	}
	.wcpa-nav.is-open .wcpa-nav__list { flex-direction: column; gap: 0; }
	.wcpa-nav.is-open .wcpa-nav__list > li > a { width: 100%; height: auto; padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

	/* Mobile submenu expand/collapse. The parent <li> is positioned so we can
	   absolute-place the chevron button at the right edge of its row. */
	.wcpa-nav.is-open .menu-item-has-children { position: relative; }
	.wcpa-nav.is-open .menu-item-has-children > .wcpa-submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		position: absolute; top: 0; right: 0;
		width: 56px; height: 56px;
		color: var(--wcpa-white);
		border-left: 1px solid rgba(255,255,255,0.08);
		border-bottom: 1px solid rgba(255,255,255,0.08);
	}
	.wcpa-nav.is-open .menu-item-has-children > .wcpa-submenu-toggle:hover,
	.wcpa-nav.is-open .menu-item-has-children > .wcpa-submenu-toggle:focus-visible {
		background: rgba(255,255,255,0.06);
	}
	/* Leave room for the chevron so the link text doesn't run under it. */
	.wcpa-nav.is-open .menu-item-has-children > a { padding-right: 64px !important; }

	/* Collapse nested submenus by default; reveal when parent <li> is .is-open. */
	.wcpa-nav.is-open .sub-menu,
	.wcpa-nav.is-open ul ul {
		display: none;
		list-style: none; padding: 0; margin: 0;
		background: rgba(0,0,0,0.18);
	}
	.wcpa-nav.is-open .menu-item-has-children.is-open > .sub-menu,
	.wcpa-nav.is-open .menu-item-has-children.is-open > ul {
		display: block;
	}
	.wcpa-nav.is-open .sub-menu li > a {
		display: block; color: rgba(255,255,255,0.92);
		padding: 12px 16px 12px 28px; font-size: 1rem;
		border-bottom: 1px solid rgba(255,255,255,0.05);
	}
	.wcpa-nav.is-open .sub-menu .sub-menu li > a { padding-left: 44px; }
}

/* 14. WIDE-SCREEN DRONE BACKGROUND ======================================== */
/* On wide viewports we constrain .wcpa-site to a max width and show the drone
   photo in the gutters on either side. Drone URL is injected on body and on
   .wcpa-header__banner from theme.js via wcpa_drone_photo_urls(). */
@media (min-width: 1600px) {
	body.wcpa-theme {
		background-color: var(--wcpa-dark-navy);
		background-size: cover;
		background-position: center;
		background-attachment: fixed;
	}
	.wcpa-site {
		max-width: var(--wcpa-wide);
		margin-inline: auto;
		background: var(--wcpa-off-white);
		box-shadow: var(--wcpa-shadow-xl);
	}
	/* Keep the in-header drone banner visible inside the constrained site
	   container (it gives the header a photographic top edge), and add the
	   rounded top corners to the BANNER + BAR individually — NOT the
	   .wcpa-header itself — so hover dropdowns can extend below without
	   getting clipped by overflow:hidden. */
	.wcpa-header__banner {
		border-top-left-radius: var(--wcpa-radius-lg);
		border-top-right-radius: var(--wcpa-radius-lg);
		overflow: hidden;
	}
	.wcpa-header__bar {
		border-top-left-radius: var(--wcpa-radius-lg);
		border-top-right-radius: var(--wcpa-radius-lg);
	}
	/* Soft fade from the drone-photo gutter into the site container so the
	   transition isn't a hard vertical line. */
	.wcpa-site { position: relative; }
	.wcpa-site::before, .wcpa-site::after {
		content: ''; position: fixed; top: 0; bottom: 0; width: 24px; z-index: 5;
		pointer-events: none;
	}
	.wcpa-site::before { left: calc(50% - var(--wcpa-wide) / 2); background: linear-gradient(90deg, rgba(10,26,51,.35), transparent); }
	.wcpa-site::after  { right: calc(50% - var(--wcpa-wide) / 2); background: linear-gradient(-90deg, rgba(10,26,51,.35), transparent); }
}

/* 15. PRINT =============================================================== */
@media print {
	.wcpa-header, .wcpa-footer, .wcpa-nav, .wcpa-hero__controls, .wcpa-hero__dots, .wcpa-section__cta { display: none !important; }
	body { background: white; color: black; }
	a { color: black; text-decoration: underline; }
	.wcpa-prose a::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
}

/* 16. REDUCED MOTION ====================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.wcpa-card:hover { transform: none; }
	.wcpa-btn:hover { transform: none; }
}

/* 17. FORWARD-COMPAT: subtle texture on dark surfaces for depth =========== */
.wcpa-pagebanner,
.wcpa-childnav__root {
	background-image:
		var(--wcpa-pagebanner-pattern, none),
		linear-gradient(135deg, var(--wcpa-navy), var(--wcpa-dark-navy));
}
.wcpa-pagebanner--404 {
	background: linear-gradient(135deg, #5d1a1a, var(--wcpa-dark-navy));
}
.wcpa-pagebanner--404::after {
	background: radial-gradient(circle at 80% 50%, rgba(226,168,62,0.25), transparent 60%);
}

/* 18. SUBTLE FOCUS-WITHIN HIGHLIGHTS ====================================== */
.wcpa-card:focus-within { box-shadow: 0 0 0 3px var(--wcpa-gold), var(--wcpa-shadow-lg); transform: translateY(-2px); }
.wcpa-officecard:focus-within { box-shadow: 0 0 0 3px var(--wcpa-gold); }
.wcpa-quicklink:focus-within { background: var(--wcpa-gold); color: var(--wcpa-navy); }

/* ==========================================================================
   19. COWORK 2026-05-24 — Tim review pass
   Subpage banner (shorter + photographic), sidebar accordion + "Most Visited"
   links, and decorative swooshes in the navy/gold spaces.
   NOTE: appended block; fold into sections above once the design is signed off.
   ========================================================================== */

/* --- Subpage banner: shorter, photo-capable, swoosh bottom edge --- */
.wcpa-pagebanner { padding: clamp(30px, 4vw, 56px) 0 clamp(40px, 4.5vw, 60px); overflow: hidden; }
.wcpa-pagebanner--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.wcpa-pagebanner--photo::after { background: radial-gradient(circle at 84% 35%, rgba(226,168,62,0.20), transparent 55%); }
.wcpa-pagebanner__eyebrow { font-size: .82rem; opacity: .95; }
.wcpa-pagebanner__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }

/* Banner-bottom swoosh: an off-white wave so the navy curves into the page. */
.wcpa-swoosh--banner {
	position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; z-index: 3; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f3ee' d='M0 40 L0 24 C260 40 520 6 760 17 C1010 29 1230 40 1440 19 L1440 40 Z'/%3E%3C/svg%3E") no-repeat bottom center / 100% 100%;
}

/* --- Sidebar: collapsible groups (native <details>) --- */
.wcpa-childnav__item--group { border-top: 1px solid var(--wcpa-line); }
.wcpa-childnav__item--group:first-child { border-top: 0; }
.wcpa-childnav__group > summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 13px 22px;
	color: var(--wcpa-navy); font-weight: 600; font-size: 0.95rem;
	border-left: 3px solid transparent;
	transition: background .15s var(--wcpa-ease), color .15s var(--wcpa-ease), border-color .15s var(--wcpa-ease);
}
.wcpa-childnav__group > summary::-webkit-details-marker { display: none; }
.wcpa-childnav__group > summary:hover { background: var(--wcpa-off-white); border-left-color: rgba(226,168,62,0.55); }
.wcpa-childnav__summary.is-current { color: var(--wcpa-navy); border-left-color: var(--wcpa-gold); background: var(--wcpa-off-white); }
.wcpa-childnav__chev {
	flex: 0 0 auto; width: 9px; height: 9px; margin-right: 2px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .2s var(--wcpa-ease); opacity: .7;
}
.wcpa-childnav__group[open] > summary .wcpa-childnav__chev { transform: rotate(-135deg); }
.wcpa-childnav__sublist { list-style: none; margin: 0; padding: 0 0 8px; background: var(--wcpa-off-white); }
.wcpa-childnav__sublink {
	display: block; padding: 9px 22px 9px 36px;
	color: var(--wcpa-text); font-size: 0.9rem; font-weight: 500;
	border-left: 3px solid transparent;
	transition: color .15s var(--wcpa-ease), border-color .15s var(--wcpa-ease);
}
.wcpa-childnav__sublink:hover { color: var(--wcpa-dark-navy); border-left-color: rgba(226,168,62,0.55); }
.wcpa-childnav__sublink.is-current { color: var(--wcpa-navy); font-weight: 700; border-left-color: var(--wcpa-gold); }

/* --- Sidebar "Most Visited" quick links --- */
.wcpa-sidelinks {
	margin-top: 20px; background: var(--wcpa-white);
	border: 1px solid var(--wcpa-line); border-radius: var(--wcpa-radius-md);
	overflow: hidden; box-shadow: var(--wcpa-shadow-sm);
}
.wcpa-sidelinks__title {
	margin: 0; padding: 14px 20px;
	background: linear-gradient(135deg, var(--wcpa-gold), var(--wcpa-gold-2));
	color: var(--wcpa-navy); font-weight: 800; font-size: .8rem;
	text-transform: uppercase; letter-spacing: 0.1em;
}
.wcpa-sidelinks__list { list-style: none; margin: 0; padding: 0; }
.wcpa-sidelinks__link {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 20px; color: var(--wcpa-navy); font-weight: 600; font-size: .95rem;
	border-top: 1px solid var(--wcpa-line);
	transition: background .15s var(--wcpa-ease), padding .15s var(--wcpa-ease);
}
.wcpa-sidelinks__list li:first-child .wcpa-sidelinks__link { border-top: 0; }
.wcpa-sidelinks__link:hover { background: var(--wcpa-off-white); padding-left: 24px; }
.wcpa-sidelinks__arrow { color: var(--wcpa-gold-2); font-weight: 700; }

/* --- Footer swoosh: thin gold accent ribbon at the very top --- */
.wcpa-footer { position: relative; }
.wcpa-footer::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
	background: linear-gradient(90deg, var(--wcpa-gold-2), var(--wcpa-gold), var(--wcpa-gold-2));
	opacity: .9;
}

/* Respect reduced motion for the new chevron animation. */
@media (prefers-reduced-motion: reduce) {
	.wcpa-childnav__chev { transition: none; }
}

/* --- OFFICES mega-menu: category columns (DOM built in theme.js) --- */
@media (min-width: 961px) {
	/* Center the wide OFFICES panel under the header bar so it never overflows
	   the right edge (the menu item sits left-of-centre once the wordmark logo
	   widened the brand column). OFFICES is the 2nd top-level item. Making its
	   <li> static re-anchors the absolute panel to .wcpa-header__bar (full width). */
	.wcpa-nav__list > li:nth-child(2) { position: static; }
	.wcpa-nav__list > li:nth-child(2) > .sub-menu {
		left: 50% !important; right: auto !important;
		transform: translateX(-50%) translateY(6px) !important;
		width: min(1180px, calc(100vw - 48px));
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
	.wcpa-nav__list > li:nth-child(2):hover > .sub-menu,
	.wcpa-nav__list > li:nth-child(2):focus-within > .sub-menu {
		transform: translateX(-50%) translateY(0) !important;
	}
	.wcpa-nav__list .sub-menu .wcpa-offgroup { align-self: start; padding: 16px 0 18px; }
	.wcpa-offgroup__head {
		margin: 0 0 6px; padding: 0 22px;
		color: var(--wcpa-gold); font-size: .72rem; font-weight: 800;
		letter-spacing: .12em; text-transform: uppercase;
	}
	.wcpa-offgroup__list { list-style: none; margin: 0; padding: 0; }
	.wcpa-offgroup__list li { display: block; }
	.wcpa-offgroup--footer {
		grid-column: 1 / -1;
		border-top: 1px solid rgba(255,255,255,0.12);
		margin: 4px 12px 6px; padding-top: 4px;
	}
	.wcpa-offgroup__viewall { font-weight: 700; color: var(--wcpa-gold) !important; }
}

/* --- In-content (block editor) buttons → brand navy/gold --- */
.wcpa-prose .wp-block-button__link,
.wcpa-prose .wp-block-button .wp-block-button__link {
	background-color: var(--wcpa-navy) !important;
	background-image: none !important;
	color: #fff !important;
	border-radius: var(--wcpa-radius-sm) !important;
	padding: 12px 26px !important;
	font-weight: 700 !important;
	box-shadow: var(--wcpa-shadow-sm);
	transition: background-color .2s var(--wcpa-ease), color .2s var(--wcpa-ease);
}
.wcpa-prose .wp-block-button__link:hover,
.wcpa-prose .wp-block-button__link:focus-visible {
	background-color: var(--wcpa-gold) !important;
	color: var(--wcpa-navy) !important;
}
