/* ============================================================
   SOLSTICE AESTHETICS — Clinical luxury med spa
   Palette: bone, linen, sand, dusty rose-clay
   Type: Fraunces (display) + Hanken Grotesk (body)
   Motion: slow, expensive — glides, never snaps
   ============================================================ */

:root {
  --bone: #f5f0eb;
  --linen: #faf7f3;
  --sand: #e8dfd4;
  --sand-deep: #d9cfc3;
  --clay: #b8938a;
  --clay-deep: #a07d74;
  --clay-soft: rgba(184, 147, 138, 0.14);
  --ink: #2a2420;
  --ink-soft: rgba(42, 36, 32, 0.68);
  --ink-faint: rgba(42, 36, 32, 0.42);
  --white: #ffffff;
  --shadow-soft: 0 24px 64px rgba(42, 36, 32, 0.06);
  --shadow-card: 0 16px 48px rgba(42, 36, 32, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --container: 1180px;
  --nav-h: 72px;
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--clay-soft); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* ---------- ambient layers ---------- */
.ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-drift 12s steps(8) infinite;
}

@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 0.8%); }
  50% { transform: translate(1%, -1.2%); }
  75% { transform: translate(-0.5%, 1.5%); }
}

/* ---------- typography ---------- */
.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 20px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.body {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
}

.body.center { margin: 0 auto; text-align: center; }

.section-head { text-align: center; margin-bottom: 72px; }
.section-head .body { margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.7s var(--ease-glide), box-shadow 0.7s var(--ease-glide), background 0.5s ease, color 0.5s ease;
}

.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--ink);
  color: var(--linen);
  box-shadow: 0 8px 32px rgba(42, 36, 32, 0.12);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(42, 36, 32, 0.18);
  background: #1e1a17;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--sand-deep);
}

.btn-ghost:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
  transform: translateY(-2px);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.8s var(--ease-glide), backdrop-filter 0.8s var(--ease-glide), box-shadow 0.8s var(--ease-glide);
}

.nav.scrolled {
  background: rgba(250, 247, 243, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(42, 36, 32, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--clay-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  display: grid;
  place-items: center;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-right: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.5s var(--ease-glide);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease-glide);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease-glide);
}

.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(250, 247, 243, 0.96);
  backdrop-filter: blur(24px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--sand);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.5s var(--ease-glide), transform 0.5s var(--ease-glide);
  z-index: 99;
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile a { font-size: 18px; color: var(--ink-soft); }

/* ---------- reveal system ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s var(--ease-slow), transform 1.2s var(--ease-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 32px 80px;
  overflow: hidden;
}

.cursor-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 147, 138, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.8s var(--ease-glide);
  z-index: 0;
}

.hero-content,
.hero-visual { position: relative; z-index: 1; }

.hero-content { max-width: 540px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--clay-deep);
  font-weight: 300;
}

.hero-lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-slow);
}

.hero-frame:hover img { transform: scale(1.05); }

.hero-frame-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42, 36, 32, 0.08) 100%);
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  bottom: -24px;
  left: -40px;
  background: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: float-gentle 6s var(--ease-glide) infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

.float-value {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

.float-meta {
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--sand-deep);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay);
  animation: scroll-pulse 2.4s var(--ease-glide) infinite;
}

@keyframes scroll-pulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- trust strip ---------- */
.trust-strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--sand);
  background: rgba(255, 255, 255, 0.45);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: trust-marquee 32s linear infinite;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.5;
  flex-shrink: 0;
}

@keyframes trust-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 32px;
  max-width: calc(var(--container) + 64px);
  margin: 0 auto;
}

/* ---------- treatments ---------- */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.treatment-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.9s var(--ease-glide), box-shadow 0.9s var(--ease-glide);
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.treatment-media {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.treatment-overlay-num {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1;
  text-shadow: 0 2px 24px rgba(42, 36, 32, 0.2);
  pointer-events: none;
}

.treatment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-slow);
}

.treatment-card:hover .treatment-media img { transform: scale(1.06); }

.treatment-body { padding: 28px 28px 32px; }

.treatment-num {
  display: none;
}

.treatment-body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.treatment-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.treatment-meta {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.treatment-card-cta {
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.treatment-cta-inner {
  text-align: center;
  padding: 48px 32px;
}

.treatment-cta-inner h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  margin: 16px 0 28px;
  line-height: 1.2;
}

/* ---------- experience ---------- */
.experience { background: var(--bone); border-radius: 32px; margin: 0 24px; max-width: calc(var(--container) + 48px); }

.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.experience-list {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-soft);
}

.list-icon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  margin-top: 9px;
  flex-shrink: 0;
}

.experience-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 16px;
}

.gallery-main, .gallery-secondary {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-main img, .gallery-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main { aspect-ratio: 3/4; }
.gallery-secondary { align-self: end; aspect-ratio: 1; }

.experience-stat {
  position: absolute;
  bottom: -20px;
  left: -32px;
  background: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.stat-meta {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3/4;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.2s var(--ease-slow), filter 1.2s var(--ease-slow);
}

.team-card:hover .team-portrait img {
  transform: scale(1.04);
  filter: saturate(1);
}

.team-info h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 6px;
}

.team-role {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

.team-info p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- testimonials ---------- */
.results { background: linear-gradient(180deg, var(--linen) 0%, var(--bone) 100%); }

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--sand);
  padding-top: 20px;
}

.testimonial cite {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.testimonial footer span {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- consult ---------- */
.consult-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  background: var(--white);
  padding: 64px;
  border-radius: 32px;
  box-shadow: var(--shadow-card);
}

.consult-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail { display: flex; flex-direction: column; gap: 4px; }

.detail-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
}

.detail-value {
  font-size: 15px;
  color: var(--ink-soft);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consult-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consult-form label span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.consult-form input,
.consult-form select {
  padding: 14px 18px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--linen);
  transition: border-color 0.5s var(--ease-glide), box-shadow 0.5s var(--ease-glide);
}

.consult-form input:focus,
.consult-form select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-soft);
}

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 48px 32px;
  border-top: 1px solid var(--sand);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--ink-faint);
  transition: color 0.5s var(--ease-glide);
}

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

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: var(--linen);
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  transition: transform 0.8s var(--ease-glide), opacity 0.8s var(--ease-glide);
  box-shadow: 0 16px 48px rgba(42, 36, 32, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: calc(var(--nav-h) + 32px); }
  .hero-visual { justify-self: center; width: min(100%, 420px); }
  .hero-scroll-hint { display: none; }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-layout { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .testimonial-track { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .consult-layout { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .treatment-grid { grid-template-columns: 1fr; }
  .hero-float-card { left: 16px; bottom: -16px; }
  .experience { margin: 0 12px; border-radius: 24px; }
  .experience-gallery { grid-template-columns: 1fr; }
  .gallery-secondary { display: none; }
  .experience-stat { position: relative; bottom: auto; left: auto; margin-top: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 80px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
