/* ==========================================================================
   Waventraglobal: main stylesheet
   ========================================================================== */

:root {
	--navy: #15293d;
	--navy-2: #1b365d;
	--cream: #f5f1ea;
	--white: #fff;
	--ink: #2d2d2d;
	--muted: #7d7267;
	--line: #e6e0d6;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(21, 41, 61, .08);
	--shadow-lg: 0 18px 40px rgba(21, 41, 61, .16);
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 2px; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 820px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-2); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 0; color: #fff; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.ww-icon { flex: none; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: 4px;
	font-weight: 700; font-size: .9rem; line-height: 1.2; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--navy-2); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--navy-2); color: #fff; }
.btn-accent:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { display: flex; width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cdd7e2; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; }
.topbar ul { list-style: none; display: flex; gap: 1.4rem; align-items: center; }
.topbar li { display: flex; align-items: center; gap: .45rem; }
.topbar a { color: #cdd7e2; }
.topbar a:hover { color: var(--navy-2); }
.topbar .ww-icon { color: var(--navy-2); }
.social { list-style: none; display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; }
.topbar .social a { width: auto; height: auto; }
.topbar .social .ww-icon { color: inherit; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: #fff;
	border-bottom: 1px solid var(--line); transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(21, 41, 61, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-logo { height: var(--logo-h, 54px); width: auto; max-width: 100%; display: block; }
.brand-mark {
	display: inline-flex; width: 44px; height: 44px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--sans); }
.brand-text strong { font-size: 1.3rem; letter-spacing: .06em; color: var(--navy); font-weight: 800; }
.brand-text strong em { font-style: normal; color: #2c7fd1; font-weight: 700; }
.brand-text small { font-size: .68rem; letter-spacing: .34em; color: var(--muted); margin-top: 4px; }
.brand-text.is-light strong { color: #fff; }
.brand-text.is-light strong em { color: #7fd0ff; }
.brand-text.is-light small { color: #aebccb; }

.primary-nav .menu { list-style: none; display: flex; align-items: center; gap: .25rem; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: .9rem .9rem; font-weight: 400; font-size: .92rem; color: var(--ink); }
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a { color: var(--navy-2); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.primary-nav .sub-menu {
	list-style: none; position: absolute; top: 100%; left: 0; min-width: 270px; padding: .5rem;
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-top: 3px solid var(--navy-2);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: .6rem .9rem; font-weight: 400; border-radius: 6px; }
.primary-nav .sub-menu a:hover { background: var(--cream); color: var(--navy-2); }
.submenu-toggle { display: none; }
.nav-cta-mobile { display: none; }

.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.header-phone .ww-icon { color: var(--navy-2); }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--navy); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* ---------- Hero ---------- */
.hero {
	position: relative; color: #fff; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
	background:
		linear-gradient(100deg, rgba(14, 28, 44, .78) 0%, rgba(14, 28, 44, .45) 55%, rgba(14, 28, 44, .15) 100%),
		var(--hero-image, url("../img/hero.svg")) center / cover no-repeat;
}
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: .45em; }
.hero-copy { max-width: 720px; }
.hero-text { font-size: 1.15rem; max-width: 56ch; color: #e6edf4; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; color: var(--navy-2); margin-bottom: .9rem; }
.eyebrow-light { color: #dfe6ef; }

.quote-bar {
	margin-top: 3rem; background: #fff; color: var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: 0 1.4rem 1.4rem; max-width: 900px;
}
.quote-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.quote-tabs span { padding: 1rem 0 .7rem; font-weight: 700; font-size: .95rem; border-bottom: 3px solid var(--navy-2); margin-bottom: -1px; color: var(--navy); }
.quote-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: .8rem; }
.field select, .field input, .field-block input, .field-block select, .field-block textarea, .search-form input {
	width: 100%; padding: .8rem 1rem; background: #fff; border: 1px solid #d6d0c5; border-radius: 6px; font-size: .95rem;
}
.field select, .field input { height: 50px; }
.field select:focus, .field input:focus, .field-block input:focus, .field-block select:focus, .field-block textarea:focus {
	outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(27, 54, 93, .18);
}
.quote-form .btn { height: 50px; }
.form-notice { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 6px; font-size: .95rem; }
.form-notice.is-ok { background: #e7f6ec; color: #17653a; border: 1px solid #b7e4c7; }
.form-notice.is-error { background: #fdeaea; color: #a12626; border: 1px solid #f3c0c0; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-white { background: #fff; }
.section-head { margin-bottom: 3rem; }
.section-head.is-center { text-align: center; max-width: 720px; margin-inline: auto; margin-bottom: 3rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.center-cta { text-align: center; margin: 2.5rem 0 0; }

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.section-white .card { box-shadow: 0 4px 22px rgba(21, 41, 61, .07); border: 1px solid #f0ebe3; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

.service-card, .industry-card, .feature-card { padding: 2.2rem 1.8rem; text-align: center; }
.service-card h3, .industry-card h3, .feature-card h3 { margin-top: 1.1rem; }
.service-card p, .industry-card p, .feature-card p { color: var(--muted); font-size: .95rem; }
.service-card .more { display: inline-flex; align-items: center; gap: .4rem; color: var(--navy-2); font-weight: 700; font-size: .9rem; }
.service-card:hover .more .ww-icon { transform: translateX(4px); }
.service-card .more .ww-icon { transition: transform .2s; }
.service-card-cta { grid-column: span 2; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.service-card-cta h3 { color: #fff; margin-top: 0; }
.service-card-cta p { color: #cdd7e2; }

.icon-circle {
	display: inline-grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
	background: #e8edf4; color: var(--navy-2); transition: background .25s, color .25s;
}
.card:hover .icon-circle { background: var(--navy-2); color: #fff; }
.icon-circle-sm { width: 52px; height: 52px; }
.icon-circle-lg { width: 104px; height: 104px; }

.card-media { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 10 / 7; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.media-placeholder { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .55); }
.badge { position: absolute; left: 14px; top: 14px; background: #e7f3ef; color: #1b6b55; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 4px; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.card-body .eyebrow { margin-bottom: .4rem; }
.meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.project-card[hidden] { display: none; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split-media img, .about-art { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; object-fit: cover; }
.about-art {
	background:
		radial-gradient(circle at 78% 26%, rgba(245, 241, 234, .9) 0 7%, transparent 7.5%),
		linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 36px 36px,
		linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 36px 36px,
		linear-gradient(135deg, var(--navy), var(--navy-2));
	position: relative; overflow: hidden;
}
.about-art::before {
	content: ""; position: absolute; left: 10%; right: 10%; bottom: 12%; height: 52%;
	border: 3px solid rgba(255, 255, 255, .55); border-bottom-width: 6px;
	clip-path: polygon(0 100%, 0 38%, 18% 38%, 18% 18%, 40% 18%, 40% 0, 62% 0, 62% 30%, 84% 30%, 84% 56%, 100% 56%, 100% 100%);
	background: rgba(255, 255, 255, .07);
}
.checklist { list-style: none; margin: 1.4rem 0 2rem; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: .6rem; }
.checklist .ww-icon { color: #fff; background: var(--navy-2); border-radius: 50%; padding: 3px; margin-top: 3px; }

/* Stats */
.stats { background: var(--navy); color: #fff; padding: 3.5rem 0; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--navy-2); font-weight: 600; }
.stat span { display: block; margin-top: .6rem; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: #cdd7e2; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: s; position: relative; }
.step { text-align: center; padding: 0 .6rem; }
.step-num {
	display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%;
	background: var(--navy-2); color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 600;
	box-shadow: 0 0 0 8px rgba(27, 54, 93, .1);
}
.step p { color: var(--muted); font-size: .95rem; }

/* Testimonials */
.quote-card { padding: 2rem; margin: 0; }
.quote-card blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.quote-card blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--navy-2); }
.quote-card figcaption strong { display: block; }
.quote-card figcaption span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: #cdd7e2; max-width: 52ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page-banner {
	background:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(120deg, var(--navy), var(--navy-2));
	color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-banner h1 { color: #fff; margin-bottom: .2em; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-banner p { color: #cdd7e2; max-width: 62ch; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .85rem; color: #aebccb; margin-bottom: 1rem; display: flex; gap: .5rem; }
.crumbs a { color: #dfe6ef; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: 110px; }
.widget { padding: 1.6rem; }
.widget:hover { transform: none; }
.widget-title { font-size: 1.5rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--cream); }
.plain-list { list-style: none; }
.plain-list li { border-bottom: 1px solid var(--cream); }
.plain-list li:last-child { border: 0; }
.plain-list a { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; color: var(--ink); }
.plain-list a:hover, .plain-list .is-current a { color: var(--navy-2); }
.widget-cta { background: var(--navy); color: #fff; }
.widget-cta .widget-title { color: #fff; border-color: rgba(255, 255, 255, .15); }
.widget-cta p { color: #cdd7e2; }
.widget-phone { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 1rem; color: #fff; font-weight: 700; }
.facts { margin: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: 0 0 .9rem; font-weight: 700; }

.entry-thumb { margin-bottom: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.service-hero-art { display: grid; place-items: center; height: 220px; margin-bottom: 2rem; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.service-hero-art .icon-circle { background: rgba(255, 255, 255, .12); color: #fff; }
.entry-content { font-size: 1.05rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--navy-2); }
.entry-content img { border-radius: var(--radius); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-tabs button { padding: .6rem 1.2rem; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.filter-tabs button:hover { border-color: var(--navy-2); }
.filter-tabs button.is-active { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.empty-state { padding: 3rem 2rem; text-align: center; max-width: 620px; margin: 0 auto; }
.empty-state:hover { transform: none; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .95rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.pagination .current, .pagination .page-numbers:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.contact-list a, .contact-list span { color: var(--muted); }
.contact-list a:hover { color: var(--navy-2); }
.contact-list div { display: flex; flex-direction: column; }
.small-link { font-size: .85rem; text-decoration: underline; }
.contact-form { padding: clamp(1.5rem, 3vw, 2.4rem); }
.contact-form:hover { transform: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-block { display: block; margin-bottom: 1rem; }
.field-block > span { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; }
.field-block textarea { resize: vertical; min-height: 140px; }

.search-form { display: flex; gap: .5rem; margin: 1rem 0; }
.search-form label { flex: 1; }
.big-404 { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--navy-2); margin: 0; }

.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; }
.comment-body { background: #fff; border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .7rem 1rem; border: 1px solid #d6d0c5; border-radius: 6px; }
.comment-form .submit { background: var(--navy-2); color: #fff; border: 0; padding: .8rem 1.6rem; border-radius: 6px; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 3rem; padding-block: 4.5rem 3.5rem; }
.footer-col h3 { color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }
.footer-about p { margin: 1.2rem 0; max-width: 34ch; }
.footer-links { list-style: none; display: grid; gap: .6rem; }
.footer-links a, .footer-contact a { color: #b9c6d4; }
.footer-links a:hover, .footer-contact a:hover { color: var(--navy-2); }
.footer-contact ul { list-style: none; display: grid; gap: 1rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ww-icon { color: var(--navy-2); margin-top: 4px; }
.site-footer .social a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer .social a:hover { background: var(--navy-2); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .card.reveal.is-visible:hover { transform: translateY(-5px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.header-phone span { display: none; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; order: 3; }
	.header-cta .btn { display: none; }
	.header-cta { margin-left: auto; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
		box-shadow: 0 20px 30px rgba(21, 41, 61, .12); max-height: calc(100vh - 82px); overflow-y: auto;
		display: none; padding: .5rem 1rem 1.5rem;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu a { padding: .85rem .4rem; border-bottom: 1px solid var(--cream); }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .menu-item-has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
	.submenu-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--navy); }
	.menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.primary-nav .sub-menu {
		position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: 0; padding: 0 0 0 1rem; min-width: 0; display: none;
	}
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.nav-cta-mobile { display: block; margin-top: 1rem; }
	.nav-cta-mobile .btn { width: 100%; }

	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.split, .contact-layout { grid-template-columns: 1fr; }
	.layout-sidebar { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.quote-form { grid-template-columns: 1fr 1fr; }
	.quote-form .btn { grid-column: 1 / -1; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	.hide-sm { display: none !important; }
	.topbar-inner { justify-content: center; }
	.topbar .social { display: none; }
	.grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
	.service-card-cta { grid-column: auto; }
	.stats .grid-4 { grid-template-columns: 1fr 1fr; }
	.quote-form, .form-row { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 2rem; }
	.header-inner { min-height: 72px; }
	.brand-logo { height: calc(var(--logo-h, 54px) * .8); }
	.hero h1 { max-width: none; }
}

/* ---------- Match MyHome demo palette: navy buttons, cream/white sections, navy footer ---------- */
.stat-num { color: #fff; }
.footer-contact .ww-icon { color: #b9c6d4; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.site-footer .social a:hover { background: #fff; color: var(--navy); }
.eyebrow { color: var(--muted); }
.eyebrow-light { color: #dfe6ef; }
.cta .btn-accent, .service-card-cta .btn-accent, .widget-cta .btn-accent { background: #fff; color: var(--navy-2); }
.cta .btn-accent:hover, .service-card-cta .btn-accent:hover, .widget-cta .btn-accent:hover { background: var(--cream); color: var(--navy); }
.service-card-cta { background: var(--navy); }
.page-banner .crumbs a:hover { color: #fff; }
.primary-nav .sub-menu a:hover { color: var(--navy-2); }
.quote-card blockquote::before { color: var(--navy-2); }

/* ---------- Photo cards and photo backgrounds ---------- */
.service-card.has-image { padding: 0; text-align: left; overflow: visible; }
.service-card.has-image .card-media { aspect-ratio: 16 / 10; }
.service-card.has-image .card-body { padding: 1.9rem 1.5rem 1.6rem; }
.service-card.has-image .card-body h3 { margin: 0 0 .5rem; font-size: 1.55rem; }
.service-card.has-image .icon-chip {
	position: absolute; left: 1.2rem; bottom: -26px; background: #fff; color: var(--navy-2);
	box-shadow: var(--shadow); z-index: 1;
}
.service-card.has-image .card-media { overflow: visible; border-radius: var(--radius) var(--radius) 0 0; }
.service-card.has-image .card-media img { border-radius: var(--radius) var(--radius) 0 0; }
.service-card.has-image:hover .icon-chip { background: var(--navy-2); color: #fff; }
.cta.has-photo {
	background:
		linear-gradient(110deg, rgba(21, 41, 61, .92) 0%, rgba(21, 41, 61, .78) 100%),
		var(--cta-image) center / cover no-repeat;
}
.cta.has-photo::after { display: none; }
.card-media img { display: block; }

/* ---------- Final match to MyHome demo look ---------- */
:root { --radius: 6px; }
.page-banner.has-photo {
	background:
		linear-gradient(110deg, rgba(21, 41, 61, .9) 0%, rgba(21, 41, 61, .7) 100%),
		var(--banner-image) center / cover no-repeat;
}
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 41, 61, 0) 25%, rgba(21, 41, 61, .92) 100%); }
.tile:hover img { transform: scale(1.06); }
.tile-body { position: relative; z-index: 1; padding: 1.6rem 1.4rem; }
.tile-body h3 { color: #fff; font-size: 1.8rem; margin-bottom: .4rem; }
.tile-body p { color: rgba(255, 255, 255, .85); font-size: .9rem; margin: 0; line-height: 1.55; }
.filter-tabs button { border-color: transparent; background: transparent; color: var(--ink); font-weight: 400; }
.filter-tabs button:hover { background: #fff; border-color: transparent; }
.filter-tabs button.is-active { background: var(--navy-2); color: #fff; font-weight: 700; }
.footer-links a, .footer-contact a, .site-footer { color: rgba(255, 255, 255, .8); }
.footer-col h3 { font-weight: 600; }
.tile-body { min-height: 215px; width: 100%; }

/* Bright hero photo like the MyHome demo: light overlay, readable white text */
.hero.has-photo {
	background:
		linear-gradient(100deg, rgba(14, 28, 44, .5) 0%, rgba(14, 28, 44, .22) 55%, rgba(14, 28, 44, 0) 100%),
		var(--hero-image) center / cover no-repeat;
}
.hero.has-photo h1, .hero.has-photo .hero-text { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }

.hero h1 { max-width: 22ch; }

/* Quote bar spans the full content width, aligned with the cards below */
.quote-bar { max-width: none; width: 100%; }

/* ---------- Blog post, projects fallback, FAQ, map ---------- */
.post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 1.4rem; color: var(--muted); font-size: .9rem; }
.post-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.pill { display: inline-block; padding: .15rem .8rem; border-radius: 99px; background: #e8edf4; color: var(--navy-2); font-weight: 700; font-size: .8rem; }
.pill:hover { background: var(--navy-2); color: #fff; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.6rem 1.8rem; margin: 2.5rem 0; background: var(--navy); color: #fff; }
.post-cta:hover { transform: none; }
.post-cta h3 { color: #fff; margin: 0 0 .2rem; }
.post-cta p { margin: 0; color: #cdd7e2; }
.post-cta .btn { background: #fff; color: var(--navy-2); flex: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.post-navigation a { display: block; padding: 1rem 1.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-navigation .nav-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-list details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 1.4rem; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--navy-2); flex: none; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 0 1.2rem; color: var(--muted); }

.map-embed { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.map-embed iframe { width: 100%; height: 380px; border: 0; }
.capability-note { text-align: center; max-width: 620px; margin: 2.5rem auto 0; color: var(--muted); }

@media (max-width: 640px) {
	.post-cta { flex-direction: column; align-items: flex-start; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* Keep menu items and header button on one line */
.primary-nav .menu a, .header-cta .btn, .header-phone { white-space: nowrap; }
