/* ============================================
   MARIA BALDWIN — brand stylesheet
   Palette: warm neutrals + gentle blue + vibrant sage-green
   ============================================ */

:root {
  /* Neutrals — warm, natural, sunlit base (Joanna Gaines-inspired: cream, linen, soft black) */
  --bg: #FBF9F5;
  --bg-alt: #EFE8DC;
  --card: #FFFFFF;
  --border: #E4DCCC;
  --ink: #3B3833;
  --ink-soft: #736C60;
  --ink-faint: #A79F91;

  /* Gentle blue — soft, faded denim; calm & trustworthy, used for structure & secondary accents */
  --blue: #9DB2B9;
  --blue-deep: #64818A;
  --blue-tint: #EAF0EF;

  /* Natural sage green — the "go" color: CTAs, links, a little more life than the rest of the palette, still muted/earthy */
  --green: #7C9270;
  --green-deep: #566B4B;
  --green-tint: #EDF0E5;

  --font-display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --font-logo: 'Cormorant', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, .ph-img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; }
h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
}
h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

p { margin: 0 0 1.1em 0; color: var(--ink); }

a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-outline { background: transparent; border-color: var(--blue-deep); color: var(--blue-deep); }
.btn-outline:hover { background: var(--blue-tint); color: var(--blue-deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 300;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a.active, .nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 10px 22px !important; font-size: 0.88rem !important; }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 32px 26px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; padding-top: 18px; }
  .nav-links a { display: block; }
  .nav-links .nav-cta { display: inline-flex !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--blue-tint) 0%, var(--green-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.narrative-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.narrative-old {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-bottom: 10px;
}
.narrative-new {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.section-bg-blue { background: var(--blue-tint); }
.section-bg-green { background: var(--green-tint); }
.section-bg-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Homepage CTA boxes ---------- */
.cta-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-box .eyebrow { margin-bottom: 12px; }
.cta-box h3 { font-size: 1.3rem; margin-bottom: 12px; }
.cta-box p { color: var(--ink-soft); margin-bottom: 26px; }
.cta-box .btn { margin-top: auto; }

/* ---------- Single testimonial block ---------- */
.testimonial-single {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
.testimonial-single .quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.testimonial-single .attribution {
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: 0;
}
.testimonial-single .attribution strong { color: var(--ink-soft); }

/* ---------- Pricing cards (coaching page) ---------- */
.price-card { text-align: center; position: relative; }
.price-card .price-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card.featured { border-color: var(--green); border-width: 2px; }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--green-deep);
  margin: 10px 0 4px;
}
.price-card .price-note { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 20px; }

/* ---------- Modal (book a session / register popups) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(59, 56, 51, 0.55);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 16px; padding-right: 20px; }
.modal-box p { color: var(--ink-soft); font-size: 0.98rem; }
.modal-box p:last-child { margin-bottom: 0; }
.modal-box a { font-weight: 600; }

/* ---------- Blog cards (legacy, currently unused) ---------- */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, var(--blue) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.post-meta { font-size: 0.82rem; color: var(--ink-faint); }
.post-body h3 { margin-bottom: 4px; }
.post-excerpt { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }
.read-more { font-size: 0.88rem; font-weight: 600; margin-top: auto; }

/* ---------- Stats / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
.pillar { text-align: center; padding: 10px; }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.pillar h4 { font-size: 0.95rem; margin-bottom: 4px; }
.pillar p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-links { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Misc page header (About / Course / Coaching / Contact) ---------- */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Instagram embed slots ---------- */
.ig-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  aspect-ratio: 4/5;
  border-style: dashed;
  border-color: var(--blue);
  background: var(--blue-tint);
}
.ig-placeholder p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; max-width: 220px; }
.ig-placeholder-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}
/* If a real Instagram embed (blockquote.instagram-media) is pasted in, let it fill its grid cell naturally */
.grid-3 iframe.instagram-media, .grid-3 blockquote.instagram-media {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ---------- Teachable embed ---------- */
.teachable-embed {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 800px;
  margin-top: 8px;
  background: var(--card);
}
.teachable-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 700px) {
  .teachable-embed { height: 560px; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.quote-block {
  border-left: 3px solid var(--green);
  padding-left: 24px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 32px 0;
}

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 1.5px solid var(--green);
}
.checklist li::after {
  content: "✓";
  position: absolute;
  left: 3.5px; top: 2px;
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 700;
}
