/* =========================================================================
   DSP Growth: theme chrome (header, nav, heroes, article, footer)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto;
	background: var(--ink); color: var(--white); font-weight: 600; border-radius: 999px;
}

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.site-main { display: block; }
.site-main:focus { outline: none; }
.icon { flex: none; }

/* ---------- Buttons (chrome) ---------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 46px; padding: 0 1.3rem;
	border: 1.5px solid transparent; border-radius: 999px;
	font: inherit; font-weight: 600; font-size: 0.97rem; line-height: 1.2;
	text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--blue); }
.btn--blue { background: var(--blue); color: var(--white); min-height: 52px; padding: 0 1.6rem; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--outline { border-color: var(--ink); color: var(--ink); min-height: 52px; padding: 0 1.5rem; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); min-height: 52px; padding: 0 1.5rem; }
.btn--outline-light:hover { background: var(--white); color: var(--blue); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed mobile menu panel. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(244, 245, 240, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.nav-open .site-header::before { background: var(--paper); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-header__brand { flex: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { flex: none; width: 36px; height: 36px; }
.brand__mark rect { fill: var(--ink); }
.brand__mark path { fill: none; stroke: var(--blue-soft); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.1; }
.custom-logo-link { display: inline-flex; }
.custom-logo { display: block; max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.primary-nav { flex: 1; display: flex; }
.primary-nav .menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 12px; border-radius: 999px;
	color: var(--ink); font-weight: 500; font-size: 0.98rem; text-decoration: none;
}
.primary-nav .menu > li > a:hover { color: var(--blue); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a,
.primary-nav .menu > .current_page_item > a { color: var(--blue); }
.submenu-toggle {
	display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; padding: 0;
	border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
}
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 12px); left: 0; z-index: 10;
	min-width: 260px; margin: 0; padding: 10px; list-style: none;
	background: var(--white); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius-m);
	box-shadow: 0 30px 60px -28px rgba(15, 26, 43, 0.35);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.primary-nav .menu-item--mega > .sub-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 620px; }
.primary-nav .sub-menu a {
	display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px;
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--paper); }
.primary-nav .sub-menu a:hover .sub-menu__title { color: var(--blue); }
.sub-menu__desc { font-weight: 400; font-size: 0.85rem; color: var(--muted); }

@media (min-width: 1080px) {
	.primary-nav .menu > li:hover > .sub-menu,
	.primary-nav .menu > li:focus-within > .sub-menu,
	.primary-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
}

.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--blue); }
.header-phone:hover { color: var(--blue); }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle > span { display: inline-flex; }
.nav-toggle > .nav-toggle__close { display: none; }
.nav-open .nav-toggle > .nav-toggle__open { display: none; }
.nav-open .nav-toggle > .nav-toggle__close { display: inline-flex; }

@media (max-width: 1240px) {
	.header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; }
}

@media (max-width: 1079px) {
	.nav-toggle { display: inline-grid; place-items: center; }
	.site-nav {
		position: fixed; inset: var(--nav-top, 77px) 0 0 0; z-index: 99;
		display: none; flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 32px; overflow-y: auto;
		background: var(--paper); border-top: 1px solid var(--line);
	}
	.nav-open .site-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.primary-nav { flex: none; display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.primary-nav .menu > li > a { flex: 1; padding: 16px 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; border-radius: 0; }
	.submenu-toggle { width: 46px; height: 46px; margin: 0; border: 1px solid var(--line); background: var(--white); }
	.primary-nav .sub-menu, .primary-nav .menu-item--mega > .sub-menu {
		position: static; display: none; width: 100%; min-width: 0; margin: 0 0 14px; padding: 6px;
		grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; box-shadow: none; transition: none;
	}
	.primary-nav li.is-open > .sub-menu { display: grid; }
	.site-header__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
	.site-header__actions .btn { min-height: 54px; font-size: 1.05rem; }
	.header-phone span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.header-phone { width: auto; height: auto; justify-content: center; min-height: 54px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 1.05rem; }
}

/* ---------- Page hero ----------------------------------------------------- */

.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero__title {
	max-width: 20ch; margin: 0;
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em;
	text-wrap: balance;
}
.page-hero__summary { max-width: 40rem; margin: 1.5rem 0 0; color: var(--slate); font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.page-hero__kicker { margin-bottom: 16px; font-weight: 600; }
.page-hero__kicker a { display: inline-block; padding: 4px 0; color: var(--blue-deep); text-decoration: none; }
.page-hero__kicker a:hover { text-decoration: underline; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.page-hero--article .page-hero__title { max-width: 24ch; font-size: clamp(2.2rem, 4.4vw, 3.75rem); line-height: 1.02; }
.page-hero--article { border-bottom: 0; }
.page-hero--article.has-media { padding-bottom: clamp(32px, 4vw, 48px); }

.breadcrumbs { margin-bottom: clamp(20px, 3vw, 32px); font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9AA3AF; }
.breadcrumbs a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Entries ------------------------------------------------------- */

.entry--sections > *:not(.wp-block-group):not(.alignfull) { max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.entry--sections > :first-child:not(.wp-block-group) { margin-top: clamp(48px, 6vw, 80px); }
.entry--sections > :last-child:not(.wp-block-group) { margin-bottom: clamp(48px, 6vw, 80px); }
.entry--sections > .wp-block-group { margin-top: 0; margin-bottom: 0; }

.entry__media img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-l); background: var(--paper-deep); }
.entry__body { padding-top: clamp(40px, 6vw, 64px); font-size: 1.125rem; line-height: 1.75; }
.entry__body > * { margin-top: 0; margin-bottom: 1.25em; }
.entry__body > h2 { margin-top: 2.2em; margin-bottom: 0.6em; font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.entry__body > h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.entry__body > ol, .entry__body > ul { padding-left: 1.4em; }
.entry__body .wp-block-image { margin-block: 2em; }
.entry__footer { padding-bottom: clamp(56px, 7vw, 96px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0 0; padding: 0; list-style: none; }
.tag-list a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.9rem; text-decoration: none; }

.post-navigation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-nav__label { font-size: 0.875rem; color: var(--muted); }
.post-nav__title { font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
.post-navigation a:hover .post-nav__title { color: var(--blue); }
@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; text-align: left; }
}

/* ---------- Listing ------------------------------------------------------- */

.listing { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.listing > .search-form { max-width: 36rem; margin-bottom: 40px; }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.empty-state { max-width: 36rem; }
.empty-state h2 { margin-top: 0; font-family: var(--font-display); }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { margin-top: 0; }

/* ---------- Other services ------------------------------------------------ */

.other-services { padding: clamp(64px, 8vw, 104px) 0; }
.other-services h2 { margin: 0 0 28px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; }
.other-services__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.other-services__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 0 20px; border-top: 1px solid var(--line); text-decoration: none; }
.other-services__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.other-services__desc { color: var(--muted); font-size: 0.95rem; }
.other-services__list a:hover .other-services__title { color: var(--blue); }
.other-services__list--plain { margin-top: 32px; }

/* ---------- Pre-footer CTA ------------------------------------------------ */

.cta-band { padding: 0 0 clamp(64px, 8vw, 104px); }
.cta-band__inner {
	--focus: var(--marigold);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
	padding: clamp(32px, 5vw, 64px);
	max-width: var(--container);
	border-radius: 32px; background: var(--blue); color: var(--white);
}
@media (max-width: 1304px) { .cta-band__inner { width: calc(100% - 2 * var(--gutter)); } }
.cta-band__text { flex: 1 1 26rem; }
.cta-band h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1; letter-spacing: -0.035em; }
.cta-band p { margin: 1rem 0 0; color: var(--white); max-width: 34rem; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--blue { background: var(--ink); }
.cta-band .btn--blue:hover { background: #000; }
.page:not(.home) .entry--sections + .other-services { border-top: 1px solid var(--line); }

/* ---------- Footer -------------------------------------------------------- */

.site-footer { --focus: var(--marigold); background: var(--ink); color: #C9D2E0; font-size: 0.97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr 1.2fr; gap: 40px; padding-top: clamp(64px, 7vw, 88px); padding-bottom: 48px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand__mark rect { fill: var(--white); }
.site-footer .brand__mark path { stroke: var(--blue); }
.site-footer__about p { max-width: 22rem; margin: 18px 0 0; }
.site-footer__heading { margin: 0 0 16px; color: var(--white); font-size: 1rem; font-weight: 700; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li { margin: 0 0 4px; }
.site-footer__col a { display: inline-block; padding: 5px 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 3px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--marigold); }
.socials { display: flex; gap: 8px; margin-top: 20px !important; }
.socials a { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink-line); border-radius: 999px; }
.socials a:hover { border-color: var(--marigold); color: var(--marigold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--ink-line); font-size: 0.9rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 960px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Comments / motion / print ------------------------------------ */

.comments { padding-bottom: 64px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .cta-band, .other-services { display: none; }
}
