/* ═══════════════════════════════════════════
   Descomplicando Saúde — style.css
   Paleta: verde/azul, tom acolhedor
   ═══════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ── */
:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;

  --neutral-900: #1a1a2e;
  --neutral-800: #2d2d44;
  --neutral-700: #404055;
  --neutral-600: #555566;
  --neutral-500: #71717a;
  --neutral-400: #a1a1aa;
  --neutral-300: #d4d4d8;
  --neutral-200: #e4e4e7;
  --neutral-100: #f4f4f5;
  --neutral-50:  #fafafa;

  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(6,78,59,.08);
  --shadow-lg: 0 10px 30px rgba(6,78,59,.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--neutral-800);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--neutral-900);
  line-height: 1.25;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--green-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.logo { display: flex; align-items: center; gap: .6rem; }
.logo svg { width: 36px; height: 36px; }
.logo-text {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-800);
}
.logo-text span { color: var(--teal-600); }

nav ul { display: flex; gap: 1.8rem; }
nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--neutral-600);
  position: relative;
  padding: .25rem 0;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green-500);
  border-radius: 2px;
  transition: width var(--transition);
}
nav a:hover { color: var(--green-700); }
nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: .25rem;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--neutral-700); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-50) 0%, var(--white) 40%, var(--blue-100) 100%);
  padding: 5rem 1.5rem 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .9rem;
  background: var(--green-100);
  color: var(--green-800);
  font-size: .8rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}
.hero-badge svg { width: 14px; height: 14px; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--green-900);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-600), var(--teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  background: var(--green-700);
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(5,150,105,.3);
}
.hero-cta:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,.35);
}
.hero-cta svg { width: 18px; height: 18px; }

/* ── Sections ── */
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-700);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .6rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-500);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.section-subtitle.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Pillar cards ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green-500), var(--teal-500));
  opacity: 0;
  transition: opacity var(--transition);
}
.pillar-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 48px; height: 48px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 24px; height: 24px; color: var(--green-700); }

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.pillar-card p {
  font-size: .92rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* ── Trust bar ── */
.trust-bar {
  background: var(--green-50);
  border-top: 1px solid var(--green-100);
  border-bottom: 1px solid var(--green-100);
}
.trust-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--neutral-600);
  font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

/* ── Latest articles ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.article-card:hover {
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.article-card-body { padding: 1.4rem 1.3rem; }

.article-tag {
  display: inline-block;
  padding: .2rem .6rem;
  background: var(--green-50);
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .7rem;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .5rem;
  line-height: 1.35;
}
.article-card h3 a { color: var(--neutral-900); }
.article-card h3 a:hover { color: var(--green-700); }

.article-card p {
  font-size: .88rem;
  color: var(--neutral-500);
  line-height: 1.55;
  margin-bottom: .8rem;
}

.article-meta {
  font-size: .78rem;
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── Newsletter ── */
.newsletter {
  background: linear-gradient(135deg, var(--green-800), var(--teal-700));
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  margin: 2rem 0;
}
.newsletter h2 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.newsletter p {
  color: rgba(255,255,255,.8);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.newsletter-form {
  display: flex;
  gap: .6rem;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.5); }
.newsletter-form button {
  padding: .75rem 1.5rem;
  background: var(--white);
  color: var(--green-800);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--green-100); }

/* ── Footer ── */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.6; max-width: 320px; margin-top: .8rem; }
.footer-col h4 {
  color: var(--neutral-200);
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .8rem;
}
.footer-col a {
  display: block;
  color: var(--neutral-400);
  font-size: .88rem;
  padding: .25rem 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green-400); }

.footer-bottom {
  max-width: 1140px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--neutral-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}

/* ── Page: Sobre / Contato / Privacidade ── */
.page-header {
  background: linear-gradient(160deg, var(--green-50), var(--white));
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--green-100);
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-900);
  margin-bottom: .5rem;
}
.page-header p {
  font-size: 1.05rem;
  color: var(--neutral-500);
  max-width: 540px;
  margin: 0 auto;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.page-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: .8rem;
  color: var(--green-900);
}
.page-content h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: .6rem;
}
.page-content p {
  margin-bottom: 1rem;
  color: var(--neutral-700);
}
.page-content ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}
.page-content li {
  list-style: disc;
  margin-bottom: .4rem;
  color: var(--neutral-700);
  font-size: .95rem;
}

/* ── Team cards (sobre) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--green-50);
  border-radius: var(--radius);
  border: 1px solid var(--green-100);
}
.team-avatar {
  width: 72px; height: 72px;
  background: var(--green-200);
  border-radius: 50%;
  margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--green-800);
  font-weight: 700;
}
.team-card h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; margin-bottom: .15rem; }
.team-card .role { font-size: .82rem; color: var(--neutral-500); }

/* ── Contact form ── */
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-form label {
  font-size: .88rem;
  font-weight: 500;
  color: var(--neutral-700);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  padding: .8rem 2rem;
  background: var(--green-700);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  justify-self: start;
}
.contact-form button:hover { background: var(--green-600); }

/* ── Blog listing ── */
.blog-listing {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.blog-listing .article-card { margin-bottom: 1.2rem; }
.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--neutral-500);
}
.blog-empty svg { width: 48px; height: 48px; color: var(--green-300); margin-bottom: 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--green-100);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  nav.open ul { flex-direction: column; gap: .8rem; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 1.8rem; }

  .pillars { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 1.5rem; }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeInUp .6s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: .1s; }
.fade-in:nth-child(2) { animation-delay: .2s; }
.fade-in:nth-child(3) { animation-delay: .3s; }
.fade-in:nth-child(4) { animation-delay: .4s; }
