/* Willow & Stone — soft, calming spa & salon demo */

:root {
  --cream: #f7f2ea;
  --cream-2: #f0e9de;
  --ink: #3a352e;
  --ink-dim: #756c5f;
  --sage: #7f9273;
  --terracotta: #c3805f;
  --line: rgba(58, 53, 46, 0.12);
  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
}

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

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

a { color: inherit; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin: 0 0 0.75rem;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-mark { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.05em; text-decoration: none; color: var(--ink); }
.nav-mark span { color: var(--terracotta); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--ink-dim); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { border: 1px solid var(--ink); padding: 0.5rem 1.2rem; border-radius: 999px; color: var(--ink) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ---------- hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  animation: heroDrift 30s ease-in-out infinite alternate;
  filter: saturate(0.96);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(247, 242, 234, 0.94) 8%, rgba(247, 242, 234, 0.72) 34%, rgba(247, 242, 234, 0.28) 58%, rgba(247, 242, 234, 0.12) 78%),
    linear-gradient(to top, rgba(247, 242, 234, 0.55), transparent 40%);
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.13) translate(-1%, -1%); }
}

.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; mix-blend-mode: multiply; }
.blob-1 { width: 46vw; height: 46vw; background: rgba(127, 146, 115, 0.22); top: -10%; right: -8%; }
.blob-2 { width: 34vw; height: 34vw; background: rgba(195, 128, 95, 0.18); bottom: -12%; left: -6%; }

/* rising steam wisps — ambient in the hero, and given a boost while the page scrolls */
.steam {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.62;
  transition: opacity 0.7s ease;
}
.steam.is-scrolling { opacity: 1; }
.steam span {
  position: absolute;
  bottom: -10%;
  width: 90px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.18) 45%, transparent 72%);
  filter: blur(6px);
  opacity: 0;
  animation: steamRise linear infinite;
  transition: opacity 0.6s ease;
}
.steam span:nth-child(1) { left: 6%; animation-duration: 16s; animation-delay: 0s; width: 70px; }
.steam span:nth-child(2) { left: 22%; animation-duration: 20s; animation-delay: 3s; width: 110px; }
.steam span:nth-child(3) { left: 41%; animation-duration: 18s; animation-delay: 6s; width: 80px; }
.steam span:nth-child(4) { left: 63%; animation-duration: 22s; animation-delay: 2s; width: 120px; }
.steam span:nth-child(5) { left: 79%; animation-duration: 17s; animation-delay: 8s; width: 90px; }
.steam span:nth-child(6) { left: 92%; animation-duration: 19s; animation-delay: 5s; width: 75px; }

@keyframes steamRise {
  0% { transform: translateY(0) translateX(0) scale(0.9); opacity: 0; }
  15% { opacity: 0.55; }
  50% { transform: translateY(-46vh) translateX(3%) scale(1.15); opacity: 0.4; }
  100% { transform: translateY(-90vh) translateX(-4%) scale(1.4); opacity: 0; }
}

.hero-content { position: relative; z-index: 3; }

.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(3rem, 8.5vw, 6.8rem); line-height: 1.02; font-weight: 500; max-width: 16ch; }
.hero-title em { color: var(--terracotta); font-style: italic; }
.hero-sub { margin: 1.75rem 0 2.25rem; font-size: 1.15rem; color: var(--ink-dim); max-width: 42ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
  .steam span { animation: none; display: none; }
}

/* ---------- philosophy ---------- */

.philosophy { padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem); background: var(--cream-2); }
.philosophy-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; align-items: center; }
.philosophy-grid h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.2; margin: 0 0 1.25rem; }
.philosophy-grid p { color: var(--ink-dim); font-size: 1.1rem; max-width: 46ch; margin: 0; }

.philosophy-stats { display: flex; flex-direction: column; gap: 1.75rem; }
.stat-num { display: block; font-family: var(--serif); font-size: 2.8rem; color: var(--terracotta); line-height: 1; }
.stat-label { font-size: 0.88rem; color: var(--ink-dim); }

/* ---------- treatments ---------- */

.treatments { padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem); max-width: 1160px; margin: 0 auto; text-align: center; }
.treatments h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 22ch; margin: 0 auto 3.5rem; }
.treatments .eyebrow { text-align: center; }

.treatments-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; text-align: left; }
.treatments-col h3 { font-size: 1.5rem; margin-bottom: 1.4rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.treatments-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.treatments-list li { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.98rem; }
.treatments-list i { flex: 1; border-bottom: 1px dotted var(--line); margin-bottom: 5px; }
.treatments-list b { color: var(--terracotta); font-weight: 500; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- space ---------- */

.space { padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3.5rem); text-align: center; background: var(--cream-2); }
.space h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); max-width: 22ch; margin: 0 auto 3.5rem; }
.space .eyebrow { text-align: center; }

.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
.space-card {
  margin: 0;
  text-align: left;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.space-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(58, 53, 46, 0.1); }
.space-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.space-card:hover img { transform: scale(1.06); }
.space-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.4rem 1.3rem;
  background: linear-gradient(to top, rgba(58, 53, 46, 0.82) 15%, rgba(58, 53, 46, 0.35) 60%, transparent 100%);
}
.space-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--cream); }
.space-card p { color: rgba(247, 242, 234, 0.85); font-size: 0.88rem; margin: 0; line-height: 1.4; }

/* ---------- quotes ---------- */

.quotes { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem); }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.quotes blockquote { margin: 0; }
.quotes p { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; margin: 0 0 1rem; }
.quotes cite { font-style: normal; font-size: 0.85rem; color: var(--ink-dim); }

/* ---------- cta ---------- */

.cta { text-align: center; padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 4vw, 3.5rem); background: var(--cream-2); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.cta p { color: var(--ink-dim); margin-bottom: 2.25rem; font-size: 1.08rem; }

/* ---------- footer ---------- */

.site-foot { text-align: center; padding: 3rem 1.5rem 2.5rem; border-top: 1px solid var(--line); }
.foot-mark { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 0.75rem; }
.foot-mark span { color: var(--terracotta); font-style: italic; }
.foot-meta { color: var(--ink-dim); font-size: 0.85rem; margin: 0 0 1rem; }
.foot-credit { font-size: 0.78rem; color: rgba(58, 53, 46, 0.5); margin: 0; }
.foot-credit a { color: var(--terracotta); text-decoration: none; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .treatments-columns { grid-template-columns: 1fr; gap: 2.5rem; }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .space-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.8rem); }

  /* on narrow screens the text column spans nearly the full width, so the
     photo needs a stronger, more uniform wash behind it to stay legible */
  .hero-bg::after {
    background:
      linear-gradient(rgba(247, 242, 234, 0.88), rgba(247, 242, 234, 0.88)),
      linear-gradient(to top, rgba(247, 242, 234, 0.5), transparent 45%);
  }
}
