/* ── AtMyMoms Global Styles — Warm & Earthy Palette ── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

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

:root {
  --primary:      #C1622D;
  --primary-hover:#D07040;
  --accent:       #316040;
  --accent-hover: #254d33;
  --accent-light: #eaf1ec;
  --bg:           #F5EFE6;
  --bg-warm:      #F0E8DC;
  --text:         #1C1108;
  --text-mid:     #4a3728;
  --text-light:   #7a6355;
  --white:        #ffffff;
  --border:       #e0d5c8;
  --primary-pale: #fdf0e8;
  --cream:        #F5EFE6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 1px 12px rgba(28,17,8,0.08);
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-hover) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(28,17,8,0.12);
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; font-size: 1rem; }
  .nav-cta { margin: 8px 24px; text-align: center; border-radius: 6px !important; }
}

/* ── SHARED COMPONENTS ── */
.section { padding: 80px 40px; }
.section-sm { padding: 56px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }

.badge {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

h1, h2, h3 { font-family: 'Lora', serif; line-height: 1.25; }

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 7px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(193,98,45,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-pale); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--primary-pale); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

.card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28,17,8,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(28,17,8,0.1); transform: translateY(-2px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 20px; }
  .section-sm { padding: 40px 20px; }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--accent);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item svg { color: #a8d5b5; width: 16px; height: 16px; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: 56px 40px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-brand span { color: #e8956a; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #e8956a; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.8rem; max-width: 1100px; margin: 0 auto; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 16px; }
  footer { padding: 40px 20px 24px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, #2a1f14 0%, var(--accent) 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { font-family: 'Lora', serif; font-size: clamp(2rem, 4vw, 3rem); color: white; margin-bottom: 16px; position: relative; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; position: relative; line-height: 1.7; }
.page-hero .badge { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

@media (max-width: 600px) { .page-hero { padding: 56px 20px; } }

/* Fade in animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s ease both; }

/* ── IMAGE BREAK ── */
.img-break {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}
.img-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,17,8,0.35), rgba(28,17,8,0.1));
}
