/* =========================================================
   CHAI & HER — Shared Stylesheet
   How to restyle the whole site: edit the colors and fonts
   in the :root block below. Every page uses these variables.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  /* Brand palette */
  --ivory: #FAF6EF;
  --ivory-deep: #F1E9DB;
  --espresso: #3A2A1F;
  --espresso-soft: #5B4A3D;
  --plum: #5B2A44;
  --plum-deep: #431F33;
  --terracotta: #C17A54;
  --brass: #B08D57;
  --muted: #7A6B5D;
  --white: #FFFFFF;
  --border: rgba(58,42,31,0.12);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.2px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,246,239,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: 0.5px;
}
.brand span { color: var(--terracotta); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a.page-link { color: var(--espresso-soft); transition: color 0.2s; }
.nav-links a.page-link:hover, .nav-links a.page-link.active { color: var(--plum); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-plum { background: var(--plum); color: var(--white); }
.btn-plum:hover { background: var(--plum-deep); }
.btn-outline { background: transparent; color: var(--plum); border: 1.5px solid var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--white); }
.btn-large { padding: 17px 42px; font-size: 0.98rem; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--plum); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-mark { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 6px; color: var(--brass); text-transform: uppercase; margin-bottom: 22px; }
.hero h1 {
  font-size: 2.9rem;
  max-width: 780px;
  margin: 0 auto 22px;
  line-height: 1.25;
  font-style: italic;
  color: var(--plum);
}
.hero p.sub {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--espresso-soft);
  font-size: 1.15rem;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Page header (for interior pages) */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--ivory-deep);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.4rem; font-style: italic; color: var(--plum); max-width: 720px; margin: 0 auto 16px; }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--espresso-soft); font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-title { text-align: center; font-size: 2.1rem; margin-bottom: 18px; }
.section-title.italic { font-style: italic; color: var(--plum); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 56px; font-size: 1.05rem; }
.divider { width: 60px; height: 2px; background: var(--brass); margin: 0 auto 40px; }
.alt-bg { background: var(--white); }
.plum-bg { background: var(--plum); color: var(--ivory); }
.plum-bg h2, .plum-bg h3 { color: var(--ivory); }

/* Story / narrative blocks */
.narrative { max-width: 720px; margin: 0 auto; }
.narrative p { margin-bottom: 22px; font-size: 1.08rem; color: var(--espresso-soft); }
.narrative p.lead { font-size: 1.25rem; font-family: var(--font-heading); font-style: italic; color: var(--plum); }

/* Theme grid (Career/Motherhood/Culture/Identity/Choice) */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}
.theme-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--terracotta);
  padding: 32px 26px;
  border-radius: 3px;
}
.theme-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--plum); }
.theme-card p { color: var(--muted); font-size: 0.97rem; }
.theme-grid.five-across { grid-template-columns: repeat(5, 1fr); }
.theme-grid.five-across .theme-card { padding: 26px 18px; }
.theme-grid.four-across { grid-template-columns: repeat(4, 1fr); }
.theme-grid.four-across .theme-card { padding: 26px 18px; }
.theme-grid.three-across { grid-template-columns: repeat(3, 1fr); }

/* CHAI Method */
.chai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  max-width: 1080px;
  margin: 0 auto;
}
.chai-letter {
  text-align: center;
  padding: 20px;
}
.chai-letter .letter {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--brass);
  font-style: italic;
  margin-bottom: 12px;
}
.chai-letter h4 { color: var(--plum); font-size: 1.1rem; margin-bottom: 10px; }
.chai-letter p { color: var(--muted); font-size: 0.95rem; }

/* Offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
.offer-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 44px 36px;
  border-radius: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.offer-card h3 { font-size: 1.5rem; color: var(--plum); margin-bottom: 10px; }
.offer-card .price { font-size: 1.1rem; color: var(--terracotta); font-weight: 700; margin: 14px 0; }
.offer-card p.desc { color: var(--muted); margin-bottom: 26px; flex: 1 1 auto; }
.offer-card .btn { margin-top: auto; align-self: center; }

/* Curriculum list */
.curriculum {
  max-width: 720px;
  margin: 0 auto;
}
.curriculum li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.curriculum li:last-child { border-bottom: none; }
.curriculum .wk {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--brass);
  font-size: 1.1rem;
  min-width: 90px;
}
.curriculum .wk-title { font-weight: 700; color: var(--espresso); }
.curriculum .wk-sub { display: block; font-weight: 400; font-size: 0.88rem; color: var(--espresso-soft); margin-top: 6px; line-height: 1.5; }

/* Info list (about structure, what to expect, etc.) */
.info-list li {
  padding: 14px 0 14px 30px;
  position: relative;
  color: var(--espresso-soft);
  border-bottom: 1px solid var(--border);
}
.info-list li::before { content: "◆"; position: absolute; left: 0; color: var(--brass); font-size: 0.7rem; top: 20px; }

/* Photo placeholder */
.photo-frame {
  aspect-ratio: 1470/1070;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 92px;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  border-radius: 0;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: 100% 100%, 100% 100%;
  mask-size: 100% 100%, 100% 100%;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

/* Form */
form.card-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  padding: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row > div { flex: 1 1 220px; }
label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 0.9rem; color: var(--espresso); }
input, textarea, select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--ivory);
}
textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; color: var(--muted); font-size: 0.88rem; }

.embed-placeholder {
  max-width: 620px;
  margin: 0 auto 40px;
  border: 2px dashed var(--brass);
  border-radius: 6px;
  padding: 50px 30px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}
.embed-placeholder strong { color: var(--plum); }

/* Journey steps */
.journey {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
  color: var(--espresso-soft);
  text-align: center;
}
.journey span.step { background: var(--white); border: 1px solid var(--border); padding: 10px 16px; border-radius: 20px; }
.journey span.arrow { color: var(--brass); align-self: center; }

/* CTA band */
.cta-band {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--plum);
  color: var(--ivory);
  text-align: center;
  padding: 70px 40px;
  border-radius: 6px;
}
.cta-band h2 { color: var(--ivory); font-style: italic; margin-bottom: 16px; }
.cta-band p { color: #E7D9E0; max-width: 560px; margin: 0 auto 32px; }

/* Legal page */
.legal-block { max-width: 780px; margin: 0 auto; }
.legal-block h2 { color: var(--plum); font-size: 1.5rem; margin: 40px 0 16px; }
.legal-block h2:first-child { margin-top: 0; }
.legal-block p { color: var(--espresso-soft); margin-bottom: 14px; }
.legal-block .callout {
  background: var(--ivory-deep);
  border-left: 4px solid var(--terracotta);
  padding: 20px 24px;
  border-radius: 3px;
  margin: 24px 0;
  color: var(--espresso);
}

/* Footer */
footer {
  background: var(--espresso);
  color: #D9CFC4;
  padding: 56px 0 30px;
  text-align: center;
  font-size: 0.9rem;
}
footer .brand { color: var(--ivory); margin-bottom: 6px; }
footer .footer-tag { color: #B8A997; font-style: italic; margin-bottom: 26px; font-family: var(--font-heading); }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
footer .footer-links a { color: #D9CFC4; font-weight: 600; }
footer .footer-links a:hover { color: var(--terracotta); }
footer .copyright { color: #9C8E80; font-size: 0.82rem; }

@media (max-width: 780px) {
  .nav-links.page-nav { display: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .about-wrap { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .theme-grid.five-across { grid-template-columns: repeat(2, 1fr); }
  .theme-grid.four-across { grid-template-columns: repeat(2, 1fr); }
  .theme-grid.three-across { grid-template-columns: repeat(1, 1fr); }
}

@media (min-width: 700px) {
  .no-wrap-desktop { white-space: nowrap; }
}

@media (min-width: 781px) and (max-width: 1000px) {
  .theme-grid.five-across { grid-template-columns: repeat(3, 1fr); }
  .theme-grid.four-across { grid-template-columns: repeat(2, 1fr); }
  .theme-grid.three-across { grid-template-columns: repeat(2, 1fr); }
}
