/* ─────────────────────────────────────────────────────────
   MedSpa Template — Base styles (shared across all variants)
   Variant tokens live in themes.css and switch via [data-variant]
   ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-strong);
  margin: 0;
  line-height: 1.08;
  font-weight: var(--display-weight, 400);
  letter-spacing: var(--display-tracking, -0.01em);
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 6.4vw, 92px); }
h2 { font-size: clamp(34px, 4.2vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 18px; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── Layout shell ─── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background .2s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 32px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: var(--brand-tracking, 0.02em);
  color: var(--ink-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-mark {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  text-transform: var(--nav-case, none);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: var(--nav-case, none);
  font-weight: 500;
  transition: transform .15s ease, background .15s ease;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s ease;
  text-transform: var(--btn-case, none);
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--ink-strong);
}
.btn-ghost:hover { background: var(--ink-strong); color: var(--bg); }
.btn-link {
  background: transparent;
  padding: 8px 0;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

/* ─── Eyebrow ─── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

/* ─── Cards / surfaces ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  border: 1px solid var(--rule);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  padding: 120px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-hero);
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}

/* ─── Image placeholders ─── */
.ph {
  background: var(--placeholder);
  position: relative;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* ─── Services grid ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px var(--shadow);
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-card h3 { margin-bottom: 4px; }
.service-card p { color: var(--ink-muted); font-size: 15px; flex: 1; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ─── Trust bar / stats ─── */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-item .n {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--ink-strong);
  line-height: 1;
  margin-bottom: 8px;
}
.trust-item .l {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ─── Two col ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-strong);
  line-height: 1.3;
}
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--accent);
  transition: transform .2s ease, background .2s ease;
}
.faq-item.open .faq-toggle {
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
  border-color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-top: 16px;
}

/* ─── Testimonial ─── */
.testimonial {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  color: var(--ink-strong);
  text-wrap: balance;
}
.testimonial::before { content: "“"; color: var(--accent); margin-right: 4px; }
.testimonial::after { content: "”"; color: var(--accent); }
.testimonial-meta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--ink-muted);
}
.testimonial-meta .av {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--placeholder);
}

/* ─── Footer ─── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 80px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--footer-rule);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink);
  opacity: 0.7;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--footer-ink); opacity: 0.85; font-size: 14px; cursor: pointer; }
.footer ul a:hover { opacity: 1; color: var(--accent); }
.footer-brand { font-family: var(--font-display); font-size: 28px; color: var(--footer-ink); margin-bottom: 14px; }
.footer-blurb { color: var(--footer-ink); opacity: 0.7; font-size: 14px; line-height: 1.6; max-width: 320px; margin-bottom: 24px; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--footer-ink);
  opacity: 0.6;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb a { cursor: pointer; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ─── Page Hero (smaller, for interior pages) ─── */
.page-hero {
  padding: 80px 0 60px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 18px; }
.page-hero p { color: var(--ink-muted); font-size: 18px; max-width: 640px; }

/* ─── Forms ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 14px 16px;
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { font-size: 12px; color: #c44; }

/* ─── Misc ─── */
.divider { height: 1px; background: var(--rule); margin: 64px 0; }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Animation: fade-in on page change */
.page-content {
  animation: pageFade .3s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive bare minimum */
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
