/* ==========================================================================
   The Beauty Spot (Ballito) — shared styles
   "Noir & rose gold": ivory paper, charcoal-ink bands, rose-gold accent.
   Light is default; dark is gated on [data-theme="dark"] on <html>.
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  --ground: #FBF7F4;
  --surface: #FFFFFF;
  --ink: #1E1C20;
  --muted: #5C565D;
  --brand: #2D2A30;       /* CTA fill */
  --brand-text: #2D2A30;  /* brand-coloured text under ~20px */
  --rose: #B97766;        /* rose-gold ornament / large display only */
  --rose-text: #8C4F40;   /* rose text under ~20px (on light) */
  --on-brand: #FFFFFF;    /* text on brand/dark bands — fixed both themes */
  --accent-on-dark: #EBC1B2; /* rose light text on always-dark bands — fixed */
  --band: #1C1A1D;        /* always-dark header/hero/footer/CTA band */

  --line: rgba(30, 28, 32, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.16);
  --shadow: 0 10px 30px rgba(30, 28, 32, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-theme="dark"] {
  --ground: #131214;
  --surface: #232126;
  --ink: #F4EEE9;
  --muted: #B9B0B3;
  --brand: #6E4A50;
  --brand-text: #E8C2B8;
  --rose-text: #E8B4A4;
  --line: rgba(244, 238, 233, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --band: #0B0A0C;
  /* --on-brand, --accent-on-dark, --rose stay fixed across themes */
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .3px;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

p { margin: 0 0 1rem; }
a { color: var(--rose-text); }
a:hover { color: var(--brand-text); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.section { padding: clamp(48px, 7vw, 88px) 0; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  color: var(--rose-text);
  margin: 0 0 .6rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.btn-primary:hover { color: var(--on-brand); filter: brightness(1.12); }

.btn-ghost {
  background: transparent;
  color: var(--brand-text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-text); }

.btn-rose {
  background: var(--rose);
  color: #1C1A1D; /* white on rose is only 3.6:1 */
  border-color: var(--rose);
}
.btn-rose:hover { color: #1C1A1D; filter: brightness(1.08); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  background: var(--band);
  color: var(--on-brand);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: nowrap;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--on-brand);
  margin-right: auto;
  min-width: 0;
}
.brand .brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.05;
  color: var(--on-brand);
  white-space: nowrap;
}
.brand .brand-sub {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  color: var(--on-brand);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .7rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-on-dark); background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: var(--accent-on-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { margin-left: 4px; white-space: nowrap; flex: none; }
@media (max-width: 1100px) { .header-cta { display: none; } } /* phone number is in the hero and footer; keeps the nav on one row */

/* theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line-on-dark);
  background: transparent;
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent-on-dark); background: rgba(255,255,255,.08); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line-on-dark);
  background: transparent;
  color: var(--on-brand);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --- KIRO BUG FIX (3): header overflow at 320px -------------------------- */
/* Hide the header CTA and the brand subtitle on narrow screens, and collapse
   nav into a toggleable panel so the header never overflows at 320px. */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--band);
    border-bottom: 1px solid var(--line-on-dark);
    padding: 8px clamp(16px, 4vw, 32px) 14px;
    gap: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .4rem; border-radius: 8px; }
  .site-header .header-inner { position: relative; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }       /* hide header CTA ≤480px */
  .brand .brand-sub { display: none; }  /* hide subtitle ≤480px */
  .brand .brand-name { font-size: 1.08rem; }
  body { font-size: 16px; }
}

/* --- Always-dark bands ---------------------------------------------------- */
/* KIRO BUG FIX (1): these rules cover h1/h2/h3, buttons (ghost/accent),
   links, and "to confirm" chips INSIDE every always-dark band (hero, footer,
   CTA band) — in BOTH themes, because --band + --on-brand are fixed. */
.band-dark {
  background: var(--band);
  color: var(--on-brand);
}
.band-dark h1,
.band-dark h2,
.band-dark h3,
.band-dark h4,
.band-dark p,
.band-dark li,
.band-dark .lead { color: var(--on-brand); }
.band-dark .eyebrow { color: var(--accent-on-dark); }
.band-dark a:not(.btn) { color: var(--accent-on-dark); text-decoration: underline; }
.band-dark a:not(.btn):hover { color: #fff; }
.band-dark .muted { color: rgba(244, 238, 233, 0.78); }

/* buttons inside dark bands */
.band-dark .btn-ghost {
  color: var(--on-brand);
  border-color: rgba(255,255,255,.4);
}
.band-dark .btn-ghost:hover {
  color: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
}
.band-dark .btn-primary {
  background: var(--rose);
  border-color: var(--rose);
  color: #1C1A1D;
}
.band-dark .btn-primary:hover { filter: brightness(1.1); color:#1C1A1D; }

/* "to confirm" / info chips inside dark bands */
.band-dark .chip-note {
  background: rgba(255,255,255,.1);
  color: var(--on-brand);
  border-color: rgba(255,255,255,.28);
}

/* --- KIRO BUG FIX (2): light card INSIDE a dark band --------------------- */
/* A .card placed inside .band-dark must NOT inherit the band's white text.
   Re-assert its own ink/surface tokens so text stays dark-on-light. */
.band-dark .card {
  background: var(--surface);
  color: var(--ink);
}
.band-dark .card h1,
.band-dark .card h2,
.band-dark .card h3,
.band-dark .card h4,
.band-dark .card p,
.band-dark .card li { color: var(--ink); }
.band-dark .card .muted { color: var(--muted); }
.band-dark .card .eyebrow { color: var(--rose-text); }
.band-dark .card a:not(.btn) { color: var(--rose-text); }
.band-dark .card .chip-note {
  background: var(--ground);
  color: var(--ink);
  border-color: var(--line);
}

/* --- Cards & chips -------------------------------------------------------- */
.card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.grid { display: grid; gap: clamp(16px, 2.5vw, 26px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* chip-note: the "[TO CONFIRM]" / info pill */
.chip-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--ground);
  color: var(--muted);
  border: 1px solid var(--line);
  text-transform: none;
}
.chip-note::before { content: "ⓘ"; font-weight: 700; color: var(--rose-text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(185, 119, 102, .14);
  color: var(--rose-text);
  border: 1px solid rgba(185, 119, 102, .35);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--band);
  color: var(--on-brand);
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 86px);
  padding-bottom: clamp(48px, 7vw, 86px);
}
.hero-copy h1 { color: var(--on-brand); }
.hero-copy .lead { color: rgba(244, 238, 233, 0.86); }
.hero-copy .eyebrow { color: var(--accent-on-dark); }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-on-dark);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 1.6rem;
  font-size: .9rem; color: rgba(244, 238, 233, 0.86);
}
.hero-proof strong { color: var(--accent-on-dark); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

/* --- Footer --------------------------------------------------------------- */
/* Always dark in BOTH themes via .band-dark + explicit tokens. */
.site-footer {
  background: var(--band);
  color: var(--on-brand);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  border-top: 1px solid var(--line-on-dark);
}
.site-footer h4 { color: var(--on-brand); font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.site-footer p, .site-footer li { color: rgba(244, 238, 233, 0.82); }
.site-footer a { color: var(--accent-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-brand-name { font-family: var(--serif); font-size: 1.4rem; color: var(--on-brand); margin-bottom: .3rem; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .82rem; color: rgba(244, 238, 233, 0.7);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--band); color: var(--on-brand); }
.cta-band .container { text-align: center; }
.cta-band h2 { color: var(--on-brand); }
.cta-band .lead { color: rgba(244, 238, 233, 0.86); margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.4rem; }

/* --- Proof strip ---------------------------------------------------------- */
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof-strip .stat { text-align: center; padding: 20px; }
.proof-strip .stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--rose-text); line-height: 1; }
.proof-strip .stat .label { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
@media (max-width: 720px) { .proof-strip { grid-template-columns: 1fr; gap: 10px; } }

/* --- Service / icon cards ------------------------------------------------- */
.svc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(185, 119, 102, .14);
  color: var(--rose-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.svc-icon svg { width: 24px; height: 24px; }

/* --- Location strip ------------------------------------------------------- */
.locstrip { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 820px) { .locstrip { grid-template-columns: 1fr; } }
.map-embed {
  border: 0; width: 100%; height: 340px; border-radius: var(--radius);
  display: block; filter: saturate(.95);
}
[data-theme="dark"] .map-embed { filter: saturate(.9) brightness(.9); }

/* --- Reviews -------------------------------------------------------------- */
.quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}
.quote::before { content: "\201C"; color: var(--rose); font-size: 1.4em; margin-right: .1em; }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(185, 119, 102, .22);
}
.field textarea { min-height: 130px; resize: vertical; }

/* --- Signature planner ---------------------------------------------------- */
.planner-step { margin-bottom: 26px; }
.planner-step > .step-label {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--serif); font-size: 1.3rem; margin-bottom: .7rem;
}
.step-num {
  font-family: var(--sans); font-weight: 800; font-size: .8rem;
  background: var(--rose); color: #1C1A1D;
  width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--rose); }
.chip[aria-pressed="true"] {
  background: var(--rose); color: #1C1A1D; border-color: var(--rose);
}
[data-theme="dark"] .chip[aria-pressed="true"] { color: #1C1A1D; }

.stepper { display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 44px; height: 44px; border: 0; background: var(--surface);
  color: var(--ink); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.stepper button:hover { background: rgba(185,119,102,.12); }
.stepper .count { min-width: 52px; text-align: center; font-weight: 700; font-size: 1.1rem; }

/* calendar strip */
.cal-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; list-style: none; padding: 0; }
.cal-day {
  flex: 0 0 auto; min-width: 72px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 6px; background: var(--surface);
}
.cal-day .dow { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.cal-day .date { font-family: var(--serif); font-size: 1.1rem; }
.cal-day .state { font-size: .68rem; margin-top: 2px; }
.cal-day.open { border-color: rgba(185,119,102,.5); }
.cal-day.open .state { color: var(--rose-text); font-weight: 700; }
.cal-day.closed { opacity: .62; }
.cal-day.closed .state { color: var(--muted); }
.cal-day.is-event { background: var(--rose); border-color: var(--rose); color: #1C1A1D; }
.cal-day.is-event .dow, .cal-day.is-event .date, .cal-day.is-event .state { color: #1C1A1D; }

.countdown-num { font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 3.6rem); color: var(--rose-text); line-height: 1; }

.result-box {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  margin-top: 10px;
}
.msg-preview {
  font-family: var(--sans);
  white-space: pre-wrap;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: .96rem;
  color: var(--ink);
}
.send-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid;
}
.alert-warn { background: rgba(185,119,102,.1); border-color: rgba(185,119,102,.4); color: var(--rose-text); }

/* --- Utilities ------------------------------------------------------------ */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rose); color: #1C1A1D; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

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