/* =========================================================
   ELLEN BIANCA — NUTRIÇÃO E SAÚDE
   Design tokens
   ========================================================= */
:root {
  --cream:        #F8F5EE;
  --surface:      #FFFFFF;
  --sage:         #8EBEB0;
  --sage-dark:    #4F7A6C;
  --forest:       #33504A;
  --beige:        #D0C5AF;
  --beige-dark:   #A9906E;
  --ink:          #3A342C;
  --ink-soft:     #6B6255;
  --line:         rgba(58, 52, 44, 0.12);

  --font-display: "Fraunces", serif;
  --font-body:    "Work Sans", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 20px 45px -25px rgba(51, 80, 74, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.65;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--forest); margin: 0; }

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sage-dark);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.eyebrow--light { color: var(--sage); }

.section-title {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.section-title--light { color: var(--cream); }

.section-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.section-body { color: var(--ink-soft); max-width: 50ch; margin-top: 1rem; }

.section-heading { max-width: 640px; margin-bottom: 3.5rem; }
.section-heading .section-lead { max-width: 50ch; margin-left: auto; margin-right: auto; }

section { padding: 6.5rem 0; }
@media (max-width: 767.98px) { section { padding: 4.5rem 0; } }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-cta {
  background-color: var(--forest);
  color: var(--cream) !important;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}
.btn-cta:hover, .btn-cta:focus-visible {
  background-color: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--cream) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline-cta {
  background-color: transparent;
  color: var(--forest) !important;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-outline-cta:hover, .btn-outline-cta:focus-visible {
  background-color: var(--forest);
  color: var(--cream) !important;
  transform: translateY(-2px);
}

.btn:focus-visible, a:focus-visible {
  outline: 2px solid var(--sage-dark);
  outline-offset: 3px;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 1000; }
.custom-navbar {
  background-color: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.brand-logo { height: 72px; width: auto; display: block; }

.custom-navbar .nav-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.custom-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 1px;
  background-color: var(--sage-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.custom-navbar .nav-link:hover::after,
.custom-navbar .nav-link.active::after { transform: scaleX(1); }

.toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--forest);
  margin: 5px 0;
  transition: 0.2s;
}
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #FBF9F4 0%, var(--cream) 70%);
}

.hero-photo-wrap {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.hero-photo-ring {
  position: absolute;
  top: -1.25rem; left: -1.25rem;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--beige);
  opacity: 0.55;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 991.98px) {
  .hero-photo-wrap { max-width: 340px; }
}

.hero-title {
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--sage-dark); font-weight: 500; }

.hero-lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.hero-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
  padding: 3rem 0;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background-color: var(--cream);
  color: var(--sage-dark);
  margin-bottom: 0.9rem;
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* =========================================================
   SOBRE
   ========================================================= */
.sobre-visual {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
}
.sobre-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* =========================================================
   DIVIDER
   ========================================================= */
.divider { line-height: 0; }
.divider svg { width: 100%; height: 46px; display: block; }
.divider path { fill: var(--surface); }

/* =========================================================
   ATENDIMENTO
   ========================================================= */
.section-atendimento { background-color: var(--surface); }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.feature-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background-color: var(--sage);
}

/* =========================================================
   PROGRAMAS
   ========================================================= */
.section-programas { background-color: var(--cream); }

.program-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }

.program-card--highlight {
  background-color: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}
.program-card--highlight .program-title,
.program-card--highlight .program-eyebrow,
.program-card--highlight .program-sub { color: var(--cream); }
.program-card--highlight .feature-list li { color: var(--cream); }
.program-card--highlight .feature-list li::before { background-color: var(--sage); }

.program-badge {
  position: absolute;
  top: -14px; right: 2rem;
  background-color: var(--sage);
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.program-eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}
.program-title { font-size: 1.8rem; margin-bottom: 0.25rem; }
.program-sub { color: var(--ink-soft); margin-bottom: 1.75rem; font-size: 0.98rem; }

.feature-list--card { margin-bottom: 2rem; gap: 0.7rem; font-size: 0.96rem; }

/* =========================================================
   COMUNIDADE
   ========================================================= */
.section-comunidade {
  background-color: var(--forest);
  overflow: hidden;
}
.comunidade-lead { color: rgba(248,245,238,0.85); font-size: 1.15rem; max-width: 50ch; }
.comunidade-mark {
  width: 320px;
  opacity: 0.9;
  filter: brightness(0) invert(1) opacity(0.12);
}
@media (max-width: 991.98px) { .comunidade-mark { display: none; } }

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.section-como { background-color: var(--surface); }
.step-card { text-align: center; padding: 0 1rem; }
.step-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sage-dark);
  border: 1px solid var(--beige);
  border-radius: 50%;
  width: 52px; height: 52px;
  line-height: 50px;
  margin-bottom: 1.25rem;
}
.step-title { font-size: 1.35rem; margin-bottom: 0.75rem; }
.step-text { color: var(--ink-soft); max-width: 32ch; margin: 0 auto; }

/* =========================================================
   CONTATO
   ========================================================= */
.section-contato { background-color: var(--cream); }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.contact-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--sage-dark);
}
.contact-value { font-size: 1.15rem; font-weight: 500; }
.contact-link { transition: color 0.2s ease; }
.contact-link:hover { color: var(--sage-dark); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background-color: var(--forest); padding: 2.75rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-logo { height: 72px; width: auto; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a {
  color: rgba(248,245,238,0.8);
  font-size: 0.92rem;
  transition: color 0.2s ease;
  margin-right: 1.5rem; /* fallback caso o navegador ignore o gap do flex */
}
.footer-nav a:last-child { margin-right: 0; }
.footer-nav a:hover { color: var(--sage); }
.footer-copy { color: rgba(248,245,238,0.55); font-size: 0.85rem; margin: 0; width: 100%; text-align: center; order: 3; }
@media (min-width: 768px) { .footer-copy { width: auto; order: 0; } }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 58px; height: 58px;
  background-color: #2FAF7C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.4);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--cream); }

/* =========================================================
   ENTRADA DO HERO
   ========================================================= */
/* Hero: fade-in leve só de boas-vindas, 100% CSS (não depende do JS carregar) */
.hero-fade {
  animation: heroFadeIn 0.7s ease both;
  animation-delay: var(--fade-delay, 0s);
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade { animation: none; }
}