/* ============================================================
   Vườn Trên Ban Công — layout scheme
   Container: single-column stack, max 1200px, gutters 24px.
   Sections: full-width bands, vertical rhythm 96px desktop / 56px mobile.
   Grid: CSS grid, cards mixed (feature 3-col, gallery 2/3, timeline 4-col row).
   Modifier: outlined (thin 1px borders, no heavy shadows).
   Theme: dark earthy. 2 accents — olive #8a9a5b (leaf) + ochre #c9922e (clay).
   Fonts: Playfair Display (headings, full VI support) / DM Sans (body).
   Reveal: fade-up on scroll. Hero anim #144 reinterpreted as grow/sprout.
   Breakpoints: 480 / 768 / 1024 / 1200.
   ============================================================ */

:root {
  --bg: #1c1a12;
  --bg-2: #191710;
  --panel: #232012;
  --panel-2: #2a2617;
  --text: #eee7d6;
  --muted: #b0a888;
  --leaf: #8a9a5b;
  --leaf-hi: #a6b874;
  --clay: #c9922e;
  --clay-hi: #e0a943;
  --line: rgba(238, 231, 214, 0.14);
  --line-strong: rgba(238, 231, 214, 0.26);
  --radius: 14px;
  --radius-sm: 12px;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --maxw: 1200px;
  --grad: linear-gradient(135deg, var(--leaf), var(--clay));
  --shadow-el: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 var(--sp-2);
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--sp-2); }

a { color: var(--leaf-hi); text-decoration: none; }
a:hover { color: var(--clay-hi); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

section { padding: var(--sp-6) 0; }

.eyebrow {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: var(--sp-2);
}

.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* ---------- Buttons: wide-uppercase ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--leaf); color: #16160c; }
.btn-primary:hover { background: var(--leaf-hi); color: #16160c; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-hi); transform: translateY(-2px); }

/* ---------- Icons: gradient ---------- */
.g-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #16160c;
  margin-bottom: var(--sp-2);
}
.g-icon svg { width: 24px; height: 24px; }

/* ---------- Header: nav-uppercase-spread ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(25, 23, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: 16px 0;
}
.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.32rem; color: var(--text);
  letter-spacing: 0.4px; white-space: nowrap;
}
.brand span { color: var(--leaf-hi); }
.nav-links {
  display: flex; gap: clamp(14px, 2vw, 34px);
  list-style: none; margin: 0; padding: 0;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 600;
}
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 11px 22px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--text); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}

/* ---------- Hero: hero-marquee-words fullscreen ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding: 120px 0 80px;
}
.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, rgba(20,18,12,0.72) 0%, rgba(20,18,12,0.55) 40%, rgba(20,18,12,0.9) 100%);
}
.hero .container { position: relative; z-index: 2; }
.marquee {
  overflow: hidden; width: 100%;
  margin-bottom: var(--sp-3); border-block: 1px solid var(--line);
  padding: 10px 0;
}
.marquee-track {
  display: inline-flex; gap: 42px; white-space: nowrap;
  will-change: transform; animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--muted); opacity: 0.7;
}
.marquee-track span::after { content: "·"; margin-left: 42px; color: var(--clay); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero h1 { max-width: 16ch; margin-bottom: var(--sp-3); }
.hero .sprout { display: inline-block; color: var(--leaf-hi); transform-origin: bottom center; }
.hero .lead { margin-bottom: var(--sp-4); max-width: 54ch; }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* Hero grow/sprout reveal (#144 reinterpreted) */
.grow { animation: grow-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes grow-in {
  from { transform: scaleY(0.2) translateY(24px); opacity: 0; }
  to { transform: scaleY(1) translateY(0); opacity: 1; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Section head ---------- */
.sec-head { max-width: 68ch; margin-bottom: var(--sp-5); }

/* ---------- Feature grid: grid-alternating-accent ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.f-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-4);
  box-shadow: var(--shadow-el);
}
.f-card:nth-child(odd) { background: var(--panel-2); border-color: var(--line-strong); }
.f-card h3 { margin-bottom: var(--sp-1); }
.f-card p { color: var(--muted); margin: 0; }

/* ---------- Zigzag: full-width caption band ---------- */
.zig { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: center; }
.zig.rev .zig-media { order: 2; }
.zig + .zig { margin-top: var(--sp-5); }
.zig-media img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.zig-body h2 { margin-bottom: var(--sp-3); }
.zig-body p { color: var(--muted); }
.caption-band {
  margin-top: var(--sp-3); padding: var(--sp-3);
  border-left: 3px solid var(--clay); background: var(--panel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: "Playfair Display", serif; font-size: 1.2rem; color: var(--text);
}

/* ---------- Gallery: caption-side ---------- */
.gallery-wrap { display: grid; grid-template-columns: 320px 1fr; gap: var(--sp-5); align-items: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .wide img { aspect-ratio: 16/9; }

/* ---------- Stats: counting animation ---------- */
.stats-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); text-align: left; }
.stat .num { font-family: "Playfair Display", serif; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--leaf-hi); line-height: 1; }
.stat .num em { font-style: normal; color: var(--clay); }
.stat p { color: var(--muted); margin: var(--sp-1) 0 0; font-size: 0.95rem; }

/* ---------- Timeline: horizontal card row (seasonal) ---------- */
.timeline-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.tl-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-3);
  position: relative;
}
.tl-card::before {
  content: ""; position: absolute; top: 0; left: var(--sp-3); right: var(--sp-3);
  height: 3px; background: var(--grad); border-radius: 3px;
}
.tl-season { color: var(--clay); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; margin: var(--sp-2) 0 var(--sp-1); display: block; }
.tl-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-1); }
.tl-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Testimonials: card flip ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.flip { perspective: 1200px; height: 260px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center;
}
.flip-back { transform: rotateY(180deg); background: var(--panel-2); border-color: var(--line-strong); }
.flip-face p { color: var(--text); font-family: "Playfair Display", serif; font-size: 1.15rem; margin: 0 0 var(--sp-2); }
.flip-face .who { color: var(--clay); font-weight: 600; font-size: 0.9rem; font-family: "DM Sans", sans-serif; }
.flip-hint { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.flip-back p { font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--muted); }

/* ---------- Pricing: single price strip ---------- */
.price-strip {
  display: grid; grid-template-columns: 1.2fr auto; gap: var(--sp-4); align-items: center;
  background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-el);
}
.price-strip .p-tag { color: var(--clay); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; }
.price-strip h3 { font-size: 2rem; margin: var(--sp-1) 0 var(--sp-2); }
.price-strip ul { list-style: none; margin: 0; padding: 0; color: var(--muted); columns: 2; column-gap: var(--sp-4); }
.price-strip li { padding: 5px 0 5px 26px; position: relative; break-inside: avoid; }
.price-strip li::before { content: "✿"; position: absolute; left: 0; color: var(--leaf-hi); }
.price-box { text-align: center; }
.price-box .amount { font-family: "Playfair Display", serif; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--text); line-height: 1; }
.price-box .per { color: var(--muted); display: block; margin: var(--sp-1) 0 var(--sp-3); font-size: 0.9rem; }

/* ---------- FAQ: single column accordion ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: "Playfair Display", serif; font-size: 1.25rem;
  padding: var(--sp-3) 40px var(--sp-3) 0; position: relative;
}
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--clay); font-size: 1.6rem; transition: transform 0.3s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; color: var(--muted); }
.faq-a p { padding: 0 40px var(--sp-3) 0; margin: 0; }

/* ---------- CTA form: stepper progress ---------- */
.form-band { background: var(--bg-2); border-top: 1px solid var(--line); }
.form-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-5); align-items: start; }
.stepper { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.stepper .step { flex: 1; }
.stepper .bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stepper .step.done .bar, .stepper .step.active .bar { background: var(--grad); }
.stepper .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-top: var(--sp-1); }
.stepper .step.active .lbl, .stepper .step.done .lbl { color: var(--text); }

.lead-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); box-shadow: var(--shadow-el); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: var(--sp-1); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); }
.field textarea { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; }
#formStatus { margin: var(--sp-2) 0 0; font-size: 0.92rem; }
#formStatus.error { color: #e08b6a; }

/* ---------- Footer: clock-hours (care hours) ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: var(--sp-6) 0 var(--sp-4); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
.footer-top h4 { font-family: "DM Sans", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--muted); margin-bottom: var(--sp-2); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--sp-1); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.care-hours { list-style: none; margin: 0; padding: 0; }
.care-hours li { display: flex; justify-content: space-between; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 0.94rem; }
.care-hours .live { color: var(--leaf-hi); font-weight: 600; }
.foot-brand { font-family: "Playfair Display", serif; font-size: 1.5rem; margin-bottom: var(--sp-2); }
.foot-brand span { color: var(--leaf-hi); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: var(--sp-5); padding-top: var(--sp-3); display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }

/* ---------- Divider: notch marks ---------- */
.divider-notch { height: 1px; background: var(--line); position: relative; margin: 0 auto; max-width: var(--maxw); }
.divider-notch::before, .divider-notch::after {
  content: ""; position: absolute; top: -4px; width: 2px; height: 9px; background: var(--clay);
}
.divider-notch::before { left: 30%; }
.divider-notch::after { left: 70%; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 140px var(--sp-3) var(--sp-6); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: var(--sp-2); }
.legal h2 { font-size: 1.5rem; margin-top: var(--sp-4); }
.legal p, .legal li { color: var(--muted); }
.legal .updated { color: var(--clay); font-size: 0.9rem; margin-bottom: var(--sp-4); }

/* ---------- Thank you ---------- */
.thanks { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 140px var(--sp-3) var(--sp-6); }
.thanks .g-icon { margin: 0 auto var(--sp-3); width: 64px; height: 64px; }
.thanks .g-icon svg { width: 34px; height: 34px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid, .timeline-row, .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .gallery-wrap { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: var(--sp-5) 0; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: var(--sp-2) var(--sp-3);
  }
  .nav.open .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .zig, .zig.rev { grid-template-columns: 1fr; gap: var(--sp-3); }
  .zig.rev .zig-media { order: 0; }
  .zig-media img { aspect-ratio: 4/3; }
  .price-strip { grid-template-columns: 1fr; text-align: left; }
  .price-strip ul { columns: 1; }
  .form-wrap { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-4); }
  .flip { height: 240px; }
}
@media (max-width: 480px) {
  .feature-grid, .timeline-row, .flip-grid, .stats-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .wide { grid-column: span 1; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
