/* ==========================================================================
   Little Connections — Perinatal & Infant Mental Health
   Shared stylesheet
   ========================================================================== */

:root {
  --ivory: #FBF7F1;
  --cream: #F3EADC;
  --sage: #6E8F72;
  --sage-dark: #526B56;
  --sage-light: #E4EBE2;
  --terracotta: #D98C6F;
  --terracotta-dark: #C1704F;
  --blush: #F1DAD1;
  --ink: #3C3833;
  --ink-soft: #6B655D;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(60, 56, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--sage-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

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

a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

section { padding: 76px 0; }
section.tight { padding: 48px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border-color: var(--sage);
}
.btn-secondary:hover { background: var(--sage-light); }

.btn-ghost {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(110, 143, 114, 0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--sage-dark);
}
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a:hover { color: var(--terracotta-dark); text-decoration: none; }
nav.main-nav a.current { color: var(--terracotta-dark); }

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--sage-dark); }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sage-light);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--sage-dark);
  position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--terracotta);
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

/* ---------- Section variants ---------- */
.section-alt { background: var(--cream); }
.section-sage { background: var(--sage-light); }

.section-header {
  max-width: 640px;
  margin: 0 auto 10px;
  text-align: center;
}
.section-header.left { text-align: left; margin: 0 0 10px; }

.centered { text-align: center; }

/* ---------- Quote / testimonial ---------- */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}
.quote-block blockquote {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--sage-dark);
  margin: 0 0 16px;
  line-height: 1.5;
}
.quote-block cite {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--sage);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band .btn-primary { background: var(--white); color: var(--sage-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* ---------- Avatar placeholder ---------- */
.avatar-placeholder {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blush), var(--sage-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  color: var(--sage-dark);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.photo-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 14px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-light);
  border: 2px solid var(--sage);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  color: var(--sage-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--sage-dark);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(110, 143, 114, 0.3);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  margin-bottom: 20px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
}
textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -8px;
}

/* ---------- Blog cards ---------- */
.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.post-tag {
  display: inline-block;
  background: var(--blush);
  color: var(--terracotta-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.post-card h3 a { color: var(--sage-dark); }
.post-meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: -10px; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 24px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input { margin-bottom: 0; flex: 1; min-width: 220px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--sage-dark);
  color: var(--blush);
  padding: 56px 0 28px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
footer.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
footer.site-footer p { color: var(--blush); opacity: 0.85; }
footer.site-footer .foot-links { list-style: none; padding: 0; margin: 0; }
footer.site-footer .foot-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.75;
  text-align: center;
}
.social-row { display: flex; gap: 14px; margin-top: 6px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 28px 26px;
    border-bottom: 1px solid rgba(110, 143, 114, 0.15);
    box-shadow: var(--shadow);
  }
  nav.main-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle-label { display: flex; }
  .nav-toggle-input:checked ~ nav.main-nav { display: flex; }
}
