/* =========================================================================
   Vivanova Blinds — shared stylesheet (static rebuild)
   Design extracted from the live GoHighLevel "Vibe" site snapshot
   (2026-05-30). Dark navy theme with cream text and an orange accent.

   Palette (matches the live CSS variables, expressed as HSL):
     --bg        210 59% 11%   #0B1B2B  navy (page background)
     --fg        34 24% 94%    #F4F1ED  cream (primary text)
     --card      210 59% 13%            slightly lighter navy (cards)
     --muted     210 59% 15%            muted navy (panels/inputs)
     --muted-fg  40 31% 70%    ~#C9B99A sand/gold (secondary text)
     --primary   31 84% 62%    ~#F0A24E orange (accent only)
     --border    40 31% 70%             sand border
     --glow      125 184 212            soft blue glow used behind hero
   Fonts: Space Grotesk (headings) + Manrope (body), Inter loaded too.
   ========================================================================= */

:root {
  --bg: 210 59% 11%;
  --fg: 34 24% 94%;
  --card: 210 59% 13%;
  --muted: 210 59% 15%;
  --muted-fg: 40 31% 70%;
  --primary: 31 84% 62%;
  --primary-fg: 210 59% 11%;
  --border: 40 31% 70%;
  --success: 142 71% 45%;   /* #22c55e  (comparison "yes" / check ticks) */
  --destructive: 0 72% 51%; /* #dc2626  (comparison "no" / cross marks)  */
  --radius: 0.5rem;
  --glow: 125 184 212;      /* rgba(125,184,212,...) soft blue hero glow  */
  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  background-color: hsl(var(--bg));
  color: hsl(var(--fg));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  font-weight: 500;
}
.muted { color: hsl(var(--muted-fg)); }
.accent { color: hsl(var(--primary)); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--tight { padding: 3.5rem 0; }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: hsl(var(--muted-fg)); margin-bottom: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.btn-primary:hover { background: hsl(31 84% 56%); }
.btn-outline {
  background: transparent;
  border-color: hsl(var(--muted-fg) / 0.5);
  color: hsl(var(--fg));
}
.btn-outline:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--bg) / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--muted-fg) / 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand { display: flex; flex-direction: column; }
.nav__brand img { height: 2.6rem; width: auto; }
.nav__tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  margin-top: 0.2rem;
}
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-size: 0.92rem;
  color: hsl(var(--fg) / 0.85);
  transition: color 0.15s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: hsl(var(--primary)); }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: hsl(var(--fg));
  cursor: pointer;
  padding: 0.4rem;
}
.nav__toggle svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 1.5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(var(--bg) / 0.55) 0%, hsl(var(--bg) / 0.8) 100%);
}
/* soft blue glow that the live hero uses behind the headline */
.hero__glow {
  position: absolute;
  z-index: 1;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow) / 0.18) 0%, rgba(var(--glow) / 0) 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { margin-bottom: 1rem; }
.hero__sub { font-size: 1.1rem; color: hsl(var(--fg) / 0.92); margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* compact hero for inner pages */
.hero--inner { min-height: 52vh; }

/* hero badges row under the home hero */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid hsl(var(--muted-fg) / 0.12);
}
.hero-badges span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: hsl(var(--muted-fg));
}

/* ---------- Cards ---------- */
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted-fg) / 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; }
.card__body h3 { margin-bottom: 0.5rem; }
.card__body p { color: hsl(var(--muted-fg)); margin-bottom: 1rem; }
.card__link { color: hsl(var(--primary)); font-weight: 600; font-size: 0.9rem; }

/* feature tile (icon-less text block) */
.feature {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted-fg) / 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.feature h3 { color: hsl(var(--primary)); }
.feature p { color: hsl(var(--muted-fg)); margin-bottom: 0; }

/* ---------- Stat blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem 1rem; }
.stat__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1;
}
.stat__num span { font-size: 1.2rem; }
.stat__label { color: hsl(var(--muted-fg)); font-size: 0.9rem; margin-top: 0.5rem; }

/* ---------- Comparison table ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.compare__col {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted-fg) / 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.compare__col h3 { margin-bottom: 1.25rem; }
.compare__col--ours { border-color: hsl(var(--primary) / 0.5); }
.compare__col li { display: flex; gap: 0.6rem; padding: 0.4rem 0; color: hsl(var(--fg) / 0.9); }
.compare__col li::before { font-weight: 700; }
.compare__col--ours li::before { content: "\2713"; color: hsl(var(--success)); }
.compare__col--theirs li { color: hsl(var(--muted-fg)); }
.compare__col--theirs li::before { content: "\2717"; color: hsl(var(--destructive)); }

/* ---------- Spec / pill grids ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.spec {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted-fg) / 0.12);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.spec strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  color: hsl(var(--primary));
  margin-bottom: 0.25rem;
}
.spec span { color: hsl(var(--muted-fg)); font-size: 0.92rem; }

/* checklist */
.checklist li {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  color: hsl(var(--fg) / 0.9);
  border-bottom: 1px solid hsl(var(--muted-fg) / 0.1);
}
.checklist li::before { content: "\2713"; color: hsl(var(--primary)); font-weight: 700; }

/* colour swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.swatch { text-align: center; font-size: 0.8rem; color: hsl(var(--muted-fg)); }
.swatch__chip {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid hsl(var(--muted-fg) / 0.25);
  margin: 0 auto 0.5rem;
}

/* ---------- Split / media-text rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { text-align: center; }
.step__num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-fg));
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.step p { color: hsl(var(--muted-fg)); }

/* ---------- Reviews ---------- */
.review { background: hsl(var(--card)); border: 1px solid hsl(var(--muted-fg) / 0.12); border-radius: var(--radius); padding: 1.75rem; }
.review__stars { color: hsl(var(--primary)); letter-spacing: 0.15em; margin-bottom: 0.75rem; }
.review__quote { font-style: italic; color: hsl(var(--fg) / 0.9); }
.review__author { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin-top: 1rem; }
.review__author span { display: block; color: hsl(var(--muted-fg)); font-weight: 400; font-size: 0.85rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.beforeafter { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.beforeafter figure { margin: 0; }
.beforeafter img { border-radius: var(--radius); width: 100%; }
.beforeafter figcaption { margin-top: 0.75rem; }
.beforeafter figcaption strong { color: hsl(var(--primary)); display: block; font-family: "Space Grotesk", sans-serif; }
.beforeafter figcaption span { color: hsl(var(--muted-fg)); font-size: 0.9rem; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--muted-fg) / 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: hsl(var(--primary)); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: hsl(var(--muted-fg)); padding-bottom: 1.1rem; margin: 0; }

/* ---------- Forms ---------- */
.form { max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: hsl(var(--fg) / 0.9); }
.field label .req { color: hsl(var(--primary)); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--muted-fg) / 0.25);
  border-radius: var(--radius);
  color: hsl(var(--fg));
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }
.form-note { color: hsl(var(--muted-fg)); font-size: 0.85rem; text-align: center; margin-top: 1rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { color: hsl(var(--muted-fg)); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid hsl(var(--muted-fg) / 0.12);
  padding: 3.5rem 0 2rem;
  background: hsl(210 59% 9%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 2.4rem; margin-bottom: 0.75rem; }
.footer-brand p { color: hsl(var(--muted-fg)); font-size: 0.9rem; }
.site-footer h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-fg));
  margin-bottom: 1rem;
}
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: hsl(var(--fg) / 0.85); font-size: 0.92rem; }
.site-footer a:hover { color: hsl(var(--primary)); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--muted-fg) / 0.1);
  text-align: center;
  color: hsl(var(--muted-fg));
  font-size: 0.82rem;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .grid-3, .grid-4, .stats, .spec-grid, .steps, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: hsl(var(--bg));
    border-bottom: 1px solid hsl(var(--muted-fg) / 0.15);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid hsl(var(--muted-fg) / 0.08); }
  .nav__toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4, .stats, .spec-grid, .steps,
  .gallery-grid, .compare, .beforeafter, .form-row { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* Header phone link (Tier-1 conversion: every local competitor shows a phone) */
.nav__phone {
  font-weight: 600;
  color: var(--accent, #F0A24E) !important;
  white-space: nowrap;
}

/* Spec comparison table (motorised-blinds page) */
.table-wrap { overflow-x: auto; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--muted-fg) / 0.15);
  vertical-align: top;
}
.spec-table thead th {
  font-family: "Space Grotesk", sans-serif;
  color: hsl(var(--primary));
}
.spec-table tbody th {
  white-space: nowrap;
  color: hsl(var(--muted-fg));
  font-weight: 600;
}

/* Advance-bookings notice bar (Vietnam waitlist mode, 2026-06) */
.notice-bar {
  background: hsl(31 84% 62% / 0.12);
  border-bottom: 1px solid hsl(31 84% 62% / 0.3);
  color: hsl(var(--fg, 34 24% 94%));
  text-align: center;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
}
.notice-bar strong { color: hsl(31 84% 62%); }
