/* ---- tokens.css ---- */
/* ============================================================
   JERSEY CONCEPT FLOORING & RENOVATION — DESIGN TOKENS
   Modern minimalist luxury: black, brass/gold, cream.
   See DESIGN_SYSTEM.md for full rationale and usage guidance.
   ============================================================ */

:root {
  /* ---- Color: neutrals ---- */
  --color-black: #0B0A08;        /* true brand black — hero/footer/nav-dark */
  --color-charcoal: #1B1815;     /* elevated dark surface (cards on black) */
  --color-charcoal-2: #262119;   /* hover/gradient end on dark surfaces */
  --color-cream: #FAF8F3;        /* page background (light sections) */
  --color-cream-alt: #F1ECE1;    /* alternating light section background */
  --color-surface: #FFFFFF;      /* cards / raised surfaces on light bg */
  --color-border: #E4DCC8;       /* hairline border on light */
  --color-border-dark: rgba(250, 248, 243, 0.14); /* hairline border on dark */

  --color-ink: #17140F;          /* primary text on light */
  --color-ink-soft: #6B6459;     /* secondary text on light — 4.5:1+ on cream */
  --color-on-black: #FAF8F3;     /* primary text on black */
  --color-on-black-soft: rgba(250, 248, 243, 0.68); /* secondary text on black */

  /* ---- Color: brand (brass/gold) ---- */
  --color-gold: #B8935A;         /* primary accent — logo, CTA, dividers */
  --color-gold-light: #D9BD8C;   /* highlight / gradient end / hover on dark */
  --color-gold-dark: #8F6D3E;    /* pressed state / text-on-cream emphasis */
  --color-on-gold: #17140F;      /* text on solid gold fills */

  /* aliases kept for internal continuity with existing components */
  --color-primary: var(--color-black);
  --color-primary-2: var(--color-charcoal-2);
  --color-on-primary: var(--color-on-black);
  --color-bg: var(--color-cream);
  --color-bg-alt: var(--color-cream-alt);
  --color-accent: var(--color-gold);
  --color-accent-hover: var(--color-gold-dark);
  --color-accent-2: var(--color-gold-light);
  --color-on-accent: var(--color-on-gold);

  /* ---- Color: semantic ---- */
  --color-success: #3F6B4A;
  --color-success-bg: #EDF2EC;
  --color-destructive: #A23B2E;
  --color-ring: var(--color-gold);

  /* ---- Typography ----
     Display/UI: Jost — geometric humanist sans, echoes the logotype's
     evenly-spaced architectural caps. Used uppercase + tracked out.
     Body: Inter — neutral, highly legible workhorse for paragraphs/forms. */
  --font-display: 'Jost', 'Century Gothic', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Logo lettering only (nav/footer brand lockup) — kept distinct from the
     site-wide display/body faces per the official logo's own type choices. */
  --font-logo-name: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-logo-sub: 'Poppins', 'Inter', sans-serif;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1.0625rem; /* 17px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 2.5rem;     /* 40px */
  --fs-4xl: 3.25rem;    /* 52px */
  --fs-5xl: 4.25rem;    /* 68px */

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.7;

  --tracking-wide: 0.02em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.16em;

  /* ---- Spacing (8pt rhythm, generous for a luxury feel) ---- */
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
  --space-8: 7rem;
  --space-9: 9rem;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  /* ---- Elevation (soft, low-contrast — luxury restraint, not heavy drop shadows) ---- */
  --shadow-sm: 0 1px 2px rgba(11, 10, 8, 0.05), 0 1px 3px rgba(11, 10, 8, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 10, 8, 0.08), 0 2px 6px rgba(11, 10, 8, 0.05);
  --shadow-lg: 0 24px 56px rgba(11, 10, 8, 0.16), 0 6px 16px rgba(11, 10, 8, 0.08);
  --shadow-accent: 0 10px 28px rgba(184, 147, 90, 0.30);

  /* ---- Motion (slower, calmer — restraint over energy) ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
  --dur-reveal: 850ms;

  --z-nav: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

@media (min-width: 768px) {
  :root {
    --fs-3xl: 3rem;
    --fs-4xl: 4rem;
    --fs-5xl: 5.75rem;
  }
}

/* Section padding scales down on mobile — --space-8/9 are tuned for spacious
   desktop hero/section breathing room, but read as dead space above the fold
   on a narrow phone screen where every scroll counts. */
@media (max-width: 640px) {
  :root {
    --space-8: 3.5rem;
    --space-9: 4.5rem;
  }
}

/* ---- base.css ---- */
/* ============================================================
   BASE / RESET
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Icons placed inside flowing text (trust lines, disclaimers) sit inline and
   scale to the text instead of breaking onto their own line. */
p svg { display: inline-block; vertical-align: -0.15em; width: 1.1em; height: 1.1em; margin-right: 2px; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

.eyebrow, .display, .stat-number {
  font-family: var(--font-display);
  font-weight: 500;
}

.display {
  font-size: var(--fs-5xl);
  line-height: 0.98;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--color-accent); color: var(--color-on-accent); }

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: var(--z-toast);
  transition: top var(--dur-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-8); }
.section-sm { padding-block: var(--space-6); }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-2));
  color: var(--color-on-primary);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-ink-soft); }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: var(--space-5); }
/* min(Xpx, 100%) floor prevents the column from overflowing a container
   narrower than the track's min — otherwise the fixed min wins and the grid
   spills past its parent (e.g. form fields inside a padded card on mobile). */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

/* Two-column "image + text" split sections (hero, About, Contact, service/town
   detail pages). Set the ratio per-use via the --split-cols custom property;
   the actual grid-template-columns lives here so the mobile breakpoint can
   collapse it to a single stacked column — an inline grid-template-columns
   value can't be overridden this way since inline styles win over stylesheet
   rules of equal or lower specificity. */
.split-grid {
  display: grid;
  grid-template-columns: var(--split-cols, 1fr 1fr);
  gap: var(--space-7);
}
.split-grid.split-grid-center { align-items: center; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: 1fr; }
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.section-head.centered { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold-dark);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--color-gold);
}
.section-dark .eyebrow, .eyebrow-light { color: var(--color-gold-light); }

@media (max-width: 640px) {
  .display { font-size: var(--fs-3xl); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
}

/* ---- components.css ---- */
/* ============================================================
   COMPONENTS — modern minimalist luxury (black / brass / cream)
   ============================================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--color-gold);
  color: var(--color-on-gold);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { background: var(--color-gold-light); box-shadow: 0 14px 32px rgba(184, 147, 90, 0.4); transform: translateY(-2px); }

.btn-primary {
  background: var(--color-black);
  color: var(--color-on-black);
  border-color: var(--color-black);
}
.btn-primary:hover { background: var(--color-charcoal); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: var(--color-cream); border-color: var(--color-ink); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(250, 248, 243, 0.4);
  color: var(--color-on-black);
}
.btn-outline-light:hover { background: rgba(250, 248, 243, 0.08); border-color: var(--color-gold-light); color: var(--color-gold-light); }

.btn-block { width: 100%; }
.btn-lg { padding: 1.15rem 2.5rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.65rem 1.4rem; font-size: var(--fs-xs); min-height: 38px; }

.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  /* Cards are always a light surface — pin the text color so a card placed on
     a dark section doesn't inherit the section's light text and vanish. */
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

/* On small screens the testimonial carousel stretches every card to the
   tallest one, so a single long review made all cards huge. Clamp the quote
   to keep cards a comfortable, uniform height on phones/tablets. */
@media (max-width: 860px) {
  .testimonial-quote {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.icon-tile {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--color-gold);
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile-dark { background: rgba(250,248,243,0.08); color: var(--color-gold-light); }

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  background: var(--color-cream-alt);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.badge-accent { background: rgba(184, 147, 90, 0.1); color: var(--color-gold-dark); border-color: rgba(184,147,90,0.3); }
.badge-light { background: rgba(250,248,243,0.08); color: var(--color-gold-light); border-color: rgba(250,248,243,0.2); }

/* ---- Site header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-4);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .brand-word { font-family: var(--font-logo-name); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; color: var(--color-ink); white-space: nowrap; }
.brand .brand-sub { display: block; font-family: var(--font-logo-sub); font-weight: 400; font-size: 0.5rem; letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--color-gold-dark); margin-top: 4px; white-space: nowrap; }
.brand svg { height: 34px; width: auto; flex-shrink: 0; }

.nav-links { display: none; align-items: center; gap: var(--space-4); white-space: nowrap; }
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  position: relative;
  padding: 6px 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--color-gold);
  transition: width var(--dur-base) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-gold-dark); }

.nav-cta { display: none; align-items: center; gap: var(--space-3); }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; color: var(--color-gold); }

.nav-toggle {
  display: flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none;
  color: var(--color-ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  color: var(--color-on-black);
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--container-pad) var(--space-6);
  /* overflow-y keeps tall menu content inside the box (otherwise it pokes
     out below the translated-away menu, covering the header and stealing
     taps from the hamburger on short viewports); visibility fully removes
     it from hit-testing when closed, delayed so the slide-up still animates. */
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-in-out),
              visibility 0s linear var(--dur-slow);
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.mobile-menu nav { display: flex; flex-direction: column; gap: var(--space-1); flex: 1; }
.mobile-menu nav a { font-family: var(--font-display); font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: var(--tracking-wide); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border-dark); }
.mobile-menu-footer { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); }

@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Footer ---- */
.site-footer { background: var(--color-black); color: var(--color-on-black); }
.footer-top { padding-block: var(--space-8); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-col h3 { font-family: var(--font-display); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-bottom: var(--space-3); color: var(--color-gold-light); }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; }
/* Padding gives footer links a comfortable tap target on mobile (≥24px)
   instead of the bare ~19px text line. */
.footer-col a, .footer-col p { color: rgba(250,248,243,0.65); font-size: var(--fs-sm); }
.footer-col ul a { display: inline-block; padding-block: 4px; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-block: var(--space-4);
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(250,248,243,0.45);
}
.social-row { display: flex; gap: var(--space-2); }
.social-row a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border-dark);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.social-row a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-on-gold); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-4); }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--color-ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--color-surface);
  box-sizing: border-box;
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
/* Single-line controls share one exact height (padding handled by the fixed
   height + centering) so <input> and <select> never render at different sizes. */
.field input, .field select { height: 52px; padding-block: 0; line-height: normal; }
.field textarea { min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 147, 90, 0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-destructive); }
.field .error-msg { color: var(--color-destructive); font-size: var(--fs-xs); font-weight: 600; display: none; }
.field.has-error .error-msg { display: block; }
.required-mark { color: var(--color-gold-dark); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); }
.choice-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  background: var(--color-surface);
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--color-gold-light); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card svg { width: 30px; height: 30px; margin: 0 auto var(--space-2); color: var(--color-ink-soft); transition: color var(--dur-fast); }
.choice-card span { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.choice-card:has(input:checked) { border-color: var(--color-gold); background: rgba(184,147,90,0.06); }
.choice-card:has(input:checked) svg { color: var(--color-gold); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--color-ring); outline-offset: 2px; }

/* ---- Table for pricing-style content ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: var(--space-3) var(--space-4); font-size: var(--fs-sm); }
thead th { background: var(--color-cream-alt); font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 500; }
tbody tr { border-top: 1px solid var(--color-border); }
tbody tr:hover { background: var(--color-cream-alt); }

/* ---- Misc ---- */
.divider { height: 1px; background: var(--color-border); border: none; margin-block: var(--space-6); }
.rating-stars { display: inline-flex; gap: 2px; color: var(--color-gold); }
.rating-stars svg { width: 18px; height: 18px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--color-ink-soft); margin-bottom: var(--space-4); }
.breadcrumbs a:hover { color: var(--color-gold-dark); }
.breadcrumbs .sep { opacity: 0.5; }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(11,10,8,0.08);
  padding: var(--space-2) var(--container-pad);
  display: flex;
  gap: var(--space-2);
  padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
}
.sticky-cta .btn { flex: 1; padding-inline: var(--space-2); font-size: var(--fs-xs); gap: 6px; }
.sticky-cta .btn svg { width: 18px; height: 18px; }
@media (min-width: 960px) { .sticky-cta { display: none; } }
@media (max-width: 959px) {
  body { padding-bottom: calc(44px + var(--space-2) * 2 + 1px + env(safe-area-inset-bottom)); }
}

/* ---- animations.css ---- */
/* ============================================================
   ANIMATION — scroll reveal, hero motion, micro-interactions
   All use transform/opacity only. Disabled under reduced-motion
   (see base.css global rule).
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal="scale"] { transform: translateY(0) scale(0.94); }
[data-reveal="scale"].is-visible { transform: translateY(0) scale(1); }

[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].is-visible { transform: translateX(0); }

[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: 300ms; }
[data-reveal-group].is-visible > *:nth-child(7) { transition-delay: 360ms; }
[data-reveal-group].is-visible > *:nth-child(8) { transition-delay: 420ms; }

/* Hero entrance (runs on load, not scroll) */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in var(--dur-slow) var(--ease-out) forwards;
}
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
.hero-anim[data-delay="1"] { animation-delay: 90ms; }
.hero-anim[data-delay="2"] { animation-delay: 180ms; }
.hero-anim[data-delay="3"] { animation-delay: 270ms; }
.hero-anim[data-delay="4"] { animation-delay: 360ms; }

/* Floating accent shapes */
.float-shape { animation: float 6s var(--ease-in-out) infinite; }
.float-shape[data-speed="slow"] { animation-duration: 9s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(3deg); }
}

/* Count-up number ticker target */
[data-count] { font-variant-numeric: tabular-nums; }

/* Marquee (trust strip / town ticker) */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-6);
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Image hover zoom */
.media-zoom { overflow: hidden; border-radius: var(--radius-lg); }
.media-zoom img { transition: transform var(--dur-slow) var(--ease-out); }
.media-zoom:hover img { transform: scale(1.06); }

/* Accordion (FAQ) */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  background: none; border: none; text-align: left;
  font-weight: 700; font-size: var(--fs-lg);
}
.accordion-trigger svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); color: var(--color-accent); }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(45deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.accordion-panel > div { overflow: hidden; }
.accordion-panel.is-open { grid-template-rows: 1fr; }
.accordion-panel p { padding-bottom: var(--space-4); color: var(--color-ink-soft); max-width: 65ch; }

/* Tabs / filter pills */
.filter-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-pill {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--dur-fast) var(--ease-out);
}
.filter-pill:hover { border-color: var(--color-accent-2); }
.filter-pill[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }

/* Testimonial carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 min(380px, 86vw); }
.carousel-controls { display: flex; gap: var(--space-3); margin-top: var(--space-4); justify-content: center; align-items: center; }
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.carousel-btn:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
.carousel-btn svg { width: 20px; height: 20px; }

/* Position dots — swipe/auto-advance indicator (24px tap area, 8px visual dot) */
.carousel-dots { display: flex; gap: 4px; align-items: center; }
.carousel-dot {
  width: 24px; height: 24px; padding: 0; border: none; background: transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.carousel-dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(23, 20, 15, 0.22);
  transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), border-radius var(--dur-base) var(--ease-out);
}
.carousel-dot[aria-current="true"]::before { width: 22px; border-radius: 5px; background: var(--color-accent); }

/* On phones the swipe + dots are enough; hide the arrow buttons so they don't
   collide with the sticky bottom CTA. */
@media (max-width: 640px) {
  .carousel-controls .carousel-btn { display: none; }
}
