/* ============ Solnbeauty — design tokens ============ */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', system-ui, sans-serif;

  --radius-sm: 8px; --radius: 16px; --radius-lg: 26px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31, 61, 45, .06), 0 4px 12px rgba(31, 61, 45, .05);
  --shadow-md: 0 8px 30px rgba(31, 61, 45, .10);
  --maxw: 1200px;
  --header-h: 72px;
}

:root, [data-theme='light'] {
  --color-bg: #f2f8f2;
  --color-surface: #ffffff;
  --color-surface-2: #fbfefb;
  --color-surface-offset: #e6f2e7;
  --color-surface-offset-2: #d8ebda;
  --color-divider: #d3e6d5;
  --color-border: #c3dcc6;

  --color-text: #17271d;
  --color-text-muted: #55685c;
  --color-text-faint: #8ba392;
  --color-text-inverse: #f6fcf7;

  --color-primary: #1f6b45;
  --color-primary-hover: #175737;
  --color-primary-soft: #cfeeda;
  --color-accent: #7fd6a2;
  --hero-scrim: linear-gradient(105deg, rgba(242,248,242,.96) 0%, rgba(242,248,242,.88) 42%, rgba(242,248,242,.32) 72%, rgba(242,248,242,.12) 100%);
}

[data-theme='dark'] {
  --color-bg: #0e1712;
  --color-surface: #16221b;
  --color-surface-2: #1b2a22;
  --color-surface-offset: #1e3027;
  --color-surface-offset-2: #25392e;
  --color-divider: #2a4033;
  --color-border: #32503f;

  --color-text: #eaf5ec;
  --color-text-muted: #a3bdac;
  --color-text-faint: #7a9584;
  --color-text-inverse: #0e1712;

  --color-primary: #7fd6a2;
  --color-primary-hover: #a3e5bd;
  --color-primary-soft: #23402f;
  --color-accent: #7fd6a2;
  --hero-scrim: linear-gradient(105deg, rgba(14,23,18,.97) 0%, rgba(14,23,18,.9) 42%, rgba(14,23,18,.45) 74%, rgba(14,23,18,.2) 100%);
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .18em;
  font-weight: 600; color: var(--color-primary); display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--color-primary); opacity: .55; }
.section-head { display: flex; flex-direction: column; gap: var(--space-4); max-width: 62ch; margin-bottom: var(--space-12); }
.section-head h2 { font-size: var(--text-xl); }
.section-head p { color: var(--color-text-muted); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 600; border: 1px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: var(--color-text-inverse); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--sm { padding: var(--space-2) var(--space-4); }

/* ============ header ============ */
.header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.header.is-stuck { border-bottom-color: var(--color-divider); }
.header__inner { display: flex; align-items: center; gap: var(--space-6); width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-6); }
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--color-primary); flex-shrink: 0; }
.logo__text { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; color: var(--color-text); line-height: 1; }
.logo__text span { display: block; font-family: var(--font-body); font-size: .625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-text-faint); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); position: relative; transition: color .2s ease; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--color-primary); transition: width .25s ease; }
.nav a:hover { color: var(--color-text); }
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border);
  background: transparent; color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s ease; flex-shrink: 0;
}
.icon-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.burger { display: none; }
#sun { display: none; }
[data-theme='dark'] #sun { display: block; }
[data-theme='dark'] #moon { display: none; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__inner { padding-block: clamp(var(--space-20), 11vw, 9rem); max-width: 40rem; }
.hero h1 { font-size: var(--text-3xl); margin-block: var(--space-5) var(--space-5); }
.hero h1 em { font-style: italic; color: var(--color-primary); }
.hero__lead { color: var(--color-text-muted); font-size: var(--text-lg); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-10); margin-top: var(--space-12); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.hero__meta span { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: .12em; }

/* ============ marquee strip ============ */
.strip { border-block: 1px solid var(--color-divider); background: var(--color-surface-offset); overflow: hidden; }
.strip__track { display: flex; gap: var(--space-10); padding-block: var(--space-4); width: max-content; animation: slide 34s linear infinite; }
.strip__track span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .2em; color: var(--color-primary); display: flex; align-items: center; gap: var(--space-10); font-weight: 600; }
.strip__track span::after { content: '✦'; opacity: .5; letter-spacing: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

/* ============ about ============ */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.about__text p + p { margin-top: var(--space-4); }
.about__text p { color: var(--color-text-muted); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.about__grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about__grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.about__grid figure:nth-child(1) { transform: translateY(var(--space-6)); }
.about__grid figure:nth-child(2) img { aspect-ratio: 4/5; }
.about__grid figure:nth-child(3) img { aspect-ratio: 4/5; }
.about__grid figure:nth-child(4) { transform: translateY(var(--space-6)); }

.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); margin-top: var(--space-16); }
.perk { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius); padding: var(--space-6); transition: transform .2s ease, box-shadow .2s ease; }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.perk svg { color: var(--color-primary); margin-bottom: var(--space-4); }
.perk h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.perk p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ============ services ============ */
.services { background: var(--color-surface-2); border-block: 1px solid var(--color-divider); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.tab {
  padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: transparent; color: var(--color-text-muted);
  font-size: var(--text-sm); transition: all .2s ease;
}
.tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab[aria-selected='true'] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); font-weight: 600; }
.price-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-3) var(--space-8); }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); align-items: baseline;
  padding: var(--space-4) 0; border-bottom: 1px dashed var(--color-divider);
}
.price-row__name { font-size: var(--text-sm); font-weight: 500; }
.price-row__meta { grid-column: 1; font-size: var(--text-xs); color: var(--color-text-faint); }
.price-row__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary); white-space: nowrap; }
.price-row__price small { font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-text-faint); font-weight: 500; margin-right: 4px; }
.services__note { margin-top: var(--space-10); font-size: var(--text-sm); color: var(--color-text-muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

/* ============ booking ============ */
.booking__head { text-align: center; align-items: center; margin-inline: auto; }
.booking__head .eyebrow { justify-content: center; }
.booking-card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-md); overflow: hidden;
}
.booking-card iframe { width: 100%; height: 760px; border: 0; border-radius: var(--radius); display: block; background: var(--color-surface-2); }
.booking-fallback { margin-top: var(--space-5); text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.booking-fallback a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.booking-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); margin-bottom: var(--space-12); }
.booking-step { display: flex; gap: var(--space-4); align-items: flex-start; }
.booking-step b {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary-soft);
  color: var(--color-primary); display: grid; place-items: center; font-family: var(--font-display); font-size: var(--text-sm);
}
.booking-step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.booking-step strong { display: block; color: var(--color-text); font-size: var(--text-sm); margin-bottom: 2px; }

/* ============ masters ============ */
.masters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.master {
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.master img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.master__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.master__body h3 { font-size: var(--text-lg); }
.master__role { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--color-primary); font-weight: 600; }
.master__body p { font-size: var(--text-sm); color: var(--color-text-muted); }
.master__rating { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); margin-top: auto; padding-top: var(--space-4); color: var(--color-text-muted); }
.master__rating b { color: var(--color-text); }

/* ============ gallery ============ */
.gallery { background: var(--color-surface-offset); border-block: 1px solid var(--color-divider); }
.gallery__grid { columns: 4; column-gap: var(--space-4); }
.gallery__grid button {
  display: block; width: 100%; margin-bottom: var(--space-4); padding: 0; border: 0; background: none;
  border-radius: var(--radius); overflow: hidden; line-height: 0; box-shadow: var(--shadow-sm);
}
.gallery__grid img { width: 100%; transition: transform .5s ease, filter .3s ease; }
.gallery__grid button:hover img { transform: scale(1.05); filter: saturate(1.1); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 12, .9); display: none; place-items: center; padding: var(--space-6); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox__close { position: absolute; top: var(--space-6); right: var(--space-6); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; }

/* ============ reviews ============ */
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-5); }
.review {
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
}
.review__stars { color: var(--color-primary); letter-spacing: .15em; font-size: var(--text-sm); }
.review p { font-size: var(--text-sm); color: var(--color-text-muted); }
.review footer { margin-top: auto; font-size: var(--text-xs); color: var(--color-text-faint); }
.review footer b { display: block; font-size: var(--text-sm); color: var(--color-text); font-weight: 600; }

/* ============ contacts ============ */
.contacts { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.contact-item { display: flex; gap: var(--space-4); }
.contact-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.contact-item span { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .14em; color: var(--color-text-faint); display: block; margin-bottom: 2px; }
.contact-item a, .contact-item p { font-size: var(--text-sm); }
.contact-item a:hover { color: var(--color-primary); }
.hours { list-style: none; margin: 0; padding: 0; font-size: var(--text-sm); }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-1) 0; color: var(--color-text-muted); max-width: 18rem; }
.socials { display: flex; gap: var(--space-3); margin-top: var(--space-8); flex-wrap: wrap; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-divider); box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 480px; border: 0; display: block; filter: saturate(.9); }

/* ============ footer ============ */
.footer { background: var(--color-surface-offset-2); border-top: 1px solid var(--color-divider); padding-block: var(--space-12) var(--space-8); }
.footer__top { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: flex-start; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-5); font-size: var(--text-sm); }
.footer__nav a { color: var(--color-text-muted); }
.footer__nav a:hover { color: var(--color-primary); }
.footer__bottom { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between; font-size: var(--text-xs); color: var(--color-text-faint); }

/* ============ floating cta ============ */
.fab { position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 70; display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end; }
.fab a { box-shadow: var(--shadow-md); }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============ responsive ============ */
@media (max-width: 1080px) { .gallery__grid { columns: 3; } }
@media (max-width: 900px) {
  .nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-divider); padding: var(--space-4) var(--space-6) var(--space-6); box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--space-3) 0; font-size: var(--text-base); border-bottom: 1px solid var(--color-divider); }
  .nav a::after { display: none; }
  .burger { display: inline-flex; }
  .header__nav-cta { display: none; }
  .about, .contacts { grid-template-columns: 1fr; }
  .about__grid figure:nth-child(n) { transform: none; }
  .gallery__grid { columns: 2; }
  .booking-card iframe { height: 700px; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: var(--space-5); }
  .hero__lead { max-width: none; }
  .hero__meta { gap: var(--space-5) var(--space-8); }
  .price-list { grid-template-columns: 1fr; }
  .booking-card { padding: var(--space-2); }
  .booking-card iframe { height: 640px; }
  .fab a span { display: none; }
  .fab a { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
}

/* ============ hero scrim on narrow screens ============ */
@media (max-width: 760px) {
  .hero__media img { object-position: center 30%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(242,248,242,.96) 0%, rgba(242,248,242,.93) 60%, rgba(242,248,242,.88) 100%);
  }
  [data-theme='dark'] .hero__media::after {
    background: linear-gradient(180deg, rgba(14,23,18,.97) 0%, rgba(14,23,18,.94) 60%, rgba(14,23,18,.9) 100%);
  }
  .hero__inner { padding-block: var(--space-16) var(--space-12); }
}
