/* ============================================================
   Pregnancy Clarity — Master Global Stylesheet (style.css)
   ============================================================ */

/* ── 1. Global Design Tokens (Variables) ──────────────────── */
:root {
  --primary: #C96A7C;        /* Rich Warm Rose Pink */
  --primary-hover: #A85464;
  --bg-main: #FCF8F8;        /* Soft Warm Blush Background */
  --text-dark: #2A2426;      /* High-Contrast Charcoal Black */
  --text-body: #615A5C;      /* Muted Reading Grey */
  --white: #ffffff;
  --border-soft: #F0E6E8;    /* Soft Pinkish Border Line */
}

/* ── 2. Core System Resets ───────────────────────────────── */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: 'Inter', sans-serif; 
  color: var(--text-body); 
  background: var(--bg-main); 
  line-height: 1.6; 
  -webkit-font-smoothing: antialiased; 
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Keeps footer pinned to bottom on short content pages */
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: all 0.3s ease; 
}

/* Global Content Container */
.container { 
  max-width: 1140px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

img {
  max-width: 100%;
  height: auto;
}

/* ── 3. Global Dynamic Header Navigation ─────────────────── */
.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;
}

/* Logo Alignment */
.logo { 
  font-family: 'Playfair Display', serif; 
  font-size: 24px; 
  font-weight: 700; 
  color: var(--text-dark); 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
.logo span { 
  color: var(--primary); 
  font-style: italic; 
  font-weight: 500; 
}
.logo-icon {
  font-size: 20px;
}
.logo-text span span {
  color: var(--primary);
  font-style: italic;
  font-weight: 500;
}

/* Navigation System */
.main-nav { 
  display: flex; 
  gap: 32px; 
  list-style: none; 
}
.main-nav a { 
  font-family: 'Lexend', sans-serif; 
  font-size: 14px; 
  font-weight: 500; 
  color: var(--text-dark); 
  position: relative; 
  padding: 8px 0; 
}
.main-nav a:hover, .main-nav a.active { 
  color: var(--primary); 
}

/* Mobile Header Components Dropdown defaults */
.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;
}

/* ── 4. Global Structural Footer Layout ──────────────────── */
.site-footer { 
  background: #1C1917; 
  color: #E7E5E4; 
  padding: 60px 0 30px 0; 
  font-family: 'Inter', sans-serif; 
  margin-top: auto; /* Pushes footer down if content is low */
}
.footer-inner { 
  max-width: 1140px; 
  margin: 0 auto; 
  padding: 0 24px; 
}
.footer-grid { 
  display: grid; 
  grid-template-columns: 2fr repeat(3, 1fr); 
  gap: 40px; 
  border-bottom: 1px solid #2E2A28; 
  padding-bottom: 40px; 
  margin-bottom: 30px; 
}
.footer-brand .logo { 
  margin-bottom: 16px; 
  display: inline-flex; 
}
.footer-desc { 
  font-size: 14px; 
  color: #A8A29E; 
  line-height: 1.6; 
  font-weight: 300; 
  max-width: 320px; 
}
.footer-col { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}
.footer-col-title { 
  font-family: 'Lexend', sans-serif; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--white); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  margin-bottom: 6px; 
}
.footer-col a { 
  font-size: 14px; 
  color: #A8A29E; 
  transition: color 0.3s; 
  text-decoration: none; 
}
.footer-col a:hover { 
  color: var(--white); 
}
.footer-bottom { 
  font-size: 13px; 
  color: #78716C; 
  text-align: left; 
  line-height: 1.6; 
}

/* ── 5. Global Mobile Media Queries ──────────────────────── */
@media (max-width: 768px) {
  .header-inner { height: 70px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }
  
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  .footer-col {
    text-align: left;
  }
}