/* ============================================================
   SANA DE LA ROSA — herbal beauty house
   Palette: warm ivory base, deep forest green, cacao brown,
   muted terracotta, restrained antique gold.
   ============================================================ */

:root {
  --ivory: #F3EDE2;
  --ivory-soft: #EDE4D3;
  --cream: #E7DBC7;
  --forest: #23311E;
  --forest-deep: #182414;
  --olive: #6F7852;
  --cacao: #463227;
  --terracotta: #A9603F;
  --gold: #9C7E4E;
  --ink: #2B241B;
  --ink-soft: #5C5245;
  --line: rgba(70, 50, 39, 0.18);
  --line-light: rgba(243, 237, 226, 0.22);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.shell {
  width: min(1240px, calc(100% - clamp(40px, 7vw, 120px)));
  margin-left: auto;
  margin-right: auto;
}

.shell-narrow { width: min(760px, calc(100% - clamp(40px, 7vw, 120px))); }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 300; }
h2 em, h1 em, h3 em { font-style: italic; font-weight: 300; }

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--forest);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.6rem;
}

.kicker-light { color: #C9A46A; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--cacao);
}

p a { color: inherit; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.6rem;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), letter-spacing 0.5s var(--ease);
}

.btn-light {
  color: #F3EDE2;
  border-color: rgba(243, 237, 226, 0.65);
  background: rgba(243, 237, 226, 0.04);
}
.btn-light:hover {
  background: var(--ivory);
  color: var(--forest);
  letter-spacing: 0.34em;
}

.btn-dark {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}
.btn-dark:hover {
  background: transparent;
  color: var(--forest);
  letter-spacing: 0.34em;
}

.link-line {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #F3EDE2;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0.55); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 1.6rem 0;
  transition: background 0.6s var(--ease), padding 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.site-header.scrolled {
  background: rgba(243, 237, 226, 0.94);
  backdrop-filter: blur(10px);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(1320px, calc(100% - clamp(40px, 6vw, 100px)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  transition: color 0.6s var(--ease);
}
.wordmark em { font-style: italic; }
.site-header.scrolled .wordmark { color: var(--forest); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.6rem);
}

.main-nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(243, 237, 226, 0.92);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.6s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav .nav-book {
  border: 1px solid rgba(243, 237, 226, 0.55);
  padding: 0.55rem 1.5rem;
}
.main-nav .nav-book::after { display: none; }
.main-nav .nav-book:hover { background: var(--ivory); color: var(--forest) !important; }

.site-header.scrolled .main-nav a { color: var(--cacao); }
.site-header.scrolled .main-nav .nav-book { border-color: var(--forest); }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  width: 44px;
  height: 40px;
  position: relative;
  z-index: 90;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ivory);
  margin: 5px auto;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), background 0.6s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--forest); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* When the full-screen menu is open, header elements sit on ivory */
.site-header.menu-open .wordmark { color: var(--forest); }
.site-header.menu-open .nav-toggle span { background: var(--forest); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ivory);
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }

.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  color: var(--forest);
  text-decoration: none;
  font-weight: 300;
}
.mobile-menu .menu-book {
  font-size: 0.75rem;
  font-family: var(--sans);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  padding: 1rem 2.4rem;
  margin-top: 1.2rem;
}
.menu-footnote {
  margin-top: 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  background: url('images/hero-spa-candles.webp') center 40% / cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(24, 30, 18, 0.5), rgba(24, 30, 18, 0.62));
  z-index: 1;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; padding: 0 24px; }

.hero-label {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #D8C29A;
  margin-bottom: 2.2rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.02;
  color: #F6F0E4;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.hero-title em { font-style: italic; }

.hero-sub {
  margin-top: 2.2rem;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, 0.85);
  line-height: 1.8;
}

.hero-ctas {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.4rem);
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 58px;
  background: rgba(246, 240, 228, 0.6);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.36s; }
.delay-3 { transition-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Philosophy ---------- */

.philosophy {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--ivory);
}

.phil-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.phil-text h2 { margin-bottom: 2.2rem; }
.phil-text p { margin-bottom: 1.4rem; color: var(--ink-soft); max-width: 54ch; }
.phil-text .lede { color: var(--cacao); margin-bottom: 1.8rem; }

/* ---------- The Ritual ---------- */

.ritual {
  background: var(--forest);
  color: var(--ivory);
  padding: clamp(6rem, 12vw, 11rem) 0;
  position: relative;
}

.ritual::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 106, 0.5), transparent);
}

.ritual-head { text-align: center; margin-bottom: clamp(4rem, 7vw, 6.5rem); }
.ritual-head h2 { color: #F0E9D8; }

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.ritual-figure {
  position: sticky;
  top: 14vh;
  margin: 0;
}
.ritual-figure img { width: 100%; }
.ritual-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, 0.55);
}

.ritual-entry {
  padding: clamp(2.2rem, 4vw, 3.4rem) 0;
  border-top: 1px solid var(--line-light);
}
.ritual-entry:last-child { border-bottom: 1px solid var(--line-light); }

.ritual-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: #C9A46A;
  margin-bottom: 1rem;
}

.ritual-entry h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #F0E9D8;
  margin-bottom: 1.1rem;
  transition: color 0.5s var(--ease);
}

.ritual-entry p {
  color: rgba(240, 233, 216, 0.72);
  max-width: 52ch;
}

.ritual-entry:hover h3 { color: #C9A46A; }

/* ---------- Meet Sana ---------- */

.about {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--ivory);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.about-figure { position: relative; margin: 0; }
.about-figure::before {
  content: "";
  position: absolute;
  top: 2.4rem;
  left: -2.4rem;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(169, 96, 63, 0.4);
  z-index: -1;
}

.about-text h2 { margin-bottom: 2rem; }
.about-text p { margin-bottom: 1.4rem; color: var(--ink-soft); max-width: 56ch; }
.about-text .lede { color: var(--cacao); margin-bottom: 1.8rem; }

.about-sign {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--forest);
}
.about-sign span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 0.8rem;
}

/* ---------- Apothecary ---------- */

.apothecary {
  background: var(--ivory-soft);
  padding: clamp(6rem, 12vw, 11rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.apoth-head { max-width: 640px; margin: 0 auto 4rem; text-align: center; }
.apoth-head h2 { margin-bottom: 1.6rem; }
.apoth-intro { color: var(--ink-soft); }

.apoth-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.apoth-list .apoth-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 2rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.apoth-list .apoth-item:last-of-type { border-bottom: 1px solid var(--line); }

.apoth-item h3 {
  font-size: 1.45rem;
  color: var(--forest);
  grid-column: 1 / -1;
}

.apoth-desc { color: var(--ink-soft); font-size: 0.95rem; }

.apoth-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracotta);
  text-align: right;
  white-space: nowrap;
}

.apoth-cta { margin-top: 2.6rem; }
.apoth-note {
  margin-top: 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- World gallery ---------- */

.world {
  background: var(--ivory);
  padding: clamp(6rem, 12vw, 11rem) 0;
}

.world-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.6rem, 5vw, 4.5rem);
}
.world-head h2 { text-align: right; }

/* ---------- Woman's Circle ---------- */

.circle {
  background: var(--forest-deep);
  color: var(--ivory);
  padding: clamp(6rem, 12vw, 11rem) 0;
  position: relative;
}

.circle-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.circle-figure { margin: 0; position: relative; }
.circle-figure::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 60%;
  height: 60%;
  border: 1px solid rgba(201, 164, 106, 0.35);
  z-index: -1;
}

.circle-text h2 { color: #F0E9D8; margin-bottom: 2rem; }
.circle-text p {
  margin-bottom: 1.4rem;
  color: rgba(240, 233, 216, 0.72);
  max-width: 52ch;
}
.circle-text .lede-light { color: rgba(240, 233, 216, 0.92); margin-bottom: 1.8rem; }
.circle-text .btn { margin-top: 1.4rem; }

/* ---------- Testimonials ---------- */

.testimonials {
  padding: clamp(6rem, 12vw, 11rem) 0;
  background: var(--ivory);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  margin-top: 1rem;
}

.testi {
  text-align: center;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.testi p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--cacao);
}

.testi cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- Book band ---------- */

.book-band {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.book-bg {
  position: absolute;
  inset: 0;
  background: url('images/candle-portrait-woman.webp') center 30% / cover no-repeat;
  z-index: 0;
}

.book-veil {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 15, 0.55);
  z-index: 1;
  pointer-events: none;
}

.book-content { position: relative; z-index: 2; padding: 0 24px; }

.book-content h2 {
  color: #F6F0E4;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin-bottom: 2rem;
}

.book-content p {
  color: rgba(246, 240, 228, 0.85);
  line-height: 2;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}

/* ---------- Appointment form ---------- */

.appointment {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--ivory-soft);
}

.appt-head { text-align: center; margin-bottom: 3.6rem; }
.appt-head h2 { margin-bottom: 1.6rem; }
.appt-lede { color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }

.appt-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.appt-form .field { margin-bottom: 1.8rem; }

.appt-form label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cacao);
  margin-bottom: 0.7rem;
}
.appt-form .optional { color: var(--olive); letter-spacing: 0.14em; text-transform: none; }

.appt-form input,
.appt-form select,
.appt-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.4s var(--ease);
}
.appt-form select { cursor: pointer; }
.appt-form textarea { resize: vertical; min-height: 120px; }

.appt-form input:focus,
.appt-form select:focus,
.appt-form textarea:focus {
  outline: none;
  border-bottom-color: var(--terracotta);
}

.appt-form input::placeholder,
.appt-form textarea::placeholder { color: rgba(92, 82, 69, 0.55); }

.form-submit { margin-top: 0.6rem; }
.form-status-success { color: var(--forest); font-family: var(--serif); font-style: italic; }
.form-status-error { color: #8B3A2B; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(240, 233, 216, 0.75);
  padding: clamp(5rem, 9vw, 7rem) 0 3rem;
  text-align: center;
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #F0E9D8;
}

.footer-tag {
  margin-top: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, 0.5);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 860px;
  margin: 3.6rem auto 0;
  text-align: center;
}

.footer-label {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #C9A46A;
  margin-bottom: 0.9rem;
}

.site-footer a { color: inherit; text-decoration: none; transition: color 0.4s var(--ease); }
.site-footer a:hover { color: #F0E9D8; }

.footer-leaf {
  color: #C9A46A;
  margin: 3rem auto 0;
  opacity: 0.7;
}

.footer-fine { margin-top: 1.6rem; font-size: 0.78rem; }

.footer-credit { margin-top: 10px; }
.footer-credit a { opacity: 0.5; font-weight: 300; font-size: 0.78rem; }
.footer-credit a:hover { opacity: 0.8; color: #F0E9D8; }

/* ============================================================
   RESPONSIVE — recomposed, not stacked
   ============================================================ */

@media (max-width: 1024px) {
  .phil-grid,
  .about-grid,
  .apoth-grid,
  .circle-grid {
    grid-template-columns: 1fr;
  }

  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-figure {
    position: static;
    max-width: 440px;
    margin: 0 auto;
    order: -1;
  }
  .ritual-entry p { max-width: none; }

  .about-figure { max-width: 480px; margin: 0 auto; width: 100%; }
  .about-figure::before { display: none; }

  .apoth-grid .apoth-images { max-width: 560px; margin: 0 auto; width: 100%; }
  .circle-figure { max-width: 460px; margin: 0 auto; width: 100%; }
  .circle-figure::after { display: none; }

  .world-head { flex-direction: column; align-items: flex-start; }
  .world-head h2 { text-align: left; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .footer-cols { grid-template-columns: 1fr; gap: 2.2rem; }

  .hero-sub br { display: none; }

  .about-figure::before { display: none; }
}

@media (max-width: 640px) {
  .appt-form .form-row { grid-template-columns: 1fr; gap: 0; }

  .apoth-item { grid-template-columns: 1fr auto; }

  .hero-ctas { flex-direction: column; gap: 1.6rem; }

  .phil-text p, .about-text p, .circle-text p { max-width: none; }

  .scroll-cue { display: none; }
}
