/* Identidade derivada do logo da Lígia: creme, charcoal, serif de alto contraste */

:root {
  --cream: #f2eee6;
  --cream-deep: #e9e3d6;
  --charcoal: #3a3a37;
  --charcoal-soft: #55534d;
  --green: #44604f;
  --green-dark: #38513f;
  --clay: #b0795c;
  --white: #fffdf9;
  --max: 1080px;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

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

.container.narrow { max-width: 760px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1.2rem; }

section { padding: 72px 0; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 238, 230, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo { height: 56px; width: auto; }

/* Botões */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal-soft);
}

.btn-ghost:hover { background: var(--cream-deep); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-large { padding: 17px 34px; font-size: 1.08rem; }

/* Hero */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(176, 121, 92, 0.10), transparent),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(68, 96, 79, 0.08), transparent);
}

.hero-inner { max-width: 780px; }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 1.4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  margin-bottom: 2rem;
  max-width: 640px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
}

/* Sinais */
.sinais { background: var(--white); }

.sinais-lista {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin: 2rem 0;
}

.sinais-lista li {
  background: var(--cream);
  border-left: 3px solid var(--clay);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

.sinais-note {
  color: var(--charcoal-soft);
  font-size: 0.98rem;
  max-width: 640px;
}

/* Amor x dependência */
.amor-dependencia p { margin-bottom: 1.1rem; font-size: 1.06rem; }
.amor-dependencia p:last-child { margin-bottom: 0; }

/* Como funciona */
.como-funciona { background: var(--charcoal); }
.como-funciona h2 { color: var(--cream); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 253, 249, 0.06);
  border: 1px solid rgba(255, 253, 249, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  color: var(--cream);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.card p { color: rgba(242, 238, 230, 0.82); font-size: 0.96rem; }

/* Sobre */
.sobre { background: var(--white); }

.sobre-inner {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: center;
}

.sobre-foto img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.sobre-texto p { margin-bottom: 1rem; }

.credenciais {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.2rem;
}

.credenciais li {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}

/* Internacional */
.internacional {
  background: var(--green);
  text-align: center;
}

.internacional h2 { color: var(--cream); }
.internacional p {
  color: rgba(242, 238, 230, 0.88);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto;
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 18px 22px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.02rem;
  list-style-position: outside;
}

.faq details p { margin-top: 0.8rem; color: var(--charcoal-soft); }

/* Contato */
.contato { background: var(--white); text-align: center; }

.contato-lead {
  color: var(--charcoal-soft);
  font-size: 1.1rem;
  margin-bottom: 1.8rem;
}

.ou {
  margin: 1.6rem 0 1.2rem;
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.form-contato {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-contato label {
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 10px;
}

.opcional { font-weight: 400; color: var(--charcoal-soft); }

.form-contato input,
.form-contato select,
.form-contato textarea,
.wa-modal input,
.wa-modal select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--cream-deep);
  border-radius: 10px;
  background: var(--cream);
  color: var(--charcoal);
  resize: vertical;
  width: 100%;
}

.form-contato input:focus,
.form-contato select:focus,
.form-contato textarea:focus,
.wa-modal input:focus,
.wa-modal select:focus {
  outline: none;
  border-color: var(--green);
}

.form-contato button { margin-top: 16px; }

.form-note {
  font-size: 0.84rem;
  color: var(--charcoal-soft);
  margin-top: 10px;
  text-align: center;
}

/* Validação + honeypot */
.field-error {
  color: #a4452e;
  font-size: 0.84rem;
  margin-top: 2px;
}

.is-error,
.phone-wrap.is-error input {
  border-color: #a4452e !important;
}

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* intl-tel-input dentro do layout */
.phone-wrap { width: 100%; }
.phone-wrap .iti { width: 100%; }

/* Sucesso do form inline */
.form-success {
  max-width: 480px;
  margin: 1.5rem auto 0;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.form-success p { margin-bottom: 1rem; }

/* Modal WhatsApp */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wa-modal[hidden] { display: none; }

.wa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 58, 55, 0.55);
}

.wa-modal__card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 26px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(58, 58, 55, 0.25);
}

.wa-modal__card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.wa-modal__sub {
  color: var(--charcoal-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.wa-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--charcoal-soft);
  cursor: pointer;
  padding: 4px 8px;
}

.wa-modal form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.wa-modal label {
  font-weight: 500;
  font-size: 0.92rem;
  margin-top: 10px;
}

.wa-modal button[type="submit"] { margin-top: 16px; }

/* Footer */
.footer {
  background: var(--charcoal);
  color: rgba(242, 238, 230, 0.85);
  padding: 48px 0;
  text-align: center;
  font-size: 0.92rem;
}

.footer-nome { font-weight: 600; color: var(--cream); margin-bottom: 6px; }

.footer-contato a { color: rgba(242, 238, 230, 0.85); }

.footer-emergencia {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 0.84rem;
  color: rgba(242, 238, 230, 0.6);
}

.footer-copy { margin-top: 18px; font-size: 0.8rem; color: rgba(242, 238, 230, 0.5); }

/* Footer legal */
.footer-legal { margin-top: 14px; font-size: 0.84rem; }
.footer-legal a { color: rgba(242, 238, 230, 0.7); }

.footer-link-btn {
  background: none;
  border: none;
  color: rgba(242, 238, 230, 0.7);
  font-family: var(--font-body);
  font-size: 0.84rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Consent banner */
.consent-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 28px), 640px);
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(58, 58, 55, 0.18);
  z-index: 90;
  padding: 20px 22px;
}

.consent-banner[hidden] { display: none; }

.consent-banner__inner { display: flex; flex-direction: column; gap: 14px; }

.consent-banner__title { font-weight: 600; margin-bottom: 4px; }

.consent-banner__body {
  font-size: 0.87rem;
  color: var(--charcoal-soft);
  line-height: 1.55;
}

.consent-banner__body a { color: var(--charcoal); }

.consent-banner__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.consent-link-btn {
  background: none;
  border: none;
  color: var(--charcoal-soft);
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 4px;
}

/* Central de preferências */
.consent-pref {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(58, 58, 55, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.consent-pref[hidden] { display: none; }

.consent-pref__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.consent-pref__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.consent-pref__header h3 { font-size: 1.25rem; }

.consent-pref__desc {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  margin-bottom: 1rem;
}

.consent-cat { padding: 14px 0; border-top: 1px solid var(--cream-deep); }

.consent-cat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.consent-cat__name { font-weight: 600; font-size: 0.95rem; }

.consent-cat__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}

.consent-cat__desc { font-size: 0.85rem; color: var(--charcoal-soft); }

.consent-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: var(--cream-deep);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
  padding: 0;
  display: inline-block;
}

.consent-toggle[aria-checked="true"] { background: var(--green); }

.consent-toggle--locked { background: var(--green); opacity: 0.45; cursor: not-allowed; }

.consent-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(58, 58, 55, 0.2);
  transition: transform 0.2s ease;
  pointer-events: none;
}

.consent-toggle[aria-checked="true"] .consent-toggle__knob,
.consent-toggle--locked .consent-toggle__knob { transform: translateX(18px); }

.consent-save { width: 100%; margin-top: 16px; }

/* Páginas legais */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.4rem; }
.legal .atualizado { color: var(--charcoal-soft); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.7rem; }
.legal p, .legal li { margin-bottom: 0.8rem; font-size: 0.98rem; }
.legal ul { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cream-deep); vertical-align: top; }
.legal th { font-weight: 600; background: var(--cream-deep); }
.voltar { display: inline-block; margin-bottom: 1.5rem; color: var(--charcoal-soft); font-size: 0.9rem; }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(58, 58, 55, 0.3);
  transition: transform 0.15s ease, background 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.07); background: var(--green-dark); }

/* Mobile */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .logo { height: 44px; }
  .sobre-inner { grid-template-columns: 1fr; gap: 28px; }
  .sobre-foto { max-width: 320px; margin: 0 auto; }
  .cta-row .btn { width: 100%; text-align: center; }
}
