/* ==========================================================================
   Encanto Beauty Spa — Design System
   Palette: warm ivory, champagne, warm charcoal, dusty rose (used sparingly)
   Type: Fraunces (display serif) + Inter (body sans)
   ========================================================================== */

:root {
  --ivory: #FAF6EF;
  --cream: #F1EADC;
  --champagne: #D9C6A3;
  --taupe: #B7A387;
  --charcoal: #2A241F;
  --brown: #5B4A3B;
  --rose: #B8837C;
  --rose-deep: #9C645C;
  --line: rgba(42, 36, 31, 0.14);
  --white: #FFFDF9;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--brown);
  max-width: 46ch;
  line-height: 1.65;
}

.serif-italic { font-style: italic; }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--rose-deep); }
.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-outline.on-dark { border-color: rgba(250,246,239,0.55); color: var(--ivory); }
.btn-outline.on-dark:hover { background: var(--ivory); color: var(--charcoal); }
.btn-sm { padding: 11px 22px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.brand span { color: var(--rose-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.93rem;
  color: var(--brown);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--charcoal); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none; border: none;
  width: 34px; height: 24px;
  position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { 
    position: fixed; inset: 73px 0 0 0;
    background: var(--ivory);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 20px var(--gutter) 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links .nav-book { margin-top: 20px; }
  .menu-toggle { display: block; }
  .nav-cta .btn-outline.desktop-only { display: none; }
}

/* ---------- Placeholder media blocks ---------- */
/* Used in place of real salon photography until assets are supplied. */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--champagne) 0%, var(--cream) 55%, var(--taupe) 100%);
  color: var(--charcoal);
  min-height: 220px;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(42,36,31,0.10), transparent 50%);
}
.ph-label {
  position: relative;
  margin: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: rgba(250,246,239,0.78);
  padding: 6px 12px;
  border: 1px solid var(--line);
}
.ph.tall { min-height: 420px; }
.ph.short { min-height: 160px; }
.ph.square { aspect-ratio: 1/1; min-height: 0; }
.ph.portrait { aspect-ratio: 3/4; min-height: 0; }
.ph.hero-media { min-height: 100%; height: 100%; }

/* ---------- Sections ---------- */
section { padding: clamp(70px, 10vw, 130px) 0; }
.section-tight { padding: clamp(40px, 6vw, 70px) 0; }
.bg-cream { background: var(--cream); }
.bg-charcoal { background: var(--charcoal); color: var(--ivory); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--ivory); }
.bg-charcoal .lede { color: rgba(250,246,239,0.72); }
.bg-rose-line { border-top: 1px solid var(--line); }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
  font-family: var(--font-body);
  margin-bottom: 14px;
  display: block;
}

.divider {
  width: 64px;
  height: 1px;
  background: var(--taupe);
  margin: 26px 0;
  border: none;
}

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Service list ---------- */
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-name { font-family: var(--font-display); font-size: 1.2rem; }
.service-desc { font-size: 0.92rem; color: var(--brown); margin-top: 4px; max-width: 52ch; }
.service-price { font-family: var(--font-body); font-size: 0.98rem; white-space: nowrap; color: var(--brown); }
.service-group-title { margin-bottom: 6px; }
.service-group { margin-bottom: 56px; }
.service-group:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.team-card { text-align: left; }
.team-name { font-family: var(--font-display); font-size: 1.3rem; margin-top: 18px; }
.team-role { font-size: 0.88rem; color: var(--rose-deep); margin-top: 4px; }

.testimonial {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.testimonial:first-child { border-top: 1px solid var(--line); }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 400;
  margin: 0 0 14px;
  max-width: 62ch;
  line-height: 1.5;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--brown);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(250,246,239,0.82);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,246,239,0.14);
}
.footer-grid h4 {
  color: var(--ivory);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  font-family: var(--font-body);
}
.footer-grid a, .footer-grid p { font-size: 0.9rem; color: rgba(250,246,239,0.68); line-height: 2; }
.footer-grid a:hover { color: var(--ivory); }
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--ivory); margin-bottom: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 0.8rem;
  color: rgba(250,246,239,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Fade-in on scroll (single subtle treatment) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker { margin-bottom: 18px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--rose-deep);
  color: var(--ivory);
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
}
.cta-banner h2 { color: var(--ivory); }
.cta-banner .lede { color: rgba(250,246,239,0.85); margin: 18px auto 30px; }
.cta-banner .btn-primary { background: var(--ivory); color: var(--charcoal); }
.cta-banner .btn-primary:hover { background: var(--charcoal); color: var(--ivory); }

/* ---------- Notice (placeholder callouts, aftercare, etc.) ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--rose-deep);
  padding: 22px 26px;
  background: var(--white);
  font-size: 0.92rem;
  color: var(--brown);
  max-width: 70ch;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid .ph { cursor: pointer; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,17,14,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 800px; width: 100%; }
.lightbox-close {
  position: absolute; top: 26px; right: 30px;
  background: none; border: none; color: var(--ivory);
  font-size: 1rem; letter-spacing: 0.04em;
}

/* Star row */
.stars { color: var(--rose-deep); font-size: 0.95rem; letter-spacing: 2px; }
