/* ===== Tokens ===== */
:root {
  --cream:      #faf6f1;
  --sand:       #f1e7dc;
  --blush:      #e8d3c8;
  --rose:       #c9a18f;
  --taupe:      #8a7160;
  --espresso:   #4a3b32;
  --ink:        #2e2620;
  --gold:       #b48a5e;
  --gold-deep:  #8a6531;  /* AA-compliant gold for text on light surfaces */
  --body:       #736152;  /* AA-compliant body text on light surfaces */
  --white:      #ffffff;

  --maxw: 1140px;
  --radius: 14px;
  --shadow-sm: 0 6px 20px rgba(74, 59, 50, .08);
  --shadow-md: 0 18px 50px rgba(74, 59, 50, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Remove the 300ms tap delay on mobile */
a, button { touch-action: manipulation; }

/* Visible keyboard-focus ring (only shows for keyboard users) */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .site-header.hero-on-top :focus-visible { outline-color: var(--cream); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(70px, 11vw, 130px) 0; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.1;
  color: var(--espresso);
  letter-spacing: .01em;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-lead { color: var(--body); font-size: 1.05rem; margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  border: 1px solid var(--espresso);
  background: var(--espresso);
  color: var(--cream);
  transition: all .35s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 22px; font-size: .74rem; }
.btn-outline { background: transparent; color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: padding .4s var(--ease);
  padding: 10px 0;
}
/* Blurred bar lives on a pseudo-element so the header itself never gets a
   filter/backdrop-filter — otherwise it would become the containing block
   for the fixed mobile nav panel and collapse it to the header's height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 241, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(138, 113, 96, .12);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--espresso);
  transition: color .3s;
}
.hero-on-top .logo, .hero-on-top .nav-link { color: var(--cream); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso);
  position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta { color: var(--cream) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; z-index: 102; }
.nav-toggle span { width: 26px; height: 2px; background: var(--espresso); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.hero-on-top .nav-toggle span { background: var(--cream); }
/* When the panel is open, bars sit over the light panel → always dark */
.nav-toggle.active span { background: var(--espresso); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  background: url("assets/hero.jpg") center 30%/cover no-repeat;
  background-attachment: fixed;
}
/* Desktop keeps the original wide spa image; mobile uses the real photo */
@media (min-width: 861px) {
  .hero {
    background-image: url("https://images.unsplash.com/photo-1600334129128-685c5582fd35?auto=format&fit=crop&w=1600&q=80");
    background-position: center;
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,38,32,.5) 0%, rgba(46,38,32,.4) 35%, rgba(46,38,32,.62) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-eyebrow {
  font-size: .8rem; letter-spacing: .4em; text-transform: uppercase;
  margin-bottom: 22px; color: var(--blush);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 13vw, 7.5rem);
  line-height: .95;
  letter-spacing: .02em;
}
.hero-sub { font-size: clamp(1.05rem, 2.5vw, 1.4rem); margin: 22px auto 38px; max-width: 540px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 16px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--cream);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; top: 24px; } }

/* ===== About ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-text p { color: var(--body); margin-bottom: 18px; }
.about-text strong { color: var(--espresso); font-weight: 500; }
.about-features { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.about-features li { display: flex; align-items: center; gap: 12px; color: var(--espresso); font-size: .95rem; letter-spacing: .04em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* ===== Services ===== */
.services { background: var(--sand); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 38px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-cat {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blush);
}
.price-list { list-style: none; display: grid; gap: 14px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--body); font-size: .98rem; }
.price-list li span:first-child { position: relative; }
.price-list li em { font-style: italic; color: var(--body); opacity: .8; font-size: .82rem; }
.price { color: var(--gold-deep); font-weight: 500; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { color: var(--body); font-weight: 300; opacity: .6; margin-right: 7px; }
.price-sub { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 20px 0 12px; }
.price-sub:first-of-type { margin-top: 0; }
.price-list li.offer {
  background: var(--sand);
  margin: 4px -16px 0;
  padding: 10px 16px;
  border-radius: 8px;
}
.price-list li.offer span:first-child { color: var(--espresso); font-weight: 400; }
.services-note { text-align: center; margin-top: 36px; color: var(--body); font-size: .85rem; font-style: italic; }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 300px; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.contact-list { list-style: none; margin: 30px 0 32px; display: grid; gap: 20px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.contact-list a, .contact-list li > span:last-child { color: var(--espresso); font-size: 1.1rem; }
.contact-list a:hover { color: var(--gold); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.contact-map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(.3) sepia(.1); }

/* ===== Footer ===== */
.site-footer { background: var(--espresso); color: var(--blush); text-align: center; padding: 60px 0 40px; }
.footer-logo { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 600; color: var(--cream); display: block; }
.footer-tagline { letter-spacing: .26em; text-transform: uppercase; font-size: .76rem; margin-top: 6px; color: var(--rose); }
.footer-social { display: flex; gap: 16px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.social-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(232, 211, 200, .35);
  color: var(--blush);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.social-icon:hover { color: var(--espresso); background: var(--cream); border-color: var(--cream); transform: translateY(-3px); }
.footer-copy { font-size: .78rem; color: var(--taupe); margin-top: 12px; }

/* ===== Floating Call button ===== */
.fab-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--espresso); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(74, 59, 50, .4);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.fab-call:hover { transform: scale(1.08); background: var(--gold); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-attachment: scroll; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 38px;
    gap: 30px;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateX(0); }
  /* Dark links on the light panel, regardless of hero-on-top state */
  .nav .nav-link { color: var(--espresso) !important; font-size: 1.05rem; padding: 9px 0; min-height: 44px; display: flex; align-items: center; }
  .nav .nav-cta { color: var(--cream) !important; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dim the page behind the open menu */
  .nav-scrim {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(46, 38, 32, .4);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
  }
  .nav-scrim.show { opacity: 1; visibility: visible; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .service-card { padding: 30px 26px 24px; }
  .gallery-item img { height: 240px; }
}

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