/*
Theme Name: All Things Pregnancy
Theme URI: https://allthingspregnancy.com
Author: All Things Pregnancy
Description: A warm, cozy pregnancy blog theme with soft pastels and a nurturing feel.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog, pregnancy, lifestyle, pastel, warm
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rose:       #FFB7BF;
  --blush:      #ffe0e3;
  --peach:      #C3DCE0;
  --sage:       #7FA3B3;
  --sage-dk:    #5a8296;
  --lavender:   #ddedf0;
  --cream:      #F8F6E5;
  --warm-white: #fdfcf5;
  --brown:      #923E3E;
  --brown-lt:   #C57676;
  --text:       #923E3E;
  --text-lt:    #C57676;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav, .site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,246,229,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(127,163,179,0.2);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.site-branding a, .nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; letter-spacing: 0.02em;
  color: var(--brown);
  text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.site-branding a span, .nav-logo span { font-style: italic; color: var(--brown-lt); }

.main-navigation ul { display: flex; gap: 2.5rem; list-style: none; }
.main-navigation ul a {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-lt);
  text-decoration: none; transition: color 0.2s;
  position: relative;
}
.main-navigation ul a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--brown);
  transform: scaleX(0); transition: transform 0.2s;
}
.main-navigation ul a:hover { color: var(--brown); }
.main-navigation ul a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--brown); color: #fff;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.55rem 1.4rem;
  border-radius: 0.3rem; text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--brown-lt); transform: translateY(-1px); }

/* ── HERO (front page only) ── */
.hero {
  min-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 4rem 4rem 6rem;
  gap: 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(195,220,224,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(255,183,191,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 60% 90%, rgba(127,163,179,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-blob {
  position: absolute; top: -8rem; right: -8rem;
  width: 36rem; height: 36rem;
  background: radial-gradient(circle, rgba(195,220,224,0.35), transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.03); }
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 2.5rem; height: 1px; background: var(--sage);
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15; color: var(--brown);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--brown-lt); }
.hero-desc {
  font-family: 'Lora', serif;
  font-size: 1.1rem; line-height: 1.8;
  color: var(--text-lt); max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--brown); color: #fff;
  padding: 0.85rem 2rem; border-radius: 3rem;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(107,76,59,0.25);
  display: inline-block;
}
.btn-primary:hover { background: var(--brown-lt); transform: translateY(-2px); }
.btn-secondary {
  border: 1.5px solid var(--rose); color: var(--brown);
  padding: 0.85rem 2rem; border-radius: 3rem;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none; background: transparent;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--blush); transform: translateY(-2px); }

/* ── CALCULATOR BANNER ── */
.calc-banner {
  background: linear-gradient(135deg, var(--blush) 0%, var(--lavender) 50%, var(--peach) 100%);
  padding: 2rem 4rem;
}
.calc-banner-content {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(255,255,255,0.6);
  border-radius: 1.5rem; padding: 1.5rem 2rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(249,184,196,0.3);
}
.calc-banner-emoji { font-size: 2.5rem; flex-shrink: 0; }
.calc-banner-text { flex: 1; }
.calc-banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--brown);
  margin-bottom: 0.2rem;
}
.calc-banner-text p {
  font-size: 0.85rem; color: var(--text-lt);
  font-family: 'Lora', serif; font-style: italic;
}
.calc-banner-btn {
  background: var(--brown); color: #fff;
  padding: 0.8rem 1.5rem; border-radius: 2rem;
  font-size: 0.88rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(196,112,106,0.25);
  flex-shrink: 0;
}
.calc-banner-btn:hover { background: var(--brown-lt); transform: translateY(-2px); }
@media (max-width: 600px) {
  .calc-banner { padding: 1.5rem; }
  .calc-banner-content { flex-direction: column; text-align: center; }
}

/* ── HERO ILLUSTRATION ── */
.hero-illustration {
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-svg { width: 100%; max-width: 340px; height: auto; }

/* ── CATEGORY ICON WRAP ── */
.cat-icon-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  border: 1px solid rgba(146,62,62,0.15);
}

/* ── TRIMESTER ILLUSTRATION ── */
.trimester-illustration {
  display: flex; justify-content: center;
  margin-bottom: 1rem;
}

/* ── NEWSLETTER ILLUSTRATION ── */
.newsletter-illustration { flex-shrink: 0; }

/* ── POST THUMB PLACEHOLDER ── */
.post-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F8F6E5, #C3DCE0);
}

/* ── CATEGORIES ── */
.categories-section {
  padding: 5rem 4rem;
  background: var(--cream);
}
.section-label {
  text-align: center;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sage-dk);
  margin-bottom: 0.8rem;
}
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--brown); margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--brown-lt); }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.cat-card {
  border-radius: 1.5rem; padding: 2rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: block;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(107,76,59,0.12); }
.cat-card.products   { background: linear-gradient(145deg, var(--blush), #fff5f5); }
.cat-card.trimesters { background: linear-gradient(145deg, var(--lavender), #f5f2ff); }
.cat-card.nutrition  { background: linear-gradient(145deg, var(--sage), #eef5eb); }
.cat-card.wellness   { background: linear-gradient(145deg, var(--peach), #fff5ec); }
.cat-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.cat-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--brown); margin-bottom: 0.4rem; }
.cat-desc { font-size: 0.82rem; color: var(--text-lt); line-height: 1.5; }

/* ── BLOG / POSTS GRID ── */
.blog-section { padding: 5rem 4rem; }
.posts-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto; gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.post-card {
  background: #fff; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 4px 20px rgba(107,76,59,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; color: inherit;
  display: block;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(107,76,59,0.13); }
.post-card.featured-main { grid-row: 1 / 3; display: flex; flex-direction: column; }
.post-thumbnail {
  height: 260px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blush), var(--lavender));
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.post-card.featured-main .post-thumbnail { height: 340px; }
.post-thumbnail img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.post-thumbnail-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(transparent, rgba(61,44,38,0.55));
}
.post-tag {
  position: relative; z-index: 1;
  display: inline-block;
  background: rgba(255,255,255,0.9);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.8rem;
  border-radius: 1rem; color: var(--brown);
}
.post-body { padding: 1.5rem; flex: 1; }
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--brown);
  margin-bottom: 0.6rem; line-height: 1.4;
}
.post-card.featured-main .post-title { font-size: 1.5rem; }
.post-excerpt {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 0.88rem; color: var(--text-lt); line-height: 1.7;
  margin-bottom: 1rem;
}
.post-meta {
  font-size: 0.75rem; color: var(--text-lt);
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
}
.post-meta-dot { width: 3px; height: 3px; background: var(--rose); border-radius: 50%; display: inline-block; }

/* ── SINGLE POST ── */
.single-post-hero {
  background: linear-gradient(135deg, var(--blush), var(--lavender));
  padding: 5rem 4rem 3rem;
  text-align: center;
}
.single-post-hero .post-tag { margin-bottom: 1.2rem; display: inline-block; }
.single-post-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--brown); line-height: 1.2;
  max-width: 750px; margin: 0 auto 1rem;
}
.single-post-hero .post-meta { justify-content: center; margin-top: 1rem; }
.single-post-thumbnail {
  max-width: 900px; margin: 0 auto;
  border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 8px 32px rgba(107,76,59,0.15);
  transform: translateY(2rem);
}
.single-post-thumbnail img { width: 100%; display: block; }

.post-content-wrap {
  max-width: 720px; margin: 4rem auto; padding: 0 2rem 4rem;
}
.post-content-wrap .entry-content {
  font-family: 'Lora', serif;
  font-size: 1.05rem; line-height: 1.9; color: var(--text);
}
.post-content-wrap .entry-content p { margin-bottom: 1.5rem; }
.post-content-wrap .entry-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--brown);
  margin: 2.5rem 0 1rem;
}
.post-content-wrap .entry-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--brown-lt);
  margin: 2rem 0 0.8rem;
}
.post-content-wrap .entry-content img {
  width: 100%; border-radius: 1rem; margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(107,76,59,0.1);
}
.post-content-wrap .entry-content ul,
.post-content-wrap .entry-content ol {
  padding-left: 1.5rem; margin-bottom: 1.5rem;
}
.post-content-wrap .entry-content li { margin-bottom: 0.5rem; }
.post-content-wrap .entry-content blockquote {
  border-left: 3px solid var(--rose);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--blush); border-radius: 0 1rem 1rem 0;
  font-style: italic; color: var(--text-lt);
}

/* ── STAR RATING ── */
.star-rating { color: var(--rose); font-size: 1.2rem; margin: 1rem 0; }
.review-box {
  background: var(--cream); border-radius: 1.2rem;
  padding: 1.5rem 2rem; margin: 2rem 0;
  border: 1px solid rgba(242,196,196,0.4);
}
.review-box .review-label {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--sage-dk);
  margin-bottom: 0.5rem;
}
.review-verdict {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--brown);
}

/* ── TRIMESTERS ── */
.trimesters-section {
  padding: 5rem 4rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 100%);
}
.trimester-track {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; max-width: 900px; margin: 0 auto;
}
.trimester-card {
  background: #fff; border-radius: 2rem; padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(107,76,59,0.07);
  position: relative; overflow: hidden;
  transition: transform 0.25s;
  text-decoration: none; display: block; color: inherit;
}
.trimester-card:hover { transform: translateY(-6px); }
.trimester-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.trimester-card:nth-child(1)::before { background: linear-gradient(90deg, var(--rose), var(--peach)); }
.trimester-card:nth-child(2)::before { background: linear-gradient(90deg, var(--lavender), var(--rose)); }
.trimester-card:nth-child(3)::before { background: linear-gradient(90deg, var(--sage), var(--lavender)); }
.trimester-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 600;
  color: rgba(242,196,196,0.5); line-height: 1; margin-bottom: 0.5rem;
}
.trimester-label { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); margin-bottom: 0.4rem; }
.trimester-weeks { font-size: 0.78rem; color: var(--text-lt); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1rem; }
.trimester-desc { font-size: 0.85rem; color: var(--text-lt); line-height: 1.7; font-family: 'Lora', serif; font-style: italic; }

/* ── NEWSLETTER ── */
.newsletter-section {
  margin: 3rem 4rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--blush) 0%, var(--lavender) 50%, var(--peach) 100%);
  padding: 4rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '🌸'; position: absolute; top: -1rem; right: 6rem;
  font-size: 8rem; opacity: 0.12; pointer-events: none;
}
.newsletter-text { flex: 1; }
.newsletter-text h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--brown); margin-bottom: 0.7rem; }
.newsletter-text h2 em { font-style: italic; }
.newsletter-text p { font-family: 'Lora', serif; font-style: italic; color: var(--text-lt); line-height: 1.7; }
.newsletter-form { display: flex; gap: 0.8rem; flex-shrink: 0; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  padding: 0.85rem 1.4rem; border-radius: 3rem;
  border: 1.5px solid rgba(242,196,196,0.6);
  background: rgba(255,255,255,0.85);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text);
  outline: none; min-width: 220px;
}
.newsletter-form input[type="submit"], .newsletter-form button {
  padding: 0.85rem 1.8rem; border-radius: 3rem;
  background: var(--brown); color: #fff;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-form input[type="submit"]:hover { background: var(--brown-lt); transform: translateY(-2px); }

/* ── SIDEBAR ── */
.content-sidebar-wrap {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3rem; max-width: 1100px; margin: 0 auto;
  padding: 3rem 4rem;
}
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--brown);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--rose);
}
.widget ul { list-style: none; }
.widget ul li { padding: 0.4rem 0; border-bottom: 1px solid rgba(242,196,196,0.3); }
.widget ul li a { color: var(--text-lt); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.widget ul li a:hover { color: var(--brown); }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown); color: rgba(255,255,255,0.85);
  padding: 3rem 4rem 0;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .site-branding a { color: #fff; margin-bottom: 1rem; display: block; }
.footer-brand .site-branding a span { color: var(--rose); }
.footer-brand p { font-family: 'Lora', serif; font-style: italic; font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-col h4 { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  background: var(--brown);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  margin-top: 3rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 2rem; min-height: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card.featured-main { grid-row: auto; }
  .trimester-track { grid-template-columns: 1fr; }
  .newsletter-section { flex-direction: column; margin: 2rem; padding: 2.5rem; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 2.5rem 2rem; }
  .footer-bottom { padding: 1rem 2rem; flex-direction: column; gap: 0.4rem; text-align: center; }
  .content-sidebar-wrap { grid-template-columns: 1fr; padding: 2rem; }
  .categories-section, .blog-section, .trimesters-section { padding: 3.5rem 2rem; }
  .single-post-hero { padding: 3rem 2rem 2rem; }
}
