/* ==========================================================================
   main.css — McSwain Builders
   Tokens sampled from the client's existing site (navy + gold, engraved serif caps, script accents).
   Order: fonts → tokens → reset/base → layout → components → sections → utilities → motion/print
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Ephesis"; src: url("/assets/fonts/ephesis-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Palette — text pairs checked ≥ 4.5:1 */
  --navy-900: #021b2e;
  --navy-800: #002c49;
  --navy-700: #002c49;   /* primary brand navy */
  --navy-600: #1d4a6e;
  --gold-500: #eda535;   /* accent: buttons, script kickers, icons */
  --gold-600: #c9871d;
  --gold-100: #fbf1e1;
  --mist: #eaeef2;       /* light section background */
  --white: #fbfdfe;
  --ink: #16212c;
  --muted: #4a5868;
  --line: #cfd7df;

  --color-bg: var(--white);
  --color-surface: var(--mist);
  --color-text: var(--ink);
  --color-muted: var(--muted);
  --color-primary: var(--navy-700);
  --color-primary-contrast: var(--white);
  --color-primary-hover: var(--navy-900);
  --color-accent: var(--gold-500);
  --color-border: var(--line);
  --color-focus: var(--gold-500);

  /* Type */
  --font-body: "Inter", "Graphik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --font-script: "Ephesis", "Brush Script MT", cursive;
  --font-nav: "Montserrat", Helvetica, Arial, sans-serif;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.91rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.5625rem);
  --step-4: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  --step-script: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-xl: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  --radius: 0.75rem;
  --radius-pill: 999px;
  --shadow: 0 2px 6px rgb(2 27 46 / 0.06), 0 12px 32px rgb(2 27 46 / 0.08);
  --container: 90rem;
  --header-h: 7.1875rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 var(--space-s); text-wrap: balance; color: var(--navy-700); text-transform: uppercase; letter-spacing: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-s); }
a { color: var(--color-primary); text-underline-offset: 0.15em; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
input, textarea, select, button { font: inherit; }
strong { font-weight: 600; }

/* ---------- Layout primitives ---------- */
.container { width: min(100% - 2 * clamp(1rem, 4vw, 2rem), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-xl); }
.section--mist { background: var(--mist); }
.section--navy { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #dbe4ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--white); }
.grid { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); padding: 0; margin: 0; list-style: none; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; padding: 0; margin: 0; list-style: none; }
.split { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: center; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--space-s); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.lead { font-size: var(--step-1); color: var(--color-muted); }
.center { text-align: center; }
.measure { max-width: 60rem; margin-inline: auto; }

/* ---------- Section heading (script kicker + engraved title) ---------- */
.kicker { display: block; font-family: var(--font-script); font-size: var(--step-script); color: var(--gold-500); line-height: 1; margin-bottom: var(--space-2xs); text-transform: none; letter-spacing: 0; transform: rotate(-4deg); transform-origin: left center; }
.center .kicker { transform-origin: center; }
.section-head { margin-bottom: var(--space-l); }
.section-head p { color: var(--color-muted); }
.section--navy .section-head p { color: #c3d0dc; }
.section-head--framed { padding: var(--space-l) var(--space-m); border: 1px solid rgb(232 165 58 / .45); border-inline-width: 1px; text-align: center; }

/* ---------- Header / nav ---------- */
.skip-link { position: absolute; left: var(--space-s); top: -100%; z-index: 100; padding: var(--space-xs) var(--space-s); background: var(--navy-900); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-s); }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: var(--header-h); }
.site-logo img { width: auto; height: 3.5rem; }
.site-nav { display: flex; align-items: center; gap: var(--space-m); }
.site-nav__list { display: flex; gap: clamp(.75rem, 1.6vw, 1.75rem); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--navy-700); text-decoration: none; font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding-block: var(--space-xs); }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--gold-600); }
.site-nav__actions { display: flex; align-items: center; gap: var(--space-s); }
.site-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--navy-700); cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 50%; width: 1.25rem; height: 2px; background: currentColor; transform: translateX(-50%); content: ""; }
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

@media (max-width: 64rem) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; padding: var(--space-m); background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex-wrap: wrap; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding-block: var(--space-s); }
  .site-nav__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 2.875rem; padding: 0.7rem 1.6rem; border: 2px solid transparent; border-radius: var(--radius-pill); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy-700); color: var(--white); }
.btn--primary:hover { background: var(--navy-900); color: var(--white); }
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy-900); }
.btn--light { background: var(--white); color: var(--navy-700); }
.btn--light:hover { background: var(--mist); color: var(--navy-900); }
.btn--secondary { border-color: currentColor; color: var(--navy-700); background: transparent; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---------- Media placeholders (replace with client photos) ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3); border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(255 255 255 / .06) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--navy-600), var(--navy-800));
  color: #c3d0dc; font-size: var(--step--1); text-align: center; padding: var(--space-s);
}
.ph::before { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: url("/assets/images/ridgeline.svg") bottom / cover no-repeat; opacity: .35; }
.ph span { position: relative; max-width: 22ch; }
.ph--light { background: linear-gradient(160deg, #dfe6ed, #c8d3de); color: var(--navy-700); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #e6edf3; text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem) var(--space-l); background: linear-gradient(180deg, rgb(2 27 46 / .55), rgb(2 27 46 / .85)), linear-gradient(160deg, #335c7d 0%, #0a3556 45%, #021b2e 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; background: url("/assets/images/ridgeline.svg") bottom / cover no-repeat; opacity: .5; }
.hero h1 { color: var(--white); max-width: 22ch; margin-inline: auto; text-shadow: 0 2px 20px rgb(0 0 0 / .35); }
.hero__lead { max-width: 60ch; margin-inline: auto; color: #d4dee7; }
.hero .cluster { justify-content: center; margin-top: var(--space-m); }
.hero__badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: var(--space-s); margin: clamp(3rem, 2rem + 4vw, 6rem) 0 0; padding: 0; list-style: none; text-align: left; }
.hero__badges li { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--step--1); color: #e6edf3; }
.hero__badges svg { flex: none; width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 50%; border: 1px solid rgb(232 165 58 / .6); color: var(--gold-500); }

/* ---------- Reviews ---------- */
.reviews-embed { min-height: 12rem; display: grid; place-items: center; padding: var(--space-l); border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); color: var(--color-muted); text-align: center; }
.reviews__more { display: flex; justify-content: flex-end; margin-top: var(--space-m); }

/* ---------- Video story ---------- */
.story { position: relative; isolation: isolate; color: #e6edf3; text-align: center; background: linear-gradient(180deg, rgb(2 27 46 / .82), rgb(2 27 46 / .92)), linear-gradient(120deg, #3b5f7c, #0a3556); }
.story h2 { color: var(--white); }
.video-frame { position: relative; max-width: 46rem; margin: var(--space-l) auto 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgb(0 0 0 / .45); background: linear-gradient(160deg, var(--navy-600), var(--navy-900)); display: grid; place-items: center; }
.video-frame__play { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: var(--navy-700); }
.video-frame__play svg { width: 1.75rem; height: 1.75rem; margin-left: .25rem; }
.video-frame__note { position: absolute; inset: auto 0 0 0; padding: var(--space-s); font-size: var(--step--1); color: #c3d0dc; background: linear-gradient(transparent, rgb(2 27 46 / .85)); }

/* ---------- Portfolio tabs ---------- */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xs) var(--space-m); margin: 0 0 var(--space-l); padding: 0; list-style: none; }
.tabs__tab { padding: .6rem .25rem; border: 0; border-bottom: 2px solid transparent; background: none; color: #c3d0dc; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.tabs__tab:hover { color: var(--white); }
.tabs__tab[aria-selected="true"] { color: var(--gold-500); border-bottom-color: var(--gold-500); }
.tabs__panel { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.tabs__panel[hidden] { display: none; }
.no-js-label { margin: var(--space-m) 0 var(--space-xs); color: var(--gold-500); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: var(--step--1); }
.js .no-js-label { display: none; }

/* ---------- Map ---------- */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #e5e3df; }
.map iframe { width: 100%; height: clamp(18rem, 40vw, 28rem); border: 0; }

/* ---------- Laptop mock (client portal) ---------- */
.laptop { max-width: 32rem; margin-inline: auto; }
.laptop__screen { aspect-ratio: 16 / 10; border: .9rem solid #1c232b; border-bottom-width: 1.1rem; border-radius: .9rem .9rem 0 0; background: #f6f8fa; display: grid; grid-template-columns: 22% 1fr; gap: .5rem; padding: .6rem; }
.laptop__side { background: #e4e9ef; border-radius: .25rem; }
.laptop__main { display: grid; grid-template-rows: auto 1fr; gap: .5rem; }
.laptop__bar { height: .8rem; background: var(--navy-700); border-radius: .25rem; }
.laptop__rows { background: repeating-linear-gradient(180deg, #e4e9ef 0 .55rem, transparent .55rem 1.1rem); border-radius: .25rem; }
.laptop__base { height: .9rem; margin-inline: -6%; background: linear-gradient(#c9ced4, #9aa3ad); border-radius: 0 0 1rem 1rem; }

/* ---------- Feature list ---------- */
.checklist { list-style: none; padding: 0; margin: var(--space-m) 0; display: grid; gap: var(--space-s); }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23021b2e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 70% no-repeat; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.photo-pair .ph { --ratio: 3 / 5; }

/* ---------- Service cards ---------- */
.service-card { display: flex; flex-direction: column; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), border-color .25s; }
.service-card:hover { transform: translateY(-4px); border-color: rgb(232 165 58 / .6); }
.service-card .ph { border-radius: 0; --ratio: 4 / 3; }
.service-card__body { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); padding: var(--space-m); text-align: center; flex: 1; }
.service-card h3 { font-size: var(--step-0); color: var(--gold-500); margin: 0; }
.service-card p { font-size: var(--step--1); color: #c3d0dc; margin: 0 0 var(--space-xs); }
.service-card .btn { margin-top: auto; min-height: 2.5rem; padding: .5rem 1.25rem; }

/* ---------- Pillars (why choose us) ---------- */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-s); }
.pillars li { padding: var(--space-s) 0 var(--space-s) 2.25rem; border-bottom: 1px solid var(--line); position: relative; font-size: var(--step--1); color: var(--color-muted); }
.pillars li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 1.25rem; height: 2px; background: var(--gold-500); }
.pillars strong { color: var(--navy-700); }
.pillars__title { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: var(--step--1); color: var(--navy-700); }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: var(--space-m) 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: var(--space-s); align-items: center; padding-block: var(--space-s); border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--color-muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); font-family: var(--font-heading); font-size: var(--step-1); }
.steps strong { color: var(--navy-700); }
.tall-photo .ph { --ratio: 3 / 4; }

/* ---------- Team ---------- */
.team { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.team__card { position: relative; border-radius: var(--radius); overflow: hidden; }
.team__card .ph { --ratio: 4 / 5; border-radius: 0; filter: grayscale(1); }
.team__caption { position: absolute; inset: auto 0 0 0; padding: var(--space-l) var(--space-m) var(--space-m); background: linear-gradient(transparent, rgb(3 40 66 / .95)); color: var(--white); }
.team__name { font-weight: 600; margin: 0; }
.team__role { margin: 0; font-size: var(--step--1); color: var(--gold-500); }

/* ---------- Promise cards ---------- */
.promise { background: var(--white); border-radius: var(--radius); padding: var(--space-l) var(--space-m); text-align: center; box-shadow: var(--shadow); }
.promise__icon { width: 5.5rem; height: 5.5rem; margin: 0 auto var(--space-m); border-radius: 50%; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); }
.promise__icon svg { width: 2.5rem; height: 2.5rem; }
.promise h3 { font-size: var(--step-0); }
.promise p { font-size: var(--step--1); color: var(--color-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; text-align: center; color: #e6edf3; background: linear-gradient(180deg, rgb(2 27 46 / .65), rgb(2 27 46 / .85)), linear-gradient(160deg, #7b5a3a, #3b2a1c 40%, #0a3556); }
.cta-band::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; z-index: -1; background: url("/assets/images/ridgeline.svg") bottom / cover no-repeat; opacity: .35; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 62ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 56rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid rgb(255 255 255 / .15); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); padding: var(--space-m) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding-bottom: var(--space-m); color: #c3d0dc; font-size: var(--step--1); }

/* ---------- Certifications ---------- */
.certs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-l); }
.cert { display: flex; align-items: center; gap: var(--space-s); color: var(--navy-700); }
.cert__mark { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #8fa0ad, #5a6b78); color: #fff; font-family: var(--font-heading); font-size: var(--step-1); }
.cert__mark--green { background: linear-gradient(145deg, #4fb553, #22863a); }
.cert__text { line-height: 1.3; font-weight: 600; }
.cert__text small { display: block; font-weight: 400; color: var(--color-muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Photo strip ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(50%, 12rem), 1fr)); }
.strip .ph { border-radius: 0; --ratio: 4 / 3; }

/* ---------- Service area ---------- */
.area-box { background: var(--navy-700); color: #e6edf3; border-radius: var(--radius); padding: var(--space-l); box-shadow: var(--shadow); }
.area-box h3 { color: var(--white); font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }
.area-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.area-box li::before { content: "—"; color: var(--gold-500); margin-right: var(--space-xs); }

/* ---------- Contact page ---------- */
.form { display: grid; gap: var(--space-s); background: var(--white); padding: var(--space-l); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { display: grid; gap: var(--space-2xs); }
.field label { font-weight: 600; font-size: var(--step--1); }
.field input, .field textarea, .field select { width: 100%; padding: 0.75rem 0.9rem; font-size: max(16px, 1rem); border: 1px solid #8b98a6; border-radius: .5rem; background: var(--white); color: var(--color-text); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field__error { color: #b3261e; font-size: var(--step--1); }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: var(--step--1); color: var(--color-muted); }
.page-hero { padding-block: var(--space-xl) var(--space-l); background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #dbe4ec; text-align: center; }
.page-hero h1 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #c3d0dc; font-size: var(--step--1); }
.site-footer a { color: #e6edf3; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer__top { display: grid; gap: var(--space-l); grid-template-columns: 1fr; align-items: start; padding-block: var(--space-xl) var(--space-l); text-align: center; }
@media (min-width: 52rem) { .site-footer__top { grid-template-columns: 1fr 2fr 1fr; } .site-footer__links--left { text-align: left; } .site-footer__links--right { text-align: right; } }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.site-footer__brand img { margin: 0 auto var(--space-m); width: 9rem; height: auto; background: var(--white); padding: .5rem .75rem; border-radius: .5rem; }
.site-footer__brand p { max-width: 46ch; margin-inline: auto; }
.site-footer__contact { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-block: var(--space-m); border-top: 1px solid rgb(255 255 255 / .1); }
.site-footer__contact > div { display: flex; gap: var(--space-xs); align-items: flex-start; }
.site-footer__contact svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--gold-500); margin-top: .2rem; }
.site-footer address { font-style: normal; }
.site-footer__hours { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s); padding-block: var(--space-m); border-top: 1px solid rgb(255 255 255 / .1); }
.site-footer__hours strong { color: var(--white); }
.site-footer__legal { background: var(--navy-900); text-align: center; padding-block: var(--space-s); margin: 0; }
.site-footer__legal p { margin: 0; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.todo { outline: 2px dashed #d97706; outline-offset: 2px; }
.mt-m { margin-top: var(--space-m); }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; }
}

/* ---------- Real imagery (added with client photos) ---------- */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 10 / 7; transition: transform .5s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo-single .photo img { aspect-ratio: auto; }
.tall-photo .photo img { aspect-ratio: 3 / 4; }
.service-card .photo { border-radius: 0; }
.service-card .photo img { aspect-ratio: 4 / 3; }
#about .photo img { aspect-ratio: 4 / 3; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(2 27 46 / .45), rgb(2 27 46 / .8)); }
.hero::before { display: none; }
.hero__badges img { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.team__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.strip img { width: 100%; height: clamp(8rem, 17vw, 20rem); object-fit: cover; }
.certs img { width: auto; height: clamp(4.5rem, 8vw, 6.5rem); }
.reviews-embed { min-height: 0; border-style: solid; }
.stats { list-style: none; padding: 0; margin: var(--space-xl) 0 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.stats li { padding: var(--space-m); text-align: center; border: 1px solid rgb(232 165 58 / .35); background: rgb(255 255 255 / .04); border-radius: .25rem; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: #c3d0dc; }
.stats strong { display: block; font-family: var(--font-heading); font-weight: 400; font-size: var(--step-3); color: var(--gold-500); letter-spacing: 0; }
.social { display: flex; justify-content: center; gap: var(--space-xs); list-style: none; padding: 0; margin: var(--space-m) 0 0; }
.social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .35rem; background: var(--gold-500); color: var(--navy-900); }
.social a:hover { background: var(--white); color: var(--navy-900); }
.social svg { width: 1.1rem; height: 1.1rem; }
.form-embed { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-s); }
.promise__img { width: 6rem; height: 6rem; margin: 0 auto var(--space-m); border-radius: 50%; }
.story { background: linear-gradient(180deg, rgb(2 27 46 / .78), rgb(2 27 46 / .9)), url("/assets/images/modern-condo-kitchen-dark-cabinetry-960.webp") center / cover; }
.cta-band { background: linear-gradient(180deg, rgb(2 27 46 / .55), rgb(2 27 46 / .8)), url("/assets/images/sunroom-with-snowy-forest-view-960.webp") center / cover; }
.cta-band::before { display: none; }
@media (min-width: 60rem) {
  .story { background-image: linear-gradient(180deg, rgb(2 27 46 / .78), rgb(2 27 46 / .9)), url("/assets/images/modern-condo-kitchen-dark-cabinetry-1600.webp"); }
  .cta-band { background-image: linear-gradient(180deg, rgb(2 27 46 / .55), rgb(2 27 46 / .8)), url("/assets/images/sunroom-with-snowy-forest-view-1600.webp"); }
}
.site-footer__links a, .site-footer__contact a { display: inline-block; padding-block: .3rem; }
.contact-band { position: relative; isolation: isolate; padding-block: var(--space-xl); overflow: hidden; }
.contact-band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.contact-band__card { max-width: 30rem; margin-inline: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px rgb(2 27 46 / .3); padding: var(--space-m); }
.contact-band__title { font-size: var(--step-1); text-align: center; }
.contact-band__card iframe, .form-embed iframe { width: 100%; min-height: 760px; border: 0; }
.site-footer .strip img { height: clamp(6rem, 13vw, 14rem); }

/* ---------- Original-site match: header, hero, buttons (measured from mcswainbuilders.com) ---------- */
.site-header { position: relative; box-shadow: none; }
.site-header__inner { min-height: var(--header-h); }
.site-logo img { height: 6.5625rem; width: auto; }
.site-nav__list { gap: 1.375rem; align-items: center; }
.site-nav__list > li { position: relative; }
.site-nav__list a, .site-nav__parent { font-family: var(--font-nav); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: uppercase; color: var(--navy-700); text-decoration: none; padding-block: 2rem; display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; cursor: pointer; }
.site-nav__list a[aria-current="page"], .site-nav__list a:hover, .site-nav__parent:hover { color: var(--gold-500); }
.site-nav__parent::after { content: ""; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-nav__sub { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 15rem; margin: 0; padding: .75rem 0; list-style: none; background: var(--white); border-top: 3px solid var(--gold-500); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.site-nav__list > li:hover > .site-nav__sub, .site-nav__list > li:focus-within > .site-nav__sub, .site-nav__parent[aria-expanded="true"] + .site-nav__sub { opacity: 1; visibility: visible; transform: none; }
.site-nav__sub a { display: block; padding: .5rem 1.25rem; font-size: .875rem; text-transform: none; font-family: var(--font-body); font-weight: 500; }
@media (max-width: 64rem) {
  .site-logo img { height: 4.5rem; }
  .site-nav__list > li { width: 100%; }
  .site-nav__list a, .site-nav__parent { padding-block: .75rem; }
  .site-nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none; }
  .site-nav__parent[aria-expanded="true"] + .site-nav__sub { display: block; }
}
.hero { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) clamp(3rem, 2rem + 5vw, 9rem); }
.hero::after { background: rgb(0 30 70 / .55); }
.hero h1 { max-width: 30ch; font-size: var(--step-4); line-height: 1.2; text-shadow: none; color: var(--white); }
.hero .kicker { margin-bottom: 0; }
.hero__lead { max-width: 51rem; color: var(--white); font-size: 1rem; line-height: 1.7; }
.hero .cluster { margin-top: 1.75rem; gap: .875rem; }
.hero__badges { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--space-m); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero__badges li { font-size: 1rem; color: var(--white); justify-content: center; gap: .75rem; }
.hero__badges img { width: 3.25rem; height: 3.25rem; }
.btn { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; min-height: 3.0625rem; padding: .625rem 2.125rem; border-radius: 1.6875rem; }
.btn--gold { color: var(--navy-700); }
.btn--light { color: var(--navy-700); }
.kicker { font-weight: 400; }
.site-header { background: #ffffff; }
.hero { padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); }
.hero h1 { max-width: 62rem; margin-top: .5rem; }
.hero h1 { text-wrap: wrap; max-width: 60rem; }

/* ---------- Original-site match, lower sections ---------- */
@media (min-width: 60rem) { .team { grid-template-columns: repeat(3, 1fr); max-width: 60rem; margin-inline: auto; } }
.promise__img { width: 9rem; height: 9rem; }
.promise p { font-size: 1rem; color: var(--ink); }
.certs { gap: clamp(2rem, 6vw, 6rem); }
.certs img { height: clamp(5.5rem, 10vw, 8.5rem); }
.stats li { border: 2px solid #2b6fa3; background: rgb(255 255 255 / .06); border-radius: 0; color: #4fa3e0; font-family: var(--font-heading); font-size: 1.125rem; letter-spacing: .02em; }
.stats strong { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 600; }
.site-footer__legal { background: #1b1c21; }
/* Portfolio: 3-up sliding row with arrows (original used a carousel) */
.tabs__panel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--space-s)) / 3); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tabs__panel::-webkit-scrollbar { display: none; }
.tabs__panel > .photo { scroll-snap-align: start; }
.tabs__panel .photo img { aspect-ratio: 4 / 3; }
@media (max-width: 48rem) { .tabs__panel { grid-auto-columns: 85%; } }
.carousel { position: relative; }
.carousel__btn { position: absolute; top: 50%; z-index: 2; width: 2.75rem; height: 2.75rem; margin-top: -1.375rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--navy-700); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.carousel__btn--prev { left: -.75rem; } .carousel__btn--next { right: -.75rem; }
.carousel__btn svg { width: 1.1rem; height: 1.1rem; }
.no-js .carousel__btn { display: none; }
