/* ============================================================
   Tipton Air Services — "Coil Casefiles"
   Fugu-drafted design system, Opus-finished + reconciled to markup.
   Archetype: Technical / case-board on warm cream. Contrast-safe by construction.
   ============================================================ */

:root {
  --diag: #0B72B9;
  --truck: #277DA1;
  --porch: #43AA8B;
  --noon: #F9C74F;
  --orange: #F9844A;
  --slate: #577590;
  --ink: #1a2331;
  --paper: #F7F5EF;
  --card: #ffffff;

  --diag-900: #063f68;
  --diag-800: #075486;
  --diag-100: #dff1fb;
  --diag-050: #eef8fd;
  --truck-900: #133f52;
  --porch-900: #174f40;
  --porch-100: #def4ed;
  --porch-050: #eefaf6;
  --noon-deep: #a05c00;        /* gold star color — 5.2:1 on white (contrast-safe) */
  --star: #a05c00;
  --label: #42566a;            /* small uppercase labels — 7.6:1 on white */
  --noon-100: #fff4cf;
  --orange-900: #5d2308;
  --orange-100: #ffe5d6;
  --slate-950: #14202e;
  --slate-900: #1d2c3d;

  --line: rgba(26, 35, 49, 0.13);
  --shadow-sm: 0 8px 22px rgba(20, 32, 46, 0.09);
  --shadow-md: 0 18px 48px rgba(20, 32, 46, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 70px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  line-height: 1.65;
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 114, 185, 0.10) 1px, transparent 0) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(39, 125, 161, 0.04) 1px, transparent 1px) 0 0 / 92px 92px,
    linear-gradient(0deg, rgba(67, 170, 139, 0.038) 1px, transparent 1px) 0 0 / 92px 92px,
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
button { cursor: pointer; font: inherit; }
::selection { color: var(--ink); background: var(--noon); }
:focus-visible { outline: 3px solid var(--noon); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 0.95; letter-spacing: -0.055em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 0.96; letter-spacing: -0.05em; }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.08; letter-spacing: -0.03em; }
h4 { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.15; }
p { margin: 0; }
p + p { margin-top: 1rem; }
strong, b { font-weight: 800; }
em { font-style: normal; color: var(--diag-800); }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); overflow: clip; }
.section.bg-alt {
  background:
    radial-gradient(circle at 20% 0%, rgba(67, 170, 139, 0.09), transparent 34rem),
    radial-gradient(circle at 92% 40%, rgba(11, 114, 185, 0.07), transparent 30rem),
    var(--card);
}

.section-head {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: min(100%, 820px);
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
  padding: clamp(1.1rem, 3vw, 1.7rem);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-left: 7px solid var(--diag);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.section.bg-alt .section-head { background: rgba(247, 245, 239, 0.97); }
.section-head::after {
  content: "";
  position: absolute; top: 1rem; right: 1rem;
  width: 54px; height: 18px; opacity: 0.85;
  background: linear-gradient(90deg, rgba(11, 114, 185, 0.28) 0 2px, transparent 2px 8px) 0 0 / 8px 100%, var(--noon-100);
  border: 1px solid rgba(103, 79, 8, 0.18); border-radius: 4px; transform: rotate(2deg);
}

.lead {
  max-width: 64ch;
  color: rgba(26, 35, 49, 0.84);
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  line-height: 1.55;
}

/* ---------- Eyebrow / case-file tag ---------- */
.eyebrow {
  display: inline-flex; align-items: center; width: fit-content; gap: 0.55rem;
  padding: 0.42rem 0.72rem;
  color: var(--diag-900);
  font-family: var(--font-display);
  font-size: 0.74rem; font-weight: 800; line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(223,241,251,0.9)), var(--diag-050);
  border: 1px solid rgba(11, 114, 185, 0.28);
  border-radius: 999px;
}
.eyebrow::before {
  content: ""; flex: 0 0 auto;
  width: 0.62rem; height: 0.62rem;
  background: var(--noon); border: 2px solid var(--ink); border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(11, 114, 185, 0.22); transform: rotate(5deg);
}
.eyebrow--tag {
  background: var(--noon-100);
  border-color: rgba(103, 79, 8, 0.22);
  color: var(--ink);
}
.eyebrow--light { color: #fff; background: rgba(20,32,46,0.55); border-color: rgba(255,255,255,0.28); }
.eyebrow--light::before { border-color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--diag-800); --btn-border: rgba(11, 114, 185, 0.72);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.82rem 1.15rem;
  color: var(--btn-fg);
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; line-height: 1; letter-spacing: -0.01em;
  text-align: center; text-decoration: none;
  background: var(--btn-bg); border: 2px solid var(--btn-border); border-radius: 999px;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.btn .arr { flex: 0 0 auto; width: 1.05em; height: 1.05em; transition: transform 180ms var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  --btn-bg: var(--orange); --btn-fg: #2a1003; --btn-border: var(--orange);
  box-shadow: 0 14px 26px rgba(249,132,74,0.25), inset 0 -2px 0 rgba(93,35,8,0.16);
}
.btn-primary:hover { background: #ff955e; border-color: #ff955e; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--diag-800); --btn-border: rgba(11,114,185,0.72); }
.btn-ghost:hover { background: var(--diag-050); border-color: var(--diag); }
.btn-onblue { --btn-fg: #fff; --btn-border: rgba(255,255,255,0.7); }
.btn-onblue:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-lg { min-height: 56px; padding: 1rem 1.4rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  color: #fff; background: var(--slate-950);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(20,32,46,0.22);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(249,199,79,0.12), transparent 22% 80%, rgba(67,170,139,0.11)),
    radial-gradient(circle at 18% 0%, rgba(11,114,185,0.26), transparent 28rem);
}
.header-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: grid; gap: 0.05rem; color: #fff; text-decoration: none; line-height: 1.05; }
.brand .mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.03em; }
.brand .tag { color: rgba(255,255,255,0.74); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }

.nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: clamp(0.2rem, 1vw, 0.7rem); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0.55rem 0.72rem;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-display); font-size: 0.93rem; font-weight: 700; line-height: 1; text-decoration: none;
  border-radius: 999px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.is-current { color: #fff; background: rgba(255,255,255,0.12); }
.nav-links a.is-current { box-shadow: inset 0 0 0 1px rgba(249,199,79,0.45); }
.nav-call { color: #2a1003 !important; background: var(--orange) !important; box-shadow: 0 6px 16px rgba(249,132,74,0.28); border: 2px solid var(--orange); }
.nav-call:hover { background: #ff955e !important; }

.hamburger {
  position: relative; z-index: 1002; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 48px; height: 48px; color: #fff;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20); border-radius: 14px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 999px; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(10, 16, 24, 0.55); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 200ms;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ---------- Rating chip ---------- */
.rating-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; width: fit-content; gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  color: var(--ink); font-family: var(--font-display); font-size: 0.92rem; font-weight: 800; line-height: 1;
  background: #fff; border: 1px solid rgba(103,79,8,0.18); border-radius: 999px;
  box-shadow: 0 8px 20px rgba(20,32,46,0.10);
}
.stars { color: var(--noon-deep); letter-spacing: 0.02em; }
.rating-chip .rc-num { color: var(--ink); }
.rating-chip .rc-sep { width: 4px; height: 4px; background: var(--slate); border-radius: 50%; }
.rating-chip .rc-note { color: rgba(26,35,49,0.7); font-family: var(--font-body); font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(2rem, 6vw, 5rem);
  overflow: clip;
  background: var(--paper);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -3;
  background: url("../assets/hero.png") center / cover no-repeat;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247,245,239,0.45), rgba(247,245,239,0.12) 46%, rgba(247,245,239,0.0) 70%),
    linear-gradient(180deg, rgba(247,245,239,0.10), var(--paper) 97%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26,35,49,0.06) 1px, transparent 1px) center / 64px 64px,
    linear-gradient(0deg, rgba(26,35,49,0.05) 1px, transparent 1px) center / 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}
.hero-inner {
  display: grid; align-items: center;
  min-height: calc(100svh - var(--header-h) - clamp(3rem, 10vw, 8rem));
}
.hero-card {
  position: relative; display: grid; gap: 1.1rem;
  width: min(100%, 640px); margin-inline: auto;
  padding: clamp(1.3rem, 4.5vw, 2.6rem);
  background: #fff;
  border: 1px solid rgba(26,35,49,0.14);
  border-radius: clamp(22px, 4vw, 38px);
  box-shadow: 0 28px 80px rgba(20,32,46,0.24), 0 1px 0 rgba(255,255,255,0.85) inset;
}
.hero-card::before {
  content: ""; position: absolute; top: -0.9rem; left: clamp(1.1rem, 5vw, 2.6rem);
  width: 86px; height: 28px;
  background: linear-gradient(90deg, rgba(26,35,49,0.14) 0 1px, transparent 1px 9px) 0 0 / 9px 100%, rgba(249,199,79,0.78);
  border: 1px solid rgba(103,79,8,0.18); border-radius: 5px;
  box-shadow: 0 6px 14px rgba(20,32,46,0.08); transform: rotate(-2deg);
}
.hero h1 { max-width: 13ch; }
.hero h1 .hl { color: var(--orange-900); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.3em; z-index: -1;
  background: var(--noon); border-radius: 3px; transform: rotate(-1deg);
}
.hero .lead { max-width: 52ch; color: rgba(26,35,49,0.87); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.2rem; }

/* ---------- Signature: Freon board ---------- */
.freon-board {
  position: relative; display: grid; gap: clamp(1rem, 3vw, 1.6rem);
  padding: clamp(1.1rem, 3.6vw, 2rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(26,35,49,0.16) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(11,114,185,0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(67,170,139,0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #fffdf8, #f1ead9);
  border: 1px solid rgba(91,66,25,0.22); border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(20,32,46,0.16), inset 0 0 0 8px rgba(255,255,255,0.38);
}
.freon-board::before {
  content: ""; position: absolute; top: 1.1rem; left: 50%;
  width: 18px; height: 18px;
  background: radial-gradient(circle at 42% 38%, #fff 0 2px, transparent 3px), var(--orange);
  border: 2px solid rgba(93,35,8,0.25); border-radius: 50%;
  box-shadow: 0 8px 18px rgba(249,132,74,0.22), 0 0 0 5px rgba(249,132,74,0.11); transform: translateX(-50%);
}

.coil-diagram {
  position: relative; min-height: clamp(280px, 50vw, 460px);
  padding: clamp(0.9rem, 2vw, 1.3rem);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(223,241,251,0.92), rgba(238,250,246,0.74)), #fff;
  border: 1px solid rgba(11,114,185,0.20); border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.76), 0 14px 34px rgba(20,32,46,0.10);
}
.coil-diagram::before {
  content: "DIAGNOSTIC MAP"; position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  padding: 0.34rem 0.5rem; color: var(--diag-900);
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(255,255,255,0.94); border: 1px solid rgba(11,114,185,0.20); border-radius: 999px;
}
.coil-diagram svg { width: 100%; height: auto; min-height: 240px; }

#freonTrail { filter: drop-shadow(0 0 6px rgba(11,114,185,0.45)); }
.trail-node {
  transform-box: fill-box; transform-origin: center;
  opacity: 0.35; transition: opacity 400ms var(--ease-out);
  filter: drop-shadow(0 0 7px rgba(11,114,185,0.55));
}
.trail-node.is-active { opacity: 1; }
.leak-mark { opacity: 0; transition: opacity 400ms var(--ease-out); }
.leak-mark.is-active { opacity: 0.6; }

.case-notes {
  position: relative; display: grid; align-content: start; gap: 0.85rem;
  padding: clamp(1rem, 3vw, 1.45rem); padding-top: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--ink); background: rgba(255,255,255,0.98);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); opacity: 1;
}
.case-notes::before {
  content: "CASE NOTES"; position: absolute; top: -0.78rem; left: 1.15rem;
  padding: 0.28rem 0.58rem; color: var(--ink);
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--noon); border: 1px solid rgba(103,79,8,0.20); border-radius: 999px; transform: rotate(-1.5deg);
}

.case-step {
  position: relative; display: grid; grid-template-columns: auto auto 1fr; gap: 0.45rem 0.7rem; align-items: start;
  padding: 0.85rem;
  background: linear-gradient(90deg, rgba(11,114,185,0.05), transparent 42%), var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.cs-badge {
  grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem;
  color: #fff; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; line-height: 1;
  background: var(--diag); border-radius: 10px; box-shadow: 0 8px 18px rgba(11,114,185,0.22);
}
.cs-dot {
  width: 0.75rem; height: 0.75rem; margin-top: 0.5rem; align-self: start;
  background: var(--slate); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(87,117,144,0.12);
  transition: background 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}
.case-step.is-active .cs-dot {
  background: var(--porch);
  box-shadow: 0 0 0 4px rgba(67,170,139,0.18), 0 0 18px rgba(67,170,139,0.65);
  animation: activeDot 1.6s var(--ease-in-out) infinite;
}
.cs-body { grid-column: 3; }
.cs-body h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
.cs-body p { margin-top: 0.25rem; color: rgba(26,35,49,0.78); font-size: 0.97rem; line-height: 1.5; }

.case-foot {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.4rem);
  color: rgba(26,35,49,0.85); font-size: 1.02rem; line-height: 1.55;
  background: linear-gradient(135deg, rgba(255,244,207,0.9), rgba(238,250,246,0.85)), #fff;
  border: 1px solid rgba(249,199,79,0.32); border-left: 6px solid var(--orange); border-radius: var(--radius-md);
}
.case-foot .cf-name { font-family: var(--font-display); font-weight: 800; color: var(--ink); }

/* ---------- Service cards (home) ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.svc-card {
  position: relative; display: grid; align-content: start; gap: 0.65rem; overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.svc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c, var(--diag)); }
.svc-card:hover { transform: translateY(-4px); border-color: rgba(11,114,185,0.26); box-shadow: var(--shadow-md); }
.svc-card.feature {
  background: linear-gradient(135deg, rgba(255,244,207,0.96), rgba(238,250,246,0.94)), #fff;
  border-color: rgba(249,132,74,0.34); box-shadow: 0 22px 56px rgba(249,132,74,0.13), var(--shadow-sm);
}
.svc-card .ic {
  display: grid; place-items: center; width: 50px; height: 50px;
  color: var(--c, var(--diag)); background: #fff;
  border: 1px solid color-mix(in srgb, var(--c, var(--diag)) 30%, transparent);
  border-radius: 16px; box-shadow: 0 8px 18px rgba(20,32,46,0.08);
}
.svc-card .ic svg { width: 26px; height: 26px; }
.svc-card .lbl { color: var(--label); font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.svc-card h3 { max-width: 16ch; }
.svc-card p { color: rgba(26,35,49,0.77); line-height: 1.5; font-size: 0.98rem; }

/* ---------- Reviews ---------- */
.reviews-head { display: grid; gap: 1.4rem; align-items: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.reviews-summary {
  display: grid; justify-items: start; align-content: center; gap: 0.4rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: radial-gradient(circle at 90% 10%, rgba(249,199,79,0.32), transparent 12rem), linear-gradient(135deg, #fff, var(--paper));
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.reviews-summary .rs-num { font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.07em; color: var(--ink); }
.reviews-summary .rs-stars { font-size: 1.3rem; color: var(--noon-deep); }
.reviews-summary .rs-count { color: rgba(26,35,49,0.72); font-weight: 800; }

.reviews-strip { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.review-card {
  position: relative; display: grid; gap: 0.85rem; align-content: start; overflow: hidden;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.review-card::before { content: "\201C"; position: absolute; top: -0.4rem; right: 1rem; color: rgba(11,114,185,0.12); font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
.review-card .stars { font-size: 1rem; }
.review-card blockquote { position: relative; z-index: 1; margin: 0; color: rgba(26,35,49,0.87); font-size: 1rem; line-height: 1.55; }
.review-card figcaption { display: grid; gap: 0.1rem; padding-top: 0.5rem; border-top: 1px dashed rgba(26,35,49,0.18); }
.review-card .rv-name { color: var(--ink); font-family: var(--font-display); font-weight: 800; }
.review-card .rv-meta { color: rgba(26,35,49,0.6); font-size: 0.85rem; font-weight: 800; }

/* ---------- Area + why card ---------- */
.area-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.area-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.area-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.5rem 0.78rem;
  color: var(--porch-900); font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; line-height: 1;
  background: var(--porch-050); border: 1px solid rgba(67,170,139,0.24); border-radius: 999px;
}
.area-chip::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--porch); border: 1px solid rgba(23,79,64,0.26); border-radius: 50%; }
.area-chip.is-key { color: #fff; background: var(--porch); }
.area-chip.is-key::before { background: #fff; }
.area-foot { margin-top: 1.2rem; color: rgba(26,35,49,0.72); font-size: 0.95rem; }
.area-foot a { color: var(--diag-800); font-weight: 800; }

.area-card {
  display: grid; gap: 0.5rem; padding: clamp(1.2rem, 3vw, 1.7rem);
  background:
    radial-gradient(circle at 1px 1px, rgba(67,170,139,0.14) 1px, transparent 0) 0 0 / 20px 20px,
    rgba(255,255,255,0.97);
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
}
.ac-kicker { color: var(--diag-900); font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; }
.ac-list { display: grid; gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.ac-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.ac-list svg { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; padding: 0.18rem; color: #fff; background: var(--porch); border-radius: 50%; }
.ac-list b { display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.ac-list span { display: block; color: rgba(26,35,49,0.74); font-size: 0.95rem; line-height: 1.45; }

/* ---------- Services detail page ---------- */
.page-head { position: relative; padding-block: clamp(2.6rem, 6vw, 4.5rem); padding-top: clamp(2.6rem, 6vw, 4rem); }
.page-head .eyebrow { margin-bottom: 1rem; }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1rem; }

.svc-detail { display: grid; gap: 1.1rem; }
.svc-row {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 1.8rem); align-items: start;
  padding: clamp(1.3rem, 3.5vw, 2rem);
  background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.svc-row-mark {
  display: grid; place-items: center; width: clamp(3rem, 8vw, 4.2rem); height: clamp(3rem, 8vw, 4.2rem);
  color: #fff; font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; line-height: 1;
  background: var(--c, var(--diag)); border-radius: 18px; box-shadow: 0 12px 26px color-mix(in srgb, var(--c, var(--diag)) 30%, transparent);
}
.svc-row-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.svc-row-body p { margin-top: 0.7rem; color: rgba(26,35,49,0.82); }
.svc-points { display: grid; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.svc-points li { position: relative; padding-left: 1.6rem; color: rgba(26,35,49,0.8); }
.svc-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0.08em; display: grid; place-items: center;
  width: 1.15rem; height: 1.15rem; color: #fff; font-size: 0.74rem; font-weight: 900; line-height: 1;
  background: var(--porch); border-radius: 50%;
}

/* ---------- About page ---------- */
.about-split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about-photo {
  position: relative; min-height: clamp(280px, 50vw, 460px);
  background: url("../assets/hero.png") center / cover no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.about-photo::after {
  content: "ON THE JOB · JAX"; position: absolute; left: 1rem; bottom: 1rem;
  padding: 0.4rem 0.7rem; color: var(--ink);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(255,255,255,0.95); border: 1px solid var(--line); border-radius: 999px;
}
.about-body h2 { margin-bottom: 0.9rem; }
.about-body p { margin-top: 0.9rem; color: rgba(26,35,49,0.83); }
.crew-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }
.crew-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.85rem;
  color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 0.92rem;
  background: var(--noon-100); border: 1px solid rgba(103,79,8,0.2); border-radius: 999px;
}
.crew-chip .dot { width: 0.55rem; height: 0.55rem; background: var(--diag); border-radius: 50%; }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.value-card {
  display: grid; gap: 0.5rem; padding: clamp(1.2rem, 3vw, 1.6rem);
  background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-top: 5px solid var(--c, var(--diag)); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.value-card h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.value-card p { color: rgba(26,35,49,0.78); font-size: 0.98rem; line-height: 1.5; }

/* ---------- Reviews page grid ---------- */
.review-masonry { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.6rem); align-items: start; }
.contact-card {
  display: grid; gap: 1.1rem; padding: clamp(1.4rem, 4vw, 2.2rem);
  background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; padding-block: 0.85rem; border-bottom: 1px dashed rgba(26,35,49,0.16); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ci { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--diag); border-radius: 14px; }
.contact-row .ci svg { width: 22px; height: 22px; }
.contact-row .ck { color: var(--label); font-family: var(--font-display); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-row .cv { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 800; color: var(--ink); }
.contact-row .cv a { color: var(--diag-800); text-decoration: none; }
.contact-row .cv a:hover { color: var(--diag-900); text-decoration: underline; }
.contact-row .cvsub { color: rgba(26,35,49,0.7); font-size: 0.92rem; }
.contact-aside {
  display: grid; gap: 0.9rem; padding: clamp(1.4rem, 4vw, 2rem);
  color: #fff;
  background: radial-gradient(circle at 90% 0%, rgba(67,170,139,0.25), transparent 22rem), linear-gradient(135deg, var(--diag), var(--truck-900));
  border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.contact-aside h2, .contact-aside p { color: #fff; }
.contact-aside p { color: rgba(255,255,255,0.9); }
.contact-aside .stars { color: var(--noon); }
.contact-aside .ca-list { display: grid; gap: 0.6rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.contact-aside .ca-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; align-items: start; color: rgba(255,255,255,0.92); }
.contact-aside .ca-list svg { width: 1.2rem; height: 1.2rem; margin-top: 0.18rem; color: var(--noon); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5rem); color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(249,199,79,0.20), transparent 22rem),
    radial-gradient(circle at 90% 10%, rgba(67,170,139,0.16), transparent 28rem),
    linear-gradient(135deg, var(--diag), var(--truck-900));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.2;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.6) 1px, transparent 0) 0 0 / 22px 22px;
}
.cta-inner { display: grid; gap: 1.1rem; justify-items: start; }
.cta-inner h2, .cta-inner p { color: #fff; }
.cta-inner h2 { max-width: 13ch; }
.cta-inner p { max-width: 60ch; color: rgba(255,255,255,0.92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 0.6rem; }
.cta-contact span { color: rgba(255,255,255,0.92); font-size: 0.96rem; }
.cta-contact .k { display: block; color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cta-contact a { color: #fff; font-family: var(--font-display); font-weight: 800; text-decoration: none; }
.cta-contact a:hover { color: var(--noon); }

/* ---------- Footer ---------- */
.site-footer {
  color: rgba(255,255,255,0.86);
  background: radial-gradient(circle at 20% 0%, rgba(11,114,185,0.18), transparent 24rem), linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-top { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(2.6rem, 6vw, 4rem); }
.footer-brand .mark { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: #fff; }
.footer-brand .amp { color: var(--noon); }
.footer-brand p { margin-top: 0.7rem; color: rgba(255,255,255,0.76); max-width: 42ch; }
.foot-rate { margin-top: 0.9rem; color: rgba(255,255,255,0.9); font-family: var(--font-display); font-weight: 800; }
.foot-rate .stars { color: var(--noon); }
.footer-col h4 { color: #fff; margin-bottom: 0.8rem; }
.footer-col ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-col .v { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--noon); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding-block: 1.1rem; color: rgba(255,255,255,0.66); font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-bottom .stamp { color: rgba(255,255,255,0.5); }

/* ---------- Reveal utility (legible by default) ---------- */
.reveal { opacity: 1; transform: none; }
html.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); }
html.js-anim .reveal.is-visible { opacity: 1; transform: translateY(0); }
html.js-anim .reveal.d2 { transition-delay: 90ms; }
html.js-anim .reveal.d3 { transition-delay: 180ms; }

/* ---------- Keyframes ---------- */
@keyframes activeDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(67,170,139,0.18), 0 0 16px rgba(67,170,139,0.55); }
  50% { box-shadow: 0 0 0 7px rgba(67,170,139,0.10), 0 0 24px rgba(67,170,139,0.75); }
}

/* ---------- Responsive ---------- */
@media (max-width: 759px) {
  .nav-links {
    position: fixed; top: var(--header-h); right: 0; z-index: 1001;
    flex-direction: column; align-items: stretch; gap: 0.4rem;
    width: min(82vw, 320px); height: calc(100dvh - var(--header-h));
    padding: 1.2rem; margin: 0;
    background: linear-gradient(160deg, var(--slate-900), var(--slate-950));
    border-left: 1px solid rgba(255,255,255,0.12);
    box-shadow: -20px 0 50px rgba(0,0,0,0.4);
    transform: translateX(110%); transition: transform 280ms var(--ease-out);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { min-height: 50px; padding: 0.85rem 1rem; font-size: 1.05rem; justify-content: flex-start; }
  .nav-call { justify-content: center !important; margin-top: 0.4rem; }
  .hamburger { display: flex; }
}

@media (min-width: 560px) {
  .svc-grid, .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  :root { --header-h: 76px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-card { margin-inline: 0; transform: rotate(-0.5deg); }
  .hero-card > * { transform: rotate(0.5deg); }
  .freon-board { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: stretch; }
  .reviews-head { grid-template-columns: minmax(200px, 0.45fr) 1fr; }
  .reviews-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .area-grid { grid-template-columns: 1fr 0.85fr; }
  .about-split { grid-template-columns: 0.9fr 1.1fr; }
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-inner { justify-items: start; }
}

@media (min-width: 940px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { width: min(100%, 660px); margin-left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js-anim .reveal { opacity: 1; transform: none; }
}
