/* =========================================================
   Ampara Maternidade
   Paleta da marca + tons derivados com contraste verificado (WCAG AA)
   ========================================================= */
:root {
  --creme: #FAF6EF;          /* fundo principal */
  --salvia: #8FA995;         /* elementos gráficos (não usar texto pequeno branco sobre ela) */
  --verde: #29483D;          /* títulos, textos e botões — 9,3:1 sobre o creme */
  --terracota: #C8836C;      /* detalhes decorativos apenas */

  --verde-escuro: #1E352D;   /* texto sobre sálvia — 5,2:1 */
  --verde-hover: #1F3A31;
  --texto-suave: #4F5F57;    /* texto secundário — 6,3:1 sobre o creme */
  --terracota-texto: #9C5A43;/* terracota para texto pequeno — 4,9:1 sobre o creme */
  --salvia-claro: #E7ECE4;   /* fundo de seção */
  --linha: #DCD5C8;
  --branco-quente: #FFFDF9;

  --fonte-titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --fonte-texto: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --raio: 18px;
  --raio-lg: 28px;
  --gutter: 20px;
  --max: 1200px;
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--verde);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--verde); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--terracota-texto);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--verde);
  color: var(--creme);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracota-texto);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--terracota);
}

.lead { font-size: 1.1875rem; color: var(--verde); }

/* ---------- Aviso de prévia ---------- */
.preview-bar {
  background: #F3E6DC;
  color: var(--verde-escuro);
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 10px var(--gutter);
  text-align: center;
  border-bottom: 1px solid #E6D2C4;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--fonte-texto);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { text-decoration: none; }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

.btn-primary { background: var(--verde); color: var(--creme); }
.btn-primary:hover { background: var(--verde-hover); }

.btn-light { background: var(--creme); color: var(--verde); }
.btn-light:hover { background: var(--branco-quente); }

.btn[aria-disabled="true"] { cursor: not-allowed; }

@media (prefers-reduced-motion: no-preference) {
  .btn:not([aria-disabled="true"]):hover { transform: translateY(-1px); }
}

.icon { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--terracota);
}
.link-arrow span { transition: transform .2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .link-arrow:hover span { transform: translateX(3px); }
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(250, 246, 239, 0.86); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--linha); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--verde);
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
}
@media (min-width: 880px) { .brand-logo { height: 46px; } }

.footer-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

.brand-name {
  font-family: var(--fonte-titulo);
  font-variation-settings: "SOFT" 100;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-tag {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-weight: 500;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--verde);
  border-radius: 999px;
  background: transparent;
  color: var(--verde);
  font: 600 0.9375rem var(--fonte-texto);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--terracota); }

/* Menu no celular */
@media (max-width: 879px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--linha);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px -24px rgba(41, 72, 61, 0.45);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { margin-bottom: 16px; }
  .site-nav li a {
    display: block;
    padding: 14px 2px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--linha);
  }
  .site-nav .btn { width: 100%; }
}

/* Sem JavaScript, o menu fica sempre visível e o botão some */
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 879px) {
  html:not(.js) .site-nav { position: static; box-shadow: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

@media (min-width: 880px) {
  .menu-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 32px; }
  .site-nav ul { display: flex; gap: 28px; }
  .site-nav li a { padding: 8px 0; }
}

/* ---------- Seção principal ---------- */
.hero { padding: 8px 0 0; }

.hero-frame {
  display: flex;
  flex-direction: column;
}

.hero-text {
  padding: 28px var(--gutter) 32px;
  max-width: 640px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--verde);
  font-weight: 400;
}
.hero-text .lead { max-width: 34em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 28px 0 22px;
}

.disclaimer {
  font-size: 0.9375rem;
  color: var(--texto-suave);
  padding-left: 14px;
  border-left: 2px solid var(--salvia);
  margin: 0;
  max-width: 30em;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  object-position: 72% 40%;
}

@media (max-width: 959px) {
  .hero-media { padding-inline: var(--gutter); }
  .hero-media img { border-radius: var(--raio-lg); }
  .hero-actions .btn { width: 100%; }
}

@media (min-width: 960px) {
  .hero { padding: 12px var(--gutter) 0; }
  .hero-frame {
    position: relative;
    max-width: 1320px;
    margin-inline: auto;
    min-height: min(78vh, 720px);
    border-radius: var(--raio-lg);
    overflow: hidden;
    justify-content: center;
  }
  .hero-media {
    position: absolute;
    inset: 0;
  }
  .hero-media img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 70% 45%;
  }
  /* véu creme suave à esquerda, onde a foto já tem parede clara */
  .hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250,246,239,0.94) 0%, rgba(250,246,239,0.86) 36%, rgba(250,246,239,0) 60%);
    pointer-events: none;
  }
  .hero-text {
    position: relative;
    z-index: 1;
    padding: 64px 56px;
    max-width: 600px;
  }
}

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 112px 0; } }

.section-tint { background: var(--salvia-claro); }

.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p:not(.eyebrow) { color: var(--texto-suave); }

/* Como podemos ajudar */
.split { display: grid; gap: 40px; }
.split-intro p:not(.eyebrow) { color: var(--texto-suave); max-width: 30em; }

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--linha);
}
.service-list li:last-child { border-bottom: 1px solid var(--linha); }
.service-list h3 { margin-bottom: 0.3em; }
.service-list p { color: var(--texto-suave); margin: 0; }
.service-mark {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  border-radius: 50% 50% 50% 4px;
  background: var(--terracota);
}
.service-list li:nth-child(even) .service-mark { background: var(--salvia); }

@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .split-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .service-list li:nth-last-child(2) { border-bottom: 1px solid var(--linha); }
}

/* Como funciona */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: passo;
}
.steps li {
  position: relative;
  padding: 0 0 32px 72px;
}
.steps li::before {
  /* linha que liga as etapas */
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 4px;
  width: 2px;
  background: var(--salvia);
  opacity: 0.6;
}
.steps li:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--salvia);
  color: var(--verde-escuro);
  font-family: var(--fonte-titulo);
  font-size: 1.375rem;
  font-weight: 600;
}
.steps h3 { padding-top: 10px; margin-bottom: 0.35em; }
.steps p { color: var(--texto-suave); margin: 0; max-width: 28em; }

.steps-cta { margin: 16px 0 0; }

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding: 72px 0 0; }
  .steps li::before {
    left: 60px;
    right: -24px;
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .steps h3 { padding-top: 0; }
  .steps-cta { margin-top: 48px; }
}

@media (max-width: 959px) {
  .steps-cta .btn { width: 100%; }
}

/* Blocos com foto */
.feature { display: grid; gap: 36px; align-items: center; }
.feature-media { margin: 0; }
.feature-media img {
  width: 100%;
  border-radius: var(--raio-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
@media (max-width: 959px) {
  .feature-media img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
}
.feature-text p:not(.eyebrow):not(.lead) { color: var(--texto-suave); }

@media (min-width: 960px) {
  .feature { grid-template-columns: 5fr 6fr; gap: 88px; }
  .feature-reverse .feature-media { order: 2; }
  .feature-media { position: relative; }
  .feature-media::after {
    /* forma orgânica de apoio, atrás da foto */
    content: "";
    position: absolute;
    z-index: -1;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--salvia-claro);
    left: -36px;
    bottom: -36px;
  }
  .feature-reverse .feature-media::after {
    left: auto;
    right: -36px;
    top: -36px;
    bottom: auto;
    background: #F3E6DC;
  }
}

.tick-list {
  list-style: none;
  margin: 0 0 1.5em;
  padding: 0;
}
.tick-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--linha);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--verde);
  border-bottom: 2px solid var(--verde);
  transform: rotate(-45deg);
}

.note {
  font-size: 0.9375rem;
  padding: 16px 18px;
  border-radius: var(--raio);
  background: var(--salvia-claro);
  color: var(--verde) !important;
  margin: 0;
}

/* Sobre */
.section-about { background: var(--branco-quente); border-block: 1px solid var(--linha); }

.values { margin: 32px 0 0; }
.values div { padding: 14px 0; border-top: 1px solid var(--linha); }
.values div:last-child { border-bottom: 1px solid var(--linha); }
.values dt {
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.values dt::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 3px;
  background: var(--salvia);
}
.values div:nth-child(2) dt::before { background: var(--terracota); }
.values dd { margin: 2px 0 0; color: var(--texto-suave); }
@media (min-width: 520px) {
  .values div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; align-items: baseline; }
  .values dd { margin: 0; }
}

a[data-whatsapp]:not(.btn) { text-decoration: underline; cursor: pointer; }

/* Dúvidas */
.faq-layout { display: grid; gap: 8px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
}

.faq details { border-bottom: 1px solid var(--linha); }
.faq details:first-child { border-top: 1px solid var(--linha); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 18px 0;
  font-family: var(--fonte-titulo);
  font-variation-settings: "SOFT" 100;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--verde), var(--verde)) center / 12px 2px no-repeat,
    linear-gradient(var(--verde), var(--verde)) center / 2px 12px no-repeat,
    var(--salvia-claro);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--verde), var(--verde)) center / 12px 2px no-repeat,
    var(--salvia-claro);
}
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--terracota); text-underline-offset: 0.25em; }
.faq-body { padding: 0 48px 22px 0; color: var(--texto-suave); }
.faq-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.faq-body li { margin-bottom: 0.3em; }
.faq-body p:last-child { margin-bottom: 0; }

/* Chamada final */
.cta {
  background: var(--verde);
  color: var(--creme);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta::before {
  width: 340px; height: 340px;
  right: -120px; top: -140px;
  border: 2px solid rgba(143, 169, 149, 0.45);
}
.cta::after {
  width: 120px; height: 120px;
  left: -40px; bottom: -50px;
  background: rgba(200, 131, 108, 0.35);
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.cta h2 { color: var(--creme); }
.cta p { font-size: 1.1875rem; margin-bottom: 28px; }
.cta .cta-pending { font-size: 0.9375rem; margin: 16px 0 0; }
@media (min-width: 960px) { .cta { padding: 112px 0; } }

/* Rodapé */
.site-footer {
  padding: 56px 0 40px;
  font-size: 0.9375rem;
  color: var(--texto-suave);
}
.footer-inner { display: grid; gap: 28px; }
.footer-brand .brand-name { color: var(--verde); font-size: 1.375rem; margin-bottom: 6px; }
.footer-brand p { margin: 0; }
.footer-label {
  font-weight: 600;
  color: var(--verde);
  margin-bottom: 4px;
}
.footer-contact p { margin: 0; }
.footer-contact a { display: inline-block; padding: 8px 0; }
.footer-legal p:first-child { color: var(--verde); }
.footer-small { font-size: 0.875rem; margin: 0 0 4px; }

@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 3fr 2fr 5fr; gap: 48px; }
}

/* Aviso flutuante */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--verde-escuro);
  color: var(--creme);
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.9375rem;
  box-shadow: 0 12px 30px -12px rgba(30, 53, 45, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
