/* ------------------------------------------------------------------
   Kalani Wainwright — Licensed Esthetician
   Palette: cream, sand, nude blush, peach, espresso, rosewood
   Type: Bodoni Moda (display) + Jost (text)
------------------------------------------------------------------- */

:root {
  --cream: #FBF7F2;
  --sand: #F3EAE0;
  --blush: #F2DCD3;
  --peach: #F9E2D0;
  --ink: #2B1D17;
  --ink-2: #6B5A50;
  --line: #E6DACD;
  --rose: #8C4A3C;        /* text accent — 6.2:1 on cream */
  --rose-mark: #B0695A;   /* chart / decorative marks — 3.9:1 on cream */
  --on-dark: #F6EEE6;
  --on-dark-2: #CDBDB1;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 4px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

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

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(3.1rem, 8.4vw, 6.4rem); line-height: 0.96; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.06; margin-bottom: 0.5em; }
h3 { font-size: 1.55rem; line-height: 1.2; }
em, .italic { font-style: italic; }
sup { font-size: .5em; line-height: 0; vertical-align: super; }

.eyebrow {
  font-family: var(--text);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--ink);
  font-family: var(--text); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--rose); border-color: var(--rose); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn--light:hover { background: var(--on-dark); color: var(--ink); }
.btn--cream { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn--cream:hover { background: var(--blush); border-color: var(--blush); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  color: var(--rose); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.link:hover { color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark__mono {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--ink); font-family: var(--display); font-style: italic; font-size: 1.05rem; line-height: 1;
}
.wordmark__name { font-family: var(--text); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.84rem; letter-spacing: 0.06em; color: var(--ink-2);
  transition: color .2s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 20px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { display: block; width: 100%; padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
}
@media (max-width: 420px) { .wordmark__name { font-size: 0.72rem; letter-spacing: 0.18em; } }

/* ---------- photo frames (graceful when images are missing) ---------- */

.photo {
  position: relative; overflow: hidden; margin: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, var(--peach) 0%, transparent 60%),
    linear-gradient(160deg, var(--sand) 0%, var(--blush) 100%);
}
.photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.photo.has-img img { opacity: 1; }
.photo__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
}
.photo.has-img .photo__fallback { visibility: hidden; }

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

.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 0.32em; }
.hero h1 em { color: var(--rose); }
.hero .lede { margin-bottom: 2.2rem; }

.hero__frame { position: relative; padding: 0 18px 18px 0; }
.hero__frame::after {
  content: ""; position: absolute; inset: 18px 0 0 18px; border: 1px solid var(--rose-mark); opacity: .45; pointer-events: none;
}
.hero__frame .photo { aspect-ratio: 4 / 5; z-index: 1; }
.monogram { font-family: var(--display); font-style: italic; font-size: clamp(7rem, 16vw, 12rem); line-height: .8; color: #fff; opacity: .9; text-shadow: 0 1px 30px rgba(140,74,60,.12); }
.photo__caption { margin-top: 26px; max-width: 90%; line-height: 1.8; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rose); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__frame { max-width: 440px; width: 100%; justify-self: start; }
  .hero__frame .photo { aspect-ratio: 5 / 4; }
}

/* ---------- facts row (stat tiles) ---------- */

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 88px);
}
.fact { padding: 26px 22px 24px 0; }
.fact + .fact { padding-left: 22px; border-left: 1px solid var(--line); }
.fact__value { font-family: var(--text); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.1; letter-spacing: -0.01em; }
.fact__label { margin-top: 6px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark .eyebrow { color: var(--blush); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- about ---------- */

.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid:has(> .photo) { grid-template-columns: 0.85fr 1.15fr; }
.about-grid > .photo { aspect-ratio: 4 / 5; }
.about-grid:not(:has(> .photo)) .about__text { max-width: 780px; }
.about__text p { color: var(--ink-2); }
.about__text p.first { color: var(--ink); font-size: 1.12rem; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.value h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.value p { font-size: .94rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 860px) { .about-grid:has(> .photo) { grid-template-columns: 1fr; } .about-grid > .photo { aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--cream); padding: clamp(26px, 3.4vw, 40px); }
.service__num { font-family: var(--display); font-style: italic; color: var(--rose-mark); font-size: 1.1rem; margin-bottom: 12px; }
.service h3 { margin-bottom: .5rem; }
.service p { color: var(--ink-2); font-size: .98rem; }
.service__list { display: flex; flex-wrap: wrap; row-gap: 2px; margin-top: 1rem; font-size: .86rem; line-height: 1.6; color: var(--ink); letter-spacing: .02em; }
.service__list span:not(:last-child)::after { content: "·"; margin: 0 .55em; color: var(--rose-mark); }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font-size: .84rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* ---------- booking snapshot (single-series bars) ---------- */

.book {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  margin-top: clamp(48px, 6vw, 72px); padding: clamp(26px, 4vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.book h3 { margin-bottom: .5rem; }
.book__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1.6rem 0 0; }
.book__stats div { border-top: 1px solid var(--line); padding-top: 12px; }
.book__stats dd { margin: 0; font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.book__stats dt { font-size: .84rem; line-height: 1.45; color: var(--ink-2); margin-top: 6px; order: 2; }
.book__stats div { display: flex; flex-direction: column; }

.bars__title { font-size: .84rem; color: var(--ink-2); margin-bottom: 14px; }
.bar {
  position: relative; display: grid; grid-template-columns: 9.5em 1fr; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); outline: none;
}
.bar:first-of-type { border-top: 1px solid var(--line); }
.bar__label { font-size: .94rem; }
.bar__track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar__fill {
  height: 14px; width: 0; flex: none; max-width: calc(100% - 3.2em);
  background: var(--rose-mark); border-radius: 0 4px 4px 0;
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}
.book.is-visible .bar__fill { width: calc((100% - 3.2em) * var(--v) / 100); }
.bar__value { font-weight: 600; font-size: .94rem; font-variant-numeric: tabular-nums; }
.bar::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% - 6px); z-index: 2;
  background: var(--ink); color: var(--cream); font-size: .78rem; line-height: 1.3; padding: 6px 10px; border-radius: var(--radius);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; white-space: nowrap;
}
.bar:hover::after, .bar:focus-visible::after { opacity: 1; transform: none; }
.bar:hover .bar__label, .bar:focus-visible .bar__label { color: var(--rose); }
.book__note { margin-top: 14px; font-size: .8rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .bar__fill { transition: none; } }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .bar { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- experience ---------- */

.exp { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.exp__company h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
.exp__company h3 { font-size: 1.9rem; margin-bottom: .4rem; }
.exp__company p { color: var(--ink-2); }
.highlight {
  margin-top: 28px; padding: 22px 24px; background: var(--cream); border-left: 2px solid var(--rose-mark);
}
.highlight__big { font-family: var(--text); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.highlight p { margin-top: 8px; font-size: .94rem; color: var(--ink-2); }

.role { position: relative; padding-left: 30px; padding-bottom: 40px; }
.role:last-child { padding-bottom: 0; }
.role::before { content: ""; position: absolute; left: 4px; top: 12px; bottom: -12px; width: 1px; background: var(--line); }
.role:last-child::before { display: none; }
.role::after { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--rose-mark); box-shadow: 0 0 0 4px var(--sand); }
.role__dates { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); margin-bottom: 4px; }
.role h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.role li { position: relative; padding-left: 20px; color: var(--ink-2); margin-bottom: .45rem; line-height: 1.6; }
.role li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--rose-mark); }
.role li strong { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } }

/* ---------- credentials ---------- */

.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cred { padding: 28px 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cred__tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; }
.cred h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.cred__meta { font-size: .9rem; color: var(--ink-2); margin-bottom: .8rem; }
.cred p { font-size: .94rem; color: var(--ink-2); line-height: 1.6; }
.cred .link { font-size: .86rem; }
.cred--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brands span { font-size: .8rem; padding: 5px 12px; background: var(--sand); border-radius: 999px; }
@media (max-width: 760px) { .creds, .cred--wide { grid-template-columns: 1fr; } }

/* ---------- client care ---------- */

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.care__card { background: var(--cream); padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius); }
.care__card h3 { margin-bottom: 1.2rem; }
.care__list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.care__list li strong { display: block; color: var(--ink); font-weight: 500; }
.care__alert { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 24px 28px; border: 1px solid var(--rose-mark); border-radius: var(--radius); }
.care__alert-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose); font-family: var(--display); font-style: italic; font-size: 1.1rem; }
.care__alert p { color: var(--ink-2); font-size: .96rem; }
.care__alert ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: .9rem; }
.care__alert li::before { content: "—"; color: var(--rose-mark); margin-right: 8px; }
@media (max-width: 760px) { .care { grid-template-columns: 1fr; } .care__alert { grid-template-columns: 1fr; } }

/* ---------- gallery (hidden until photos are added) ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .photo { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; z-index: 1;
  font-size: .82rem; color: #fff; background: linear-gradient(transparent, rgba(43,29,23,.55));
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- testimonials ---------- */

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.quote { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; }
.quote figcaption { margin-top: 18px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.stars { color: var(--rose-mark); letter-spacing: .2em; margin-bottom: 18px; font-size: .9rem; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.refs {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
}
.refs p { color: var(--ink-2); max-width: 46em; }
.refs strong { color: var(--ink); font-weight: 500; }

/* ---------- contact ---------- */

.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.contact h2 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.contact h2 em { color: var(--blush); }
.contact .lede { color: var(--on-dark-2); }
.contact__list li { border-top: 1px solid rgba(246,238,230,.18); }
.contact__list li:last-child { border-bottom: 1px solid rgba(246,238,230,.18); }
.contact__list a, .contact__list div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none;
}
.contact__list span:first-child { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-2); }
.contact__list span:last-child { font-size: 1.05rem; text-align: right; overflow-wrap: anywhere; }
.contact__list a:hover span:last-child { color: var(--blush); }
.contact .btn-row { margin-top: 2rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

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

.site-footer { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid rgba(246,238,230,.12); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 26px; font-size: .84rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media print {
  .site-header, .nav-toggle, .btn-row { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section--dark, .site-footer { background: #fff; color: var(--ink); }
}
