/* =================================================================
   Mara Voss — Tantric Massage
   Shared stylesheet. Theme: warm, calm & sensual — sand, clay & cream.
   Mobile-first. Edit colors/spacing/fonts via the :root tokens below.
   ================================================================= */

/* ---- Design tokens -------------------------------------------- */
:root {
  /* Color — dark, sensual: deep plum-black, rose & gold */
  --bg:            #100a0d;  /* near-black plum              */
  --bg-elev:       #1a0e14;  /* deep burgundy-black          */
  --surface:       #221320;  /* dark plum card surface       */
  --accent:        #c85080;  /* vibrant deep rose            */
  --accent-strong: #e06898;  /* brighter rose (hover)        */
  --accent-deep:   #f2c8d8;  /* warm blush cream (headings)  */
  --gold:          #d4a038;  /* rich antique gold            */
  --floral:        #e888a8;  /* bright blush rose            */
  --leaf:          #304a28;  /* dark botanical green         */
  --text:          #f0e0e8;  /* warm cream text              */
  --muted:         #b888a0;  /* muted rose-grey              */
  --faint:         #7a5870;  /* very muted                   */
  --line:          rgba(240, 160, 192, 0.10);
  --line-accent:   rgba(200, 80, 128, 0.45);

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 4rem;
  --s-7: 6rem;

  /* Layout */
  --maxw: 1080px;
  --maxw-narrow: 720px;

  /* Misc */
  --radius: 4px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 var(--s-3);
  color: var(--accent-deep);
}

h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 var(--s-3); }

/* Focus visibility (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: var(--s-2) var(--s-3);
  z-index: 200;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

/* ---- Layout helpers ------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
.narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--s-6) 0; }
.section--tight { padding: var(--s-5) 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.lede { font-size: 1.22rem; color: var(--muted); }

.rule {
  width: 64px; height: 2px; border: 0;
  background: linear-gradient(90deg, var(--gold), var(--floral));
  margin: var(--s-4) 0;
}
.center .rule { margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }

/* ---- Header / nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 10, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.25em;
}
.brand:hover { color: var(--accent); }
.brand-name { display: block; }
.brand-v { color: var(--accent); }
.brand-sub {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--s-2);
}
.nav-toggle span { width: 26px; height: 2px; background: var(--accent-deep); transition: 0.25s var(--ease); }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: var(--s-2);
}
.nav-links a {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: var(--s-2) 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }

/* Mobile nav open state (JS toggles .is-open on .site-header) */
.site-header.is-open .nav-links {
  display: flex;
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
}
.site-header.is-open .nav { flex-wrap: wrap; }

/* No-JS fallback: show links inline (wrap) so nav always works */
.no-js .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.no-js .nav-toggle { display: none; }

/* ---- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 50% 0%, rgba(200, 60, 100, 0.22), transparent 55%),
    linear-gradient(180deg, #1a0e14, var(--bg));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 60%, rgba(212, 160, 56, 0.06), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lede { max-width: 42ch; margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: var(--s-5); display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---- Image placeholders (swap for real photos later) ---------- */
.placeholder-img {
  position: relative;
  background:
    linear-gradient(135deg, #1e1018 0%, #150c12 100%);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  aspect-ratio: 3 / 4;
}
.placeholder-img--wide { aspect-ratio: 16 / 9; }
.placeholder-img--square { aspect-ratio: 1 / 1; }
.placeholder-img--portrait { aspect-ratio: 3 / 4; }
.placeholder-img span { padding: var(--s-2) var(--s-3); border: 1px solid var(--line); background: rgba(255, 253, 248, 0.6); }
/* When the placeholder box holds a real <img> (illustration now, your photo later),
   make it fill the box and crop nicely to the slot's aspect ratio. */
img.placeholder-img { width: 100%; object-fit: cover; }

/* ---- Grids ---------------------------------------------------- */
.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--gallery { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.grid--gallery img:last-child:nth-child(odd) { grid-column: span 2; max-width: 50%; margin: 0 auto; }

.split { display: grid; gap: var(--s-5); align-items: center; }

/* ---- Cards ---------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: var(--line-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { color: var(--accent-deep); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .eyebrow { font-size: 0.65rem; }

/* Cards that are themselves links (e.g. treatment detail pages) */
a.card { display: block; color: inherit; text-decoration: none; }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-more {
  display: inline-block;
  margin-top: var(--s-3);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
a.card:hover .card-more { color: var(--accent-deep); }

/* ---- Lists (treatments, etiquette) ---------------------------- */
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.list-clean li::before { content: "✿"; color: var(--floral); margin-right: var(--s-3); }

/* ---- Rates table ---------------------------------------------- */
.rates { width: 100%; border-collapse: collapse; }
.rates caption { text-align: left; color: var(--faint); margin-bottom: var(--s-3); font-size: 0.85rem; }
.rates th, .rates td { text-align: left; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.rates th { color: var(--accent-deep); font-family: var(--font-display); font-weight: 600; }
.rates td:last-child { text-align: right; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Testimonials --------------------------------------------- */
.quote {
  border-left: 2px solid var(--gold);
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--accent-deep);
  font-style: italic;
}
.quote cite {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  font-style: normal;
}

/* ---- FAQ ------------------------------------------------------ */
details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
}
details summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); transition: transform 0.2s var(--ease); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: var(--s-3) 0 0; }

/* ---- Forms ---------------------------------------------------- */
.form-field { margin-bottom: var(--s-4); }
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--accent); outline: none; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--faint); font-size: 0.85rem; }

/* ---- Footer --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: var(--s-6) 0 var(--s-5);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: var(--s-5); }
.site-footer h4 { color: var(--accent-deep); font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.8rem;
}

/* ---- Entry / age confirmation --------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 10, 13, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  text-align: center;
}
.age-gate[hidden] { display: none; }
.age-gate__panel {
  max-width: 460px;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--s-6) var(--s-5);
}
.age-gate h2 { color: var(--accent-deep); }
.age-gate p { color: var(--muted); }
.age-gate .btn { margin: var(--s-2); }

/* ---- Reveal on scroll (progressive enhancement) --------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Responsive: tablet --------------------------------------- */
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Responsive: desktop -------------------------------------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; flex-direction: row; gap: var(--s-4); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--portrait { grid-template-columns: 5fr 7fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
