/* ============================================================
   MISAVI Beauty — Quiet Luxury Editorial
   ============================================================ */

:root {
  --ivory:   #F4EEE6;
  --cream:   #EAE1D4;
  --espresso:#2B211B;
  --coffee:  #5A4A3E;
  --rose:    #B87E70;   /* muted rose-gold accent */
  --rose-dk: #9A6154;
  --gold:    #C2A15B;
  --line:    rgba(43, 33, 27, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }

::selection { background: var(--rose); color: var(--ivory); }

/* --- Grain overlay --- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  z-index: 10000; transition: width .1s linear;
}

/* --- Typography helpers --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--rose-dk); }

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

.section { padding: clamp(4rem, 10vw, 9rem) var(--pad); position: relative; }
.section__index {
  display: inline-block; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--coffee); margin-bottom: 2.5rem;
  position: relative; padding-left: 2.4rem;
}
.section__index::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 1.8rem;
  height: 1px; background: var(--rose);
}

/* --- Buttons --- */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 1.05em 2.2em; border-radius: 100px; transition: all .5s var(--ease);
  cursor: pointer; position: relative; overflow: hidden;
}
.btn--solid { background: var(--espresso); color: var(--ivory); }
.btn--solid:hover { background: var(--rose-dk); transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(154,97,84,.6); }
.btn--ghost { border: 1px solid var(--line); color: var(--espresso); }
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad); transition: all .5s var(--ease);
}
.nav.scrolled {
  background: rgba(244,238,230,.82); backdrop-filter: blur(14px);
  padding-top: 1rem; padding-bottom: 1rem; box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .04em;
  text-decoration: none; color: var(--espresso); font-weight: 400;
}
.nav__brand span { font-style: italic; color: var(--rose-dk); margin-left: .25em; }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  text-decoration: none; color: var(--espresso); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; position: relative; opacity: .8;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--rose); transition: width .4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  text-decoration: none; color: var(--ivory); background: var(--espresso);
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .8em 1.6em; border-radius: 100px; transition: all .4s var(--ease);
}
.nav__cta:hover { background: var(--rose-dk); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(3rem,7vw,6rem); overflow: hidden; }
.hero__media { position: absolute; inset: -10% 0; z-index: 0; }
.hero__media img { width: 100%; height: 120%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,33,27,.25) 0%, rgba(43,33,27,.15) 40%, rgba(43,33,27,.72) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 780px; color: var(--ivory); }
.hero .eyebrow { color: #E9D9CB; }
.hero__title {
  font-size: clamp(3.2rem, 11vw, 9rem); line-height: .95; margin: 1rem 0 1.5rem;
  color: var(--ivory);
}
.hero__title span { display: block; }
.hero__title em { color: #E7C9A8; }
.hero__lede { max-width: 44ch; font-size: clamp(1rem,1.6vw,1.2rem); color: #F0E7DC; opacity: .92; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero__actions .btn--ghost { color: var(--ivory); border-color: rgba(255,255,255,.4); }
.hero__actions .btn--ghost:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(3rem,7vw,6rem); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  text-decoration: none; color: var(--ivory); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 46px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--ivory); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0%{top:-50%} 60%,100%{top:100%} }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { background: var(--espresso); color: var(--ivory); padding: 1.4rem 0; overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 2.5rem; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem,3vw,2.4rem); font-style: italic; font-weight: 300; }
.marquee__track i { color: var(--rose); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philo__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.philo__text h2 { font-size: clamp(2.2rem,5vw,4rem); margin-bottom: 1.6rem; }
.philo__text p { max-width: 46ch; color: var(--coffee); font-size: 1.05rem; }
.philo__stats { display: flex; gap: clamp(1.5rem,4vw,3.5rem); margin-top: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; color: var(--rose-dk); }
.stat__suffix { display: inline; font-family: var(--font-display); font-size: 1.6rem; color: var(--rose-dk); }
.stat__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coffee); margin-top: .6rem; }
.philo__figure { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.philo__figure img { transition: transform 1.2s var(--ease); }
.philo__figure:hover img { transform: scale(1.05); }
.philo__figure figcaption {
  position: absolute; bottom: 1rem; left: 1rem; background: rgba(244,238,230,.9);
  padding: .5em 1em; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 100px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__head { margin-bottom: 3.5rem; }
.services__head h2 { font-size: clamp(2.2rem,5vw,4rem); }
.services__head p { color: var(--coffee); font-size: 1.1rem; margin-top: .6rem; font-style: italic; font-family: var(--font-display); }
.services__list { display: flex; flex-direction: column; }
.service {
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(1.5rem,4vw,4rem);
  align-items: center; padding: clamp(1.5rem,3vw,2.4rem) 0; border-top: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: clamp(0px,1.5vw,1.5rem); }
.service__img { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.service__img img { transition: transform 1.1s var(--ease); }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { display: flex; flex-direction: column; gap: .5rem; position: relative; }
.service__no { font-family: var(--font-display); font-style: italic; color: var(--rose); font-size: 1rem; }
.service__body h3 { font-size: clamp(1.8rem,3.5vw,2.8rem); }
.service__body p { color: var(--coffee); max-width: 52ch; }
.service__price {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso);
  margin-top: .4rem; padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 100px; align-self: flex-start;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery__title { font-size: clamp(2.2rem,5vw,4rem); margin-bottom: 3rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery__item { overflow: hidden; border-radius: 3px; grid-column: span 1; grid-row: span 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; grid-row: span 1; }
.gallery__item img { transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }

/* ============================================================
   QUOTE
   ============================================================ */
.quote { text-align: center; background: var(--cream); }
.quote blockquote { max-width: 900px; margin: 0 auto; }
.quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.6rem,4vw,3rem); line-height: 1.25; }
.quote cite { display: block; margin-top: 2rem; font-style: normal; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-dk); }

/* ============================================================
   BOOKING
   ============================================================ */
.booking { background: var(--espresso); color: var(--ivory); }
.booking .section__index { color: #C9BBAE; }
.booking .section__index::before { background: var(--rose); }
.booking__head { max-width: 620px; margin-bottom: 2.6rem; }
.booking__head h2 { font-size: clamp(2.2rem,5vw,4rem); color: var(--ivory); }
.booking__head h2 em { color: #E7C9A8; }
.booking__head p { color: #D9CCC0; margin-top: .8rem; font-size: 1.05rem; }
.booking__frame {
  background: var(--ivory); border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.08);
}
.booking__frame iframe { width: 100%; height: 760px; border: 0; display: block; }
.booking__fallback { margin-top: 1.4rem; font-size: .85rem; color: #C9BBAE; }
.booking__fallback a { color: #E7C9A8; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4rem); align-items: stretch; max-width: 640px; }
.contact__info h2 { font-size: clamp(2rem,4.5vw,3.4rem); margin-bottom: 1.6rem; }
.contact__info address { font-style: normal; font-size: 1.15rem; line-height: 1.7; color: var(--coffee); }
.contact__info address strong { color: var(--espresso); font-weight: 500; }
.contact__meta { list-style: none; margin: 2rem 0; border-top: 1px solid var(--line); }
.contact__meta li { display: flex; justify-content: space-between; max-width: 340px; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--coffee); }
.contact__meta li span { color: var(--espresso); letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--espresso); color: var(--ivory); padding: clamp(3rem,6vw,5rem) var(--pad) 2rem; }
.footer__top { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 2.5rem; margin-bottom: 1.6rem; }
.footer__brand { font-family: var(--font-display); font-size: clamp(2.5rem,8vw,6rem); letter-spacing: .02em; }
.footer__brand em { color: var(--rose); }
.footer__top p { color: #C9BBAE; margin-top: .6rem; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: #A9998C; }
.footer__nav { display: flex; gap: 1.6rem; }
.footer__nav a { color: #C9BBAE; text-decoration: none; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; }
.footer__nav a:hover { color: var(--rose); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .hero__scroll i::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .philo__grid { grid-template-columns: 1fr; }
  .philo__figure { aspect-ratio: 3/2; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service__img { aspect-ratio: 16/9; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; }
  .booking__frame iframe { height: 620px; }
}

@media (max-width: 520px) {
  .nav__cta { display: none; }
  .hero__scroll { display: none; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--tall, .gallery__item--wide { grid-column: span 1; grid-row: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
