/* Mamici Pentru Pitici - stylesheet */

:root {
  --cream: #fdf6f0;
  --cream-2: #f6ede4;
  --coral: #e8836b;
  --coral-dark: #d66a50;
  --sage: #8fae8b;
  --sage-dark: #75946f;
  --yellow: #f3c465;
  --brown: #4a3b35;
  --brown-soft: #7a6a62;
  --brown-muted: #a08d80;
  --white: #ffffff;
  --border: #f0e0d4;
  --shadow: 0 10px 30px rgba(74, 59, 53, 0.07);
  --radius: 20px;
  --radius-article: 16px;
  --max-width: 1180px;
  --font-display: 'Baloo 2', 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--brown);
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  font-family: var(--font-display);
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(232,131,107,.35); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border: 2px solid var(--brown); color: var(--brown); }
.btn-sage { background: var(--sage); color: var(--white); box-shadow: 0 8px 20px rgba(143,174,139,.35); }
.btn-sage:hover { background: var(--sage-dark); }

.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 800; color: var(--coral-dark); margin-bottom: 10px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 246, 240, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-width); margin: 0 auto; gap: 20px; position: relative;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--brown); white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { width: 40px; height: auto; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--brown); font-weight: 700; font-size: .95rem; }
.main-nav a:hover { color: var(--coral-dark); text-decoration: none; }
.main-nav a.active { color: var(--coral-dark); }
.header-cta { flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 5px 0; background: var(--brown); border-radius: 2px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: flex-start;
    padding: 18px 24px; box-shadow: var(--shadow); gap: 14px;
  }
  .main-nav.open { display: flex; }
  .header-cta.desktop-only { display: none; }
}

/* Hero */
.hero { padding: 70px 0 90px; position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 3rem; }
.hero .lead { font-size: 1.15rem; color: var(--brown-soft); max-width: 46ch; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; color: var(--brown-soft); font-weight: 700; }
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--sage-dark); flex-shrink: 0; }
.hero-art {
  position: relative; aspect-ratio: 4 / 3; border-radius: 32px;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-caption {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--white); border-radius: 14px; padding: 10px 16px;
  font-size: .88rem; font-weight: 600; color: var(--brown);
  box-shadow: var(--shadow);
}
.hero-art-caption strong { color: var(--coral-dark); font-family: var(--font-display); }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-art { order: -1; aspect-ratio: 16/9; }
}

section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--brown-soft); }
.bg-white { background: var(--white); }
.bg-cream2 { background: var(--cream-2); }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1000px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform .15s ease; color: var(--brown);
  display: flex; flex-direction: column;
}
.pillar-card:hover { transform: translateY(-4px); text-decoration: none; }
.pillar-photo { height: 150px; }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-icon { width: 56px; height: 56px; margin: 22px 0 0 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cream-2); flex-shrink: 0; }
.pillar-icon svg { width: 28px; height: 28px; color: var(--coral-dark); }
.pillar-body { padding: 16px 20px 22px; }
.pillar-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar-card p { font-size: .85rem; color: var(--brown-soft); margin: 0; }

/* Per age-category accent (sarcina / nou-nascut / bebelus / copil-mic / recenzii) */
.pillar-icon-sarcina { background: #f9d4c8; }
.pillar-icon-sarcina svg { color: #a04a30; }
.pillar-icon-nou-nascut { background: #d8e4d5; }
.pillar-icon-nou-nascut svg { color: #4d6b48; }
.pillar-icon-bebelus { background: #fcecc8; }
.pillar-icon-bebelus svg { color: #8a6420; }
.pillar-icon-copil-mic { background: #efdcc9; }
.pillar-icon-copil-mic svg { color: #7a5c40; }
.pillar-icon-recenzii { background: #f7ded6; }
.pillar-icon-recenzii svg { color: var(--coral-dark); }

/* Article cards */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: var(--white); border-radius: var(--radius-article); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; flex-direction: column; color: var(--brown);
}
.article-card:hover { text-decoration: none; }
.article-thumb { height: 160px; display: flex; align-items: center; justify-content: center; }
.article-thumb svg { width: 46px; height: 46px; color: rgba(255,255,255,.9); }
.article-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--coral-dark); background: var(--cream-2); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start;
}
.tag-sarcina { color: #a04a30; background: #f9d4c8; }
.tag-nou-nascut { color: #4d6b48; background: #d8e4d5; }
.tag-bebelus { color: #8a6420; background: #fcecc8; }
.tag-copil-mic { color: #7a5c40; background: #efdcc9; }
.tag-recenzii { color: var(--coral-dark); background: #f7ded6; }
.article-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.article-card .excerpt { font-size: .9rem; color: var(--brown-soft); flex: 1; }
.article-meta { font-size: .78rem; color: var(--brown-soft); margin-top: 14px; display: flex; gap: 10px; align-items: center; }

.thumb-1 { background: linear-gradient(135deg,#e8836b,#f3c465); }
.thumb-2 { background: linear-gradient(135deg,#8fae8b,#c9dcb8); }
.thumb-3 { background: linear-gradient(135deg,#f3c465,#e8836b); }
.thumb-4 { background: linear-gradient(135deg,#6f9169,#8fae8b); }
.thumb-5 { background: linear-gradient(135deg,#d66a50,#f3c465); }

/* Newsletter */
.newsletter {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%);
  border-radius: 28px; padding: 54px 40px; color: var(--white);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2, .newsletter .eyebrow { color: var(--white); }
.newsletter p { color: rgba(255,255,255,.92); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; background: rgba(255,255,255,.14); padding: 8px; border-radius: 999px; }
.newsletter-form input[type=email] { flex: 1; min-width: 180px; border: none; border-radius: 999px; padding: 13px 20px; font-size: .95rem; font-family: inherit; }
.newsletter-form button { border: none; border-radius: 999px; padding: 13px 24px; background: var(--brown); color: var(--white); font-weight: 800; font-family: var(--font-display); cursor: pointer; }
.newsletter small { display: block; margin-top: 12px; color: rgba(255,255,255,.8); font-size: .78rem; }
.newsletter-note { display: none; margin-top: 12px; font-weight: 700; }
.newsletter-note.show { display: block; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; padding: 36px 26px; } }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--white); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--border); }
.value-card svg { width: 30px; height: 30px; color: var(--coral-dark); margin-bottom: 14px; }

/* Category header */
.category-hero { background: var(--cream-2); padding: 50px 0; text-align: center; }
.category-hero .eyebrow { display:block; }

/* Article page */
.article-page-hero { padding: 50px 0 20px; max-width: 780px; margin: 0 auto; }
.article-header-photo { max-width: 940px; margin: 0 auto 10px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-header-photo img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.breadcrumbs { font-size: .82rem; color: var(--brown-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--brown-soft); }
.article-content { max-width: 780px; margin: 0 auto; padding-bottom: 60px; }
.article-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article-content h3 { margin-top: 1.3em; }
.article-content ul, .article-content ol { padding-left: 1.3em; }
.article-content li { margin-bottom: .5em; }

.callout { border-radius: 16px; padding: 20px 24px; margin: 26px 0; font-size: .93rem; border: 1px solid var(--border); }
.callout-medical { background: #eef4ed; border: none; display: flex; gap: 16px; align-items: flex-start; }
.callout-medical-icon { flex-shrink: 0; }
.callout-medical .callout-title { color: #4d6b48; }
.callout-medical a { color: #c2593f; font-weight: 700; }
.callout-affiliate { background: #eef4ec; border-left: 5px solid var(--sage); }
.callout strong { color: var(--brown); }
.callout p { margin: 0 0 .6em; font-size: .875rem; line-height: 1.65; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--brown); margin: 0 0 4px; }

.author-box {
  display: flex; gap: 16px; align-items: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin: 40px 0;
}
.author-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.author-avatar-mark { width: 54px; height: 54px; }
.author-box p { margin: 0; font-size: .88rem; color: var(--brown-soft); }
.author-box strong { color: var(--brown); }

/* Footer */
.site-footer { background: var(--brown); color: #f1e6de; padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-grid a { display: block; color: #d8c6ba; font-size: .9rem; margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-logo-mark { width: 34px; height: auto; }
.footer-about { color: #d8c6ba; font-size: .88rem; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .8rem; color: #bfa99b; }
.footer-bottom a { color: #bfa99b; }

/* Simple pages */
.page-hero { padding: 60px 0 10px; text-align: center; }
.prose { max-width: 760px; margin: 0 auto; padding-bottom: 60px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form label { font-weight: 700; font-size: .88rem; }
.contact-form input, .contact-form textarea { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-family: inherit; font-size: .95rem; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-info-card { background: var(--cream-2); border-radius: var(--radius); padding: 28px; }
.contact-info-card h3 { margin-top: 0; }
.contact-info-card .row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-info-card svg { width: 20px; height: 20px; color: var(--coral-dark); flex-shrink: 0; margin-top: 2px; }
.form-note { display: none; font-weight: 700; color: var(--sage-dark); }
.form-note.show { display: block; }

/* ---------- Newsletter popup ---------- */
body.popup-open { overflow: hidden; }

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(74, 59, 53, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.popup-overlay.show { opacity: 1; visibility: visible; }

.popup-box {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(74, 59, 53, 0.35);
  transform: scale(.94) translateY(10px);
  transition: transform .25s ease;
}
.popup-overlay.show .popup-box { transform: scale(1) translateY(0); }

.popup-visual {
  height: 92px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, var(--coral) 0%, var(--yellow) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-visual svg { width: 40px; height: 40px; color: rgba(255,255,255,.95); }

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--brown);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-close:hover { background: #fff; }

.popup-content { padding: 26px 30px 30px; }
.popup-content h2 { font-size: 1.5rem; margin-bottom: 10px; }
.popup-content > p { color: var(--brown-soft); font-size: .95rem; }

.popup-benefits { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.popup-benefits li { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 700; color: var(--brown); }
.popup-benefits svg { width: 17px; height: 17px; color: var(--sage-dark); flex-shrink: 0; }

.popup-form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.popup-form input[type=email] {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: .95rem;
  background: var(--cream);
}
.popup-form button {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--coral);
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232,131,107,.35);
}
.popup-form button:hover { background: var(--coral-dark); }

.popup-note { display: none; margin-top: 10px; font-weight: 700; color: var(--sage-dark); font-size: .9rem; }
.popup-note.show { display: block; }

.popup-dismiss { text-align: center; margin-top: 10px; }
.popup-dismiss a { color: var(--brown-soft); font-size: .82rem; text-decoration: underline; }

.popup-fineprint { display: block; margin-top: 14px; color: var(--brown-soft); font-size: .74rem; text-align: center; }
.popup-fineprint a { color: var(--brown-soft); text-decoration: underline; }

@media (max-width: 480px) {
  .popup-content { padding: 22px 20px 24px; }
}

/* ---------- Research / sources list ---------- */
.research-list {
  list-style: none;
  margin: 18px 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.research-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}
.research-list li a { font-size: 1rem; }
.research-list .research-meta {
  display: block;
  font-size: .8rem;
  color: var(--brown-soft);
  font-weight: 700;
  margin: 4px 0 8px;
}
.research-list li p { margin: 0; font-size: .92rem; color: var(--brown-soft); }
.research-list li p a { font-weight: 700; }

/* ---------- Research differentiation banner (homepage) ---------- */
.research-banner {
  background: #eaf1e6;
  border-radius: 28px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: auto 1.5fr 1fr;
  gap: 34px;
  align-items: center;
  color: var(--brown);
}
.research-banner .eyebrow { color: var(--coral-dark); }
.research-banner h2 { color: var(--brown); font-size: 1.7rem; }
.research-banner p { color: var(--brown-soft); margin: 0; font-size: .95rem; }
.research-banner-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.research-banner-icon svg { width: 30px; height: 30px; color: var(--cream); }
.research-banner-stat {
  text-align: center;
  background: var(--white);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.research-banner-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--coral);
  line-height: 1;
}
.research-banner-label {
  font-size: .8rem;
  color: var(--brown-soft);
  font-weight: 700;
  margin-bottom: 6px;
}
.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: #3a2e29; }
@media (max-width: 900px) {
  .research-banner { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; }
  .research-banner-icon { margin: 0 auto; }
}
