/* =========================================================================
   White Crown Spa — stylesheet
   Palette is a placeholder built to read as "white + crown gold" until the
   real logo hex values are available. Swap the four color vars below and
   the whole site re-themes.
   ========================================================================= */

:root {
  /* ---- Brand palette (placeholder — replace with exact logo hex) ---- */
  --ivory:        #FAF6EE;   /* page background: "white" of White Crown */
  --ivory-deep:    #F0E6CF;   /* warm surface for cards/sections */
  --ink:           #221D16;   /* primary text */
  --ink-soft:      #5B4F3F;   /* secondary text */
  --gold:          #B8912F;   /* crown gold — primary accent */
  --gold-soft:     #D8B968;   /* lighter gold for hovers/glow */
  --gold-deep:     #8C6D22;   /* pressed/dark gold */
  --green:         #21331F;   /* deep bottle green — dark sections */
  --green-soft:    #33503B;   /* green accent */
  --line:          rgba(34, 29, 22, 0.12);
  --line-light:    rgba(250, 246, 238, 0.18);
  --shadow:        0 24px 48px -24px rgba(34, 29, 22, 0.28);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
}

/* ---------------------------------- Reset --------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.5em; font-weight: 600; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ivory); padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 6px; }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 0.75em;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; max-width: 640px; margin-inline: auto; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------------------------------- Buttons ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 1em; height: 1em; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
}
.btn-gold:hover { transform: translateY(-2px); background: linear-gradient(180deg, var(--gold-soft), var(--gold-deep)); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--ivory); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink);
}
.brand .icon { width: 26px; height: 26px; color: var(--gold-deep); }
.brand-light { color: var(--ivory); }
.brand-light .icon { color: var(--gold-soft); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn-ghost span { display: inline; }
.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px; color: var(--ink);
}

/* ---------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(184, 145, 47, 0.14), transparent 55%),
    var(--ivory);
}
.hero-crown-mark {
  position: absolute;
  right: -60px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px;
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
}
.hero-crown-mark .icon { width: 100%; height: 100%; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 32px 0 48px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; align-items: flex-start; gap: 10px; }
.hero-stat .icon { color: var(--gold-deep); margin-top: 3px; }
.hero-stat strong { display: block; font-size: 0.95rem; }
.hero-stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------------------------------- About --------------------------------- */
.about { padding: 100px 0; background: var(--ivory-deep); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
}
.about-panel {
  position: absolute; border-radius: var(--radius);
}
.panel-a {
  inset: 0;
  background: linear-gradient(160deg, var(--green), var(--green-soft));
}
.panel-b {
  inset: 24px -24px -24px 24px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
}
.about-visual > .icon {
  width: 34%; height: 34%;
  color: var(--gold-soft);
  position: relative; z-index: 1;
}
.about-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.about-points { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.about-points li { display: flex; align-items: flex-start; gap: 12px; }
.about-points .icon { color: var(--gold-deep); margin-top: 3px; }

/* ---------------------------------- Services ------------------------------- */
.services { padding: 100px 0; }
.services h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 56px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--ivory-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--gold-deep);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem; color: var(--gold-deep);
}
.service-link .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.service-card:hover .service-link .icon { transform: translateX(4px); }

/* ---------------------------------- Gallery -------------------------------- */
.gallery { padding: 100px 0; background: var(--ivory-deep); }
.gallery h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 56px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--ivory);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(33, 51, 31, 0.75));
}
.gallery-item.is-placeholder {
  border: 1.5px dashed var(--line);
}
.gallery-item.is-placeholder figcaption {
  position: static;
  background: none;
  color: var(--ink-soft);
  text-align: center;
  padding: 0 16px 18px;
}
.gallery-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--gold-deep);
  text-align: center;
  padding: 16px;
}
.gallery-placeholder .icon { width: 34px; height: 34px; opacity: 0.6; }
.gallery-placeholder span { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.5; }
.gallery-placeholder code { font-size: 0.72rem; background: var(--ivory-deep); padding: 2px 6px; border-radius: 4px; }

/* ---------------------------------- Experience ----------------------------- */
.experience { padding: 100px 0; background: var(--green); color: var(--ivory); }
.experience-grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px; }
.experience .eyebrow { color: var(--gold-soft); }
.experience-copy h2 { color: var(--ivory); font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.experience-copy p { color: rgba(250, 246, 238, 0.72); }
.experience-steps { display: flex; flex-direction: column; }
.experience-steps li {
  display: flex; gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-light);
}
.experience-steps li:first-child { border-top: none; }
.step-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-soft);
  min-width: 44px;
}
.experience-steps h3 { color: var(--ivory); font-size: 1.05rem; margin-bottom: 4px; }
.experience-steps p { color: rgba(250, 246, 238, 0.65); font-size: 0.92rem; margin: 0; }

/* ---------------------------------- Reviews -------------------------------- */
.reviews { padding: 100px 0; }
.reviews-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: start; }
.reviews-copy h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.review-cards { display: flex; flex-direction: column; gap: 20px; }
.review-card {
  margin: 0;
  background: var(--ivory-deep);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 30px;
}
.review-stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 12px; }
.review-stars .icon { width: 16px; height: 16px; fill: var(--gold); }
.review-card p { font-size: 1.05rem; font-family: var(--font-display); color: var(--ink); }
.review-card footer { font-size: 0.88rem; color: var(--ink-soft); }

.google-rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; color: var(--ink-soft);
  margin-bottom: 20px;
}
.google-rating-badge .icon { width: 20px; height: 20px; color: var(--gold); fill: var(--gold); }
.google-rating-badge strong { font-size: 1.15rem; color: var(--ink); font-family: var(--font-display); }

/* ---------------------------------- FAQ ------------------------------------- */
.faq { padding: 100px 0; background: var(--ivory-deep); }
.faq h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 48px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 18px; height: 18px; color: var(--gold-deep); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; font-size: 0.95rem; }

/* ---------------------------------- Book ----------------------------------- */
.book { padding: 100px 0; background: var(--ivory-deep); }
.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.book-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.book-copy .btn { margin-top: 12px; }

.book-form {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { flex-direction: row; gap: 16px; }
.form-row-split > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.optional { font-weight: 400; color: var(--ink-soft); opacity: 0.7; }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 145, 47, 0.16);
}
.form-row.field-error input,
.form-row.field-error select,
.form-row.field-error textarea { border-color: #B4443A; }
.field-error-msg { font-size: 0.8rem; color: #B4443A; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--green-soft); font-weight: 600; }
.form-status.is-error { color: #B4443A; font-weight: 600; }

/* ---------------------------------- Footer --------------------------------- */
.site-footer { background: var(--green); color: rgba(250, 246, 238, 0.85); padding: 80px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand p { color: rgba(250, 246, 238, 0.65); font-size: 0.92rem; max-width: 260px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; font-size: 0.9rem; }
.footer-col h3 { color: var(--ivory); font-size: 1rem; margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.02em; }
.footer-col p { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: rgba(250, 246, 238, 0.75); }
.footer-col .icon { color: var(--gold-soft); margin-top: 2px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-note { font-size: 0.78rem; opacity: 0.6; }
.map-frame { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-light); aspect-ratio: 4/3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.footer-bottom {
  display: flex; justify-content: space-between;
  padding: 22px 0; font-size: 0.82rem; color: rgba(250, 246, 238, 0.55);
}

.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(33, 51, 31, 0.5);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab .icon { width: 26px; height: 26px; }

/* ---------------------------------- Reveal-on-scroll ------------------------ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .whatsapp-fab { transition: none; }
}

/* ---------------------------------- Responsive ------------------------------ */
@media (max-width: 980px) {
  .about-grid, .experience-grid, .reviews-grid, .book-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 360px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-row { height: 72px; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav a { padding: 16px 28px; border-top: 1px solid var(--line); }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-gold { padding: 9px 16px; font-size: 0.82rem; }
  .header-row { gap: 10px; }
  .brand-text { font-size: 1rem; }
  .nav-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .main-nav { top: 72px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .faq-item { padding: 4px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row-split { flex-direction: column; }
  .hero-crown-mark { width: 320px; height: 320px; right: -100px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 72px 0 56px; }
  .about, .services, .experience, .reviews, .book { padding: 64px 0; }
  .book-form { padding: 24px; }
}