/* ==========================================================================
   Babyaisle - Theme Maternité & Parentalité Moderne, Pastel & Chaleureux
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary: #0077B6;
  --primary-light: #E8F4F8;
  --primary-hover: #005F92;
  --secondary: #90E0EF;
  --accent-rose: #F4A261;
  --rose-soft: #FFE8E8;
  --rose-terracotta: #E07A5F;
  --rose-bg: #FFF5F3;
  --bg-warm: #FAF8F5;
  --card-bg: #FFFFFF;
  --text-dark: #2B2D42;
  --text-muted: #6C757D;
  --border-color: #EEE6E2;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-badge {
  background: var(--rose-bg);
  color: var(--rose-terracotta);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-main);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(224, 122, 95, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  background: var(--rose-terracotta);
  color: white !important;
  border-radius: 30px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 14px rgba(224, 122, 95, 0.3);
}

.nav-cta:hover {
  background: #d0694e !important;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Layout Main Container */
main {
  flex: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #FFF5F3 0%, #FAF8F5 50%, #E8F4F8 100%);
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rose-terracotta);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-subtle);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem auto;
}

/* Timer Widget - Contraction Counter */
.timer-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.timer-display {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--primary);
  margin: 1.5rem 0;
  letter-spacing: 2px;
}

.timer-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--rose-terracotta);
  color: white;
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.35);
}

.btn-primary:hover {
  background: #c9674e;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Card Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: var(--rose-soft);
  color: var(--rose-terracotta);
}

.card-title {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.card-link:hover {
  gap: 0.6rem;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Table Design */
.data-table-container {
  overflow-x: auto;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, .data-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-warm);
  font-weight: 700;
  color: var(--text-dark);
}

.data-table tr:hover {
  background: rgba(0, 119, 182, 0.02);
}

/* Blog & Article detail */
.article-header {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 2rem 0 1rem 0;
  font-size: 1.7rem;
}

.article-content h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.8rem 0;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.toc-box {
  background: var(--rose-bg);
  border: 1px solid var(--rose-soft);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-weight: 700;
  color: var(--rose-terracotta);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background: #1D2A3A;
  color: #E2E8F0;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid #334155;
  padding-top: 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

/* Reveal on scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .timer-display {
    font-size: 2.8rem;
  }

  .article-content {
    padding: 1.5rem;
  }
}