/* ============================================================
   Pregnancy Clarity — Premium Home Engine Stylesheet (home.css)
   ============================================================ */

/* ── 1. Site Header & Navigation Fix ─────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-family: 'Lexend', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}
.main-nav a:hover {
  color: var(--primary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 5px;
}
.mobile-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  z-index: 999;
}
.mobile-nav a {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid #FCF8F8;
}

/* ── 2. Editorial Hero Section ───────────────────────────── */
.hero-section { 
  padding: 100px 20px; 
  text-align: center; 
  background: linear-gradient(135deg, #FAE8EB 0%, #FDF4F5 100%); 
  border-bottom: 1px solid var(--border-soft); 
  margin-bottom: 80px; 
}
.hero-badge { 
  display: inline-block; 
  border: 1px solid var(--primary); 
  color: var(--primary); 
  font-size: 11px; 
  font-weight: 600; 
  padding: 6px 18px; 
  border-radius: 30px; 
  letter-spacing: 1.5px; 
  text-transform: uppercase; 
  margin-bottom: 24px; 
}
.hero-title { 
  font-family: 'Playfair Display', serif; 
  font-size: 56px; 
  color: var(--text-dark); 
  margin-bottom: 24px; 
  line-height: 1.15; 
  letter-spacing: -1px; 
}
.hero-title i { font-style: italic; color: var(--primary); font-weight: 500; }
.hero-desc { font-size: 18px; color: var(--text-body); max-width: 640px; margin: 0 auto 40px auto; line-height: 1.7; font-weight: 300; }

/* Elegant Search Layout */
.hero-search { 
  max-width: 480px; 
  margin: 0 auto; 
  display: flex; 
  position: relative; 
  box-shadow: 0 15px 35px -5px rgba(28, 25, 23, 0.08); 
  border-radius: 40px; 
  background: var(--white); 
}
.hero-search input { 
  width: 100%; 
  padding: 18px 28px; 
  border-radius: 40px; 
  border: 1px solid transparent; 
  font-family: 'Inter', sans-serif; 
  font-size: 15px; 
  outline: none; 
  background: transparent; 
  transition: all 0.3s; 
}
.hero-search input:focus { border-color: var(--primary); }
.hero-search button { 
  position: absolute; 
  right: 8px; 
  top: 8px; 
  bottom: 8px; 
  background: var(--text-dark); 
  color: var(--white); 
  border: none; 
  border-radius: 30px; 
  padding: 0 28px; 
  font-size: 14px; 
  font-weight: 500; 
  cursor: pointer; 
  transition: background 0.3s; 
}
.hero-search button:hover { background: var(--primary); }

/* ── 3. Trust Accreditation Strip ────────────────────────── */
.trust-strip { 
  border-bottom: 1px solid var(--border-soft); 
  padding: 24px 20px; 
  background: var(--white); 
  text-align: center; 
  margin-bottom: 60px; 
  margin-top: -80px; 
  position: relative; 
  z-index: 10;
}
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-strip-text { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: #78716C; margin-right: 20px; }
.trust-logo { font-family: 'Lexend', sans-serif; font-size: 18px; font-weight: 700; color: #D6D3D1; letter-spacing: 0.5px; }

/* ── 4. Category Pills Grid ──────────────────────────────── */
.section-title { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--text-dark); text-align: center; margin-bottom: 50px; font-weight: 600; letter-spacing: -0.5px; }
.category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 80px; }
.cat-pill { background: var(--white); border: 1px solid var(--border-soft); border-radius: 40px; padding: 12px 24px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.cat-pill:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 15px rgba(197, 123, 134, 0.15); }
.cat-icon { font-size: 18px; }
.cat-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }

/* ── 5. Due Date Calculator Widget ───────────────────────── */
.due-date-widget { 
  background: linear-gradient(135deg, #ffffff 0%, #fffbfb 100%); 
  border: 1px solid var(--border-soft); 
  border-radius: 24px; 
  padding: 40px; 
  margin-bottom: 80px; 
  box-shadow: 0 10px 30px -10px rgba(197, 123, 134, 0.15); 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 40px; 
  flex-wrap: wrap; 
}
.widget-content { flex: 1; min-width: 300px; }
.widget-title { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--text-dark); margin-bottom: 12px; }
.widget-desc { font-size: 15px; color: var(--text-body); margin-bottom: 0; font-weight: 300; line-height: 1.6; }
.widget-form { flex: 1; min-width: 300px; background: #fff; padding: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border: 1px solid var(--border-soft); }
.widget-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.widget-input-group { display: flex; gap: 10px; }
.widget-input { flex: 1; padding: 14px 16px; border: 1px solid #E7E5E4; border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-dark); outline: none; transition: border 0.3s; }
.widget-input:focus { border-color: var(--primary); }
.widget-btn { background: var(--text-dark); color: var(--white); border: none; padding: 0 24px; border-radius: 12px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.3s; }
.widget-btn:hover { background: var(--primary); }
.widget-result { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-soft); text-align: center; animation: fadeIn 0.4s ease; }
.widget-result.show { display: block; }
.result-label { font-size: 12px; color: var(--text-body); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.result-date { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--primary); }

/* ── 6. Baby Size Tracker (Fruit Widget) ─────────────────── */
.fruit-tracker-section { margin-bottom: 80px; }
.fruit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.fruit-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: 20px; padding: 30px 20px; text-align: center; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.02); cursor: pointer; text-decoration: none; display: block; }
.fruit-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 12px 20px rgba(197, 123, 134, 0.1); }
.fruit-week { font-family: 'Lexend', sans-serif; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1.5px; }
.fruit-emoji { font-size: 56px; margin-bottom: 16px; display: inline-block; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.08)); transition: transform 0.4s ease; }
.fruit-card:hover .fruit-emoji { transform: scale(1.1) rotate(5deg); }
.fruit-name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.fruit-size { font-size: 13px; color: var(--text-body); font-weight: 300; }

/* ── 7. High-End Editorial Article Cards ─────────────────── */
.article-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(320px, 360px)); /* Combined logic to stop structural stretch */
  gap: 40px; 
  margin-bottom: 80px; 
}
.article-card { background: var(--white); border-radius: 0; overflow: hidden; border: none; transition: all 0.4s ease; display: flex; flex-direction: column; cursor: pointer; }
.article-card:hover .article-img { transform: scale(1.03); }
.article-img-wrap { overflow: hidden; border-radius: 16px; margin-bottom: 24px; background: #E7E5E4; }
.article-img { height: 240px; width: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.article-tag { font-size: 11px; font-weight: 600; color: #0F766E; background: #ECFDF5; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; display: inline-block; margin-bottom: 16px; }
.article-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; line-height: 1.4; }
.article-excerpt { font-size: 15px; color: var(--text-body); line-height: 1.6; margin-bottom: 24px; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; align-items: center; gap: 12px; }
.meta-avatar { width: 36px; height: 36px; background: #F5F5F4; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; }
.meta-info { font-size: 13px; color: #78716C; font-weight: 400; }
.meta-info strong { color: var(--text-dark); font-weight: 600; }

/* ── 8. Medical Trust Board (E-E-A-T) ────────────────────── */
.trust-section { margin-bottom: 80px; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.trust-card { display: flex; flex-direction: column; align-items: center; }
.trust-avatar { width: 90px; height: 90px; background: #fdf2f8; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; border: 3px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-bottom: 16px; }
.trust-name { font-family: 'Lexend', sans-serif; font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.trust-title { font-size: 13px; color: var(--primary); font-weight: 500; margin-bottom: 12px; }
.trust-desc { font-size: 13px; color: var(--text-body); line-height: 1.6; max-width: 250px; }

/* ── 9. Newsletter Section ───────────────────────────────── */
.newsletter-section { background: var(--text-dark); border-radius: 24px; padding: 80px 20px; text-align: center; color: var(--white); margin-bottom: 80px; }
.newsletter-title { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 16px; font-weight: 500; }
.newsletter-desc { font-size: 16px; color: #D6D3D1; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; font-weight: 300; line-height: 1.6; }

/* ── 10. Animation Sequences ─────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* ── 11. Consolidated Master Mobile Queries ──────────────── */
@media (max-width: 768px) {
  /* Header Configurations */
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }

  /* Hero Section Modifications */
  .hero-title { font-size: 40px; }
  .hero-section { padding: 60px 16px; }
  .hero-search { flex-direction: column; background: transparent; box-shadow: none; }
  .hero-search input { padding: 16px 20px; background: var(--white); margin-bottom: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); border-radius: 30px; }
  .hero-search button { position: static; width: 100%; padding: 16px; border-radius: 30px; }

  /* Trust Strip Adaptations */
  .trust-strip-inner { gap: 20px; }
  .trust-strip-text { width: 100%; margin-right: 0; margin-bottom: 10px; }

  /* Widgets and Structural Cards */
  .due-date-widget { padding: 24px; gap: 24px; }
  .widget-input-group { flex-direction: column; }
  .widget-btn { padding: 14px; }
  .article-grid { grid-template-columns: 1fr; gap: 34px; }
}
/* ── Definitive Footer Fix ───────────────────────────────── */
.site-footer { 
  background: #1C1917 !important; /* Forces the rich dark background */
  color: #E7E5E4 !important; 
  padding: 60px 0 30px 0; 
  font-family: 'Inter', sans-serif; 
  margin-top: 80px; 
}
.footer-inner { 
  max-width: 1140px; 
  margin: 0 auto; 
  padding: 0 24px; 
}
.footer-grid { 
  display: grid !important; 
  grid-template-columns: 2fr repeat(3, 1fr) !important; 
  gap: 40px; 
  border-bottom: 1px solid #2E2A28; 
  padding-bottom: 40px; 
  margin-bottom: 30px; 
}

/* Fixes the inline link mess by forcing vertical columns */
.footer-col { 
  display: flex !important; 
  flex-direction: column !important; 
  gap: 12px !important; 
  text-align: left !important;
}
.footer-col-title { 
  font-family: 'Lexend', sans-serif; 
  font-size: 14px; 
  font-weight: 600; 
  color: #ffffff !important; 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  margin-bottom: 6px; 
}
.footer-col a { 
  font-size: 14px; 
  color: #A8A29E !important; 
  transition: color 0.3s; 
  text-decoration: none !important; 
  display: block !important; /* Ensures vertical alignment */
}
.footer-col a:hover { 
  color: #ffffff !important; 
}
.footer-bottom { 
  font-size: 13px; 
  color: #78716C; 
  text-align: left; 
  line-height: 1.6; 
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer-grid { 
    grid-template-columns: 1fr !important; 
    gap: 30px; 
  }
  .footer-col {
    text-align: center !important;
  }
}