/* ===========================================================
   Mel B Wellness & Life Coaching
   Calm · sensory · earthy. Mobile-first, accessible.
   =========================================================== */

:root {
  --bg:        #faf6ef;   /* warm cream */
  --bg-alt:    #f1e9db;   /* deeper sand */
  --surface:   #ffffff;
  --ink:       #3a352f;   /* warm charcoal */
  --muted:     #6e665b;   /* soft brown-grey */
  --sage:      #7d8c6c;   /* primary accent */
  --sage-dark: #5f6e50;   /* hover / deep */
  --clay:      #c08457;   /* warm secondary */
  --clay-dark: #a66c42;
  --line:      #e6dac7;   /* hairline */
  --shadow:    0 6px 24px rgba(58, 53, 47, 0.08);
  --shadow-sm: 0 2px 10px rgba(58, 53, 47, 0.06);
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1080px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--clay-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1.1em; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-sage { background: var(--sage); color: #fff; }
.section-sage h1, .section-sage h2, .section-sage h3 { color: #fff; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 0.9rem;
}
.section-sage .eyebrow { color: #f1e3d3; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .12s ease;
}
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); color: #fff; transform: translateY(-1px); }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage); color: var(--sage-dark); }
.section-sage .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.section-sage .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand img { width: 46px; height: auto; }
.brand-name {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.96rem; transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); }
.nav-links .nav-cta { margin-left: 0.4rem; }
.nav-links .nav-cta a { background: var(--sage); color: #fff; }
.nav-links .nav-cta a:hover { background: var(--sage-dark); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.6rem; border-radius: 10px; }
  .nav-links .nav-cta { margin: 0.3rem 0 0; }
  .nav-links .nav-cta a { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4.5rem, 12vw, 8rem) 0;
  background:
    linear-gradient(180deg, rgba(58,53,47,0.55), rgba(58,53,47,0.62)),
    var(--hero-img, none) center/cover no-repeat;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .tagline { font-style: italic; }
.hero p.hero-sub { font-size: 1.2rem; color: #f6efe4; max-width: 640px; margin: 0 auto 2rem; }
.hero .btn { font-size: 1.05rem; }

/* ---------- Tagline banner ---------- */
.tagline-band { background: var(--clay); color: #fff; text-align: center; padding: 1.4rem 1rem; }
.tagline-band p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3.5vw, 1.9rem); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  background: var(--bg-alt); color: var(--sage-dark);
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.8rem;
}

/* The Three (home) */
.three .card { text-align: left; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Lists ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative; padding: 0.55rem 0 0.55rem 2rem; border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ""; position: absolute; left: 0.25rem; top: 1.15rem;
  width: 0.6rem; height: 0.6rem; border-radius: 999px; background: var(--clay);
}

/* ---------- Offerings list ---------- */
.offer { border-left: 3px solid var(--sage); padding: 0.4rem 0 0.4rem 1.4rem; margin-bottom: 1.8rem; }
.offer h3 { margin-bottom: 0.3rem; }
.offer p:last-child { margin-bottom: 0; }

/* ---------- Resources ---------- */
.resource-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.resource-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.resource-card .meta { color: var(--muted); font-size: 0.92rem; margin-top: auto; }
audio { width: 100%; margin-top: 0.4rem; }
.placeholder-note {
  background: var(--bg-alt); border: 1px dashed var(--clay); border-radius: 10px;
  padding: 0.85rem 1rem; color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
.gallery button {
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 1.5rem;
  background: rgba(34, 30, 26, 0.88);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox .lb-close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 0.3rem;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14);
  border: 0; color: #fff; font-size: 2rem; width: 3rem; height: 3rem; border-radius: 999px; cursor: pointer;
}
.lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.28); }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* ---------- Social ---------- */
.social { display: flex; gap: 0.8rem; align-items: center; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; border-radius: 999px;
  background: var(--bg-alt); color: var(--sage-dark); transition: background-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--sage); color: #fff; }
.social svg { width: 1.3rem; height: 1.3rem; }
.section-sage .social a { background: rgba(255,255,255,.16); color: #fff; }
.section-sage .social a:hover { background: #fff; color: var(--sage-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e2d6; padding: 3rem 0 1.8rem; }
.site-footer .tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-grid h4 { font-family: var(--serif); color: #fff; font-size: 1.2rem; margin: 0 0 0.4rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.footer-nav a { color: #e9e2d6; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.site-footer .social a { background: rgba(255,255,255,.1); color: #fff; }
.site-footer .social a:hover { background: var(--clay); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.88rem; color: #b9b0a2; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row.center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
