/* ==========================================================================
   Constanzo — LP Contabilidade para Clínicas Odontológicas
   Design tokens extraídos de constanzo.com.br
   ver docs/research/constanzo-com-br-896e9e66/root-8a5edab2/DESIGN_TOKENS.md
   ========================================================================== */

@font-face {
  font-family: "FibonNeue";
  src: url("../fonts/FibonNeue.woff2") format("woff2"),
       url("../fonts/FibonNeue.woff")  format("woff");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  /* Cores da marca */
  --gold:        #F0C657;   /* fundos, botões e texto sobre fundo escuro */
  --gold-text:   #8A6714;   /* mesma família, escurecida p/ texto sobre fundo claro (AA 5.2:1) */
  --teal:        #397C97;   /* hover dos botões, extraído do site */
  --ink:         #1F3535;   /* verde-petróleo principal */
  --ink-deep:    #1D3334;
  --body:        #5F6B6B;   /* cinza-petróleo; o #7A7A7A original reprova no AA (4.29:1) */
  --cream:       #FDFAF8;
  --grey:        #F3F3F3;
  --white:       #FFFFFF;
  --line:        rgba(31, 53, 53, .12);
  --line-light:  rgba(255, 255, 255, .18);

  /* Tipografia */
  --font: "FibonNeue", "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --section-y: 100px;

  /* Elevação — única sombra do design system original */
  --shadow: 2px 2px 15px 0 rgba(0, 0, 0, .06);
  --shadow-lift: 4px 6px 24px 0 rgba(31, 53, 53, .12);

  --t: .3s ease;
}

@media (max-width: 1024px) { :root { --section-y: 70px; --gutter: 30px; } }
@media (max-width: 600px)  { :root { --gutter: 20px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
/* height:auto impede que o atributo `height` do HTML vença o aspect-ratio do CSS,
   mantendo os atributos width/height apenas como reserva de espaço (anti-CLS). */
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
/* figure e blockquote trazem margem lateral de 40px por padrão do navegador.
   Dentro de um grid isso come 80px de cada lado e desalinha os cards. */
figure, blockquote { margin: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--section-y); }
/* compensa o header fixo ao pular por âncora */
[id] { scroll-margin-top: 104px; }
.section--cream { background: var(--cream); }
.section--ink   { background: var(--ink); }
.section--gold  { background: var(--gold); }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--white); }
.eyebrow--gold  { color: var(--gold); }

.h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.1;  font-weight: 600; }
.h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; font-weight: 600; }
.h3 { font-size: clamp(22px, 2vw, 28px);   line-height: 1.2;  font-weight: 600; }
.h4 { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4;  font-weight: 500; }

.lead { font-size: 18px; font-weight: 300; line-height: 1.5; color: var(--ink); }
.text { font-size: 16px; line-height: 1.8; color: var(--body); }
.text--on-dark { color: rgba(255, 255, 255, .86); }
.h2--on-dark, .h3--on-dark, .h4--on-dark { color: var(--gold); }
.section-head { max-width: 760px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .text { margin-top: 18px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn svg { flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--gold); color: var(--ink-deep); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--teal); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: var(--line-light); }
.btn--ghost-light:hover, .btn--ghost-light:focus-visible { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--wide { width: 100%; justify-content: center; }
.btn--sm { padding: 12px 22px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 32px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  transition: gap var(--t), color var(--t);
}
.link-arrow:hover { gap: 14px; color: var(--teal); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t);
}
.header.is-scrolled { box-shadow: var(--shadow); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 88px; position: relative; }
.header__logo img { width: 185px; height: auto; }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; gap: 30px; }
.header__nav a {
  font-size: 14px; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: .4px; color: var(--ink-deep);
  padding: 8px 0; position: relative; display: inline-block;
}
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold); transition: right var(--t);
}
.header__nav a:hover::after, .header__nav a:focus-visible::after { right: 0; }
.header__nav .btn { display: none; }
.header__cta { flex: none; }

.header__burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line);
}
.header__burger span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--ink-deep); transition: transform var(--t), opacity var(--t);
}
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
  .header__burger { display: block; }
  .header__cta { display: none; }
  .header__nav {
    position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    margin: 0; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px var(--gutter) 24px; display: none;
  }
  .header__nav.is-open { display: block; }
  .header__nav ul { flex-direction: column; gap: 0; }
  .header__nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .header__nav a::after { display: none; }
  .header__nav .btn { display: inline-flex; margin-top: 20px; width: 100%; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: 72px 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero__title { margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--gold-text); }
.hero__lead { max-width: 470px; }

.hero__checks { display: grid; gap: 10px; margin-top: 28px; }
.hero__checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); line-height: 1.6; }
.hero__checks svg { flex: none; margin-top: 5px; color: var(--gold-text); }

.hero__media { position: relative; }
.hero__shape {
  position: absolute; right: -40px; bottom: -28px;
  width: 62%; aspect-ratio: 1; background: var(--gold); z-index: 0;
}
.hero__img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__badge {
  position: absolute; z-index: 2; left: -28px; bottom: -28px;
  display: flex; align-items: center; gap: 16px;
  background: var(--white); box-shadow: var(--shadow); padding: 20px 26px;
}
.hero__badge img { width: 88px; height: auto; }
.hero__badge strong { display: block; font-size: 25px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.hero__badge span { font-size: 15px; line-height: 1.33; color: var(--ink); }

.metrics { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 56px; }
.metric__top { display: flex; align-items: flex-start; gap: 10px; }
.metric__num { font-size: 45px; font-weight: 600; line-height: 1; color: var(--ink); }
.metric img { width: 24px; height: auto; margin-top: 2px; }
.metric__label { display: block; font-size: 15px; line-height: 1.33; color: var(--ink); margin-top: 8px; }

@media (max-width: 900px) {
  .hero { padding-block: 48px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__media { order: -1; }
  .hero__badge { left: 0; bottom: -20px; padding: 16px 20px; }
  .hero__shape { right: -20px; bottom: -16px; }
  .metrics { gap: 28px; margin-top: 40px; }
}

/* ==========================================================================
   Faixa de segmentos
   ========================================================================== */
.segments { padding-block: 64px; border-bottom: 1px solid var(--line); }
.segments__label {
  font-size: 13px; font-weight: 500; letter-spacing: 3px;
  text-transform: uppercase; color: var(--body); text-align: center; margin-bottom: 26px;
}
.segments__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.segments__list li {
  border: 1px solid var(--line); padding: 10px 20px;
  font-size: 15px; font-weight: 500; color: var(--ink);
}

/* ==========================================================================
   Dores
   ========================================================================== */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.pain {
  background: var(--white); border-left: 3px solid var(--gold);
  box-shadow: var(--shadow); padding: 32px 28px;
}
.pain h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.pain p { font-size: 15px; line-height: 1.75; color: var(--body); }
@media (max-width: 1024px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .pains { grid-template-columns: 1fr; } }

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.service {
  background: var(--white); box-shadow: var(--shadow);
  padding: 40px 32px; display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--t), box-shadow var(--t);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service img { width: 56px; height: 56px; object-fit: contain; }
.service h3 { font-size: 22px; line-height: 1.25; }
.service p { font-size: 15px; line-height: 1.75; color: var(--body); flex: 1; }
@media (max-width: 1024px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .services { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pilares (fundo escuro)
   ========================================================================== */
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pillars__intro { margin-top: 24px; }
.pillars__list { display: grid; gap: 32px; margin-top: 40px; }
.pillar h4 { color: var(--gold); margin-bottom: 8px; }
.pillar p { font-size: 16px; line-height: 1.8; color: rgba(255, 255, 255, .86); }
.pillars__figure { position: relative; margin: 0; }
.pillars__figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: 1fr; gap: 44px; } }

/* ==========================================================================
   Passos
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 32px; font-weight: 600; line-height: 1;
  color: var(--gold); margin-bottom: 14px;
}
.step h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.step p { font-size: 15px; line-height: 1.75; color: var(--body); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   Depoimentos
   ========================================================================== */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.quote { background: var(--white); box-shadow: var(--shadow); padding: 40px 36px; display: flex; flex-direction: column; gap: 24px; }
.quote__mark { font-size: 56px; line-height: .6; color: var(--gold); font-weight: 600; }
.quote p { font-size: 16px; line-height: 1.8; color: var(--ink); flex: 1; }
.quote__who { display: flex; align-items: center; gap: 14px; }
.quote__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote__who strong { display: block; font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.quote__who span  { font-size: 14px; color: var(--body); }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 860px; margin: 56px auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 26px 0; text-align: left;
  font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink);
  transition: color var(--t);
}
.faq__q:hover { color: var(--teal); }
.faq__icon { flex: none; width: 20px; height: 20px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--gold); transition: transform var(--t);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { font-size: 16px; line-height: 1.8; color: var(--body); padding-bottom: 28px; max-width: 72ch; }

/* ==========================================================================
   CTA + Formulário
   ========================================================================== */
.cta {
  position: relative; background-color: var(--ink-deep);
  background-image: linear-gradient(rgba(29, 51, 52, .90), rgba(29, 51, 52, .95)), url("../img/cta-bg.webp");
  background-size: cover; background-position: 50% 50%;
}
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.cta__list { display: grid; gap: 14px; margin-top: 30px; }
.cta__list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.cta__list svg { flex: none; margin-top: 5px; color: var(--gold); }
.cta__aside { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-light); }
.cta__aside p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .72); }
.cta__aside a { color: var(--gold); font-weight: 600; }

.form { background: var(--white); box-shadow: var(--shadow-lift); padding: 40px 36px; }
.form__title { font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.form__hint  { font-size: 15px; line-height: 1.6; color: var(--body); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; line-height: 1.8; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 198, 87, .28);
}
.field textarea { min-height: 96px; resize: vertical; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__error { display: none; font-size: 13px; line-height: 1.5; color: #C0392B; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: #C0392B; }
.field.has-error .field__error { display: block; }
.form__legal { font-size: 13px; line-height: 1.6; color: var(--body); margin-top: 16px; }
.form__legal a { color: var(--teal); text-decoration: underline; }
.form__ok {
  display: none; background: var(--cream); border-left: 3px solid var(--gold);
  padding: 20px 22px; font-size: 15px; line-height: 1.7; color: var(--ink); margin-top: 20px;
}
.form__ok.is-visible { display: block; }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; gap: 44px; }
  .form { padding: 32px 24px; }
}
@media (max-width: 520px) { .field--row { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--white); padding-block: 80px 0; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; }
.footer__logo { width: 180px; margin-bottom: 20px; }
.footer h4 { font-size: 22px; line-height: 1.8; font-weight: 500; color: var(--gold-text); margin-bottom: 16px; }
.footer p, .footer li { font-size: 15px; line-height: 1.8; color: var(--body); }
.footer a:hover { color: var(--teal); }
.footer__bar {
  margin-top: 64px; background: var(--ink); color: rgba(255, 255, 255, .72);
  padding-block: 22px; font-size: 14px;
}
.footer__bar .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__bar a { color: var(--gold); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.wa__label {
  background: var(--gold); color: var(--ink-deep);
  font-size: 14px; font-weight: 600; line-height: 1;
  padding: 13px 18px; box-shadow: var(--shadow-lift); white-space: nowrap;
}
.wa__icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; color: var(--white);
  box-shadow: var(--shadow-lift); transition: transform var(--t);
}
.wa:hover .wa__icon { transform: scale(1.06); }
@media (max-width: 600px) {
  .wa { right: 16px; bottom: 16px; }
  .wa__label { display: none; }
}

/* ==========================================================================
   Animações de entrada (fadeInUp — padrão do site original)
   ========================================================================== */
/* O estado oculto só vale quando o JS confirmou que está rodando — sem JS,
   ou se o script falhar, o conteúdo aparece normalmente. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utilitários ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 12px 20px;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; }
