/* =========================================
   HANDYMANPRO.AI — DESIGN SYSTEM
   Brand: Teal | White | Black | Orange
   Built by LLMAdvisor.ai | Powered by HighSignal
   ========================================= */

/* ── Theme Transition (smooth day/night switch) ── */
*, *::before, *::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: ease;
}
/* Exempt elements where transition looks bad */
.nav-mobile-toggle span,
[class*="reveal"],
.progress-bar-fill,
.accordion-content {
  transition: unset;
}

/* ── CSS Custom Properties ── */
:root {
  --teal-50:  #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;

  --black-900: #0f172a;
  --black-800: #1e293b;
  --black-700: #334155;
  --black-600: #475569;
  --black-400: #94a3b8;
  --black-200: #e2e8f0;
  --black-100: #f1f5f9;
  --black-50:  #f8fafc;

  --white: #ffffff;

  /* Semantic tokens */
  --color-primary:   var(--teal-500);
  --color-primary-dk: var(--teal-700);
  --color-accent:    var(--orange-500);
  --color-bg:        var(--black-50);
  --color-surface:   var(--white);
  --color-border:    var(--black-200);
  --color-text:      var(--black-900);
  --color-text-muted: var(--black-600);
  --color-text-light: var(--black-400);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Inter', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 10px rgba(0,0,0,.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15), 0 8px 20px rgba(0,0,0,.10);
  --shadow-teal: 0 8px 30px rgba(20,184,166,.25);
  --shadow-orange: 0 8px 30px rgba(249,115,22,.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);
}

/* ── Seasonal Themes ── */
[data-season="spring"] {
  --season-primary: #4ade80;
  --season-secondary: #bbf7d0;
  --season-accent: #86efac;
  --season-emoji: "🌱";
}
[data-season="summer"] {
  --season-primary: #fbbf24;
  --season-secondary: #fef3c7;
  --season-accent: #fcd34d;
  --season-emoji: "☀️";
}
[data-season="fall"] {
  --season-primary: #f97316;
  --season-secondary: #ffedd5;
  --season-accent: #fb923c;
  --season-emoji: "🍂";
}
[data-season="winter"] {
  --season-primary: #60a5fa;
  --season-secondary: #dbeafe;
  --season-accent: #93c5fd;
  --season-emoji: "❄️";
}

/* ═══════════════════════════════════════════
   DARK MODE THEME
   Applied via:
     - OS preference  → @media (prefers-color-scheme: dark)
     - Manual toggle  → [data-theme="dark"] on <html>
   Force light       → [data-theme="light"] overrides OS dark
   ═══════════════════════════════════════════ */

/* Shared dark token values — applied by both the media query and the attribute */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg:         #0d1424;
    --color-surface:    #1a2540;
    --color-border:     #2d3f5e;
    --color-text:       #e8edf5;
    --color-text-muted: #8fa3c0;
    --color-text-light: #5e7a9e;
    --black-50:   #1a2540;
    --black-100:  #1e2d48;
    --black-200:  #2d3f5e;
    --black-400:  #6b8aaf;
    --black-600:  #8fa3c0;
    --black-700:  #c0d0e8;
    --black-900:  #e8edf5;
    --teal-50:    rgba(20,184,166,.1);
    --teal-100:   rgba(20,184,166,.18);
    --shadow-sm:  0 1px 3px rgba(0,0,0,.5);
    --shadow-md:  0 4px 12px rgba(0,0,0,.6);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.65);
  }
}

[data-theme="dark"] {
  --color-bg:         #0d1424;
  --color-surface:    #1a2540;
  --color-border:     #2d3f5e;
  --color-text:       #e8edf5;
  --color-text-muted: #8fa3c0;
  --color-text-light: #5e7a9e;
  --black-50:   #1a2540;
  --black-100:  #1e2d48;
  --black-200:  #2d3f5e;
  --black-400:  #6b8aaf;
  --black-600:  #8fa3c0;
  --black-700:  #c0d0e8;
  --black-900:  #e8edf5;
  --teal-50:    rgba(20,184,166,.1);
  --teal-100:   rgba(20,184,166,.18);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.5);
  --shadow-md:  0 4px 12px rgba(0,0,0,.6);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.65);
}

/* Surfaces that hardcode 'white' rather than --color-surface */
[data-theme="dark"] body,
:root:not([data-theme="light"]):not([data-theme="dark"]) body {
  background: var(--color-bg);
  color: var(--color-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background: var(--color-bg);
    color: var(--color-text);
  }
}

/* Component surfaces with hardcoded white */
[data-theme="dark"] .accordion-trigger,
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .progress-tracker,
[data-theme="dark"] .filter-pill,
[data-theme="dark"] .material-item,
[data-theme="dark"] .checkbox {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .accordion-trigger,
  :root:not([data-theme="light"]) .accordion-body,
  :root:not([data-theme="light"]) .progress-tracker,
  :root:not([data-theme="light"]) .filter-pill,
  :root:not([data-theme="light"]) .material-item,
  :root:not([data-theme="light"]) .checkbox {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text);
  }
}

/* Callout boxes — keep hue, darken bg */
[data-theme="dark"] .callout-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
[data-theme="dark"] .callout-warning .callout-body h5,
[data-theme="dark"] .callout-warning .callout-body p { color: #fcd34d; }

[data-theme="dark"] .callout-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
[data-theme="dark"] .callout-danger .callout-body h5,
[data-theme="dark"] .callout-danger .callout-body p { color: #fca5a5; }

[data-theme="dark"] .callout-info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); }
[data-theme="dark"] .callout-info .callout-body h5,
[data-theme="dark"] .callout-info .callout-body p { color: #93c5fd; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
  :root:not([data-theme="light"]) .callout-warning .callout-body h5,
  :root:not([data-theme="light"]) .callout-warning .callout-body p { color: #fcd34d; }
  :root:not([data-theme="light"]) .callout-danger { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
  :root:not([data-theme="light"]) .callout-danger .callout-body h5,
  :root:not([data-theme="light"]) .callout-danger .callout-body p { color: #fca5a5; }
  :root:not([data-theme="light"]) .callout-info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); }
  :root:not([data-theme="light"]) .callout-info .callout-body h5,
  :root:not([data-theme="light"]) .callout-info .callout-body p { color: #93c5fd; }
}

/* ── Theme Toggle Button ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  font-size: 1.05rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
  padding: 0;
  line-height: 1;
  transition: background 150ms ease, transform 150ms ease !important;
}

.theme-toggle:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.12) rotate(12deg);
}

.theme-toggle:active {
  transform: scale(0.92);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography Scale ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.display-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Layout Utilities ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--sm { padding-block: clamp(2rem, 5vw, 3.5rem); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-xl); }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.text-teal { color: var(--teal-500); }
.text-orange { color: var(--orange-500); }
.text-muted { color: var(--color-text-muted); }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,23,42,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition-fast);
}

.site-nav.scrolled {
  background: rgba(15,23,42,.97);
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem; /* children set their own sizes */
  color: var(--white);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 0 2px rgba(20,184,166,.3);
}

.nav-logo .logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 0 2px rgba(20,184,166,.45),
    0 0 12px rgba(20,184,166,.25),
    0 2px 8px rgba(0,0,0,.45);
  flex-shrink: 0;
}

/* Logo wordmark — polished with bevel + glow */
.nav-logo .logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}

.nav-logo .logo-brand {
  color: #f0f9ff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.18),
    0 -1px 0 rgba(0,0,0,0.55),
    1px 0 0 rgba(255,255,255,0.07),
    0 2px 6px rgba(0,0,0,0.45),
    0 4px 16px rgba(0,0,0,0.25);
}

.nav-logo .logo-tld {
  color: var(--teal-400);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px rgba(20,184,166,0.95),
    0 0 18px rgba(20,184,166,0.55),
    0 0 32px rgba(20,184,166,0.28),
    0 1px 0 rgba(0,0,0,0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.nav-cta {
  background: var(--orange-500) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--orange-600) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-orange);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition-base);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

/* Invisible bridge fills the gap so mouse doesn't "miss" between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 20px;
  background: transparent;
  z-index: 201;
}

.nav-dropdown-menu {
  position: absolute;
  /* top: 100% + padding-top:14px replaces the old calc(100%+14px) gap.
     The menu now starts flush with the nav — no physical gap to miss. */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 8px 8px;   /* 14px top-padding = visual breathing room, zero physical gap */
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(20,184,166,.1);
  z-index: 200;
}

.nav-dropdown-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ── Dropdown section divider label ── */
.nav-dropdown-menu .dd-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: 6px 12px 4px;
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.78) !important;
  transition: background .12s, color .12s;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  color: white !important;
}

/* ── Per-section icon colors ── */

/* Interior — teal */
.nav-dropdown-menu.dd-interior a:hover {
  background: rgba(20,184,166,.18);
}
.nav-dropdown-menu.dd-interior .dd-icon {
  background: rgba(20,184,166,.2);
  color: #5eead4;
}
.nav-dropdown-menu.dd-interior a:hover .dd-icon {
  background: rgba(20,184,166,.35);
}

/* Exterior — green */
.nav-dropdown-menu.dd-exterior a:hover {
  background: rgba(34,197,94,.14);
}
.nav-dropdown-menu.dd-exterior .dd-icon {
  background: rgba(34,197,94,.18);
  color: #86efac;
}
.nav-dropdown-menu.dd-exterior a:hover .dd-icon {
  background: rgba(34,197,94,.32);
}

/* "View all" row — always slightly highlighted */
.nav-dropdown-menu a.dd-all {
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 10px;
  color: rgba(255,255,255,.5) !important;
  font-size: .8rem;
}
.nav-dropdown-menu a.dd-all:hover {
  color: white !important;
}

.nav-dropdown-menu a .dd-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background .12s;
}

/* ── Season Banner ── */
.season-banner {
  margin-top: 68px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  padding: 12px var(--space-xl);
  text-align: center;
  font-size: 0.875rem;
  color: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.season-banner .season-badge {
  background: rgba(255,255,255,.15);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.season-banner a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(15,23,42,0.88) 0%, rgba(30,41,59,0.85) 50%, rgba(13,52,54,0.88) 100%),
    url('../../static/handmanlogo.png') center/cover no-repeat;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4xl);
  padding-block: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(20,184,166,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(20,184,166,.12);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  color: var(--teal-400);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.hero-title {
  color: white;
  margin-bottom: var(--space-xl);
}

.hero-title .accent { color: var(--teal-400); }
.hero-title .accent-orange { color: var(--orange-400); }

.hero-desc {
  color: rgba(255,255,255,.65);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
}

.hero-stat { display: flex; flex-direction: column; }
.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.hero-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}
.hero-stat .stat-num span { color: var(--teal-400); }

/* ── Interactive House SVG ── */
.hero-house {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.house-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
}

.house-svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.14)) drop-shadow(0 1px 4px rgba(0,0,0,0.08));
}

/* Floor plan room/zone hover transition */
.fp-room,
.fp-ext-zone {
  cursor: pointer;
  transition: opacity 0.12s ease;
}
.fp-room:focus-visible,
.fp-ext-zone:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hotspot tooltips */
.house-hotspot {
  cursor: pointer;
  transition: var(--transition-base);
}

.house-hotspot:hover .hotspot-fill {
  opacity: 0.12 !important;
}

.house-hotspot:hover {
  filter: drop-shadow(0 0 8px rgba(45,212,191,0.6));
}

.house-hotspot .hotspot-fill {
  opacity: 0;
  transition: var(--transition-base);
}

.house-hotspot:hover .hotspot-label {
  opacity: 1;
  transform: translateY(-4px);
}

.house-tooltip {
  position: absolute;
  background: var(--black-900);
  border: 1px solid rgba(20,184,166,.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-base);
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.house-tooltip::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--black-900);
  border-right: 1px solid rgba(20,184,166,.3);
  border-bottom: 1px solid rgba(20,184,166,.3);
  transform: translateX(-50%) rotate(45deg);
}

/* Zone badges — replaced by SVG annotations */
.house-zone-badge { display: none !important; }

/* Blueprint annotation pulse dot animation */
@keyframes bp-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.5); }
}

.bp-annotation { cursor: pointer; }
.bp-annotation .ann-pulse {
  animation: bp-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.bp-annotation:nth-child(2) .ann-pulse { animation-delay: 0.5s; }
.bp-annotation:nth-child(3) .ann-pulse { animation-delay: 1.0s; }
.bp-annotation:nth-child(4) .ann-pulse { animation-delay: 1.5s; }
.bp-annotation:nth-child(5) .ann-pulse { animation-delay: 2.0s; }

/* ── Section Headers ── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--teal-700);
  border-radius: 2px;
}

.section-title { color: var(--color-text); }
.section-title .accent { color: var(--teal-500); }
.section-title .accent-orange { color: var(--orange-500); }
.section-desc { color: var(--color-text-muted); margin-top: var(--space-md); max-width: 600px; margin-inline: auto; }

/* ── Bucket Navigation ── */
.bucket-nav {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 68px;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.bucket-tabs {
  display: flex;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.bucket-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.bucket-tab:hover { color: var(--teal-600); background: var(--teal-50); }

.bucket-tab.active {
  color: var(--teal-600);
  border-bottom-color: var(--teal-500);
  background: var(--teal-50);
}

.bucket-tab .tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.bucket-tab:nth-child(2) .tab-icon { background: rgba(249,115,22,.1); }
.bucket-tab.active .tab-icon { background: rgba(20,184,166,.15); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal-500);
  color: white;
  border-color: var(--teal-500);
}
.btn-primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-accent {
  background: var(--orange-500);
  color: white;
  border-color: var(--orange-500);
}
.btn-accent:hover {
  background: var(--orange-600);
  border-color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-600);
  border-color: var(--teal-200);
}
.btn-ghost:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
}

/* Semi-transparent white outline — for use on dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.25);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.10);
  color: white;
  border-color: rgba(255,255,255,.55);
}

/* Utility card base + hover */
.card-base {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  color: var(--color-text);
}
.card-hover:hover {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }

.btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-easy { background: #dcfce7; color: #166534; }
.badge-medium { background: #fef3c7; color: #92400e; }
.badge-hard { background: #fee2e2; color: #991b1b; }
.badge-pro { background: #ede9fe; color: #4c1d95; }
.badge-teal { background: var(--teal-100); color: var(--teal-700); }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ── Cards ── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-200);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--black-100);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black-100);
  overflow: hidden;
  position: relative;
}

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
}

.card-body {
  padding: var(--space-lg);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  line-height: 1.3;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: var(--black-50);
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.card-stat svg, .card-stat span:first-child { color: var(--teal-500); font-size: 0.9rem; }

/* Zone Cards */
.zone-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-slow);
}

.zone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  z-index: 1;
  transition: var(--transition-base);
}

.zone-card:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 70%, rgba(20,184,166,.1) 100%);
}

.zone-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.zone-card-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease-out);
}

.zone-card:hover .zone-card-bg { transform: scale(1.05); }

.zone-card-bg-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.zone-card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
}

.zone-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
}

.zone-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.zone-card-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.zone-card-count {
  font-size: 0.8rem;
  color: var(--teal-300);
  font-weight: 600;
}

/* ── Step Guide Component ── */
.step-guide {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.step-item:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.step-num::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--teal-500);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
}

.step-content h4 { margin-bottom: 6px; color: var(--color-text); }
.step-content p { font-size: 0.9rem; color: var(--color-text-muted); }

.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--teal-700);
}

.step-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: #9a3412;
}

/* ── Tool Calculator ── */
.calculator-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--black-50);
  transition: var(--transition-fast);
  outline: none;
}

.calc-input:focus {
  border-color: var(--teal-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}

.calc-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--black-50);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  transition: var(--transition-fast);
  outline: none;
}

.calc-select:focus {
  border-color: var(--teal-500);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(20,184,166,.1);
}

.calc-result {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: white;
  text-align: center;
}

.calc-result-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.calc-result-label {
  font-size: 0.9rem;
  opacity: .75;
  margin-top: 6px;
}

/* ── Seasonal Section ── */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.season-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  border: 2px solid transparent;
  position: relative;
}

.season-card:hover { transform: translateY(-5px); }

.season-card.spring { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.season-card.summer { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fcd34d; }
.season-card.fall   { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fdba74; }
.season-card.winter { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }

.season-card.active-season::after {
  content: 'NOW';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange-500);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.season-card-inner { padding: var(--space-xl); }

.season-emoji {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.season-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.season-card.spring h3 { color: #166534; }
.season-card.summer h3 { color: #92400e; }
.season-card.fall h3   { color: #9a3412; }
.season-card.winter h3 { color: #1e3a8a; }

.season-task-list { margin-top: var(--space-md); }

.season-task {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
  color: var(--black-700);
}

.season-task:last-child { border-bottom: none; }

.season-task::before {
  content: '✓';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 1px;
}

.season-card.spring .season-task::before { background: #bbf7d0; color: #166534; }
.season-card.summer .season-task::before { background: #fde68a; color: #92400e; }
.season-card.fall   .season-task::before { background: #fed7aa; color: #9a3412; }
.season-card.winter .season-task::before { background: #bfdbfe; color: #1e3a8a; }

/* ── Quick Tools Hub ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: var(--teal-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  transition: var(--transition-base);
}

.tool-card:hover .tool-card-icon {
  background: var(--teal-500);
  border-color: var(--teal-500);
  transform: scale(1.1) rotate(-5deg);
}

.tool-card h4 { font-size: 1rem; margin-bottom: 6px; }
.tool-card p { font-size: 0.85rem; color: var(--color-text-muted); flex: 1; line-height: 1.5; }

.tool-card-arrow {
  align-self: flex-end;
  margin-top: var(--space-md);
  color: var(--teal-500);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.tool-card:hover .tool-card-arrow { transform: translateX(4px); }

/* ── Emergency Guide Banner ── */
.emergency-banner {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  overflow: hidden;
  position: relative;
}

.emergency-banner::before {
  content: '🚨';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.08;
}

.emergency-content { position: relative; z-index: 1; }
.emergency-content h3 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.emergency-content p { color: rgba(255,255,255,.7); font-size: 0.95rem; }

.emergency-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.emergency-link {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.emergency-link:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

/* ── Network Family Bar ── */
.network-bar {
  background: var(--black-900);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.network-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.network-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.network-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.network-link {
  color: rgba(255,255,255,.55);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.network-link:hover { color: var(--teal-400); }

.network-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

/* ── Footer ── */
.site-footer {
  background: var(--black-900);
  color: rgba(255,255,255,.7);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  color: rgba(255,255,255,.5);
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-lg);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  color: rgba(255,255,255,.55);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-col ul a:hover { color: var(--teal-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: rgba(255,255,255,.3);
}

.footer-powered a { color: var(--teal-400); transition: var(--transition-fast); }
.footer-powered a:hover { color: var(--teal-300); }

.footer-sponsors {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-sponsors-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-sponsors-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-sponsors-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .15s ease;
  padding: 0 var(--space-md);
}

.footer-sponsors-links a + a {
  border-left: 1px solid rgba(255,255,255,.12);
}

.footer-sponsors-links a:hover { color: rgba(255,255,255,.7); }

/* ── Dark background sections ── */
.bg-dark {
  background: var(--black-900);
  color: white;
}

.bg-dark .section-title { color: white; }
.bg-dark .section-desc { color: rgba(255,255,255,.6); }

.bg-teal-gradient {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: white;
}

.bg-warm {
  background: linear-gradient(160deg, #fff7ed, #ffedd5);
}

.bg-cool {
  background: linear-gradient(160deg, var(--teal-50), #e0f2fe);
}

/* ── Progress/Difficulty Indicators ── */
.difficulty-bar {
  display: flex;
  gap: 4px;
}

.diff-pip {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: var(--black-200);
  transition: var(--transition-base);
}

.diff-pip.filled { background: var(--teal-500); }
.difficulty-bar.medium .diff-pip.filled { background: var(--orange-400); }
.difficulty-bar.hard .diff-pip.filled { background: #ef4444; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.breadcrumb a { color: var(--teal-700); }
.breadcrumb span { color: var(--black-400); }

/* ── Video/Visual Placeholder ── */
.visual-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black-800);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  color: rgba(255,255,255,.4);
  position: relative;
  overflow: hidden;
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,184,166,.05), rgba(249,115,22,.05));
}

.play-btn {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.play-btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  transform: scale(1.1);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-2xl); padding-block: var(--space-3xl); }
  .hero-house { order: -1; }
  .house-wrapper { max-width: 420px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .seasons-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(15,23,42,.98);
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 4px;
    z-index: 99;
  }

  .nav-links.open a { padding: 12px 16px; }

  /* Mobile dropdown: items expand inline */
  .nav-links.open .nav-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.open .nav-dropdown > .nav-links-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
  }

  .nav-links.open .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    background: rgba(255,255,255,.06);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: none;
    padding: 0 4px;
    transition: opacity 200ms ease, max-height 250ms ease, padding 200ms ease;
    min-width: unset;
  }

  .nav-links.open .nav-dropdown-menu.is-open {
    opacity: 1;
    max-height: 400px;
    pointer-events: all;
    padding: 4px;
    margin-bottom: 4px;
  }

  .nav-links.open .nav-dropdown-menu a {
    padding: 10px 12px;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .bucket-tabs { flex-direction: column; }

  .seasons-grid { grid-template-columns: 1fr 1fr; }

  .emergency-banner { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-stats { gap: var(--space-xl); }
}

@media (max-width: 480px) {
  .seasons-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .network-links { gap: var(--space-md); }
}

/* ═══════════════════════════════════════════
   CONTRAST CORRECTIONS — ALL DARK MODE FIXES
   ═══════════════════════════════════════════ */

/* ── A. Lock always-dark sections to true dark.
        --black-900 remaps to #e8edf5 (near-white) in the inverted
        dark-mode scale, making .bg-dark, the footer, and the
        network bar turn light-colored with white text = invisible.  ── */
[data-theme="dark"] .bg-dark,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .network-bar { background-color: #060d1a; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bg-dark,
  :root:not([data-theme="light"]) .site-footer,
  :root:not([data-theme="light"]) .network-bar { background-color: #060d1a; }
}

/* ── B. Section eyebrow dark-mode: teal-700 (#0f766e) is used for
        light-mode legibility, but it's too dark on dark backgrounds.
        Flip to teal-400 (#2dd4bf) in dark mode for good contrast.  ── */
[data-theme="dark"] .section-eyebrow { color: var(--teal-400); }
[data-theme="dark"] .section-eyebrow::before,
[data-theme="dark"] .section-eyebrow::after { background-color: var(--teal-400); }
[data-theme="dark"] .breadcrumb a { color: var(--teal-400); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-eyebrow { color: var(--teal-400); }
  :root:not([data-theme="light"]) .section-eyebrow::before,
  :root:not([data-theme="light"]) .section-eyebrow::after { background-color: var(--teal-400); }
  :root:not([data-theme="light"]) .breadcrumb a { color: var(--teal-400); }
}

/* ── C. White-background components without dark overrides yet ── */
[data-theme="dark"] .bucket-nav,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .search-bar,
[data-theme="dark"] .modal,
[data-theme="dark"] .icon-item,
[data-theme="dark"] .calculator-card,
[data-theme="dark"] .tool-card,
[data-theme="dark"] .card-base { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer { border-color: var(--color-border); }
[data-theme="dark"] .modal-close { background: var(--color-border); color: var(--color-text); }
[data-theme="dark"] .modal-close:hover { background: var(--black-400); }

[data-theme="dark"] .calc-input,
[data-theme="dark"] .calc-select { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
[data-theme="dark"] .calc-input:focus,
[data-theme="dark"] .calc-select:focus { background: var(--color-surface); }

[data-theme="dark"] .search-input { color: var(--color-text); }
[data-theme="dark"] .search-input::placeholder { color: var(--color-text-muted); }
[data-theme="dark"] .search-icon { color: var(--color-text-muted); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bucket-nav,
  :root:not([data-theme="light"]) .stat-card,
  :root:not([data-theme="light"]) .search-bar,
  :root:not([data-theme="light"]) .modal,
  :root:not([data-theme="light"]) .icon-item,
  :root:not([data-theme="light"]) .calculator-card,
  :root:not([data-theme="light"]) .tool-card,
  :root:not([data-theme="light"]) .card-base { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
  :root:not([data-theme="light"]) .modal-header,
  :root:not([data-theme="light"]) .modal-footer { border-color: var(--color-border); }
  :root:not([data-theme="light"]) .modal-close { background: var(--color-border); color: var(--color-text); }
  :root:not([data-theme="light"]) .calc-input,
  :root:not([data-theme="light"]) .calc-select { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
  :root:not([data-theme="light"]) .calc-input:focus,
  :root:not([data-theme="light"]) .calc-select:focus { background: var(--color-surface); }
  :root:not([data-theme="light"]) .search-input { color: var(--color-text); }
  :root:not([data-theme="light"]) .search-input::placeholder { color: var(--color-text-muted); }
}

/* ── D. callout-tip dark override (warning/danger/info already done above) ── */
[data-theme="dark"] .callout-tip { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.25); }
[data-theme="dark"] .callout-tip .callout-body h5,
[data-theme="dark"] .callout-tip .callout-body p { color: #5eead4; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .callout-tip { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.25); }
  :root:not([data-theme="light"]) .callout-tip .callout-body h5,
  :root:not([data-theme="light"]) .callout-tip .callout-body p { color: #5eead4; }
}

/* ── E. Pros / Cons dark variants ── */
[data-theme="dark"] .pros { background: rgba(22,101,52,.2); border-color: rgba(22,101,52,.4); }
[data-theme="dark"] .cons { background: rgba(159,18,57,.2);  border-color: rgba(159,18,57,.4); }
[data-theme="dark"] .pros-header { color: #86efac; }
[data-theme="dark"] .cons-header { color: #fca5a5; }
[data-theme="dark"] .pros ul li,
[data-theme="dark"] .cons ul li { color: var(--color-text); border-bottom-color: rgba(255,255,255,.06); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pros { background: rgba(22,101,52,.2); border-color: rgba(22,101,52,.4); }
  :root:not([data-theme="light"]) .cons { background: rgba(159,18,57,.2);  border-color: rgba(159,18,57,.4); }
  :root:not([data-theme="light"]) .pros-header { color: #86efac; }
  :root:not([data-theme="light"]) .cons-header { color: #fca5a5; }
  :root:not([data-theme="light"]) .pros ul li,
  :root:not([data-theme="light"]) .cons ul li { color: var(--color-text); border-bottom-color: rgba(255,255,255,.06); }
}

/* ── F. Badge dark variants ── */
[data-theme="dark"] .badge-easy   { background: rgba(22,163,74,.2);  color: #86efac; }
[data-theme="dark"] .badge-medium { background: rgba(217,119,6,.2);   color: #fcd34d; }
[data-theme="dark"] .badge-hard   { background: rgba(220,38,38,.2);   color: #fca5a5; }
[data-theme="dark"] .badge-pro    { background: rgba(109,40,217,.2);  color: #c4b5fd; }
[data-theme="dark"] .badge-teal   { background: rgba(20,184,166,.2);  color: #5eead4; }
[data-theme="dark"] .badge-orange { background: rgba(234,88,12,.2);   color: #fdba74; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-easy   { background: rgba(22,163,74,.2);  color: #86efac; }
  :root:not([data-theme="light"]) .badge-medium { background: rgba(217,119,6,.2);   color: #fcd34d; }
  :root:not([data-theme="light"]) .badge-hard   { background: rgba(220,38,38,.2);   color: #fca5a5; }
  :root:not([data-theme="light"]) .badge-pro    { background: rgba(109,40,217,.2);  color: #c4b5fd; }
  :root:not([data-theme="light"]) .badge-teal   { background: rgba(20,184,166,.2);  color: #5eead4; }
  :root:not([data-theme="light"]) .badge-orange { background: rgba(234,88,12,.2);   color: #fdba74; }
}

/* ── G. Season card dark variants ── */
[data-theme="dark"] .season-card.spring { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.07)); border-color: rgba(16,185,129,.35); }
[data-theme="dark"] .season-card.summer { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.07)); border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .season-card.fall   { background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(249,115,22,.07)); border-color: rgba(249,115,22,.35); }
[data-theme="dark"] .season-card.winter { background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.07));  border-color: rgba(59,130,246,.35); }
[data-theme="dark"] .season-card h3 { color: var(--color-text) !important; }
[data-theme="dark"] .season-task { color: var(--color-text-muted); border-bottom-color: rgba(255,255,255,.06); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .season-card.spring { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(16,185,129,.07)); border-color: rgba(16,185,129,.35); }
  :root:not([data-theme="light"]) .season-card.summer { background: linear-gradient(135deg, rgba(245,158,11,.12), rgba(245,158,11,.07)); border-color: rgba(245,158,11,.35); }
  :root:not([data-theme="light"]) .season-card.fall   { background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(249,115,22,.07)); border-color: rgba(249,115,22,.35); }
  :root:not([data-theme="light"]) .season-card.winter { background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(59,130,246,.07));  border-color: rgba(59,130,246,.35); }
  :root:not([data-theme="light"]) .season-card h3 { color: var(--color-text) !important; }
  :root:not([data-theme="light"]) .season-task { color: var(--color-text-muted); border-bottom-color: rgba(255,255,255,.06); }
}

/* ── H. Checklist checked state dark variant ── */
[data-theme="dark"] .checklist-item.checked { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.3); }
[data-theme="dark"] .checklist-item.checked .checklist-text { color: var(--color-text-muted); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checklist-item.checked { background: rgba(20,184,166,.1); border-color: rgba(20,184,166,.3); }
  :root:not([data-theme="light"]) .checklist-item.checked .checklist-text { color: var(--color-text-muted); }
}

/* ── I. Step-guide dark variants ── */
[data-theme="dark"] .step-warning { background: rgba(154,52,18,.15); border-color: rgba(154,52,18,.35); color: #fca5a5; }
[data-theme="dark"] .step-tip { color: var(--teal-300); border-color: rgba(20,184,166,.25); background: rgba(20,184,166,.08); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step-warning { background: rgba(154,52,18,.15); border-color: rgba(154,52,18,.35); color: #fca5a5; }
  :root:not([data-theme="light"]) .step-tip { color: var(--teal-300); border-color: rgba(20,184,166,.25); background: rgba(20,184,166,.08); }
}

/* ── J. Toast and sticky-CTA: lock to true dark (--black-900 remaps) ── */
[data-theme="dark"] .toast { background: #1a2540; }
[data-theme="dark"] .sticky-cta { background: #0a1020; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .toast { background: #1a2540; }
  :root:not([data-theme="light"]) .sticky-cta { background: #0a1020; }
}

/* ── K. Lock all remaining black-900 backgrounds to true dark ── */
/* --black-900 remaps to near-white in dark mode, breaking any element
   that uses it as a background with white text. We lock them here. */
[data-theme="dark"] .house-tooltip,
[data-theme="dark"] .house-tooltip::before,
[data-theme="dark"] .result-panel-header,
[data-theme="dark"] .result-box,
[data-theme="dark"] .time-table th,
[data-theme="dark"] [style*="background:var(--black-900)"] {
  background: #0a1020 !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .house-tooltip,
  :root:not([data-theme="light"]) .house-tooltip::before,
  :root:not([data-theme="light"]) .result-panel-header,
  :root:not([data-theme="light"]) .result-box,
  :root:not([data-theme="light"]) .time-table th,
  :root:not([data-theme="light"]) [style*="background:var(--black-900)"] {
    background: #0a1020 !important;
  }
}

