/* Growing Together — Editorial Parenting Style */
:root {
  --primary:          #48685a;
  --primary-dk:       #334d42;
  --secondary:        #b7684f;
  --accent:           #7a8fa6;
  --warm-bg:          #f7f2ea;
  --soft-sage:        #e8efe9;
  --soft-blue:        #e9eff4;
  --soft-terra:       #f4e8e2;
  --surface:          #ffffff;
  --text-dark:        #252927;
  --text-soft:        #3d4440;
  --text-muted:       #68706c;
  --border:           #dfe3df;
  --border-soft:      #eceee9;
  --sage-accent:      #c5d4c7;
}

/* ── Reset & Base ── */
html { scroll-behavior: smooth; font-size: 16px; }
section[id], article[id], div[id] { scroll-margin-top: 100px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--warm-bg);
  color: var(--text-dark);
  line-height: 1.8;
}

h1, h2, h3, h4, h5 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--primary-dk);
  line-height: 1.28;
  font-weight: 700;
}

p { max-width: 70ch; margin-bottom: 1rem; }
p.wide { max-width: none; }
a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Navbar ── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.site-nav .navbar-brand {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--primary-dk) !important;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-decoration: none;
}
.site-nav .navbar-brand small {
  display: block;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.site-nav .nav-link {
  font-size: 0.865rem;
  font-weight: 600;
  color: var(--text-soft) !important;
  padding: 8px 10px !important;
  text-decoration: none;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--primary) !important; }

/* ── Hero ── */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
  display: block;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.18;
  margin-bottom: 16px;
  color: var(--primary-dk);
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 520px;
  line-height: 1.7;
}
.hero-panel {
  background: var(--soft-sage);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
}
.hero-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-highlight:last-child { margin-bottom: 0; }
.hero-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
}
.hero-hl-text strong {
  display: block;
  font-size: 0.93rem;
  font-family: Georgia, serif;
  color: var(--primary-dk);
}
.hero-hl-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn-sage {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-sage:hover { background: var(--primary-dk); color: #fff; }
.btn-outline-sage {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 9px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  background: transparent;
  transition: all 0.2s;
}
.btn-outline-sage:hover { background: var(--primary); color: #fff; }

/* ── Section wrappers ── */
.section-surface { background: var(--surface); }
.section-sage    { background: var(--soft-sage); }
.section-blue    { background: var(--soft-blue); }
.section-terra   { background: var(--soft-terra); }
.section-warm    { background: var(--warm-bg); }

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 8px;
}
.section-title { font-size: 1.85rem; margin-bottom: 6px; }
.section-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px; }

/* ── Age stage pill nav ── */
.stage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stage-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.17s;
  white-space: nowrap;
}
.stage-pill:hover, .stage-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── Editorial article blocks ── */
.article-feature {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  height: 100%;
}
.article-feature .art-body { padding: 24px; }
.art-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
  display: block;
}
.article-feature h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.article-feature p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 12px; }
.art-link {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.art-link:hover { text-decoration: underline; }

/* Feature colour band at top */
.article-feature .art-band {
  height: 6px;
  background: var(--sage-accent);
}
.article-feature.feature-terra .art-band { background: var(--secondary); opacity: 0.5; }
.article-feature.feature-blue  .art-band { background: var(--accent); opacity: 0.6; }
.article-feature.feature-sage  .art-band { background: var(--primary); opacity: 0.4; }

/* "Try this today" callout */
.try-today {
  background: var(--soft-terra);
  border-left: 4px solid var(--secondary);
  border-radius: 0 10px 10px 0;
  padding: 22px 20px;
}
.try-today .try-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
  display: block;
}
.try-today h4 { font-size: 1rem; margin-bottom: 10px; }
.try-today p  { font-size: 0.87rem; color: var(--text-soft); max-width: none; margin-bottom: 0; }

/* ── Topic icon links ── */
.topic-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  text-decoration: none;
  transition: box-shadow 0.18s, border-color 0.18s;
  margin-bottom: 10px;
}
.topic-link:hover {
  box-shadow: 0 4px 16px rgba(72,104,90,0.10);
  border-color: var(--sage-accent);
  text-decoration: none;
}
.topic-icon {
  width: 38px;
  height: 38px;
  background: var(--soft-sage);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--primary);
}
.topic-text strong { display: block; font-size: 0.88rem; color: var(--primary-dk); font-weight: 700; }
.topic-text span   { font-size: 0.78rem; color: var(--text-muted); }

/* ── Development area columns ── */
.dev-col {
  padding: 24px 20px;
  border-radius: 12px;
  height: 100%;
}
.dev-col h3 { font-size: 1.05rem; margin-bottom: 8px; }
.dev-col p  { font-size: 0.87rem; color: var(--text-soft); margin-bottom: 0; max-width: none; }

/* ── Timeline strip (routines / stages) ── */
.timeline-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.timeline-item {
  flex: 1;
  padding: 18px 14px;
  text-align: center;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: relative;
}
.timeline-item:last-child { border-right: none; }
.timeline-item .ti-time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  display: block;
  margin-bottom: 6px;
}
.timeline-item .ti-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.timeline-item h4 { font-size: 0.9rem; margin-bottom: 4px; }
.timeline-item p  { font-size: 0.78rem; color: var(--text-muted); max-width: none; margin-bottom: 0; }

/* ── Parenting tips entries ── */
.tip-entry {
  border-bottom: 1px solid var(--border-soft);
  padding: 32px 0;
}
.tip-entry:first-of-type { padding-top: 0; }
.tip-entry h2 { font-size: 1.4rem; margin-bottom: 6px; }
.tip-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tip-badge {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--soft-sage);
  color: var(--primary-dk);
  display: inline-block;
}
.tip-badge.tc-sleep    { background: var(--soft-blue);  color: #2d4f6a; }
.tip-badge.tc-behaviour{ background: var(--soft-terra); color: #6b3520; }
.tip-badge.tc-screen   { background: #f0eef8;           color: #3d2e6b; }
.tip-badge.tc-school   { background: #fef8e4;           color: #6b5200; }
.tip-badge.tc-emotion  { background: var(--soft-terra); color: #6b3520; }

.tip-step-head {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 8px;
}
.tip-steps { padding-left: 0; list-style: none; }
.tip-steps li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--border-soft);
}
.tip-steps li:last-child { border-bottom: none; }
.tip-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip-steps { counter-reset: step-counter; }

.advice-box {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.88rem;
  margin-top: 14px;
}
.advice-avoid  { background: #fff3f0; border-left: 3px solid #c0392b; color: #5a1a10; }
.advice-note   { background: var(--soft-sage); border-left: 3px solid var(--primary); color: var(--text-soft); }
.advice-pro    { background: var(--soft-blue); border-left: 3px solid var(--accent); color: #2d4055; }

/* ── Development timeline ── */
.dev-timeline { position: relative; padding-left: 32px; }
.dev-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.dev-entry {
  position: relative;
  margin-bottom: 40px;
}
.dev-entry::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}
.dev-entry h3 { font-size: 1.2rem; margin-bottom: 4px; }
.dev-area-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.dev-support-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.dev-support-list li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.dev-support-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── Age stages ── */
.stage-sidebar {
  position: sticky;
  top: 100px;
}
.stage-sidebar a {
  display: block;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
  margin-bottom: 2px;
  border-radius: 0 6px 6px 0;
  transition: all 0.15s;
}
.stage-sidebar a:hover, .stage-sidebar a.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: var(--soft-sage);
}

.stage-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-soft);
}
.stage-block:last-of-type { border-bottom: none; }
.stage-title { font-size: 1.7rem; margin-bottom: 4px; }
.stage-range {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: block;
}
.stage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.stage-grid-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 16px;
}
.stage-grid-item h4 {
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--secondary);
  margin-bottom: 8px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.stage-grid-item p { font-size: 0.87rem; color: var(--text-soft); max-width: none; margin-bottom: 0; }
.stage-summary-box {
  background: var(--soft-sage);
  border-radius: 10px;
  padding: 20px 22px;
  margin-top: 20px;
}
.stage-summary-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
}
.stage-variation {
  background: var(--soft-blue);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.87rem;
  color: #2d4055;
  margin-top: 16px;
}

/* ── Learning & play ── */
.play-section { padding: 36px 0; border-bottom: 1px solid var(--border-soft); }
.play-section h2 { font-size: 1.45rem; margin-bottom: 10px; }
.activity-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px;
  height: 100%;
}
.activity-card h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--primary-dk); }
.activity-card p  { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0; max-width: none; }
.safety-strip {
  background: #fff3f0;
  border: 1px solid #f5c6bc;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #6b3520;
  margin-top: 12px;
}
.what-you-need {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--soft-blue);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.what-you-need strong { color: var(--text-dark); display: block; margin-bottom: 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

/* ── Family routines ── */
.routine-block { padding: 36px 0; border-bottom: 1px solid var(--border-soft); }
.routine-block h2 { font-size: 1.4rem; margin-bottom: 10px; }
.routine-example {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 16px 0;
}
.routine-example .re-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.checklist { list-style: none; padding: 0; }
.checklist li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--border-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--sage-accent);
  font-size: 1rem;
  top: 6px;
}
.age-adapt {
  background: var(--soft-terra);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.87rem;
  color: #5a2a18;
  margin-top: 12px;
}

/* ── Reassurance / pull quote ── */
.pull-quote {
  border-left: 4px solid var(--sage-accent);
  padding: 16px 20px;
  margin: 28px 0;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--primary-dk);
  font-style: italic;
  line-height: 1.6;
}

/* ── Safety notice ── */
.safety-notice {
  background: var(--soft-blue);
  border: 1px solid #c0cfd9;
  border-radius: 12px;
  padding: 20px 24px;
}
.safety-notice h4 {
  font-size: 0.85rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}
.safety-notice p { font-size: 0.9rem; color: #2d4055; max-width: none; margin-bottom: 0; }

/* ── Filter bar ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.btn-filter {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.17s;
}
.btn-filter:hover, .btn-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── Breadcrumb ── */
.breadcrumb { background: transparent; padding: 10px 0 0; font-size: 0.83rem; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text-muted); }

/* ── Ad placeholder ── */
.ad-placeholder {
  background: var(--warm-bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
  color: #b0aba0;
  font-size: 0.76rem;
}

/* ── Back to top ── */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  z-index: 999;
  transition: background 0.2s;
}
#backToTop:hover { background: var(--primary-dk); }
#backToTop.visible { display: flex; }

/* ── Footer ── */
.site-footer {
  background: var(--primary-dk);
  color: #b8c8bf;
  font-size: 0.86rem;
  padding-top: 48px;
  padding-bottom: 32px;
  margin-top: 0;
}
.site-footer h6 { color: #fff; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; font-family: 'Segoe UI', system-ui, sans-serif; }
.site-footer a  { color: #c8dbd0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-wordmark { font-family: Georgia, serif; font-size: 1.15rem; color: #fff; font-weight: 700; }
.footer-disclaimer { font-size: 0.82rem; color: #8aab99; line-height: 1.7; max-width: 320px; }

/* ── About, Privacy, Disclaimer body ── */
.prose h2 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 10px; }
.prose p, .prose li { font-size: 0.96rem; color: var(--text-soft); }
.prose ul { padding-left: 20px; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .stage-sidebar { position: static; margin-bottom: 24px; }
  .stage-sidebar a { display: inline-block; border-left: none; border: 1.5px solid var(--border); border-radius: 50px; padding: 5px 14px; margin: 3px; }
  .stage-sidebar a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.55rem; }
  .timeline-strip { flex-direction: column; }
  .timeline-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stage-grid { grid-template-columns: 1fr; }
  .dev-timeline { padding-left: 22px; }
}
