/* =============================================================
   RENOVATIONCALCULATOR.AU — Production Stylesheet
   Version: 2.0 (Polished)
   Author: RenovationCalculator.AU
   Last updated: March 2026
   Notes:
   - All CSS consolidated from inline <style> blocks
   - Added @media print, prefers-reduced-motion, prefers-color-scheme
   - Improved focus-visible for keyboard accessibility
   - Removed duplicate declarations
   - Added missing responsive breakpoints
   ============================================================= */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg:              #0D0D0D;
  --bg-2:            #141414;
  --bg-3:            #1C1C1C;
  --orange:          #FF5E00;
  --orange-dim:      rgba(255,94,0,0.10);
  --orange-border:   rgba(255,94,0,0.25);
  --white:           #F2F2F2;
  --body-text:       #D0D0D0;
  --label-color:     #C8C8C8;
  --muted:           #888;
  --border:          #242424;
  --border-bright:   #333;
  --green:           #00C48C;
  --red:             #FF3B3B;
  --amber:           #F5A623;
  --mono:            'JetBrains Mono', monospace;
  --sans:            'Montserrat', sans-serif;
  --radius:          2px;
  --tr:              0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================================
   ACCESSIBILITY — SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -99px;
  left: 8px;
  z-index: 9999;
  background: var(--orange);
  color: #000;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 700;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Force dark background — prevents CMS/builder overrides */
  background-color: #0D0D0D !important;
  color: #F2F2F2 !important;
}

body {
  background: var(--bg) !important;
  color: var(--white) !important;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.section { padding: 80px 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--label-color) !important;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  line-height: 1.4;
}

.big-number {
  font-family: var(--mono);
  color: var(--orange);
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -2px;
  line-height: 1;
  font-weight: 700;
}

h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(2rem,5vw,3.5rem); line-height: 1.05; letter-spacing: -1px; color: var(--white); }
h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(1.5rem,3vw,2.2rem); letter-spacing: -0.5px; color: var(--white); }
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--white); }

p { color: var(--body-text); line-height: 1.8; }
strong { color: var(--white); }

/* ============================================================
   CELL
   ============================================================ */
.cell {
  background: var(--bg-2);
  padding: 28px 32px;
  border: 1px solid var(--border);
  transition: border-color var(--tr);
}
.cell:hover        { border-color: var(--orange-border); }
.cell--orange      { border-color: var(--orange-border); background: var(--orange-dim); }
.cell--plain       { padding: 0; background: transparent; border: none; }

/* ============================================================
   INPUTS
   ============================================================ */
.data-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-bright);
  color: var(--white) !important;
  font-family: var(--mono);
  font-size: 1.45rem;
  width: 100%;
  outline: none;
  padding: 6px 0;
  transition: border-color var(--tr);
  -moz-appearance: textfield;
}
.data-input::-webkit-outer-spin-button,
.data-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.data-input:focus { border-color: var(--orange); }
select.data-input  { cursor: pointer; font-size: 0.97rem; line-height: 1.5; }
select.data-input option { background: #1C1C1C; color: var(--white); }

/* Form inputs (quote section) */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  color: var(--white) !important;
  font-family: var(--mono);
  font-size: 0.84rem;
  padding: 12px 14px;
  outline: none;
  border-radius: var(--radius);
  transition: border-color var(--tr);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--orange); }
.form-field select option   { background: #1C1C1C; color: var(--white); }
.form-field textarea        { min-height: 120px; resize: vertical; }
.form-grid                  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field.full            { grid-column: 1 / -1; }

/* Placeholder color */
::placeholder { color: var(--muted) !important; opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-dim);
  border: 1px solid var(--orange);
  color: var(--orange) !important;
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 0.77rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--tr);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn:hover {
  background: var(--orange);
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,94,0,0.28);
}
.btn--solid        { background: var(--orange); color: #000 !important; font-weight: 700; }
.btn--solid:hover  { background: #FF7830; }
.btn--ghost        { background: transparent; border-color: var(--border-bright); color: var(--label-color) !important; }
.btn--ghost:hover  { border-color: var(--orange); color: var(--orange) !important; background: var(--orange-dim); }
.btn--full         { width: 100%; justify-content: center; }
.btn:disabled      { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Focus-visible — keyboard users get a clear orange ring */
.city-card:focus-visible,
.room-toggle-pill:focus-visible,
.calc-tab:focus-visible,
.btn:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255,94,0,0.15);
}

/* Honeypot anti-spam */
.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Pulse hint animation */
@keyframes pulseHint { 0%,100%{opacity:1} 50%{opacity:0.45} }
.pulse-hint { animation: pulseHint 1.4s ease-in-out 3; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid currentColor;
  font-weight: 600;
}
.badge--green  { color: var(--green);  border-color: rgba(0,196,140,0.35);  background: rgba(0,196,140,0.08); }
.badge--orange { color: var(--orange); border-color: var(--orange-border);   background: var(--orange-dim); }
.badge--amber  { color: var(--amber);  border-color: rgba(245,166,35,0.35);  background: rgba(245,166,35,0.08); }

/* ============================================================
   COMPLIANCE CHIPS
   ============================================================ */
.compliance-row  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.compliance-chip {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 2px;
  font-weight: 600;
  border: 1px solid rgba(0,196,140,0.35);
  color: var(--green);
  background: rgba(0,196,140,0.07);
}
.compliance-chip.warn { border-color: rgba(245,166,35,0.35); color: var(--amber); background: rgba(245,166,35,0.07); }
.compliance-chip.info { border-color: var(--border-bright); color: var(--label-color); background: transparent; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar  { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 0.5s ease; }

/* ============================================================
   RANGE SLIDER
   ============================================================ */
.range-wrap { margin: 14px 0 4px; }
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border-bright);
  outline: none;
  border-radius: 2px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--orange);
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,94,0,0.45);
  transition: transform var(--tr);
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.25); }
input[type=range]:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 7px;
}

/* ============================================================
   BREAKDOWN TABLE
   ============================================================ */
.breakdown-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.83rem; }
.breakdown-table th {
  color: var(--label-color) !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.67rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.breakdown-table td {
  padding: 9px 0;
  border-bottom: 1px solid #191919;
  color: var(--body-text);
}
.breakdown-table tr:last-child td { border-bottom: none; }
.breakdown-table td:last-child   { text-align: right; color: var(--white); }
.breakdown-table .row-total td   {
  color: var(--orange) !important;
  border-top: 1px solid var(--orange-border);
  border-bottom: none;
  padding-top: 14px;
  font-weight: 700;
}

/* ============================================================
   TOOLTIP
   ============================================================ */
.tooltip-wrap { position: relative; display: inline-block; }
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  color: var(--label-color);
  font-family: var(--mono);
  font-size: 0.67rem;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
}
.tooltip-text {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: 250px;
  background: #222;
  border: 1px solid var(--border-bright);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--body-text);
  z-index: 200;
  line-height: 1.6;
  border-radius: 2px;
  pointer-events: none;
}
.tooltip-wrap:hover .tooltip-text,
.tooltip-wrap:focus-within .tooltip-text { display: block; }

/* ============================================================
   TOGGLE (Checkbox)
   ============================================================ */
.toggle-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; cursor: pointer; }
.toggle-box {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--border-bright);
  border: 1px solid var(--border-bright);
  position: relative;
  flex-shrink: 0;
  transition: background var(--tr);
  margin-top: 2px;
}
.toggle-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition: all var(--tr);
}
input[type=checkbox]:checked + .toggle-box             { background: var(--orange); border-color: var(--orange); }
input[type=checkbox]:checked + .toggle-box::after      { left: 19px; background: #000; }
input[type=checkbox]                                   { display: none; }
.toggle-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--label-color) !important;
  letter-spacing: 1px;
  line-height: 1.6;
}

/* ============================================================
   ALERT / INFO BOXES
   ============================================================ */
.alert-box {
  border: 1px solid rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.06);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--amber);
  line-height: 1.7;
  margin-top: 14px;
}
.info-box {
  border: 1px solid var(--border-bright);
  background: var(--bg-3);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--label-color);
  line-height: 1.7;
  margin-top: 10px;
}

/* ============================================================
   ROOM ACTIVE TOGGLE PILLS
   ============================================================ */
.calc-tab-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: border-color var(--tr);
}
.calc-tab-wrap.active { border-bottom-color: var(--orange); }

.room-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px 3px 5px;
  border-radius: 20px;
  border: 1px solid var(--border-bright);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  margin-left: 4px;
  margin-right: 8px;
  background: transparent;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}
.room-toggle-pill.on {
  border-color: var(--green);
  color: #fff;
  background: rgba(0,196,140,0.22);
  box-shadow: 0 0 8px rgba(0,196,140,0.25);
  font-weight: 700;
}
.room-toggle-pill:not(.on):hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,94,0,0.08);
}
.room-toggle-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transition: background var(--tr);
  flex-shrink: 0;
}
.room-toggle-pill.on .pill-dot {
  background: var(--green);
  box-shadow: 0 0 5px rgba(0,196,140,0.6);
}

/* Dimmed panel when room is excluded */
.calc-panel.excluded { opacity: 0.9; }
.calc-panel.excluded .big-number { color: var(--muted); }

/* Excluded banner inside panel */
.excluded-banner {
  display: none;
  background: rgba(0,0,0,0.4);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}
.calc-panel.excluded .excluded-banner { display: block; pointer-events: auto; }
.calc-panel.excluded .excluded-banner button {
  background: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  cursor: pointer;
  margin-top: 8px;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: all var(--tr);
}
.calc-panel.excluded .excluded-banner button:hover { border-color: var(--orange); color: var(--orange); }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--white) !important;
  text-decoration: none;
  letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label-color) !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--tr);
  border: 1px solid transparent;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--orange) !important;
  border-color: var(--orange-border);
  background: var(--orange-dim);
}

/* ============================================================
   TICKER / TRUST BAR
   ============================================================ */
.trust-bar {
  background: #090909;
  border-bottom: 1px solid #1A1A1A;
  overflow-x: auto;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 8px;
}
.trust-bar::-webkit-scrollbar { display: none; }
.trust-bar-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  min-width: max-content;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.8px;
}
.trust-item { display: flex; align-items: center; gap: 7px; padding: 0 16px; border-right: 1px solid #1e1e1e; }
.trust-item:last-child { border-right: none; }
.t-key  { color: var(--muted); }
.t-val  { color: var(--label-color); font-weight: 600; }
.t-up   { color: var(--green); }
.t-tag  { color: var(--orange); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background-image: url('/images/hero-bg.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.93) 0%, rgba(13,13,13,0.80) 60%, rgba(13,13,13,0.65) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  right: -150px;
  top: -150px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,0,0.055) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::after { content:''; flex:1; height:1px; background: var(--orange-border); max-width: 80px; }
.hero-title strong  { color: var(--orange); }
.hero-sub  { max-width: 540px; margin: 20px 0 36px; font-size: 1.07rem; color: var(--body-text); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat  { background: var(--bg-2); padding: 20px 24px; }
.hero-stat-num   { font-family: var(--mono); font-size: 1.45rem; color: var(--orange); font-weight: 700; }
.hero-stat-label { font-family: var(--mono); font-size: 0.77rem; color: var(--label-color) !important; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; }

/* ============================================================
   CITY MATRIX
   ============================================================ */
.city-matrix { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: #151515; }
.city-card {
  background: var(--bg-2);
  padding: 24px 18px;
  cursor: pointer;
  transition: all var(--tr);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.city-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--tr);
  transform-origin: left;
}
.city-card:hover,
.city-card.selected { border-color: var(--orange-border); background: var(--orange-dim); }
.city-card:hover::before,
.city-card.selected::before { transform: scaleX(1); }
.city-name { font-family: var(--mono); font-size: 0.71rem; letter-spacing: 2px; color: var(--label-color) !important; text-transform: uppercase; }
.city-mult { font-family: var(--mono); font-size: 1.95rem; color: var(--orange); font-weight: 700; line-height: 1.1; margin: 8px 0 4px; }
.city-note { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

/* ============================================================
   CALCULATOR TABS
   ============================================================ */
.calc-tabs  { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tab {
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--label-color) !important;
  padding: 14px 22px;
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: all var(--tr);
  white-space: nowrap;
  margin-bottom: -1px;
}
.calc-tab:hover { color: var(--white) !important; }
.calc-tab.active { color: var(--orange) !important; border-bottom-color: var(--orange); }
.calc-panel { display: none; }
.calc-panel.active { display: block; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { margin-bottom: 48px; }
.section-header h2 strong { color: var(--orange); }
.section-header p { max-width: 580px; margin-top: 12px; }

/* ============================================================
   INSIGHT CARDS (City Data section)
   ============================================================ */
.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.insight-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: var(--radius);
  transition: all var(--tr);
  position: relative;
  overflow: hidden;
}
.insight-card::after {
  content: attr(data-city);
  position: absolute;
  right: -8px;
  top: -8px;
  font-family: var(--mono);
  font-size: 4.55rem;
  color: rgba(255,94,0,0.04);
  font-weight: 900;
  pointer-events: none;
  line-height: 1;
}
.insight-card:hover { border-color: var(--orange-border); transform: translateY(-2px); }
.insight-city { font-family: var(--mono); font-size: 0.91rem; color: var(--label-color) !important; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.insight-mult { font-family: var(--mono); font-size: 2rem; color: var(--orange); font-weight: 700; }
.insight-body { color: var(--body-text); font-size: 0.97rem; line-height: 1.75; margin-top: 12px; }
.insight-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.insight-tag  { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 1px; padding: 3px 8px; border: 1px solid var(--border-bright); color: var(--muted); border-radius: 2px; }

/* ============================================================
   DATA GRID (Data Sources section)
   ============================================================ */
.data-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: #151515; }
.data-card  { background: var(--bg-2); padding: 28px 30px; transition: border-color var(--tr), transform var(--tr); }
.data-source {
  font-family: var(--mono);
  font-size: 0.87rem;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
  font-weight: 700;
}
.data-desc  { color: var(--body-text); font-size: 0.93rem; line-height: 1.75; margin-top: 8px; }
.data-card:hover { border-color: var(--orange-border); transform: translateY(-2px); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-item { border-bottom: 1px solid #1C1C1C; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--white) !important;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0rem;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--tr);
}
.faq-q:hover  { color: var(--orange) !important; }
.faq-icon     { font-family: var(--mono); font-size: 1.35rem; color: var(--orange); flex-shrink: 0; transition: transform var(--tr); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a        { display: none; padding: 0 0 22px; color: var(--body-text); line-height: 1.8; font-size: 0.95rem; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #090909; border-top: 1px solid var(--border); padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: 0.78rem; margin-top: 12px; max-width: 320px; line-height: 1.75; }
.footer-col h4  { font-family: var(--mono); font-size: 0.77rem; color: var(--label-color) !important; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links   { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color var(--tr); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom  { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom p { color: var(--muted); font-family: var(--mono); font-size: 0.77rem; letter-spacing: 1px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  background: var(--bg-3);
  border: 1px solid var(--orange-border);
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 1px;
  border-radius: var(--radius);
  transform: translateY(16px);
  opacity: 0;
  transition: all 0.28s ease;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   STICKY GRAND TOTAL STRIP
   ============================================================ */
.total-strip {
  position: sticky;
  bottom: 0;
  z-index: 90;
  background: rgba(11,11,11,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--orange-border);
  padding: 14px 0;
  display: none;
}
.total-strip.visible { display: block; }
.total-strip-inner  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.total-strip-label  { font-family: var(--mono); font-size: 0.71rem; color: var(--label-color) !important; letter-spacing: 2px; text-transform: uppercase; }
.total-strip-amount { font-family: var(--mono); font-size: 1.95rem; color: var(--orange); font-weight: 700; letter-spacing: -1px; }

/* Mobile: compact the sticky bar significantly */
@media (max-width: 640px) {
  .total-strip { padding: 7px 0; }
  .total-strip-label { font-size: 0.58rem; letter-spacing: 1px; }
  .total-strip-amount { font-size: 1.25rem; letter-spacing: -0.5px; }
  .total-strip-inner { gap: 6px; flex-wrap: nowrap; align-items: center; }
  .total-strip-inner > div:first-child { flex-shrink: 0; }
  .total-strip-inner > div:last-child { display: flex; gap: 6px; flex-wrap: nowrap; }
  .total-strip-inner > div:last-child .btn { font-size: 0.6rem; padding: 6px 9px; letter-spacing: 1px; gap: 4px; }
  .total-strip-inner > div:last-child .btn--solid { font-size: 0.62rem; padding: 6px 10px; }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.muted-note { font-family: var(--mono); font-size: 0.79rem; color: var(--muted); margin-top: 7px; line-height: 1.6; letter-spacing: 0.5px; }
.panel-guides { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.panel-guides-label { font-family: var(--mono); font-size: 0.58rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.panel-guides a { font-family: var(--mono); font-size: 0.72rem; color: var(--orange); text-decoration: none; border-bottom: 1px solid var(--orange-border); margin-right: 16px; display: inline-block; margin-bottom: 6px; transition: border-color var(--tr); }
.panel-guides a:hover { border-bottom-color: var(--orange); }
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 0 32px; }

/* Will-change hints for GPU compositing */
.data-card,
.hero-stat,
.city-card,
.insight-card {
  will-change: transform, border-color;
}
.hero-stat { transition: transform var(--tr), border-color var(--tr); }
.hero-stat:hover { transform: translateY(-2px); }

/* Guide strip cards */
#guide-strip a {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
  display: block;
}
#guide-strip a:hover { border-color: var(--orange-border); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .insight-grid { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .nav-link {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 0.62rem;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border);
  }
  .nav-links .nav-link:last-child { border-right: none; }
  .nav-links .nav-link:hover { background: var(--orange-dim); }
  .nav-cta span { display: none; }
  .site-header + .trust-bar { margin-top: 40px; }

  .city-matrix { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  #trust-strip { grid-template-columns: 1fr !important; }
  #guide-strip { grid-template-columns: 1fr !important; }
  #faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  #quote-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .total-strip-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
  .calc-tab-wrap { flex-shrink: 0; }
  .calc-tab { padding: 12px 14px; font-size: 0.62rem; letter-spacing: 1.5px; }
  .room-toggle-pill { font-size: 0.55rem; padding: 2px 6px 2px 4px; }
  .calc-panel { padding: 24px 16px !important; }
  .breakdown-table { font-size: 0.75rem; }
  .breakdown-table th { font-size: 0.6rem; }
  .big-number { font-size: clamp(1.6rem, 4vw, 3.8rem); }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 560px)
   ============================================================ */
@media (max-width: 560px) {
  .insight-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .city-matrix { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION — Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body::before { display: none; }
  .site-header,
  .trust-bar,
  .total-strip,
  .toast,
  .hero-btns,
  .nav-cta,
  #quotes,
  footer { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  .container { max-width: 100%; padding: 0; }
  .cell { border: 1px solid #ccc; background: #f9f9f9; }
  .big-number,
  .data-source,
  .city-mult,
  .insight-mult { color: #000 !important; }
  h1, h2, h3 { color: #000 !important; }
  .breakdown-table td,
  .breakdown-table th { color: #000 !important; border-color: #ccc; }
  a { color: #000 !important; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
