/* ============================================================
   MAGALI ANGELA — editorial calm-luxury
   Palette: warm cream ground, deep ink, muted clay accent
   Type: Fraunces (display serif) + Karla (body sans)
   ============================================================ */

:root {
  /* color tokens */
  --cream: #f6f1e8;
  --cream-deep: #ede5d6;
  --ink: #211d18;
  --ink-soft: #4d463d;
  --clay: #a4653f;
  --clay-deep: #8a5232;
  --sage: #7d8271;
  --line: rgba(33, 29, 24, 0.16);

  /* type */
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Karla", "Helvetica Neue", sans-serif;

  /* scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.88rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.8rem + 2vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 5.2rem);

  /* space */
  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3rem);
  --space-l: clamp(4rem, 8vw, 7rem);
  --space-xl: clamp(6rem, 12vw, 10rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 76rem;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain */
  background-image: radial-gradient(
      rgba(33, 29, 24, 0.025) 1px,
      transparent 1px
    );
  background-size: 5px 5px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}

/* ---------- utilities ---------- */
.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 1.9em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--solid {
  background: var(--ink);
  color: var(--cream);
}

.btn--solid:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
}

.btn--clay {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.btn--clay:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark em {
  font-style: italic;
  color: var(--clay);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.site-nav a:not(.btn) {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.site-nav a:not(.btn):hover {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin-block: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 47.9rem) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open {
    display: flex;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: var(--space-l);
  position: relative;
  overflow: hidden;
}

.hero__label {
  margin-bottom: var(--space-s);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

.hero__title em {
  font-style: italic;
  color: var(--clay);
}

.hero__sub {
  margin-top: var(--space-m);
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
  font-weight: 400;
}

.hero__actions {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__scroll {
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

/* decorative arc in hero */
.hero__arc {
  position: absolute;
  right: -12vw;
  top: 8rem;
  width: clamp(18rem, 42vw, 34rem);
  height: clamp(18rem, 42vw, 34rem);
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    var(--cream-deep) 0%,
    rgba(164, 101, 63, 0.18) 55%,
    rgba(125, 130, 113, 0.22) 100%
  );
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}

/* ---------- section scaffolding ---------- */
.section {
  padding-block: var(--space-l);
}

.section--rule {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  margin-bottom: var(--space-m);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.section-head h2 em {
  font-style: italic;
  color: var(--clay);
}

/* ---------- about ---------- */
.about__grid {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

@media (min-width: 48rem) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-l);
  }
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 12px 12px; /* arch shape */
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--cream-deep) 0%,
    #d9c9b2 40%,
    #b99a7d 78%,
    #9a7a5e 100%
  );
  position: relative;
  max-width: 26rem;
}

.portrait-frame::after {
  content: "portrait — replace";
  position: absolute;
  inset: auto 0 1.2rem 0;
  text-align: center;
  font-size: var(--step--1);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.85);
}

.about__body p + p {
  margin-top: 1.2em;
}

.about__body .lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.35;
  font-weight: 400;
}

.about__creds {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  list-style: none;
}

/* ---------- treatments ---------- */
.treatments__grid {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 48rem) {
  .treatments__grid {
    grid-template-columns: 1fr 1fr;
  }
  /* editorial stagger */
  .treatment:nth-child(even) {
    transform: translateY(var(--space-m));
  }
}

.treatment {
  display: flex;
  flex-direction: column;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.treatment__media {
  aspect-ratio: 3 / 2;
  position: relative;
}

.treatment__media--01 {
  background: linear-gradient(150deg, #cfa982, #a4653f 85%);
}
.treatment__media--02 {
  background: linear-gradient(150deg, #aeb49c, #71785f 85%);
}
.treatment__media--03 {
  background: linear-gradient(150deg, #c4a68b, #7d5c45 85%);
}
.treatment__media--04 {
  background: linear-gradient(150deg, #b6ac95, #5f594a 85%);
}

.treatment__num {
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  color: rgba(246, 241, 232, 0.92);
}

.treatment__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.treatment__body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.2;
}

.treatment__desc {
  color: var(--ink-soft);
}

.treatment__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.treatment__tags li {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

.treatment__meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.treatment__price {
  font-family: var(--serif);
  font-size: var(--step-1);
}

.treatment__price span {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  gap: var(--space-m);
  counter-reset: step;
  list-style: none;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  border-top: 1px solid var(--ink);
  padding-top: 1.25rem;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--clay);
  display: block;
  margin-bottom: 0.6rem;
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-1);
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--ink-soft);
}

/* ---------- testimonials ---------- */
.quotes {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 48rem) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quotes blockquote {
  border-left: 2px solid var(--clay);
  padding-left: 1.5rem;
}

.quotes blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
}

.quotes cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- faq ---------- */
.faq {
  max-width: 46rem;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-1);
  color: var(--clay);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details > p {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- booking CTA ---------- */
.book-cta {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding-block: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.book-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 110%,
    rgba(164, 101, 63, 0.35),
    transparent 70%
  );
  pointer-events: none;
}

.book-cta .label {
  color: #c9906b;
}

.book-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.15;
  max-width: 22ch;
  margin: var(--space-s) auto 0;
}

.book-cta h2 em {
  font-style: italic;
  color: #c9906b;
}

.book-cta__actions {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.book-cta .btn {
  border-color: var(--cream);
  color: var(--cream);
}

.book-cta .btn:hover {
  background: var(--cream);
  color: var(--ink);
}

.book-cta .btn--solid {
  background: var(--clay);
  border-color: var(--clay);
}

.book-cta .btn--solid:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.book-cta__alt {
  margin-top: var(--space-m);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.65);
}

.book-cta__alt a {
  color: var(--cream);
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: var(--space-m);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--clay);
}

/* ---------- keyword marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.1rem;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee__track span {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  color: var(--ink);
}

.marquee__track span:nth-child(even) {
  font-style: italic;
  color: var(--clay);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* ---------- hero line-reveal masking ---------- */
.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > span {
  display: inline-block;
}

/* ---------- treatment hover lift ---------- */
@media (hover: hover) {
  .treatment {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .treatment:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(33, 29, 24, 0.35);
  }
  @media (min-width: 48rem) {
    .treatment:nth-child(even):hover {
      transform: translateY(calc(var(--space-m) - 6px));
    }
  }
  .treatment__media {
    overflow: hidden;
  }
  .treatment__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .treatment:hover .treatment__media::before {
    transform: scale(1.05);
  }
}

/* ---------- giant closing wordmark ---------- */
.footer-mark {
  overflow: hidden;
  padding-top: var(--space-m);
}

.footer-mark span {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 12.5vw, 11rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--cream-deep);
  -webkit-text-stroke: 1px rgba(33, 29, 24, 0.35);
  user-select: none;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-s);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--clay);
}

.breadcrumb li + li::before {
  content: "→";
  margin-right: 0.6rem;
  color: var(--line);
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding-top: clamp(8rem, 15vh, 11rem);
  padding-bottom: var(--space-m);
}

.page-hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
}

.page-hero__title em {
  font-style: italic;
  color: var(--clay);
}

.page-hero__intro {
  margin-top: var(--space-s);
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
}

/* service detail hero meta row */
.service-hero__meta {
  margin-top: var(--space-m);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-top: var(--space-s);
  border-top: 1px solid var(--line);
}

.service-hero__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-3);
  color: var(--clay);
}

/* ---------- prose (long-form service copy) ---------- */
.prose {
  max-width: 60ch;
}

.prose p + p {
  margin-top: 1.2em;
}

.prose .lede {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.35;
}

/* two-col service body on wide screens */
.service-body {
  display: grid;
  gap: var(--space-m);
}

@media (min-width: 64rem) {
  .service-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-l);
  }
}

.service-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  align-self: start;
}

.service-aside__card {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.service-aside__card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-1);
  margin-bottom: 0.75rem;
}

.service-aside__card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-aside__card ul li {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ---------- cross-links ("also on the menu") ---------- */
.menu-links {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  list-style: none;
}

@media (min-width: 48rem) {
  .menu-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-links a {
  display: block;
  background: var(--cream);
  padding: 1.75rem var(--space-s);
  text-decoration: none;
  transition: background-color 0.35s ease;
}

.menu-links a:hover {
  background: var(--cream-deep);
}

.menu-links .label {
  display: block;
  margin-bottom: 0.4rem;
}

.menu-links strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--step-1);
}

/* ---------- treatment card as link ---------- */
.treatment__link {
  text-decoration: none;
  color: inherit;
}

.treatment__more {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

/* ---------- booking embed ---------- */
.booking-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-deep);
  min-height: 44rem;
}

.booking-fallback {
  margin-top: var(--space-m);
  text-align: center;
  color: var(--ink-soft);
}

.booking-fallback a {
  color: var(--ink);
}

/* ---------- reveal (GSAP hooks) ----------
   Content is visible by default; GSAP hides and animates it in
   only when it actually runs. No-JS / reduced-motion / blocked-CDN
   all get a fully visible page. */
