/* ============================================================================
   Advanced AC Supply — Mercury design system (Refero), light palette,
   recolored to the LOGO: brick red + slate navy (the wordmark's own colors).
   Mercury discipline kept intact: light-weight Inter-300 headlines w/ positive
   tracking, ONE primary accent reserved for primary CTAs/interaction, monochrome
   everywhere else, sharp 6px containers + full-pill buttons/inputs, NO shadows
   (depth via hairline borders + tonal surfaces + spacing), spacious rhythm.

   Brand = brick red #A82A2F (deepened/desaturated from the logo's #B22E33 so it
   reads "authority," never "alarm" — white-on-red tests 6.91:1) leading every
   action; slate navy #33406A (the logo's "AC" + the wave-mark tail) carrying
   inline links and structural accents. A red→navy "flow" gradient lifted from
   the wave mark appears in EXACTLY THREE hairline places and NOWHERE else:
     1. the eyebrow .section-label tick (vertical, favicon direction)
     2. the active-nav underline (horizontal)
     3. the hero proof-stat seam (horizontal, once above the fold)
   Flow is decoration-only — never on a button, card border, icon tile, or fill.
   Neutrals are warmed a hair to sit under the warm brand; do NOT "correct" them
   back to #1e1e2a. All text/UI-on-color pairings clear WCAG AA (most AAA).
   ========================================================================== */

:root {
  /* --- Surfaces (Mercury, unchanged) --- */
  --color-canvas: #ffffff;            /* page background */
  --color-surface: #f4f4f7;           /* section backgrounds */
  --color-surface-2: #ededf3;         /* Mercury "Starlight" — panels, tiles, inputs */

  /* --- Neutral text ramp (warmed to match the brick-red brand; temperature-matched on purpose) --- */
  --color-ink: #211f29;               /* headings / primary text — 16.25:1 on white */
  --color-body: #43424b;              /* body text — 9.91:1 on white */
  --color-muted: #5e5a63;             /* secondary text / labels — 6.73:1 on white (AA on surfaces) */
  --color-lead: #72707b;              /* decorative bullets / marquee dots / checkbox rest border */
  --color-line: rgba(33, 31, 41, 0.12);     /* hairline borders / dividers (off warmed ink) */
  --color-line-strong: rgba(33, 31, 41, 0.20);

  /* --- Brand red — PRIMARY action / interaction color (var name kept = no markup churn) --- */
  --color-blue: #A82A2F;              /* brand red: primary CTA fill, skip-link, focus, selection — white text 6.91:1 */
  --color-blue-press: #8F2327;        /* CTA hover / pressed — white text 8.61:1 */
  --color-red: #A82A2F;               /* alias for readable new rules */
  --color-red-press: #8F2327;
  --color-red-text: #992529;          /* red as small TEXT on white (required asterisk) — 7.92:1 */

  /* --- Slate navy — SECONDARY brand: inline links, structural accents, flow's deep end --- */
  --color-navy: #33406A;             /* navy text on white 10.09:1; white on navy 10.09:1 */
  --color-navy-deep: #2A3457;        /* terminal stop of the flow gradient */

  /* --- Secondary (ghost/outline) button — neutral, so red never competes --- */
  --color-ghost: #f4f4f7;            /* outline-button bg (was a blue tint) */
  --color-ghost-press: #ededf3;      /* ghost button hover */
  --color-ghost-border: rgba(33, 31, 41, 0.20);  /* 1px outline hairline = --color-line-strong */

  /* --- Interaction (focus/selection) unified on the brand red --- */
  --color-focus: #A82A2F;
  --color-focus-glow: rgba(168, 42, 47, 0.18);
  --color-selection: #A82A2F;

  /* --- Functional + neutral --- */
  --color-star: #f59e0b;             /* review stars (functional amber — distinct from brand red) */
  --color-white: #ffffff;

  /* --- Flow motif (red→navy, lifted from the wave mark) — three placements only --- */
  --flow-gradient: linear-gradient(180deg, #A82A2F 0%, #33406A 100%);                 /* vertical (favicon dir) — eyebrow tick */
  --flow-gradient-h: linear-gradient(90deg, #A82A2F 0%, #B7787A 50%, #33406A 100%);   /* horizontal — nav underline + hero seam */

  /* --- Type (arcadia → Inter fallback per Mercury) --- */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --text-display: clamp(34px, 6.2vw, 72px);   /* weight 300, +0.01em, lh 1.1 — lower min so headlines fit small phones */
  --text-display-lg: clamp(36px, 7.4vw, 84px);
  --text-heading: clamp(24px, 3vw, 32px);
  --text-subhead: 19px;
  --text-body: 17px;
  --text-body-sm: 15px;
  --text-label: 12px;

  /* --- Spacing & layout (Mercury: spacious, 1200, 4px base) --- */
  --page-max-width: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(80px, 10vw, 120px);
  --element-gap: 16px;
  --nav-height: 72px;

  /* --- Radius (Mercury: sharp containers, pill controls) --- */
  --radius-default: 6px;   /* containers / cards */
  --radius-cards: 6px;
  --radius-media: 10px;    /* imagery */
  --radius-feature-img: 10px;
  --radius-input: 32px;    /* pill inputs */

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 200ms;
}

/* ============================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-body);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--color-selection); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--color-blue); color: #fff; padding: 10px 18px;
  border-radius: 980px; font-weight: 500; transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================================================================
   Layout primitives
   ========================================================================== */

.container { width: 100%; max-width: var(--page-max-width); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section--tint { background: var(--color-surface); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-label { justify-content: center; }

/* Eyebrow label — monochrome (Mercury reserves blue for CTAs) */
.section-label {
  display: inline-flex; align-items: center;
  font-size: var(--text-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-muted); margin-bottom: 18px;
}
/* Flow tick — a 14px vertical miniature of the logo's red→navy wave, once per eyebrow */
.section-label::before { content: ""; width: 2px; height: 14px; margin-right: 10px; border-radius: 1px; background: var(--flow-gradient); flex: none; }

/* ============================================================================
   Typography — light weight, subtle positive tracking (Mercury signature)
   ========================================================================== */

.display {
  font-family: var(--font-display);
  font-size: var(--text-display); font-weight: 300;
  letter-spacing: 0.005em; line-height: 1.08; color: var(--color-ink);
  overflow-wrap: break-word;   /* never let a long headline token force horizontal overflow */
  text-wrap: balance;          /* even out the ragged headline lines (no orphan words) */
}
.display--hero { font-size: var(--text-display-lg); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; letter-spacing: 0.005em; line-height: 1.12; color: var(--color-ink); }

.h-section { font-family: var(--font-display); font-size: var(--text-display); font-weight: 300; letter-spacing: 0.005em; line-height: 1.1; color: var(--color-ink); }
.h-card { font-size: var(--text-subhead); font-weight: 500; letter-spacing: 0; line-height: 1.25; color: var(--color-ink); }

.lead { font-size: clamp(18px, 2.1vw, 21px); font-weight: 400; line-height: 1.5; color: var(--color-body); }
.muted { color: var(--color-muted); }

p { max-width: 66ch; }

/* ============================================================================
   Buttons — full pills; blue ONLY for primary
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 980px;
  font-size: var(--text-body-sm); font-weight: 500; letter-spacing: 0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-red); color: #fff; }
.btn--primary:hover { background: var(--color-red-press); transform: translateY(-1px); }  /* lift via motion + tone, never a shadow */
.btn--primary:active { background: var(--color-red-press); transform: translateY(1px); }
.btn--ghost { background: var(--color-ghost); color: var(--color-ink); border-color: var(--color-ghost-border); }
.btn--ghost:hover { background: var(--color-ghost-press); border-color: var(--color-navy); color: var(--color-navy); }
.btn--lg { padding: 16px 32px; font-size: var(--text-body); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--color-line);
  transition: height var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.scrolled { height: 60px; background: rgba(255, 255, 255, 0.92); border-bottom-color: var(--color-line-strong); }

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; flex: none; }
.nav__brand img { height: 28px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav__link { position: relative; font-size: var(--text-body-sm); font-weight: 400; color: var(--color-muted); padding: 6px 0; transition: color var(--dur) var(--ease); }
.nav__link:hover { color: var(--color-ink); }
.nav__link.is-active { color: var(--color-ink); }
.nav__link.is-active::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 2px; background: var(--flow-gradient-h); }

.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); font-weight: 500; color: var(--color-ink); white-space: nowrap; }
.nav__phone svg { width: 15px; height: 15px; color: var(--color-muted); }
.nav__phone:hover { color: var(--color-ink); }
.nav__phone:hover svg { color: var(--color-ink); }

.nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid var(--color-line-strong); border-radius: 980px; cursor: pointer; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; margin-inline: auto; background: var(--color-ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-height) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-canvas); border-bottom: 1px solid var(--color-line);
    padding: 8px var(--gutter) 28px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    max-height: calc(100dvh - var(--nav-height)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--color-line); }
  .nav__link.is-active::after { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; }
  .nav__phone { justify-content: center; padding: 12px; }
  .nav__actions .btn { width: 100%; }
}

/* ============================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-height) + clamp(44px, 6vw, 80px));
  padding-bottom: clamp(52px, 7vw, 84px);  /* trimmed from full section-gap so the brand marquee peeks above the fold */
  background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 60%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 620px; min-width: 0; }  /* min-width:0 lets the grid item shrink below content min-content on narrow phones */
.hero__copy .lead { margin-top: 22px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__trust { position: relative; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 48px); margin-top: 52px; padding-top: 32px; }
.hero__trust::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #A82A2F 0%, #33406A 100%); }  /* the one branded seam above the fold — clean 2-stop red→navy so the motif actually reads across a thin full-width line (the rose mid-stop is reserved for the short nav underline) */
.hero__stat .num { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 38px); font-weight: 300; letter-spacing: 0.005em; color: var(--color-ink); }
.hero__stat .lbl { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-top: 8px; }

.hero__media { position: relative; border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); aspect-ratio: 4 / 5; }  /* taller crop fills the column beside the text stack (mobile overrides to a 16/10 banner) */
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); will-change: transform; }  /* gentle parallax — calmer on the deep-perspective aisle shot */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 16 / 10; }
}

/* ============================================================================
   Brand / parts marquee
   ========================================================================== */

.brand-marquee { overflow: hidden; border-block: 1px solid var(--color-line); background: var(--color-canvas); padding-block: 24px; }
.brand-marquee__row { display: flex; align-items: center; width: max-content; }
.brand-marquee__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-muted); padding-inline: 26px; white-space: nowrap; }
.brand-marquee__item { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink); white-space: nowrap; padding-inline: 26px; opacity: 0.55; }
.brand-marquee__item::before { content: ""; width: 1px; height: 12px; background: var(--color-line-strong); flex: none; }  /* hairline tick separator (cleaner than a dot) */

/* ============================================================================
   Product / category grid
   ========================================================================== */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 1.4vw, 18px); }
.product-card {
  display: flex; flex-direction: column; gap: 14px; padding: 28px 26px;
  background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius-cards);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--color-line-strong); background: var(--color-surface); transform: translateY(-2px); }
.product-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--color-surface-2); color: var(--color-ink); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.product-card:hover .product-card__icon { background: rgba(168, 42, 47, 0.06); color: var(--color-red); }  /* brand color on intent only */
.product-card__icon svg { width: 26px; height: 26px; }
.product-card h3 { font-size: var(--text-subhead); font-weight: 500; letter-spacing: 0; color: var(--color-ink); }
.product-card p { font-size: var(--text-body-sm); color: var(--color-muted); line-height: 1.5; }
.product-card__more { margin-top: auto; font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; color: var(--color-ink); display: inline-flex; align-items: center; gap: 8px; transition: gap var(--dur) var(--ease); }
.product-card__more svg { width: 16px; height: 16px; flex: none; }
.product-card:hover .product-card__more { gap: 12px; }

.product-row { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 28px 0; border-top: 1px solid var(--color-line); }
.product-row:last-child { border-bottom: 1px solid var(--color-line); }
.product-row__icon { width: 56px; height: 56px; color: var(--color-ink); }
.product-row h3 { font-size: var(--text-heading); font-weight: 300; letter-spacing: 0.005em; margin-bottom: 8px; }
.product-row p { color: var(--color-muted); }
@media (max-width: 560px) { .product-row { grid-template-columns: 1fr; gap: 14px; } }

/* ============================================================================
   Value props / why us — interactive rows w/ 1px top border (Mercury cue)
   ========================================================================== */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 2.6vw, 40px); }
.feature { padding-top: 24px; border-top: 1px solid var(--color-line-strong); }
.feature__index { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; letter-spacing: 0.01em; line-height: 1; color: var(--color-navy); margin-bottom: 16px; }  /* editorial light numeral — quiet structure in the secondary brand color */
.feature h3 { font-size: var(--text-subhead); font-weight: 500; letter-spacing: 0; margin-bottom: 10px; color: var(--color-ink); }
.feature p { font-size: var(--text-body-sm); color: var(--color-muted); line-height: 1.55; }

/* ============================================================================
   Split / feature band
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.split__media { border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); aspect-ratio: 5 / 4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.stack-list { display: grid; gap: 18px; margin-top: 28px; }
.stack-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: var(--color-muted); font-size: var(--text-body-sm); line-height: 1.5; }
.stack-list li svg { width: 20px; height: 20px; margin-top: 1px; color: var(--color-ink); flex: none; }
.stack-list strong { color: var(--color-ink); font-weight: 500; }

/* ============================================================================
   Testimonials
   ========================================================================== */

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 1.6vw, 20px); }
.quote-card { display: flex; flex-direction: column; gap: 20px; padding: 32px 30px; background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius-cards); }
.quote-card__mark { font-size: 40px; line-height: 0.6; font-weight: 400; color: var(--color-lead); height: 22px; }
.quote-card blockquote { font-family: var(--font-display); font-size: var(--text-subhead); font-weight: 400; letter-spacing: 0; line-height: 1.5; color: var(--color-ink); }
.quote-card__author { margin-top: auto; }
.quote-card__author .name { font-size: var(--text-body-sm); font-weight: 500; color: var(--color-ink); }
.quote-card__author .role { font-size: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-top: 4px; }
.stars { display: inline-flex; gap: 3px; color: var(--color-star); }
.stars svg { width: 15px; height: 15px; }

/* ============================================================================
   CTA band — light surface panel (no blue background; blue lives on the button)
   ========================================================================== */

.cta-band {
  background: var(--color-surface-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-cards);
  padding: clamp(56px, 8vw, 104px) clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
}
.cta-band__copy { max-width: 660px; }
.cta-band .section-label { color: var(--color-muted); }
.cta-band__copy h2 { font-family: var(--font-display); font-size: var(--text-display); font-weight: 300; letter-spacing: 0.005em; line-height: 1.1; color: var(--color-ink); }
.cta-band__copy p { color: var(--color-body); margin-top: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .chips { justify-content: center; }

/* ============================================================================
   Contact + forms
   ========================================================================== */

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list { display: grid; gap: 4px; margin-top: 8px; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.info-item:first-child { border-top: 1px solid var(--color-line); }
.info-item__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-surface-2); border-radius: 8px; color: var(--color-ink); }
.info-item__icon svg { width: 19px; height: 19px; }
.info-item .k { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 5px; }
.info-item .v { font-size: var(--text-body); color: var(--color-ink); line-height: 1.45; }
.info-item .v a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; }

.form-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-cards); padding: clamp(28px, 4vw, 44px); }
.form-row { display: grid; gap: 8px; margin-bottom: 20px; }
.form-row--two { grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row--two > .form-row { margin-bottom: 0; }
@media (max-width: 520px) { .form-row--two { grid-template-columns: 1fr; } }
.form-label { font-size: var(--text-body-sm); font-weight: 500; color: var(--color-ink); }
.form-label .req { color: var(--color-red-text); }

.form-input, .form-textarea {
  width: 100%; background: var(--color-canvas); border: 1px solid var(--color-line-strong);
  padding: 14px 18px; font-size: var(--text-body); color: var(--color-ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-input { border-radius: var(--radius-input); }      /* Mercury pill inputs */
.form-textarea { border-radius: 18px; resize: vertical; min-height: 140px; }
.form-input::placeholder, .form-textarea::placeholder { color: #8a8a93; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px var(--color-focus-glow); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius-cards); margin-bottom: 22px; }
.consent input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--color-lead); border-radius: 4px; background: var(--color-canvas); cursor: pointer; flex: none; display: grid; place-content: center; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.consent input[type="checkbox"]::before { content: ""; width: 11px; height: 11px; transform: scale(0); transition: transform var(--dur) var(--ease); background: #fff; clip-path: polygon(14% 44%, 0 65%, 43% 100%, 100% 16%, 80% 0%, 40% 70%); }
.consent input[type="checkbox"]:checked { background: var(--color-red); border-color: var(--color-red); }
.consent input[type="checkbox"]:checked::before { transform: scale(1); }
.consent label { font-size: var(--text-body-sm); line-height: 1.5; color: var(--color-muted); }
.consent a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--color-navy); }

.form-note { font-size: var(--text-body-sm); color: var(--color-muted); margin-top: 16px; }
.form-status { margin-top: 16px; font-size: var(--text-body-sm); padding: 12px 16px; border-radius: var(--radius-cards); border: 1px solid var(--color-line); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-ok { color: var(--color-ink); border-color: var(--color-line-strong); background: var(--color-surface); }  /* neutral edge — success isn't an alarm; red stays an action-only color */

/* ============================================================================
   Page hero (interior)
   ========================================================================== */

.page-hero { padding-top: calc(var(--nav-height) + clamp(56px, 7vw, 96px)); padding-bottom: clamp(36px, 4vw, 52px); border-bottom: 1px solid var(--color-line); background: linear-gradient(180deg, var(--color-surface) 0%, #ffffff 100%); }
.page-hero .display { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; max-width: 58ch; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--color-ink); }
.breadcrumb span { color: var(--color-lead); }

/* ============================================================================
   Prose (legal)
   ========================================================================== */

.prose { max-width: 760px; }
.prose .updated { font-size: var(--text-body-sm); color: var(--color-muted); margin-bottom: 36px; }
.prose h2 { font-family: var(--font-display); font-size: var(--text-heading); font-weight: 400; letter-spacing: 0.005em; color: var(--color-ink); margin: 40px 0 12px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--color-body); line-height: 1.65; margin-bottom: 14px; max-width: 74ch; }
.prose strong { color: var(--color-ink); font-weight: 500; }
.prose ul { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; color: var(--color-body); line-height: 1.6; max-width: 74ch; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; background: var(--color-lead); border-radius: 50%; }
.prose a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-navy); }

/* ============================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--color-line); background: var(--color-surface); padding-top: clamp(56px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p { font-size: var(--text-body-sm); color: var(--color-muted); line-height: 1.6; max-width: 34ch; }
.footer-col h4 { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-ink); font-weight: 500; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col address { font-size: var(--text-body-sm); color: var(--color-muted); font-style: normal; line-height: 1.5; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--color-ink); }
.footer-contact a:hover { color: var(--color-ink); }
.footer-bottom { border-top: 1px solid var(--color-line); padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-bottom p, .footer-bottom a { font-size: var(--text-body-sm); color: var(--color-muted); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--color-ink); }

/* ============================================================================
   Utilities + components
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: var(--element-gap); }
.divider { height: 1px; background: var(--color-line); border: 0; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { font-size: var(--text-body-sm); color: var(--color-muted); padding: 8px 16px; border: 1px solid var(--color-line-strong); border-radius: 980px; background: var(--color-canvas); transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--color-ink); color: var(--color-ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body-sm); font-weight: 500; color: var(--color-ink); transition: gap var(--dur) var(--ease); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 12px; }
.in-link { color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.in-link:hover { color: var(--color-navy); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 1.8vw, 24px); }
.photo-card { display: flex; flex-direction: column; background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius-cards); overflow: hidden; scroll-margin-top: calc(var(--nav-height) + 24px); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.photo-card:hover { border-color: var(--color-line-strong); transform: translateY(-2px); }
.photo-card__photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface); }
.photo-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-card:hover .photo-card__photo img { transform: scale(1.04); }
.photo-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.photo-card__body h3 { font-size: var(--text-heading); font-weight: 300; letter-spacing: 0.005em; color: var(--color-ink); }
.photo-card__body p { font-size: var(--text-body-sm); color: var(--color-muted); line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag { font-size: 12px; letter-spacing: 0.02em; font-weight: 500; color: var(--color-muted); background: var(--color-surface-2); border: 1px solid transparent; padding: 6px 13px; border-radius: 980px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding: clamp(32px, 4vw, 48px); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-cards); }
.stat-band .num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 300; letter-spacing: 0.005em; color: var(--color-ink); }
.stat-band .num span { color: var(--color-ink); }
.stat-band .lbl { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin-top: 8px; }
@media (max-width: 720px) { .stat-band { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.5vw, 18px); }
.gallery figure { border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr 1fr; } }

.map-frame { border-radius: var(--radius-media); overflow: hidden; border: 1px solid var(--color-line); background: var(--color-surface); margin-top: 32px; }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Google / location card */
.gmaps-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 22px; background: var(--color-canvas); border: 1px solid var(--color-line); border-radius: var(--radius-cards); }
.gmaps-card__txt { display: grid; gap: 4px; }
.gmaps-card__txt .t { font-weight: 500; color: var(--color-ink); font-size: var(--text-body-sm); }
.gmaps-card__txt .s { font-size: var(--text-body-sm); color: var(--color-muted); }

/* Google rating badge */
.rating-badge { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border: 1px solid var(--color-line); border-radius: 980px; background: var(--color-canvas); transition: border-color var(--dur) var(--ease); }
a.rating-badge:hover { border-color: var(--color-ink); }
.star-rating { --val: 4.6; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; }
.star-rating::before { content: "★★★★★"; background: linear-gradient(90deg, var(--color-star) calc(var(--val) / 5 * 100%), #d2d2d7 calc(var(--val) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-badge__txt { font-size: var(--text-body-sm); color: var(--color-ink); font-weight: 500; }
.rating-badge__txt span { color: var(--color-muted); font-weight: 400; }

/* ============================================================================
   Scroll reveal — only when motion allowed (no-FOUC, JS-fail safe)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.js-anim .section-head,
  html.js-anim .feature,
  html.js-anim .product-card,
  html.js-anim .photo-card,
  html.js-anim .quote-card,
  html.js-anim .stat-band,
  html.js-anim .cta-band,
  html.js-anim .split__copy,
  html.js-anim .gallery figure,
  html.js-anim .map-frame,
  html.js-anim .gmaps-card,
  html.js-anim .form-card,
  html.js-anim .info-list,
  html.js-anim .brand-marquee,
  html.js-anim .hero__copy > * {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms); will-change: opacity, transform;
  }
  html.js-anim .hero__media,
  html.js-anim .split__media { opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .6s var(--ease), clip-path .9s var(--ease); }
  html.js-anim .is-visible { opacity: 1 !important; transform: none !important; clip-path: inset(0 0 0 0) !important; }

  .brand-marquee__row { animation: aas-marquee 42s linear infinite; }
  .brand-marquee:hover .brand-marquee__row { animation-play-state: paused; }
}
@keyframes aas-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
