/*
Theme Name: Boston Crating
Theme URI: https://bostoncrating.com/
Author: Superior Promotions
Author URI: https://superiorpromo.net
Description: Homepage theme for Boston Crating & Packaging. Photo hero slider, full service index, token-free Instagram grid, Forminator quote form.
Version: 0.3.3
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: boston-crating
*/

/* ---------- Tokens ---------- */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"), url("assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--navy-950: #0d1633;
	--navy-900: #111c40;
	--navy-800: #1a2a5c;
	--navy-700: #2b3a74;
	--navy-200: #c3cae0;
	--navy-100: #e3e7f2;
	--yellow: #fcd24a;
	--yellow-600: #f2bf1a;
	--paper: #f3f4f8;
	--white: #fff;
	--ink: #121a33;
	--muted: #47506b;

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-stretch: 112%;
	--wrap: 1280px;
	--gutter: clamp(20px, 4vw, 56px);
	--section: clamp(72px, 10vw, 144px);
	--radius: 4px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow: 0 18px 40px -18px rgba(13, 22, 51, 0.45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--navy-700) var(--paper); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); font-variation-settings: "wdth" 100; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--yellow); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy-950); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.h-display {
	font-size: clamp(2.25rem, 4.6vw, 4.25rem);
	font-weight: 820;
	font-stretch: var(--display-stretch);
	font-variation-settings: "wdth" 112;
	letter-spacing: -0.025em;
	line-height: 1;
}
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.55; max-width: 38em; }
.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin: 0; font-size: 1.125rem; }
.section-head--row { display: flex; max-width: none; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font: 700 1rem/1 var(--font); letter-spacing: 0.01em;
	text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
	cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.btn .ico { transition: transform 0.25s var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--navy-950); }
.btn--yellow:hover { background: var(--white); }
.btn--navy { background: var(--navy-800); color: var(--white); }
.btn--navy:hover { background: var(--navy-950); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 4px; }
.link-arrow .ico { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-800); color: var(--navy-200); font-size: 0.875rem; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; min-height: 40px; align-items: center; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__links { gap: 24px !important; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white); }
.topbar a:hover { color: var(--yellow); }
.topbar .ico { width: 15px; height: 15px; color: var(--yellow); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(13, 22, 51, 0.5); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand img { width: auto; height: 64px; transition: height 0.3s var(--ease-out); }
.site-header.is-scrolled .brand img { height: 52px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav .menu { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav .menu a { font-weight: 650; font-size: 0.95rem; text-decoration: none; padding: 8px 0; background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 0 3px no-repeat; transition: background-size 0.3s var(--ease-out); }
.nav .menu a:hover, .nav .menu .current-menu-item a { background-size: 100% 3px; }
.nav__quote { min-height: 46px; padding: 0 20px; }
.nav__quote:hover { background: var(--navy-800); color: var(--white); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; color: var(--navy-800); cursor: pointer; }
.menu-btn .ico { width: 28px; height: 28px; }
.menu-btn .ico--close { display: none; }

@media (max-width: 1120px) {
	.menu-btn { display: block; }
	.nav {
		position: fixed; inset: 128px 0 0; z-index: 40;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 24px var(--gutter) 40px; background: var(--navy-900); overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
	}
	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu a { display: block; color: var(--white); font-size: 1.5rem; font-weight: 750; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); background: none; }
	.nav__quote { margin-top: 28px; justify-content: center; min-height: 56px; }
	.menu-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease-out); }
	.menu-open .menu-btn .ico--open { display: none; }
	.menu-open .menu-btn .ico--close { display: block; }
}
@media (max-width: 720px) {
	.topbar__in > p:first-child { display: none; }
	.topbar__links { width: 100%; justify-content: space-between; }
	.site-header__in { min-height: 76px; }
	.brand img { height: 52px; }
	.nav { inset: 116px 0 0; }
}
@media (max-width: 420px) {
	.topbar__links a:last-child { font-size: 0; gap: 0; }
	.topbar__links a:last-child .ico { width: 18px; height: 18px; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(600px, calc(100svh - 128px), 820px); background: var(--navy-950); color: var(--white); overflow: hidden; --dur: 7s; }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding-bottom: 96px; visibility: hidden; }
.slide.is-active, .slide.is-leaving { visibility: visible; }
.slide.is-active { z-index: 2; }
.slide.is-leaving { z-index: 1; }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(13, 22, 51, 0.92) 0%, rgba(13, 22, 51, 0.7) 38%, rgba(13, 22, 51, 0.15) 75%, rgba(13, 22, 51, 0) 100%),
		linear-gradient(0deg, rgba(13, 22, 51, 0.75) 0%, rgba(13, 22, 51, 0) 30%);
}
.slide__copy { position: relative; }
.slide__title {
	max-width: 13ch; font-size: clamp(2.6rem, 6.2vw, 5.75rem); font-weight: 850;
	font-stretch: var(--display-stretch); font-variation-settings: "wdth" 112;
	letter-spacing: -0.03em; line-height: 0.96;
}
.slide__text { max-width: 34em; margin: 28px 0 36px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--navy-100); }
.slide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 14px; margin: 0; }
.slide__actions .btn--ghost { font-variant-numeric: tabular-nums; }
.slide__more { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; font-weight: 700; text-decoration: none; color: var(--white); border-bottom: 2px solid var(--yellow); padding-bottom: 3px; }
.slide__more .ico { transition: transform 0.25s var(--ease-out); }
.slide__more:hover .ico { transform: translateX(4px); }

/* Transition: the incoming slide wipes in from the right over the outgoing one while its photo settles; copy rises in after. */
.js .slide.is-entering { animation: slide-wipe 0.9s var(--ease-out) both; }
.js .slide.is-active .slide__media img { animation: slide-push calc(var(--dur) + 1.5s) linear both; }
.js .slide.is-entering .slide__title,
.js .slide.is-entering .slide__text,
.js .slide.is-entering .slide__actions { animation: copy-rise 0.8s var(--ease-out) both; }
.js .slide.is-entering .slide__title { animation-delay: 0.3s; }
.js .slide.is-entering .slide__text { animation-delay: 0.42s; }
.js .slide.is-entering .slide__actions { animation-delay: 0.52s; }
@keyframes slide-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide-push { from { transform: scale(1.1) translateX(1.5%); } to { transform: scale(1) translateX(0); } }
@keyframes copy-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero.is-paused .slide.is-active .slide__media img { animation-play-state: paused; }

.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: rgba(13, 22, 51, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero__bar-in { display: flex; align-items: stretch; gap: 24px; }
.hero__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); flex: 1; min-width: 0; }
.hero__tab {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 18px 16px 20px 0; min-height: 80px;
	background: none; border: 0; color: var(--navy-200); font: 600 0.9rem/1.25 var(--font); text-align: left; cursor: pointer;
	transition: color 0.2s;
}
.hero__tab::before { content: ""; position: absolute; left: 0; right: 12px; top: 0; height: 3px; background: rgba(255, 255, 255, 0.18); }
.hero__tab-fill { position: absolute; left: 0; right: 12px; top: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.hero__tab:hover, .hero__tab[aria-selected="true"] { color: var(--white); }
.hero__tab[aria-selected="true"] .hero__tab-fill { transform: scaleX(1); }
.js .hero:not(.is-static) .hero__tab[aria-selected="true"] .hero__tab-fill { animation: tab-fill var(--dur) linear both; }
.js .hero.is-paused .hero__tab[aria-selected="true"] .hero__tab-fill { animation-play-state: paused; }
@keyframes tab-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__ctrl { display: flex; align-items: center; gap: 6px; }
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1.5px solid rgba(255, 255, 255, 0.35); background: none; color: var(--white); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.hero__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.hero__btn .ico { width: 20px; height: 20px; }
.hero__btn .ico--play, .hero.is-user-paused .hero__btn .ico--pause { display: none; }
.hero.is-user-paused .hero__btn .ico--play { display: block; }

@media (max-width: 900px) {
	.hero { height: auto; min-height: 640px; }
	.slide { align-items: flex-end; padding: 0 0 132px; }
	.slide__media::after { background: linear-gradient(0deg, rgba(13, 22, 51, 0.95) 0%, rgba(13, 22, 51, 0.8) 45%, rgba(13, 22, 51, 0.25) 100%); }
	.hero__tabs { grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
	.hero__tabs::-webkit-scrollbar { display: none; }
	.hero__tab { scroll-snap-align: start; padding-right: 24px; min-height: 72px; }
	.hero__tab::before, .hero__tab-fill { right: 20px; }
	.hero__ctrl .hero__btn[data-prev], .hero__ctrl .hero__btn[data-next] { display: none; }
}
@media (max-width: 560px) {
	.slide__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
	.slide__text { margin: 18px 0 26px; }
	.slide__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Intro ---------- */
.intro { padding: var(--section) 0; }
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px); align-items: center; }
.intro__copy .h-display { max-width: 14ch; margin-bottom: 32px; }
.intro__copy p:not(.lead) { max-width: 38em; color: var(--muted); }
.intro__copy .lead { margin-bottom: 20px; }
.intro__copy .link-arrow { margin-top: 12px; }
.intro__crate { margin: 0; position: relative; }
.intro__crate img { position: relative; width: 80%; max-width: 420px; margin: 0 auto 0 4%; filter: drop-shadow(0 24px 22px rgba(13, 22, 51, 0.35)); }
.intro__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--navy-800); }
.intro__facts li { padding: 28px 28px 0 0; display: grid; align-content: start; gap: 6px; }
.intro__facts li + li { padding-left: 28px; border-left: 1px solid var(--navy-100); }
.intro__facts strong { font-size: 1.3rem; font-weight: 780; font-variation-settings: "wdth" 108; letter-spacing: -0.01em; color: var(--navy-800); }
.intro__facts span { color: var(--muted); }
@media (max-width: 900px) {
	.intro__grid { grid-template-columns: 1fr; }
	.intro__crate { max-width: 380px; margin: 0 auto; }
	.intro__facts { grid-template-columns: 1fr; }
	.intro__facts li, .intro__facts li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--navy-100); }
}

/* ---------- Services ---------- */
.services { padding: var(--section) 0; background: var(--navy-800); color: var(--white); }
.services .section-head p { color: var(--navy-200); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255, 255, 255, 0.26); border: 2px solid rgba(255, 255, 255, 0.26); }
.svc { background: var(--navy-800); }
.svc > a {
	position: relative; isolation: isolate; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px;
	height: 100%; min-height: 260px; padding: 32px 28px 28px; text-decoration: none; overflow: hidden;
}
.svc > a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); clip-path: inset(100% 0 0 0); transition: clip-path 0.45s var(--ease-out); }
.svc__ico { width: 44px; height: 44px; color: var(--yellow); margin-bottom: 14px; transition: color 0.3s, transform 0.45s var(--ease-out); }
.svc h3 { font-size: 1.3rem; font-weight: 760; font-variation-settings: "wdth" 106; letter-spacing: -0.01em; line-height: 1.15; }
.svc p { margin: 0; color: var(--navy-200); font-size: 0.98rem; line-height: 1.5; transition: color 0.3s; }
.svc__go { width: 22px; height: 22px; margin-top: 10px; color: var(--yellow); transition: transform 0.35s var(--ease-out), color 0.3s; }
.svc > a:hover::before, .svc > a:focus-visible::before { clip-path: inset(0 0 0 0); }
.svc > a:hover, .svc > a:focus-visible { color: var(--navy-950); }
.svc > a:hover p, .svc > a:focus-visible p, .svc > a:hover .svc__ico, .svc > a:focus-visible .svc__ico, .svc > a:hover .svc__go, .svc > a:focus-visible .svc__go { color: var(--navy-950); }
.svc > a:hover .svc__ico { transform: translateY(-4px); }
.svc > a:hover .svc__go { transform: translateX(6px); }
.svc > a:focus-visible { outline-offset: -4px; outline-color: var(--navy-950); }
.svc--cta { grid-column: span 2; background: var(--yellow); }
.svc--cta > a { color: var(--navy-950); align-content: center; grid-template-rows: auto auto auto; }
.svc--cta > a::before { background: var(--white); }
.svc--cta h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 820; font-variation-settings: "wdth" 112; }
.svc--cta p { color: var(--navy-800); max-width: 30em; font-size: 1.05rem; }
.svc--cta .btn { justify-self: start; margin-top: 10px; }
.svc--cta > a:hover p { color: var(--navy-800); }

/* List reveal: tiles rise in once, staggered, when the grid scrolls into view. Visible by default without JS. */
.js .svc-grid.will-reveal .svc { opacity: 0; transform: translateY(24px); }
.js .svc-grid.is-in .svc { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }

@media (max-width: 1100px) {
	.svc-grid { grid-template-columns: repeat(3, 1fr); }
	.svc--cta { grid-column: span 1; }
}
@media (max-width: 760px) {
	.svc-grid { grid-template-columns: repeat(2, 1fr); }
	.svc--cta { grid-column: 1 / -1; }
	.svc > a { min-height: 0; padding: 24px 20px; }
	.svc__ico { width: 36px; height: 36px; margin-bottom: 6px; }
	.svc h3 { font-size: 1.1rem; }
	.svc p { font-size: 0.92rem; }
}
@media (max-width: 440px) {
	.svc-grid { grid-template-columns: 1fr; }
	.svc > a { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; }
	.svc__ico { grid-row: span 2; margin: 2px 0 0; }
	.svc__go { display: none; }
	.svc--cta > a { grid-template-columns: 1fr; }
}

/* ---------- What we crate (moving band) ---------- */
.items { background: var(--yellow); color: var(--navy-950); overflow: hidden; padding: 26px 0; border-block: 2px solid var(--navy-950); }
.items__track { display: flex; width: max-content; animation: items-scroll 60s linear infinite; }
.items:hover .items__track, .items.is-off .items__track { animation-play-state: paused; }
.items__row { display: flex; flex: none; }
.items__row li { display: flex; align-items: center; gap: 36px; padding-left: 36px; white-space: nowrap; font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 820; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; line-height: 1.1; }
.items__row li::before { content: ""; width: 0.42em; height: 0.42em; background: var(--navy-950); transform: rotate(45deg); }
@keyframes items-scroll { to { transform: translateX(-50%); } }

/* ---------- Area ---------- */
.area { padding: var(--section) 0; }
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.area .h-display { margin-bottom: 28px; max-width: 13ch; }
.area .lead { color: var(--muted); margin-bottom: 28px; }
.towns { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; border-top: 2px solid var(--navy-800); }
.towns li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--navy-100); font-weight: 760; font-variation-settings: "wdth" 108; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: var(--navy-800); }
.towns li::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--yellow); outline: 2px solid var(--navy-800); }
.towns .towns__more { grid-column: 1 / -1; color: var(--navy-700); }
.towns .towns__more::before { background: var(--navy-800); }
@media (max-width: 900px) { .area__grid { grid-template-columns: 1fr; } }

/* ---------- Instagram ---------- */
.insta { padding: var(--section) 0; background: var(--paper); }
.insta .btn .ico { width: 20px; height: 20px; }
.insta__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.insta__grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--navy-100); }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.insta__label {
	position: absolute; inset: auto 0 0; display: flex; gap: 10px; align-items: flex-start;
	padding: 40px 18px 16px; color: var(--white); font-weight: 650; font-size: 0.95rem; line-height: 1.35;
	background: linear-gradient(0deg, rgba(13, 22, 51, 0.92), rgba(13, 22, 51, 0));
	opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.insta__label .ico { width: 18px; height: 18px; margin-top: 1px; color: var(--yellow); }
.insta__grid a:hover img, .insta__grid a:focus-visible img { transform: scale(1.06); }
.insta__grid a:hover .insta__label, .insta__grid a:focus-visible .insta__label { opacity: 1; transform: none; }
.insta__sample { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: var(--radius); background: var(--yellow); color: var(--navy-950); font-size: 0.75rem; font-weight: 750; }
.insta__empty { font-size: 1.15rem; }
@media (hover: none) { .insta__label { opacity: 1; transform: none; font-size: 0.85rem; padding: 32px 12px 12px; } }
@media (max-width: 900px) { .insta__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */
.quote { padding: var(--section) 0; background: var(--navy-700); color: var(--white); scroll-margin-top: 80px; }
.quote__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.quote__grid--solo { grid-template-columns: 1fr; }
.quote .h-display { margin-bottom: 24px; }
.quote .lead { color: var(--navy-200); margin-bottom: 40px; }
.quote__phone, .quote__mail { display: flex; align-items: center; gap: 14px; text-decoration: none; width: fit-content; }
.quote__phone { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -0.02em; color: var(--yellow); line-height: 1.1; font-variant-numeric: tabular-nums; }
.quote__phone .ico { width: 0.8em; height: 0.8em; }
.quote__phone:hover { color: var(--white); }
.quote__mail { margin-top: 16px; font-size: 1.2rem; font-weight: 650; }
.quote__mail:hover { color: var(--yellow); }
.quote__mail .ico, .quote__hours .ico { color: var(--yellow); }
.quote__hours { display: flex; gap: 12px; align-items: center; margin-top: 32px; color: var(--navy-200); }
.quote__form { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }

/* Forminator, design style "none": the theme styles every field. */
.quote__form .forminator-ui.forminator-custom-form { margin: 0 !important; }
.quote__form .forminator-row { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 18px; }
.quote__form .forminator-col { flex: 1 1 220px; min-width: 0; }
.quote__form .forminator-label { display: block; margin-bottom: 6px; font-weight: 650; font-size: 0.95rem; color: var(--navy-800); }
.quote__form .forminator-required { color: #b4231b; }
.quote__form input[type="text"], .quote__form input[type="email"], .quote__form input[type="tel"], .quote__form select, .quote__form textarea {
	width: 100%; min-height: 52px; padding: 12px 14px;
	font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper);
	border: 2px solid var(--navy-100); border-radius: var(--radius); transition: border-color 0.2s, background-color 0.2s;
}
.quote__form textarea { min-height: 130px; resize: vertical; }
.quote__form input:focus, .quote__form select:focus, .quote__form textarea:focus { outline: none; border-color: var(--navy-800); background: var(--white); }
.quote__form .forminator-error-message { display: block; margin-top: 6px; color: #b4231b; font-size: 0.9rem; font-weight: 600; }
.quote__form .forminator-has_error input, .quote__form .forminator-has_error select, .quote__form .forminator-has_error textarea { border-color: #b4231b; }
.quote__form .forminator-button-submit {
	display: inline-flex; align-items: center; min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--radius);
	background: var(--yellow); color: var(--navy-950); font: 750 1.05rem/1 var(--font); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.quote__form .forminator-button-submit:hover { background: var(--navy-800); color: var(--white); }
.quote__form .forminator-response-message:empty, .quote__form .forminator-response-message[aria-hidden="true"] { display: none; }
.quote__form .forminator-response-message { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; }
.quote__form .forminator-response-message.forminator-success { background: #e4f4e8; color: #14522a; }
.quote__form .forminator-response-message.forminator-error { background: #fbe9e7; color: #8a1c14; }
@media (max-width: 900px) { .quote__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: var(--navy-200); padding: clamp(64px, 8vw, 104px) 0 0; font-size: 0.98rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; }
.site-footer__brand img { width: 190px; }
.site-footer h2 { margin-bottom: 18px; font-size: 1.05rem; font-weight: 750; color: var(--white); }
.site-footer .menu { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1.5px solid rgba(255, 255, 255, 0.3); color: var(--white); }
.site-footer__social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }
.hours { margin: 0; display: grid; gap: 10px; }
.hours div { display: grid; }
.hours dt { color: var(--white); font-weight: 650; }
.hours dd { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages (placeholder until those pages are redesigned) ---------- */
.inner-page { padding: var(--section) var(--gutter); }
.inner-page .page__body { max-width: 72ch; }
.inner-page .page__body h1 { font-size: clamp(2.25rem, 4.6vw, 4rem); font-weight: 820; font-variation-settings: "wdth" 112; letter-spacing: -0.025em; margin-bottom: 32px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .slide.is-entering { animation: slide-fade 0.4s ease both; }
	.js .slide.is-active .slide__media img, .js .slide.is-entering .slide__title, .js .slide.is-entering .slide__text, .js .slide.is-entering .slide__actions { animation: none; }
	.js .svc-grid.will-reveal .svc { opacity: 1; transform: none; }
	.items__track { animation: none; }
	.items { position: relative; }
	.items::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 18%; background: linear-gradient(90deg, rgba(252, 210, 74, 0), var(--yellow) 85%); pointer-events: none; }
	.items__row[aria-hidden] { display: none; }
	.items__row li:first-child { padding-left: var(--gutter); }
	.items__row li:first-child::before { display: none; }
	.svc > a::before { transition-duration: 0.01s; }
	@keyframes slide-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Service pages (page.php) ---------- */
.svc-hero { position: relative; color: var(--white); background: var(--navy-950); overflow: hidden; }
.svc-hero__media { position: absolute; inset: 0; }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 22, 51, 0.94) 0%, rgba(13, 22, 51, 0.78) 48%, rgba(13, 22, 51, 0.35) 100%); }
.svc-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.svc-hero__grid--solo { grid-template-columns: 1fr; }
.svc-hero__title { font-size: clamp(2.6rem, 5.6vw, 5.25rem); font-weight: 850; font-variation-settings: "wdth" 112; letter-spacing: -0.03em; line-height: 0.96; max-width: 11ch; }
.svc-hero__intro { margin: 28px 0 32px; max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--navy-100); }
.svc-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.svc-hero__tags li { padding: 9px 14px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: var(--radius); font-weight: 650; font-size: 0.95rem; }
.svc-hero__phone { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.svc-hero__phone .ico { width: 26px; height: 26px; color: var(--yellow); }
.svc-hero__phone span { display: grid; font-size: 1.6rem; font-weight: 820; font-variation-settings: "wdth" 110; line-height: 1.15; font-variant-numeric: tabular-nums; }
.svc-hero__phone small { font-size: 0.9rem; font-weight: 600; color: var(--navy-200); font-variation-settings: "wdth" 100; }
.svc-hero__phone:hover span { color: var(--yellow); }
.svc-hero__form { scroll-margin-top: 110px; }
.svc-hero__form h2 { font-size: 1.6rem; font-weight: 820; font-variation-settings: "wdth" 110; letter-spacing: -0.01em; color: var(--navy-800); margin-bottom: 22px; }
.js .svc-hero__copy > * { animation: copy-rise 0.8s var(--ease-out) both; }
.js .svc-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.js .svc-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.js .svc-hero__copy > :nth-child(4) { animation-delay: 0.24s; }
.js .svc-hero__media img { animation: slide-push 9s linear both; }

.svc-trust { background: var(--yellow); color: var(--navy-950); border-bottom: 2px solid var(--navy-950); }
.svc-trust__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.svc-trust__list li { display: grid; gap: 2px; padding: 26px 24px; }
.svc-trust__list li:first-child { padding-left: 0; }
.svc-trust__list li + li { border-left: 2px solid rgba(13, 22, 51, 0.18); }
.svc-trust__list strong { font-size: 1.1rem; font-weight: 780; font-variation-settings: "wdth" 108; }
.svc-trust__list span { font-size: 0.95rem; color: var(--navy-800); }

.svc-body { padding: var(--section) 0; }
.svc-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-body__copy { max-width: 68ch; }
.svc-body__copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 820; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; line-height: 1.08; margin: 2.2em 0 0.6em; color: var(--navy-800); }
.svc-body__copy h2:first-child { margin-top: 0; }
.svc-body__copy p { font-size: 1.1rem; line-height: 1.7; }
.svc-body__copy a { color: var(--navy-700); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; font-weight: 650; }
.svc-body__copy figure { margin: 2.4em 0; }
.svc-body__copy figure img { width: 100%; border-radius: var(--radius); }
.svc-body__aside { position: sticky; top: 120px; padding: 32px; background: var(--paper); border-top: 4px solid var(--yellow); }
.svc-body__aside h2 { font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 108; color: var(--navy-800); margin-bottom: 18px; }
.svc-check { display: grid; gap: 14px; margin-bottom: 28px; }
.svc-check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.45; }
.svc-check .ico { width: 22px; height: 22px; color: var(--navy-800); background: var(--yellow); border-radius: var(--radius); padding: 3px; stroke-width: 2.5; }

.svc-faq { padding: var(--section) 0; background: var(--paper); }
.svc-faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.svc-faq__grid > .h-display { max-width: 9ch; }
.svc-faq__list { border-top: 2px solid var(--navy-800); }
.svc-faq details { border-bottom: 1px solid var(--navy-100); }
.svc-faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.2rem; font-weight: 720; color: var(--navy-800); }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq__ico { width: 26px; height: 26px; flex: none; transition: transform 0.3s var(--ease-out); }
.svc-faq details[open] .svc-faq__ico { transform: rotate(45deg); }
.svc-faq summary:hover { color: var(--navy-950); }
.svc-faq details p { margin: 0; padding: 0 48px 24px 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 62ch; }

.svc-related .h-display { margin-bottom: clamp(32px, 4vw, 56px); }
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }

.svc-close { padding: clamp(64px, 8vw, 112px) 0; background: var(--navy-700); color: var(--white); }
.svc-close__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.svc-close .h-display { max-width: 12ch; }

.callbar { display: none; }

@media (max-width: 1000px) {
	.svc-hero__grid { grid-template-columns: 1fr; }
	.svc-body__grid { grid-template-columns: 1fr; }
	.svc-body__aside { position: static; }
	.svc-faq__grid { grid-template-columns: 1fr; }
	.svc-trust__list { grid-template-columns: repeat(2, 1fr); }
	.svc-trust__list li, .svc-trust__list li:first-child { padding: 18px 16px 18px 0; }
	.svc-trust__list li + li { border-left: 0; }
	.svc-trust__list li:nth-child(even) { padding-left: 16px; border-left: 2px solid rgba(13, 22, 51, 0.18); }
	.svc-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.svc-hero__media::after { background: linear-gradient(0deg, rgba(13, 22, 51, 0.96) 30%, rgba(13, 22, 51, 0.7) 100%); }
	.svc-grid--3 { grid-template-columns: 1fr; }
	.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -10px 24px -16px rgba(13, 22, 51, 0.5); transform: translateY(110%); transition: transform 0.35s var(--ease-out); }
	.callbar .btn { justify-content: center; min-height: 48px; }
	.callbar.is-on { transform: none; }
	.svc-page { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.js .svc-hero__copy > *, .js .svc-hero__media img { animation: none; }
	.callbar { transition: none; }
}

/* Compact quote form inside the service hero, so the whole hero (send button included) fits one desktop screen. */
.svc-hero__form { padding: clamp(22px, 2.4vw, 30px); }
.svc-hero__form h2 { font-size: 1.35rem; margin-bottom: 14px; }
.svc-hero__form .forminator-row { margin-bottom: 12px !important; gap: 0 14px; } /* Forminator's own row spacing is 30px at higher specificity. */
.svc-hero__form .forminator-row-last { margin-bottom: 0 !important; margin-top: 6px; }
.svc-hero__form .forminator-response-message[aria-hidden="true"] { margin: 0; }
.svc-hero__form .forminator-label { margin-bottom: 4px; font-size: 0.85rem; }
.svc-hero__form input[type="text"], .svc-hero__form input[type="email"], .svc-hero__form input[type="tel"], .svc-hero__form select { min-height: 44px; padding: 9px 12px; }
.svc-hero__form textarea { min-height: 84px; height: 84px; padding: 10px 12px; }
.svc-hero__form .forminator-button-submit { min-height: 50px; width: 100%; justify-content: center; }
.svc-hero__grid { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(40px, 4.5vw, 64px); }

/* Service page variants */
.svc-hero__call { min-height: 60px; padding: 0 28px; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.svc-hero__call .ico { width: 22px; height: 22px; }
.svc-hero__send { margin-top: 32px; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, 0.25); max-width: 30em; }
.svc-hero__send h2 { font-size: 1.1rem; font-weight: 760; margin-bottom: 14px; }
.svc-hero__send ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.svc-hero__send li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--navy-100); line-height: 1.4; }
.svc-hero__send .ico { width: 20px; height: 20px; color: var(--navy-950); background: var(--yellow); border-radius: var(--radius); padding: 3px; stroke-width: 2.5; }
.svc-steps { padding: var(--section) 0 0; }
.svc-steps .h-display { margin-bottom: clamp(32px, 4vw, 56px); }
.svc-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; border-top: 2px solid var(--navy-800); }
.svc-steps__list li { counter-increment: step; display: grid; align-content: start; gap: 8px; padding: 28px 24px 0 0; position: relative; }
.svc-steps__list li + li { padding-left: 24px; border-left: 1px solid var(--navy-100); }
.svc-steps__list li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; background: var(--yellow); color: var(--navy-950); font-weight: 820; border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.svc-steps__list strong { font-size: 1.2rem; font-weight: 780; font-variation-settings: "wdth" 108; color: var(--navy-800); }
.svc-steps__list span { color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) {
	.svc-steps__list { grid-template-columns: 1fr; }
	.svc-steps__list li, .svc-steps__list li + li { grid-template-columns: 40px 1fr; column-gap: 16px; padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--navy-100); }
	.svc-steps__list li::before { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) { .svc-hero__send ul { grid-template-columns: 1fr; } }

/* About, Testimonials, Contact */
.svc-hero--page .svc-hero__grid { min-height: clamp(420px, 52vh, 560px); }
.about-quote { padding: var(--section) 0; background: var(--navy-800); color: var(--white); }
.about-quote__fig { margin: 0 0 36px; max-width: 54rem; }
.about-quote blockquote { margin: 0; }
.about-quote blockquote p { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; font-variation-settings: "wdth" 104; line-height: 1.3; letter-spacing: -0.01em; }
.about-quote figcaption { margin-top: 24px; font-weight: 700; color: var(--yellow); }
.about-quote .link-arrow { color: var(--white); }

.reviews { padding: var(--section) 0; }
.rev { margin: 0; }
.rev blockquote { margin: 0; }
.rev blockquote p { margin: 0; line-height: 1.6; }
.rev figcaption { margin-top: 18px; font-weight: 750; color: var(--navy-800); }
.rev__stars { display: flex; gap: 3px; margin: 0 0 16px; color: var(--yellow-600); }
.rev__star { width: 20px; height: 20px; }
.rev--lead { max-width: 60rem; padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 2px solid var(--navy-800); }
.rev--lead blockquote p { font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 650; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; }
.reviews__grid .rev blockquote p { font-size: 1.15rem; color: var(--ink); }
@media (max-width: 760px) { .reviews__grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-list { display: grid; gap: 20px; margin-top: 8px; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.contact-list .ico { width: 24px; height: 24px; color: var(--yellow); margin-top: 3px; }
.contact-list span { display: grid; font-size: 1.15rem; font-weight: 650; }
.contact-list small { font-size: 0.85rem; font-weight: 600; color: var(--navy-200); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--yellow); }
.contact-map { position: relative; height: clamp(320px, 45vw, 480px); background: var(--navy-100); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); }
.contact-map__go { position: absolute; left: var(--gutter); bottom: 24px; box-shadow: var(--shadow); }

/* Keep the sticky header below the WordPress admin bar for logged-in users. */
.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; } }
