/* Baby Sleeping Coach — shared styles */
:root {
  --navy: #1f2547;
  --navy-soft: #2d345e;
  --cream: #fdf8f3;
  --cream-deep: #f5ede1;
  --rose: #e8a5a5;
  --rose-deep: #d48989;
  --lavender: #b8b4d8;
  --gold: #d4a574;
  --text: #2a2d4a;
  --text-soft: #6b6e85;
  --line: #e8e2d6;
  --green: #6b9b7a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; }
p { font-size: 1.05rem; color: var(--text-soft); }
a { color: var(--navy); text-decoration: none; }

/* NAV */
nav.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1140px; margin: 0 auto;
}
.logo { font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.logo-moon { width: 26px; height: 26px; background: var(--navy); border-radius: 50%; position: relative; overflow: hidden; flex-shrink: 0; }
.logo-moon::after { content: ""; position: absolute; width: 20px; height: 20px; background: var(--cream); border-radius: 50%; top: -4px; right: -4px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text); font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--rose-deep); }
.nav-cta { background: var(--navy); color: var(--cream) !important; padding: 9px 18px; border-radius: 50px; font-weight: 600; transition: all 0.2s; }
.nav-cta:hover { background: var(--rose-deep); transform: translateY(-1px); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* BUTTONS */
.btn-primary {
  display: inline-block; background: var(--navy); color: var(--cream);
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  transition: all 0.2s; border: 2px solid var(--navy); cursor: pointer;
}
.btn-primary:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: white; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--navy);
  padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 1rem;
  border: 2px solid var(--navy); transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { background: var(--navy); color: var(--cream); }

/* BLOG INDEX HERO */
.blog-hero {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  text-align: center;
}
.blog-hero h1 { margin-bottom: 16px; }
.blog-hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* CATEGORY FILTER */
.filter-bar {
  background: white; padding: 20px 0;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 64px; z-index: 50;
}
.filter-inner { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.filter-btn {
  padding: 8px 16px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { background: var(--cream-deep); }
.filter-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* POST GRID */
.posts-section { padding: 60px 0 100px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: white; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); transition: all 0.25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(31, 37, 71, 0.08); border-color: var(--rose); }
.post-card-image {
  aspect-ratio: 16/10; background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-image .illu { font-size: 3.5rem; }
.post-card-image.tone-1 { background: linear-gradient(135deg, #f5ede1, #e8a5a5); }
.post-card-image.tone-2 { background: linear-gradient(135deg, #f5ede1, #b8b4d8); }
.post-card-image.tone-3 { background: linear-gradient(135deg, #f5ede1, #d4a574); }
.post-card-image.tone-4 { background: linear-gradient(135deg, #e8a5a5, #1f2547); }
.post-card-image.tone-5 { background: linear-gradient(135deg, #b8b4d8, #2d345e); }
.post-card-image.tone-6 { background: linear-gradient(135deg, #1f2547, #2d345e); }
.tone-4 .illu, .tone-5 .illu, .tone-6 .illu { color: var(--cream); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--text-soft); letter-spacing: 0.02em; }
.post-tag {
  background: var(--cream); padding: 4px 10px; border-radius: 50px;
  color: var(--navy); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em;
}
.post-tag.guide { background: var(--rose); color: white; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; margin: 0; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--rose-deep); }
.post-card-excerpt { font-size: 0.95rem; color: var(--text-soft); flex: 1; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.post-card-foot .read-time { color: var(--text-soft); }
.post-card-foot .read-more { color: var(--rose-deep); font-weight: 600; }

/* ARTICLE PAGE */
.article-hero {
  padding: 50px 0 30px;
  background: var(--cream-deep);
}
.article-hero .breadcrumb {
  font-size: 0.88rem; color: var(--text-soft); margin-bottom: 20px;
}
.article-hero .breadcrumb a { color: var(--rose-deep); }
.article-hero h1 { margin: 12px 0 16px; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article-hero .dek { font-size: 1.2rem; color: var(--text); font-style: italic; margin-bottom: 24px; }
.article-meta {
  display: flex; gap: 16px; align-items: center; font-size: 0.92rem; color: var(--text-soft);
  flex-wrap: wrap;
}
.author-pill {
  display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy);
}
.author-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--rose);
  display: flex; align-items: center; justify-content: center; color: white;
  font-family: Georgia, serif; font-weight: 700; font-size: 0.95rem;
}

.article-body {
  padding: 50px 0 60px;
  background: white;
}
.article-body p { font-size: 1.1rem; color: var(--text); margin-bottom: 22px; line-height: 1.75; }
.article-body h2 { margin: 40px 0 18px; font-size: 1.7rem; }
.article-body h3 { margin: 30px 0 14px; font-size: 1.3rem; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 10px; font-size: 1.08rem; color: var(--text); line-height: 1.7; }
.article-body blockquote {
  border-left: 4px solid var(--rose);
  padding: 6px 0 6px 24px; margin: 30px 0;
  font-style: italic; color: var(--navy); font-size: 1.15rem;
}
.article-body a { color: var(--rose-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--navy); }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body .callout {
  background: var(--cream-deep); border-radius: 14px; padding: 24px 28px;
  margin: 30px 0; border-left: 4px solid var(--rose-deep);
}
.article-body .callout h4 { color: var(--navy); margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.1rem; }
.article-body .callout p { font-size: 1rem; color: var(--text); margin: 0; }

/* INLINE CONSULT CTA */
.inline-cta {
  background: var(--navy); color: var(--cream); border-radius: 18px;
  padding: 36px 32px; margin: 40px 0; text-align: center;
}
.inline-cta h3 { color: var(--cream); font-family: Georgia, serif; margin-bottom: 10px; }
.inline-cta p { color: rgba(253, 248, 243, 0.85); margin-bottom: 20px; font-size: 1rem; }
.inline-cta .btn-primary { background: var(--rose-deep); border-color: var(--rose-deep); }
.inline-cta .btn-primary:hover { background: white; color: var(--navy); border-color: white; }

/* RELATED ARTICLES */
.related {
  padding: 70px 0;
  background: var(--cream-deep);
}
.related h2 { text-align: center; margin-bottom: 36px; }

/* GUIDE LANDING */
.guide-hero {
  padding: 70px 0 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--cream);
}
.guide-hero h1, .guide-hero h2 { color: var(--cream); }
.guide-hero .breadcrumb { color: rgba(253, 248, 243, 0.7); font-size: 0.88rem; margin-bottom: 20px; }
.guide-hero .breadcrumb a { color: var(--rose); }
.guide-hero .guide-tag {
  display: inline-block; background: var(--rose); color: white;
  padding: 5px 14px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px;
}
.guide-hero p.dek { color: rgba(253, 248, 243, 0.92); font-size: 1.18rem; max-width: 620px; }

.guide-section {
  padding: 60px 0; background: white;
}
.guide-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.guide-inside h2 { margin-bottom: 20px; }
.guide-inside ul { list-style: none; padding: 0; }
.guide-inside li {
  padding: 12px 0 12px 32px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.05rem;
}
.guide-inside li:last-child { border-bottom: none; }
.guide-inside li::before {
  content: "✓"; position: absolute; left: 0; top: 12px;
  width: 22px; height: 22px; background: var(--green); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.guide-form-card {
  background: var(--cream); padding: 36px 32px; border-radius: 20px;
  border: 1px solid var(--line);
  position: sticky; top: 100px;
}
.guide-form-card h3 { font-family: Georgia, serif; margin-bottom: 8px; }
.guide-form-card p { font-size: 0.95rem; margin-bottom: 24px; }
.guide-form label { display: block; font-size: 0.85rem; color: var(--navy); font-weight: 600; margin-bottom: 6px; }
.guide-form input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 1rem; margin-bottom: 16px;
  font-family: inherit; background: white;
}
.guide-form input:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(212, 137, 137, 0.15); }
.guide-form button { width: 100%; }
.guide-form-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 14px; text-align: center; }
.guide-success {
  text-align: center; padding: 30px 0;
}
.guide-success-icon {
  width: 56px; height: 56px; background: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem; margin: 0 auto 16px;
}
.guide-success h4 { color: var(--navy); font-size: 1.3rem; margin-bottom: 10px; font-family: Georgia, serif; }
.guide-success p { color: var(--text-soft); margin-bottom: 18px; }
.guide-success .dl-link { color: var(--rose-deep); font-weight: 600; }
.hidden { display: none; }

.what-its-not {
  background: var(--cream-deep); padding: 50px 0;
}
.what-its-not h3 { margin-bottom: 14px; }
.what-its-not p { font-size: 1.05rem; color: var(--text); }

/* T&C / TEXT PAGE */
.text-page {
  padding: 50px 0 80px;
  background: white;
}
.text-page h1 { margin-bottom: 12px; }
.text-page .updated { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 30px; }
.text-page h2 { margin: 36px 0 14px; font-size: 1.5rem; }
.text-page h3 { margin: 24px 0 10px; font-size: 1.15rem; }
.text-page p { font-size: 1.05rem; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.text-page ul { margin: 0 0 18px 22px; }
.text-page li { margin-bottom: 8px; color: var(--text); font-size: 1.02rem; }
.text-page .warning-box {
  background: var(--cream-deep); border-left: 4px solid var(--rose-deep);
  padding: 22px 26px; border-radius: 12px; margin: 28px 0;
}
.text-page .warning-box h3 { margin-top: 0; color: var(--rose-deep); }
.text-page .warning-box p { color: var(--text); margin-bottom: 0; }

/* FOOTER (shared) */
footer.site-footer { background: var(--navy); color: var(--cream); padding: 50px 0 25px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: var(--cream); font-size: 1rem; margin-bottom: 14px; font-family: inherit; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: 6px 0; }
.site-footer a { color: rgba(253, 248, 243, 0.75); font-size: 0.93rem; }
.site-footer a:hover { color: var(--rose); }
.site-footer .footer-brand p { color: rgba(253, 248, 243, 0.65); margin-top: 12px; max-width: 320px; font-size: 0.92rem; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 0.82rem;
  color: rgba(253, 248, 243, 0.6); flex-wrap: wrap; gap: 10px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-form-card { position: static; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 20px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
}
