/* ==========================================================================
   Sacred Space with Sharon — Design System
   Pure black + gold, celestial motifs (no purple)
   ========================================================================== */

:root {
  /* Palette — black & gold celestial (single, permanent theme) */
  --ivory: #F5F0E1;        /* warm text/icons on dark decorative brand blocks */
  --ivory-soft: #120E08;   /* soft raised surface: hover states, alt sections */
  --plum-950: #000000;     /* deepest — footer, darkest gradient stop */
  --plum-900: #0A0704;     /* decorative mid-dark: buttons, badges, cta-band */
  --plum-800: #171208;     /* gradient lighter stop for buttons/bubbles */
  --plum-700: #23190C;
  --plum-500: #4A3A18;     /* mid bronze accent, glows against black bg */
  --plum-300: #8A6A2A;     /* deeper gold-bronze accent */
  --gold-600: #B8862F;
  --gold-500: #C9A24B;
  --gold-300: #F0DFA8;     /* starlight gold for headings/highlights */
  --rose-500: #C98B8B;
  --ink: #EFE9D8;          /* main body text — warm starlight white */
  --ink-soft: #A99A78;     /* secondary/meta text */
  --line: rgba(240, 223, 168, 0.12);
  --white: #0E0B05;        /* card / panel / modal / input surface */

  --heading: #F0DFA8;      /* headings — celestial gold */
  --page-bg: #000000;      /* page / canvas background — pure black */

  /* Status colors — only what's still in active use (form errors, success state) */
  --status-due-bg: #FBE4E1;
  --status-due-fg: #A23B2E;
  --status-paid-bg: #DDEEE2;
  --status-paid-fg: #1E6B3A;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing / radius / shadow */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page-bg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--plum-800), var(--plum-900));
  color: var(--ivory);
  border: 1px solid rgba(240, 223, 168, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--plum-950);
  box-shadow: 0 8px 24px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(201, 162, 75, 0.45); }
.btn-outline {
  background: transparent;
  border-color: var(--heading);
  color: var(--heading);
}
.btn-outline:hover { background: var(--plum-900); color: var(--ivory); }
.btn-ghost {
  background: transparent;
  color: var(--heading);
}
.btn-ghost:hover { background: var(--ivory-soft); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; opacity: 1 !important; --spin-track: rgba(245, 240, 225, 0.3); --spin-head: #F5F0E1; }
.btn-gold.is-loading { --spin-track: rgba(10, 7, 4, 0.25); --spin-head: #0A0704; }
.btn.is-loading svg { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid var(--spin-track);
  border-top-color: var(--spin-head);
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---- Site header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-600) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.4);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  margin: 5px 0;
  transition: 0.3s var(--ease);
}

.nav-close-item { display: none; list-style: none; margin: 0; padding: 0; }
.nav-close { display: none; }
.nav-overlay { display: none; }
body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: 300px;
    max-width: 82vw;
    height: 100vh;
    background: var(--plum-950);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 28px 32px;
    gap: 0;
    border-bottom: none;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 210;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-close-item { display: flex; justify-content: flex-end; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 22px; right: 24px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(245, 240, 225, 0.08);
    border: 1px solid var(--line);
    color: var(--ivory);
    cursor: pointer;
  }
  .nav-close svg { width: 18px; height: 18px; }
  .nav-close:hover { background: rgba(245, 240, 225, 0.16); }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 205;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav-overlay.show { display: block; opacity: 1; pointer-events: auto; }

  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .site-header .container { height: 68px; }
  .brand { font-size: 1.05rem; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand small { font-size: 0.56rem; }
  .nav-actions .btn-gold { padding: 9px 16px; font-size: 0.82rem; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--plum-950);
  color: rgba(245, 240, 225, 0.7);
  padding: 72px 0 28px;
  margin-top: 120px;
  border-top: 1px solid var(--line);
}
.site-footer h4 { color: var(--ivory); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px;}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 240, 225, 0.12);
}
.footer-grid > div { min-width: 0; }
.footer-grid a { display: block; margin-bottom: 12px; color: rgba(245, 240, 225, 0.7); font-size: 0.92rem; transition: color 0.25s; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(245, 240, 225, 0.45);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* ---- Booking stepper ---- */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.step .num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ivory-soft); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  transition: background 0.25s, color 0.25s;
}
.step.active { color: var(--heading); }
.step.active .num { background: var(--gold-500); color: var(--plum-950); }
.step.done .num { background: var(--gold-600); color: var(--plum-950); }
.step-line { width: 60px; height: 1px; background: var(--line); margin: 0 14px; }
@media (max-width: 600px) {
  .step span:not(.num) { display: none; }
  .step-line { width: 30px; }
}

/* ---- Time slot picker ---- */
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.slot {
  padding: 12px; text-align: center; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); cursor: pointer;
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  background: var(--white); transition: 0.2s;
}
.slot:hover { border-color: var(--gold-500); }
.slot.selected { border-color: var(--gold-500); background: var(--gold-500); color: var(--plum-950); }
@media (max-width: 600px) { .slot-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Forms ---- */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.16);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2, .row-3 { grid-template-columns: 1fr; } }

.form-error {
  background: var(--status-due-bg);
  color: var(--status-due-fg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.form-error.show { display: block; }
.form-success {
  background: var(--status-paid-bg);
  color: var(--status-paid-fg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 18px;
  display: none;
}
.form-success.show { display: block; }

/* ---- Utility ---- */
.section { padding: 110px 0; }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-state svg { margin: 0 auto 20px; opacity: 0.5; }

/* ---- Particle background canvas ---- */
.particles-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  display: block;
  background:
    radial-gradient(ellipse 900px 600px at 20% -10%, rgba(201, 162, 75, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(201, 162, 75, 0.10), transparent 65%),
    var(--page-bg);
}

/* ---- Smoky cloud layer (homepage only) ---- */
.smoke-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.smoke {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.smoke-1 {
  width: 620px; height: 620px; top: -10%; left: -12%;
  background: radial-gradient(circle, rgba(184, 134, 47, 0.28), transparent 70%);
  animation: drift1 52s ease-in-out infinite alternate;
}
.smoke-2 {
  width: 720px; height: 720px; top: 30%; right: -18%;
  background: radial-gradient(circle, rgba(30, 24, 12, 0.6), transparent 70%);
  animation: drift2 68s ease-in-out infinite alternate;
}
.smoke-3 {
  width: 520px; height: 520px; bottom: -14%; left: 20%;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.16), transparent 70%);
  animation: drift3 74s ease-in-out infinite alternate;
}
.smoke-4 {
  width: 480px; height: 480px; top: 5%; left: 45%;
  background: radial-gradient(circle, rgba(240, 223, 168, 0.10), transparent 70%);
  animation: drift1 60s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.15); }
}
@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-100px, -40px) scale(1.1); }
}
@keyframes drift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -70px) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
  .smoke { animation: none; }
}

/* ---- Floating action button (WhatsApp) ---- */
.floating-actions {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.floating-actions a {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-actions svg { width: 26px; height: 26px; }
.floating-actions a:hover { transform: translateY(-2px); }

.floating-whatsapp {
  background: linear-gradient(135deg, #3ECF63, #1FA855);
  color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(31, 168, 85, 0.4);
}
.floating-whatsapp:hover { box-shadow: 0 14px 34px rgba(31, 168, 85, 0.55); }

@media (max-width: 640px) {
  .floating-actions { right: 18px; bottom: 18px; gap: 10px; }
  .floating-actions a { width: 52px; height: 52px; }
  .floating-actions svg { width: 22px; height: 22px; }
}

/* ---- Image lightbox ---- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.86);
  z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox-overlay.show { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(245, 240, 225, 0.1); border: 1px solid rgba(245, 240, 225, 0.3);
  color: var(--ivory); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }
