/* ============================================================
   FILL MY LINES — styles.v2.css
   "Work Order / Dispatch" visual system (Simple Businesses DS).
   Ported from design_handoff_fillmylines/{colors_and_type,components}.css
   onto the live-site class names. Slate papers + amber + teal.
   Square corners, hard-offset shadows, dashed perforation.
   File renamed v1 → v2 to bust Netlify's immutable CSS cache.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&family=Caveat:wght@500;600;700&family=Stardos+Stencil:wght@400;700&display=swap');

:root {
  /* ---------- PAPERS — cool slate "blueprint" register ---------- */
  --paper:    #e7ecef;
  --paper-2:  #eef2f4;
  --paper-3:  #f7fafb;
  --slate:    #c4d0d6;        /* stats / benchmark band */

  /* ---------- INK — deep slate-blue ---------- */
  --ink:      #13202a;
  --ink-2:    #4a5963;
  --ink-3:    #7a8790;

  /* ---------- AMBER — emergency / leak / urgent / primary CTA ---------- */
  --amber:        #e8701b;
  --amber-hover:  #f2842e;
  --amber-press:  #b5500c;
  --amber-tint:   #f7e3d2;

  /* ---------- TEAL — resolved / good / "pipe" / ledger-positive ---------- */
  --teal:         #0e7c79;
  --teal-bright:  #1ea7a0;
  --teal-tint:    #d4e8e7;

  /* ---------- LINES ---------- */
  --line:        rgba(19,32,42,0.16);
  --line-strong: rgba(19,32,42,0.42);
  --line-onink:  rgba(247,250,251,0.22);

  /* ---------- TYPE ---------- */
  --display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --script:  'Caveat', 'Brush Script MT', cursive;
  --stencil: 'Stardos Stencil', 'Oswald', sans-serif;   /* boxed callouts ONLY */

  /* ---------- TYPE SCALE ---------- */
  --fs-eyebrow: 0.75rem;
  --fs-meta:    0.8125rem;
  --fs-body:    1.0625rem;     /* 17px body — legibility > density */
  --fs-body-lg: 1.1875rem;
  --fs-h4:  clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  --fs-h3:  clamp(1.45rem, 1.2rem + 1.4vw, 1.95rem);
  --fs-h2:  clamp(1.9rem, 1.5rem + 2.4vw, 2.9rem);
  --fs-h1:  clamp(2.5rem, 1.9rem + 4.2vw, 4.4rem);
  --fs-stat: clamp(2.6rem, 2rem + 4vw, 4.6rem);

  --lh-tight: 1.02;
  --lh-snug:  1.18;
  --lh-body:  1.62;

  /* ---------- SPACING (4px base) ---------- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;

  /* ---------- BORDERS ---------- */
  --bd:        2px solid var(--ink);
  --bd-thin:   1px solid var(--line);
  --bd-strong: 3px solid var(--ink);

  /* ---------- HARD-OFFSET SHADOWS ---------- */
  --shadow-sm:    3px 3px 0 var(--ink);
  --shadow:       5px 5px 0 var(--ink);
  --shadow-lg:    8px 8px 0 var(--ink);
  --shadow-amber: 5px 5px 0 var(--amber);
  --shadow-teal:  5px 5px 0 var(--teal);
  --shadow-press: 2px 2px 0 var(--ink);

  /* ---------- MOTION ---------- */
  --ease: cubic-bezier(0.2, 0, 0.1, 1);
  --dur:  120ms;

  /* ---------- LAYOUT ---------- */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --tap: 48px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--amber); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.01em; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-family: var(--mono); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: 0.14em; }

p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.45em; }
strong, b { color: var(--ink); font-weight: 600; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap        { max-width: var(--maxw);        margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: var(--sp-8) 0; position: relative; }
.band       { background: var(--paper-2); }
.band-paper { background: var(--paper-3); }

/* ============================================================
   EYEBROW / KICKER
   ============================================================ */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow::before, .kicker::before { content: "\25B8"; color: var(--amber); }

/* ============================================================
   SITE HEADER (dark, sticky, amber underline)
   ============================================================ */
.site-header {
  background: var(--ink);
  color: var(--paper-3);
  border-bottom: 2px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-top: 0.7em; padding-bottom: 0.7em;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 0.7em;
  color: var(--paper-3); text-decoration: none; flex-shrink: 0;
}
.brand:hover { color: var(--paper-3); text-decoration: none; }
/* The stamp wrapper is now just a sizing container — the FML stamp is a full SVG file. */
.stamp-mark {
  width: 44px; height: 44px; flex: none;
  display: block;
}
.stamp-mark img,
.stamp-mark svg { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-wm {
  font-family: var(--display); font-weight: 700;
  font-size: 1.3rem; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.brand-sub {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-top: 4px;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav a:not(.nav-cta) {
  color: var(--paper-3); text-decoration: none;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.85;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav a:not(.nav-cta):hover { opacity: 1; color: var(--amber-hover); }

/* ============================================================
   BUTTONS
   .btn = primary amber CTA on light bg
   .btn-ghost = outline on light bg
   .nav-cta = primary CTA on dark nav bar
   ============================================================ */
.btn, .btn-ghost, .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
/* Primary */
.btn {
  background: var(--amber); color: var(--ink);
  min-height: var(--tap);
  padding: 0.7em 1.4em;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: var(--amber-hover); color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
}
.btn:active {
  background: var(--amber-press); color: var(--paper-3);
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-press);
}
.btn-lg { font-size: 1.2rem; padding: 0.85em 1.7em; min-height: 56px; }

/* Ghost (outline on light) */
.btn-ghost {
  background: transparent; color: var(--ink);
  min-height: var(--tap);
  padding: 0.7em 1.4em;
  font-size: 1.05rem;
  box-shadow: 5px 5px 0 var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink); color: var(--paper-3);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--line-strong);
  text-decoration: none;
}
.btn-ghost:active {
  background: var(--amber); color: var(--ink);
  border-color: var(--ink);
  transform: translate(3px, 3px);
  box-shadow: var(--shadow-press);
}

/* Nav CTA (smaller, on dark) */
.nav-cta {
  background: var(--amber); color: var(--ink);
  border-color: var(--ink);
  padding: 0.5em 1em;
  font-size: 0.82rem; letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--amber-press);
  white-space: nowrap;
  min-height: 40px;
}
.nav-cta:hover {
  background: var(--amber-hover); color: var(--ink);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--amber-press);
}
.nav-cta:active {
  background: var(--amber-press); color: var(--paper-3);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--amber-press);
}

.cta-row { margin-top: var(--sp-6); display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: var(--sp-8) 0; border-bottom: 1px dashed var(--line-strong); }
.hero .wrap { position: relative; }
.hero .wrap::before {  /* perforation tear-strip */
  content: ""; position: absolute;
  left: 24px; top: 4px; bottom: 4px;
  border-left: 2px dashed var(--line-strong);
}
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-7);
  border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-weight: 500;
  font-size: var(--fs-meta); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta .red { color: var(--amber); }

.hero h1 { margin: 0 0 28px; max-width: 17ch; }
.hero .sub {
  font-family: var(--body);
  font-size: var(--fs-body-lg); line-height: 1.55;
  color: var(--ink-2); margin: 0 0 8px;
  text-transform: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-7); align-items: start;
}

/* ============================================================
   PEN-CIRCLE MARKER (replaces the old rotated stamp-word box)
   .stamp-word wraps an inline span + absolutely-positioned SVG path.
   Per-heading modifiers tune the inset + vertical lift to the context:
     --hero      homepage H1 ("invisible"), tight 1.02 leading, 3 lines
     --h1        city/content multi-line H1s, same tight 1.02 leading
     --h2        section H2s, looser 1.18 leading
     --h1-tail   short single-line H1s (audit, thanks, 404)
   Inset + lift use em so values scale with the surrounding font-size
   automatically — no separate desktop/mobile overrides needed.
   ============================================================ */
.stamp-word {
  position: relative; display: inline-block;
  padding: 0.02em var(--ring-padx, 0.22em) 0.06em;
  white-space: nowrap; z-index: 0;
  color: inherit;
}
.stamp-word > svg {
  position: absolute;
  /* IMPORTANT: SVG is a replaced element with intrinsic aspect ratio (200:80 = 2.5:1).
     If EITHER width or height is 'auto', the browser derives it from the other via
     intrinsic ratio — which broke wide words (height ballooned to 2× span) and then
     broke wider words again when only height was set (width collapsed to height × 2.5).
     Fix: set BOTH width and height explicitly so the aspect ratio is defeated. The
     SVG's preserveAspectRatio="none" handles non-uniform stretching of the path. */
  top: var(--ring-top, -0.04em);
  left: -0.04em;
  width: calc(100% + 0.08em);
  height: var(--ring-height, 0.95em);
  overflow: visible; pointer-events: none;
  z-index: 2;
  transform: translateY(var(--ring-lift, 0));
}
.stamp-word > svg path {
  fill: none;
  stroke: var(--amber);
  stroke-width: var(--ring-stroke, 3.4);
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.stamp-word--teal > svg path { stroke: var(--teal); }

.stamp-word--hero {
  --ring-top: -0.05em;
  --ring-height: 0.95em;
}
.stamp-word--h1 {
  --ring-top: -0.04em;
  --ring-height: 0.92em;
}
.stamp-word--h2 {
  --ring-top: 0;
  --ring-height: 0.95em;
}
.stamp-word--h1-tail {
  --ring-top: -0.04em;
  --ring-height: 0.92em;
}

/* ============================================================
   WORK-ORDER TICKET (.ticket maps to bundle .fl-ticket)
   ============================================================ */
.ticket {
  background: var(--paper-3);
  border: var(--bd);
  position: relative;
  box-shadow: var(--shadow-lg);
}
.ticket-head {
  background: var(--ink); color: var(--paper-3);
  padding: 0.7em 0.9em;
  display: flex; justify-content: space-between; gap: 1em;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap;
}
.ticket-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
.ticket-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.55em 0;
  border-bottom: 1px dashed var(--line);
}
.ticket-row:last-of-type { border-bottom: 0; }
.ticket-row .lbl {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
}
.ticket-row .val {
  font-family: var(--display); font-weight: 600;
  font-size: 1.25rem; color: var(--ink);
  letter-spacing: 0.02em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.ticket-row.total .val {
  color: var(--amber); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.6rem); line-height: 0.95;
}
.ticket-sig {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-2);
}
.ticket-sig .sig {
  font-family: var(--script); font-weight: 600;
  font-size: 1.5rem; color: var(--ink);
  letter-spacing: 0; text-transform: none;
  display: inline-block; transform: translateY(-2px) rotate(-4deg);
}
.ticket-sig .ref {
  color: var(--ink); font-family: var(--mono); font-weight: 500;
  font-size: 0.7rem; text-transform: none; letter-spacing: 0.04em;
}
/* LEAK / RCVD rubber stamp on the ticket */
.ticket-stamp {
  position: absolute; right: -16px; bottom: 22px;
  border: 3px solid var(--amber); color: var(--amber);
  padding: 0.04em 0.4em;
  font-family: var(--display); font-weight: 700;
  font-size: 1.5rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  background: var(--paper-3);
  line-height: 1;
}

/* ============================================================
   STATS BAND (.stats maps to bundle .fl-stats)
   ============================================================ */
.stats {
  background: var(--slate);
  border-top: var(--bd);
  border-bottom: var(--bd);
}
.stats::before, .stats::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle, var(--paper) 3px, transparent 3.5px);
  background-size: 16px 10px; background-repeat: repeat-x;
}
.stats::before { top: -6px; }
.stats::after { bottom: -6px; }
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 12px; margin-bottom: var(--sp-6);
}
.stats-bar b { color: var(--ink); font-weight: 600; }
.stats-bar .copy {
  color: var(--amber); font-family: var(--display); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.08em;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.wstat {
  padding: var(--sp-3) var(--sp-6);
  border-left: 1.5px dashed var(--line-strong);
}
.wstat:first-child { padding-left: 0; border-left: 0; }
.wstat-id {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 10px;
}
.wstat-num {
  font-family: var(--display); font-weight: 700;
  font-size: var(--fs-stat); line-height: 1;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.wstat-num .unit {
  font-size: 1.25rem; color: var(--ink-2);
  letter-spacing: 0.08em; font-weight: 600;
}
.wstat-bar {
  font-family: var(--display); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber);
  margin: 2px 0 14px;
}
.wstat-desc {
  font-size: 0.95rem; line-height: 1.5; color: var(--ink);
  max-width: 28ch; margin: 0 0 14px;
}
.wstat-src {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
  padding-top: 10px; border-top: 1px dashed var(--line);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { margin-bottom: var(--sp-6); }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-family: var(--body); font-size: var(--fs-body-lg); color: var(--ink-2); }

/* ============================================================
   SYMPTOM / WCARD TICKETS (.wcard maps to bundle .fl-wcard)
   ============================================================ */
.sym-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7);
  align-items: end; margin-bottom: var(--sp-7);
}
.sym-lead {
  font-family: var(--body); font-size: 1.05rem;
  line-height: 1.6; color: var(--ink-2);
  margin: 0;
}
.sym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.wcard {
  background: var(--paper-3); border: var(--bd);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.wcard-head {
  background: var(--ink); color: var(--paper-3);
  padding: 0.85em 1.05em;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wcard-head .no {
  font-family: var(--display); font-weight: 700;
  font-size: 1.375rem; letter-spacing: 0.04em;
  color: var(--amber);
}
.wcard-body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.wcard-body h3 { margin: 0 0 12px; }
.wcard-body p {
  font-family: var(--body); font-size: 0.95rem;
  line-height: 1.55; color: var(--ink-2);
  margin: 0 0 var(--sp-5); flex: 1;
}
.wcard-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-family: var(--mono); font-weight: 500;
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.wcard-stamp {
  font-family: var(--display); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.06em;
  color: var(--amber);
  border: 2.5px solid var(--amber);
  padding: 4px 10px;
  transform: rotate(-3deg);
  background: var(--paper-3);
  text-transform: uppercase;
}

/* ============================================================
   GENERIC CARDS (services, steps, markets, 404, service-line tiles)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-3); border: var(--bd);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--amber); }
.card p { font-family: var(--body); }
.card .tag {
  display: inline-block;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
/* Service-line icon at the top of a card (homepage service grid). */
.card-icon {
  width: 34px; height: 34px;
  color: var(--amber);
  margin-bottom: 0.7em; display: block;
  stroke: currentColor; fill: none;
}

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  background: var(--paper-2);
  border-left: 5px solid var(--amber);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-6) 0;
  font-size: 1.1rem; color: var(--ink);
}
.callout p { font-family: var(--body); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--paper-3);
  border: var(--bd);
  font-family: var(--body); font-size: 0.96rem;
}
.data-table th, .data-table td {
  text-align: left; padding: 0.9em 1.05em;
  border-top: 2px dashed var(--line-strong);
}
.data-table thead th {
  background: var(--ink); color: var(--paper-3);
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 0; border-bottom: 2px solid var(--ink);
}
.data-table tbody tr:nth-child(even) { background: var(--paper-2); }
.data-table td.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--display); font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
}
.data-table td.good { color: var(--teal); }
.data-table td.bad  { color: var(--amber); }

/* ============================================================
   FORM (audit)
   ============================================================ */
.form-card {
  background: var(--paper-3); border: var(--bd);
  padding: var(--sp-6); box-shadow: var(--shadow-lg);
}
.form-card h2 { margin-top: 0; }
.form-row { display: flex; flex-direction: column; gap: 0.4em; margin-bottom: var(--sp-4); }
.form-row label {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.form-row .hint { color: var(--ink-3); letter-spacing: 0.08em; }
.form-row input, .form-row select {
  width: 100%; min-height: var(--tap);
  padding: 0.7em 0.8em;
  font-family: var(--body); font-size: 1.05rem;
  border: var(--bd); background: var(--paper-3);
  color: var(--ink);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.form-row input::placeholder { color: var(--ink-3); }
.form-row input:focus, .form-row select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: var(--shadow-sm);
}
.form-fine {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.7rem; line-height: 1.6;
  letter-spacing: 0.04em; color: var(--ink-2);
  margin-top: 14px;
}

/* ============================================================
   Q&A LIST
   ============================================================ */
.qa { border-top: 1px dashed var(--line-strong); padding: var(--sp-5) 0; }
.qa:last-child { border-bottom: 1px dashed var(--line-strong); }
.qa h3 {
  font-size: 1.3rem; text-transform: none;
  letter-spacing: 0.01em; margin-bottom: 10px;
  line-height: 1.2;
}
.qa p { font-family: var(--body); }

/* ============================================================
   SEASONAL CALENDAR
   ============================================================ */
.season-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: var(--bd); background: var(--paper-3);
  box-shadow: var(--shadow);
}
.season-col {
  padding: var(--sp-5);
  border-left: 1.5px dashed var(--line-strong);
}
.season-col:first-child { border-left: 0; }
.season-col .win {
  font-family: var(--mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 8px;
}
.season-col h4 {
  font-family: var(--display); font-weight: 600;
  font-size: 1.1rem; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ink);
  margin: 0 0 8px;
}
.season-col p {
  font-family: var(--body); font-size: 0.9rem;
  line-height: 1.5; color: var(--ink-2); margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--paper-3);
  padding: var(--sp-7) 0 var(--sp-6);
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.03em;
}
.site-footer .wrap {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-6);
}
.site-footer h4 {
  color: var(--paper-3); font-family: var(--display);
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer p {
  font-family: var(--body);
  color: var(--paper-3); opacity: 0.78;
  max-width: 40ch;
}
.site-footer a {
  color: var(--paper-3); opacity: 0.8;
  text-decoration: none;
}
.site-footer a:hover { opacity: 1; color: var(--amber-hover); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .colophon {
  grid-column: 1 / -1;
  border-top: 1px dashed var(--line-onink);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.center p, .center h1, .center h2 { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }   .mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mt-4 { margin-top: 48px; }
.text-muted { color: var(--ink-2); }
.text-small { font-size: 0.88rem; }
main ul li { font-family: var(--body); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { gap: var(--sp-6); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; }
  .sym-head { grid-template-columns: 1fr; gap: var(--sp-5); }
  .sym-grid { grid-template-columns: 1fr 1fr; }
  .sym-grid .wcard:last-child { grid-column: 1 / -1; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .season-col:nth-child(3) { border-left: 0; }
  .season-col:nth-child(3), .season-col:nth-child(4) { border-top: 1.5px dashed var(--line-strong); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: var(--sp-7) 0; }
  .hero { padding: var(--sp-7) 0; }
  .hero .wrap::before { display: none; }
  .hero-meta { display: none; }

  /* Nav collapses to brand + CTA */
  .site-header .wrap { gap: 14px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-sub { display: none; }

  .stats-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .wstat {
    padding: var(--sp-5) 0 0; border-left: 0;
    border-top: 1.5px dashed var(--line-strong);
  }
  .wstat:first-child { border-top: 0; padding-top: 0; }

  .sym-grid, .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .sym-grid .wcard:last-child { grid-column: auto; }

  .season-grid { grid-template-columns: 1fr; }
  .season-col { border-left: 0; border-top: 1.5px dashed var(--line-strong); }
  .season-col:first-child { border-top: 0; }

  .ticket-stamp { right: -8px; }
  .site-footer .wrap { grid-template-columns: 1fr; }

  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn, .cta-row .btn-ghost { justify-content: center; width: 100%; }

  .data-table { font-size: 0.88rem; }
  .data-table th, .data-table td { padding: 0.65em 0.75em; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active,
  .btn-ghost:hover, .btn-ghost:active,
  .nav-cta:hover, .nav-cta:active { transform: none; }
}
