/* ==========================================================================
   Meraki Aesthetics — Demo Site
   Design system for a premium aesthetics / med-spa brand.
   Palette: champagne gold + deep aubergine + warm cream.
   Typography: Cormorant Garamond (display, italic) + Inter (body).
   ========================================================================== */

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

:root {
  /* ── Palette ── */
  --gold:        #c9a66b;
  --gold-dark:   #a78649;
  --gold-soft:   #e7d6b4;
  --aubergine:   #4a2e3b;
  --aubergine-dark: #2e1c25;
  --cream:       #f8f3ec;
  --cream-dark:  #ede4d3;
  --ink:         #2b201a;
  --muted:       #7a6b5f;
  --blush:       #e8c9c0;
  --line:        #e9ddc7;
  --white:       #ffffff;

  /* ── Scale ── */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 56px;
  --space-6: 88px;
  --space-7: 128px;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(43, 32, 26, 0.06);
  --shadow:    0 8px 28px rgba(43, 32, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 32, 26, 0.14);

  --max-width: 1100px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 500; }
h3 { font-size: 1.4rem; font-weight: 500; }
em.script { font-style: italic; font-weight: 300; color: var(--aubergine); }

p { color: var(--ink); }
a { color: var(--aubergine); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; height: auto; display: block; }

/* ── Focus rings — visible for accessibility ── */
:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; border-radius: 4px; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: var(--space-2) var(--space-3); z-index: 1000;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* ── Container ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-3); }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 var(--space-3); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--space-2) var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand small {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--gold-dark); margin-top: -3px;
}
.nav-links { display: flex; align-items: center; gap: var(--space-4); list-style: none; }
.nav-links a {
  font-size: 0.92rem; color: var(--ink); font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta {
  background: var(--aubergine); color: var(--cream) !important;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--aubergine-dark); transform: translateY(-1px); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.5; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: var(--space-3); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: var(--space-2) 0; }
  .nav-links a::after { display: none; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 14px 26px; border-radius: var(--radius);
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.02em; cursor: pointer; border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--aubergine); color: var(--cream);
  box-shadow: 0 4px 14px rgba(74, 46, 59, 0.22);
}
.btn-primary:hover { background: var(--aubergine-dark); color: var(--cream); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(74, 46, 59, 0.28); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-gold {
  background: var(--gold); color: var(--ink);
}
.btn-gold:hover { background: var(--gold-dark); color: var(--cream); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(var(--space-6), 10vw, var(--space-7)) var(--space-3);
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  overflow: hidden;
}
.hero::before {
  /* Soft radial wash to suggest premium photography behind the type */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(232, 201, 192, 0.35), transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(201, 166, 107, 0.20), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold-dark); font-weight: 600;
  margin-bottom: var(--space-3);
}
.hero h1 { margin-bottom: var(--space-3); color: var(--ink); }
.hero h1 em { color: var(--aubergine); }
.hero-lede {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--aubergine);
  max-width: 540px; margin: 0 auto var(--space-4);
  line-height: 1.5;
}
.hero-actions { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

/* Compact hero variant for inner pages */
.hero.hero-compact { padding: var(--space-6) var(--space-3) var(--space-5); }
.hero.hero-compact h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   SECTION
   ========================================================================== */
.section { padding: var(--space-6) var(--space-3); }
.section-title { text-align: center; margin-bottom: var(--space-5); }
.section-title .eyebrow {
  display: inline-block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold-dark); font-weight: 600; margin-bottom: var(--space-2);
}
.section-title h2 { color: var(--aubergine); margin-bottom: var(--space-2); }
.section-title p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 1rem; }
.section-light { background: var(--white); }
.section-dark { background: var(--aubergine); color: var(--cream); }
.section-dark h2, .section-dark .section-title .eyebrow { color: var(--gold-soft); }
.section-dark .section-title p { color: rgba(248, 243, 236, 0.8); }

/* ==========================================================================
   STORY (2-col with image)
   ========================================================================== */
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5);
  align-items: center; max-width: var(--max-width); margin: 0 auto;
}
.story-art {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--blush) 0%, var(--gold-soft) 70%, var(--gold) 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-art::after {
  /* placeholder watermark */
  content: 'Photo'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.4rem; color: rgba(43, 32, 26, 0.35);
}
.story-text h2 { margin-bottom: var(--space-3); color: var(--aubergine); }
.story-text p { color: var(--ink); margin-bottom: var(--space-3); }
.story-text p:last-child { margin-bottom: 0; }
.story-text .quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.2rem; color: var(--gold-dark);
  padding-left: var(--space-3); border-left: 2px solid var(--gold);
  margin: var(--space-3) 0;
}

@media (max-width: 760px) {
  .story-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .story-art { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ==========================================================================
   CARD GRIDS — services / treatments / why
   ========================================================================== */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4); max-width: var(--max-width); margin: 0 auto;
}
.card {
  background: var(--white); padding: var(--space-4) var(--space-3);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; margin-bottom: var(--space-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-soft); color: var(--aubergine);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: var(--space-2); color: var(--aubergine); font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .price { display: block; margin-top: var(--space-2); font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem; font-weight: 600; color: var(--aubergine); }

/* Larger treatment list cards on the treatments page */
.treatment-list {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.treatment-row {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); display: grid;
  grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.treatment-row:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.treatment-row h3 { color: var(--aubergine); margin-bottom: 4px; font-size: 1.2rem; }
.treatment-row p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.treatment-row .meta {
  text-align: right; min-width: 120px;
}
.treatment-row .meta .price {
  font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; color: var(--aubergine);
  letter-spacing: -0.01em;
}
.treatment-row .meta .duration {
  font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}
@media (max-width: 580px) {
  .treatment-row { grid-template-columns: 1fr; }
  .treatment-row .meta { text-align: left; }
}

/* Category sections inside treatments page */
.treatment-category { margin-bottom: var(--space-6); }
.treatment-category-title {
  text-align: center; margin-bottom: var(--space-4); max-width: 700px; margin-left: auto; margin-right: auto;
}
.treatment-category-title h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--aubergine); margin-bottom: var(--space-1);
}
.treatment-category-title p { color: var(--muted); font-size: 0.94rem; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4); max-width: var(--max-width); margin: 0 auto;
}
.testimonial {
  background: var(--cream); padding: var(--space-4);
  border-radius: var(--radius); position: relative; border: 1px solid var(--line);
}
.testimonial::before {
  content: '\201C'; position: absolute; top: -10px; left: 16px;
  font-family: 'Cormorant Garamond', serif; font-size: 5rem; line-height: 1; color: var(--gold);
}
.testimonial-body {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.08rem; line-height: 1.55; color: var(--ink); margin-bottom: var(--space-3);
  position: relative;
}
.testimonial-author { font-size: 0.88rem; color: var(--aubergine); font-weight: 500; }
.testimonial-author small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.testimonial-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.85rem; margin-bottom: var(--space-2); }

/* ==========================================================================
   CTA strip
   ========================================================================== */
.cta-strip {
  background: linear-gradient(135deg, var(--aubergine) 0%, var(--aubergine-dark) 100%);
  color: var(--cream); padding: var(--space-6) var(--space-3); text-align: center;
}
.cta-strip h2 { color: var(--cream); margin-bottom: var(--space-2); }
.cta-strip p { color: rgba(248, 243, 236, 0.86); max-width: 520px; margin: 0 auto var(--space-4); }
.cta-strip .btn-gold:hover { color: var(--ink); background: var(--gold-soft); }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-disclaimer {
  background: var(--cream-dark); border-left: 3px solid var(--gold);
  padding: var(--space-3); border-radius: var(--radius-sm);
  max-width: var(--max-width); margin: 0 auto var(--space-4);
  font-size: 0.9rem; color: var(--ink);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3); max-width: var(--max-width); margin: 0 auto;
}
.gallery-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-ba {
  display: grid; grid-template-columns: 1fr 1fr;
  aspect-ratio: 16/9;
}
.gallery-ba > div {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: var(--space-2);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem;
  color: rgba(43, 32, 26, 0.5);
}
.gallery-before { background: linear-gradient(135deg, var(--cream-dark), var(--cream)); border-right: 1px solid var(--line); }
.gallery-after { background: linear-gradient(135deg, var(--blush) 30%, var(--gold-soft)); }
.gallery-meta { padding: var(--space-3); }
.gallery-meta h4 { font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--aubergine); margin-bottom: 2px; }
.gallery-meta p { font-size: 0.84rem; color: var(--muted); }

/* ==========================================================================
   FORM
   ========================================================================== */
.book-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5);
  max-width: var(--max-width); margin: 0 auto;
}
@media (max-width: 880px) { .book-grid { grid-template-columns: 1fr; } }

.form { background: var(--white); padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form h2 { margin-bottom: var(--space-2); color: var(--aubergine); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.2);
}
.field textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.field small { font-size: 0.76rem; color: var(--muted); }
.form-foot { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.form-foot small { color: var(--muted); font-size: 0.82rem; }

/* Info card next to form */
.info-card {
  background: var(--aubergine); color: var(--cream);
  padding: var(--space-5) var(--space-4); border-radius: var(--radius-lg);
}
.info-card h3 {
  font-family: 'Cormorant Garamond', serif; color: var(--gold-soft);
  font-size: 1.5rem; margin-bottom: var(--space-3);
}
.info-card .info-row { padding: var(--space-2) 0; border-bottom: 1px solid rgba(232, 201, 192, 0.15); }
.info-card .info-row:last-child { border-bottom: none; }
.info-card .info-row .label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold-soft); margin-bottom: 4px;
}
.info-card .info-row .value { font-size: 0.96rem; color: var(--cream); }
.info-card a { color: var(--gold-soft); }
.info-card a:hover { color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: var(--aubergine-dark); color: var(--cream);
  padding: var(--space-5) var(--space-3) var(--space-3);
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-4);
  max-width: var(--max-width); margin: 0 auto var(--space-4);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--cream); }
.footer-brand small { display: block; font-family: 'Inter', sans-serif; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold-soft); margin-top: -3px; }
footer.site-footer p { color: rgba(248, 243, 236, 0.78); font-size: 0.9rem; margin-top: var(--space-2); }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-soft);
  margin-bottom: var(--space-2); font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: rgba(248, 243, 236, 0.78); font-size: 0.9rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bar {
  border-top: 1px solid rgba(232, 201, 192, 0.15);
  padding-top: var(--space-3); text-align: center;
  font-size: 0.78rem; color: rgba(248, 243, 236, 0.55);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.center { text-align: center; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.demo-banner {
  background: #fff5e1; color: #6f5223; padding: var(--space-2) var(--space-3);
  text-align: center; font-size: 0.84rem; border-bottom: 1px solid #d4a35a;
}
.demo-banner strong { color: #94481f; }
