/* ===========================================
   CalmNess Parenting Support — shared styles
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:wght@300;400;600;700&family=Caveat:wght@400;600&display=swap');

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

:root {
  /* palette — refined from coming-soon + the progression guides */
  --cream: #FAF6F1;
  --cream-deep: #F1ECE3;
  --sage: #A8B5A0;
  --sage-dark: #8A9E80;
  --blush: #E8D5C8;
  --taupe: #C8B8A8;
  --taupe-deep: #A89682;
  --warm-brown: #8C7566;
  --warm-brown-dark: #6E5C4F;
  --text-dark: #4A3F35;
  --text-light: #7A6E63;
  --white: #FFFFFF;
  --line: rgba(140, 117, 102, 0.18);

  /* type */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Caveat', cursive;

  /* layout */
  --container: 1140px;
  --container-narrow: 780px;
  --radius: 18px;
  --radius-pill: 100px;
  --shadow-soft: 0 4px 24px rgba(140, 117, 102, 0.08);
  --shadow-lift: 0 8px 32px rgba(140, 117, 102, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--sans); font-weight: 600; color: var(--warm-brown); }

p { margin-bottom: 1em; max-width: 65ch; }
p.lead { font-size: 1.15rem; color: var(--text-light); max-width: 60ch; }

a { color: var(--sage-dark); text-decoration: none; transition: color .25s; }
a:hover { color: var(--warm-brown); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-bottom: 14px;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--warm-brown);
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--sage);
  border-radius: 1px;
  margin: 18px 0 28px;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ── Layout ─────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container.narrow { max-width: var(--container-narrow); }

section { padding: 96px 0; position: relative; }
section.tight { padding: 60px 0; }
section.bg-cream-deep { background: var(--cream-deep); }
section.bg-sage-soft { background: linear-gradient(180deg, var(--cream) 0%, #EDE8DE 100%); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .divider { margin: 14px auto 22px; }

/* ── Decorative blobs (carried over) ────── */

.bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-decor .blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
}
.blob-sage   { background: var(--sage); }
.blob-blush  { background: var(--blush); opacity: 0.32; }
.blob-taupe  { background: var(--taupe); opacity: 0.22; }

.bg-decor .b1 { width: 540px; height: 540px; top: -160px; right: -120px; }
.bg-decor .b2 { width: 360px; height: 360px; bottom: -100px; left: -80px; }
.bg-decor .b3 { width: 220px; height: 220px; bottom: 18%; left: 56%; }

/* ── Navigation ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}
.brand strong { font-weight: 500; }
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-brown);
  margin-top: 2px;
}
.brand-mark {
  width: 44px; height: 44px;
  flex-shrink: 0;
  color: var(--sage-dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  font-weight: 400;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); border-bottom: 1px solid var(--sage); padding-bottom: 4px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 18px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ── Buttons ────────────────────────────── */

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .3s ease;
  text-align: center;
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-lift); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--warm-brown-dark);
  border-color: var(--warm-brown);
}
.btn-outline:hover { background: var(--warm-brown); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--sage-dark);
  padding: 10px 0;
}
.btn-ghost::after { content: " →"; transition: transform .25s; display: inline-block; }
.btn-ghost:hover::after { transform: translateX(4px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ── Hero ───────────────────────────────── */

.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 14px; }
.hero p.lead { margin: 0 auto 28px; }

.hero-image {
  margin-top: 48px;
  border-radius: 50% / 40%;
  overflow: hidden;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--blush) 0%, var(--taupe) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

/* ── Cards / grids ──────────────────────── */

.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--blush); }
.card .icon {
  width: 48px; height: 48px;
  color: var(--sage-dark);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; color: var(--text-light); margin-bottom: 18px; }
.card .btn-ghost { margin-top: auto; align-self: flex-start; font-size: 0.9rem; font-weight: 600; }

/* ── Pills (services) ───────────────────── */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 8px;
}
.pills span {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--warm-brown);
  letter-spacing: 0.02em;
}

/* ── Two-column feature ─────────────────── */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature.reverse > :first-child { order: 2; }
.feature .img-col {
  border-radius: 50% / 38%;
  background: linear-gradient(135deg, var(--blush) 0%, var(--taupe) 100%);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse > :first-child { order: 0; }
}

/* ── Callout (Did you know / Remember) ──── */

.callout {
  position: relative;
  background: var(--taupe-deep);
  color: var(--white);
  padding: 28px 32px;
  border-radius: 60% 40% 55% 45% / 50%;
  max-width: 420px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout strong { font-style: normal; font-weight: 600; display: block; margin-bottom: 4px; letter-spacing: 0.04em; }

.callout-soft {
  background: var(--cream-deep);
  color: var(--text-dark);
  border-left: 3px solid var(--sage);
  padding: 22px 26px;
  border-radius: 4px 18px 18px 4px;
  font-style: italic;
  margin: 24px 0;
}

/* ── Reframe banner ─────────────────────── */

.reframe {
  background: var(--cream-deep);
  text-align: center;
  padding: 80px 24px;
}
.reframe h2 {
  font-style: italic;
  color: var(--warm-brown-dark);
  font-weight: 400;
}

/* ── Numbered list (progressions / process) */

.steps {
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  align-items: start;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--sage-dark);
  line-height: 1;
}

/* ── Forms ──────────────────────────────── */

form { display: grid; gap: 18px; }
label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-brown);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
}
textarea { min-height: 140px; resize: vertical; }

/* ── Guide cards (PDF downloads) ────────── */

.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: transform .3s, box-shadow .3s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.guide-cover {
  background: linear-gradient(160deg, var(--cream-deep) 0%, var(--taupe) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--warm-brown-dark);
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 20px;
  line-height: 1.3;
}
.guide-body { padding: 28px 32px; }
.guide-body h3 { margin-bottom: 6px; }
.guide-body p { font-size: 0.96rem; color: var(--text-light); margin-bottom: 14px; }
.guide-body .meta { font-size: 0.82rem; color: var(--warm-brown); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }

@media (max-width: 720px) {
  .guide-card { grid-template-columns: 1fr; }
  .guide-cover { padding: 24px 24px 0; min-height: 0; align-self: stretch; }
  .guide-cover img { max-width: 240px; margin: 0 auto; }
}

/* ── Journal post cards ─────────────────── */

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--blush) 0%, var(--taupe) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  letter-spacing: 0.04em;
}
.post-body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.post-body .tag {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 8px;
  font-weight: 600;
}
.post-body h3 { margin-bottom: 8px; font-size: 1.3rem; }
.post-body p { font-size: 0.94rem; color: var(--text-light); margin-bottom: 14px; }
.post-body .meta { font-size: 0.8rem; color: var(--warm-brown); margin-top: auto; }

/* ── Credentials strip ──────────────────── */

.creds {
  text-align: center;
  font-size: 0.88rem;
  color: var(--warm-brown);
  letter-spacing: 0.06em;
  padding: 14px 0;
}
.creds span + span::before { content: "  |  "; opacity: 0.5; }

/* ── FAQ ────────────────────────────────── */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--sage-dark);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--text-light); font-size: 0.98rem; }

/* ── Newsletter ─────────────────────────── */

.newsletter {
  background: var(--cream-deep);
  padding: 64px 32px;
  border-radius: var(--radius);
  text-align: center;
}
.newsletter form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 18px auto 0;
}
.newsletter input { flex: 1; }
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; }
}

/* ── Footer ─────────────────────────────── */

footer.site {
  background: var(--cream-deep);
  padding: 72px 0 28px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 42px;
  margin-bottom: 42px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
footer.site h4 { margin-bottom: 14px; color: var(--warm-brown); }
footer.site ul { list-style: none; }
footer.site ul li { margin-bottom: 8px; }
footer.site ul a { font-size: 0.92rem; color: var(--text-light); }
footer.site ul a:hover { color: var(--sage-dark); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  opacity: 0.85;
}

/* ── Botanical SVG accent (inline use) ──── */

.botanical {
  display: block;
  width: 80px;
  height: 80px;
  color: var(--taupe-deep);
  opacity: 0.7;
  margin: 0 auto 22px;
}

/* ── Animation ──────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp .8s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: .12s; }
.fade-in:nth-child(3) { animation-delay: .24s; }
.fade-in:nth-child(4) { animation-delay: .36s; }
.fade-in:nth-child(5) { animation-delay: .48s; }
.fade-in:nth-child(6) { animation-delay: .60s; }

/* ── Utilities ──────────────────────────── */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.muted { color: var(--text-light); }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* ── Photography (real images) ───────────── */
.feature .img-col { overflow: hidden; }
.feature .img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Accreditation logo strip (Positive Birth program) */
.accreditation { margin: 18px 0 6px; }
.accreditation img { height: 50px; width: auto; display: block; }

/* Contact page portrait (oval-framed) */
.contact-portrait {
  border-radius: 50% / 42%;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 24px;
}
.contact-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* WebP <picture> wrappers must be layout-neutral: let the inner <img> stay the flex/grid child */
picture { display: contents; }

/* Hero keyword sub-headline (SEO + clarity, sits under the H1) */
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: 0.01em;
  color: var(--warm-brown);
  margin: 6px auto 0;
  max-width: 620px;
  line-height: 1.4;
}

/* Guide cover thumbnails (rendered from the PDFs) — show the full cover, never crop */
.guide-cover { padding: 0; align-self: start; }
.guide-cover img { width: 100%; height: auto; object-fit: contain; display: block; }

/* Transparent cut-out figure (Positive Birth) — full figure on a soft panel, no oval crop */
.feature .img-col.cutout {
  background: linear-gradient(180deg, #F1ECE3 0%, #E8D5C8 100%);
  border-radius: 50% / 38%;   /* match the oval shape of the other two photos */
  align-items: center;
}
.feature .img-col.cutout img {
  object-fit: contain;
  object-position: center;
  height: 94%;
  width: 90%;
  margin: auto;
}

/* ── Mobile image sizing: stop feature photos going full-bleed ── */
@media (max-width: 860px) {
  .feature .img-col {
    max-width: 380px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .feature .img-col.cutout { max-width: 340px; }
  .contact-portrait {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px) {
  .feature .img-col { max-width: 300px; }
  .feature .img-col.cutout { max-width: 280px; }
}

/* ── Logo image (replaces the SVG lotus mark) ── */
.brand-logo { height: 60px; width: auto; display: block; }
footer.site .brand-logo { height: 88px; }
@media (max-width: 480px) { .brand-logo { height: 50px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Gated guide download forms ── */
.guide-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.guide-form input[type="text"], .guide-form input[type="email"] { padding: 11px 14px; font-size: 0.92rem; border-radius: 10px; }
.guide-form .btn { margin-top: 2px; align-self: flex-start; }

/* ── Pricing packages ── */
.package {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.package.featured { border-color: var(--sage); box-shadow: var(--shadow-soft); }
.package-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.package-head h3 { margin: 0; }
.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--sage-dark); white-space: nowrap; }
.package-tagline { font-style: italic; color: var(--text-light); margin: 6px 0 4px; font-size: 0.95rem; }
.package-list { list-style: none; padding: 0; margin: 12px 0 0; }
.package-list li { position: relative; padding: 6px 0 6px 20px; font-size: 0.94rem; color: var(--text-light); }
.package-list li::before { content: "·"; position: absolute; left: 4px; color: var(--sage-dark); font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.package .muted { margin-top: 14px; }


/* Hero pills as links */
.pills a {
  background: var(--white);
  border: 1px solid var(--blush);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--warm-brown);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.pills a:hover { background: var(--blush); border-color: var(--blush); color: var(--warm-brown-dark); }
