/* ================================================================
   Castelli Contabilidade — identidade: dourado sobre grafite
   Tipografia: Marcellus (títulos) + Archivo (texto)
================================================================ */
:root {
  --gold: #BE9B2D;
  --gold-bright: #D9B845;
  --gold-soft: rgba(190, 155, 45, 0.14);
  --ink: #16130c;
  --coal: #1d1a12;
  --coal-2: #242015;
  --paper: #faf8f2;
  --ivory: #f1ede1;
  --text: #37332a;
  --text-soft: #6b6557;
  --line: rgba(22, 19, 12, 0.1);
  --line-gold: rgba(190, 155, 45, 0.38);
  --radius: 6px;
  --container: 1140px;
  --font-display: "Marcellus", serif;
  --font-body: "Archivo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(190, 155, 45, 0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(190, 155, 45, 0.5);
}
.btn-ghost {
  color: var(--ivory);
  border: 1px solid var(--line-gold);
  background: transparent;
}
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn-dark {
  background: var(--ink);
  color: var(--ivory);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 19, 12, 0.3); }
.btn-lg { padding: 17px 36px; font-size: 16px; }

/* ---------- Eyebrow / cabeçalhos de seção ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-sub { margin-top: 16px; color: var(--text-soft); font-size: 17px; }

.section-ivory { background: var(--ivory); }

.section-dark { background: var(--coal); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark p { color: rgba(241, 237, 225, 0.72); }

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-lion { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.brand-text small {
  font-size: 9px;
  letter-spacing: 0.42em;
  color: var(--text-soft);
  text-transform: uppercase;
}
.nav { display: flex; gap: 28px; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }
.header-cta { padding: 11px 20px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.3s;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(190, 155, 45, 0.13), transparent 60%),
    linear-gradient(180deg, var(--coal) 0%, var(--ink) 100%);
  overflow: hidden;
}
.hero::before {
  /* textura sutil */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241, 237, 225, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-lion {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: min(560px, 55vw);
  opacity: 0.09;
  filter: grayscale(20%);
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(38px, 6vw, 64px);
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-bright);
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 18px;
  font-weight: 300;
  color: rgba(241, 237, 225, 0.78);
}
.hero-sub strong { color: var(--ivory); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.hero-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(190, 155, 45, 0.25);
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.hero-rating:hover { opacity: 0.85; }
.hero-rating-stars { display: inline-flex; gap: 4px; }
.hero-rating-text {
  font-size: 17px;
  color: rgba(241, 237, 225, 0.82);
  text-align: center;
}
.hero-rating-text strong { color: var(--ivory); font-weight: 600; }

/* animação de entrada do hero */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }
.d4 { animation-delay: 0.5s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ================= SERVIÇOS ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(22, 19, 12, 0.1);
}
.service-num {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--line-gold);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--text-soft); }

/* ================= PARA QUEM ================= */
.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.profile {
  border: 1px solid rgba(190, 155, 45, 0.22);
  border-radius: var(--radius);
  padding: 36px 30px;
  background: linear-gradient(180deg, var(--coal-2), transparent);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.profile:hover { border-color: var(--gold); transform: translateY(-4px); }
.profile-featured { border-color: var(--gold); }
.profile-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.profile h3 { font-size: 22px; margin-bottom: 12px; }
.profile p { font-size: 15px; }

/* ================= SOBRE ================= */
.about {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  z-index: 0;
}
.about-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(22, 19, 12, 0.18);
  z-index: 1;
}
.about-photo figcaption {
  position: relative;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  z-index: 1;
}
.about-text h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--text-soft); }
.about-text p strong { color: var(--text); }
.about-list {
  list-style: none;
  margin: 24px 0 32px;
}
.about-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 15.5px;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--gold);
}

/* ================= DEPOIMENTOS ================= */
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.review-stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 15px;
  margin-bottom: 12px;
}
.review p {
  font-size: 14.5px;
  color: var(--text);
  font-style: italic;
  flex: 1;
}
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.review-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  display: grid;
  place-items: center;
}
.review-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.review-g { flex-shrink: 0; }
.reviews-more {
  margin-top: 36px;
  text-align: center;
}
.reviews-more a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.reviews-more a:hover { color: var(--gold); border-color: var(--gold); }

/* ================= CTA BAND ================= */
.cta-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  padding: 64px 0;
}
.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  max-width: 720px;
}
.cta-band .btn-gold {
  background: var(--ink);
  color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(22, 19, 12, 0.3);
}
.cta-band .btn-gold:hover { box-shadow: 0 12px 32px rgba(22, 19, 12, 0.42); }

/* ================= CONTATO ================= */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; margin-top: 32px; }
.contact-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(190, 155, 45, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(241, 237, 225, 0.78);
  font-size: 15.5px;
}
.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.contact-list a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-list a:hover { color: var(--gold-bright); border-color: var(--gold-bright); }
.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(35%) contrast(1.05);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(190, 155, 45, 0.2);
  padding: 56px 0 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.footer-logo { width: 220px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: rgba(241, 237, 225, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-copy {
  font-size: 13px;
  color: rgba(241, 237, 225, 0.35);
}

/* ================= WHATSAPP FLUTUANTE ================= */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ================= SCROLL REVEAL ================= */
.will-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-reveal.in { opacity: 1; transform: translateY(0); }
.services-grid .will-reveal:nth-child(2), .profiles .will-reveal:nth-child(2), .reviews .will-reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .will-reveal:nth-child(3), .profiles .will-reveal:nth-child(3), .reviews .will-reveal:nth-child(3) { transition-delay: 0.2s; }
.services-grid .will-reveal:nth-child(4), .reviews .will-reveal:nth-child(4) { transition-delay: 0.3s; }
.services-grid .will-reveal:nth-child(5) { transition-delay: 0.1s; }
.services-grid .will-reveal:nth-child(6) { transition-delay: 0.2s; }

/* ================= RESPONSIVO ================= */
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .nav { gap: 18px; }
  .header-cta { padding: 11px 16px; font-size: 13px; }
}

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .profiles { grid-template-columns: 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; margin: 0 auto; }
  .about-text .btn-dark { display: flex; width: fit-content; margin: 0 auto; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .hero-inner { padding: 88px 24px 72px; }
  .services-grid, .reviews { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .hero-stats { gap: 20px 36px; }

  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(22, 19, 12, 0.12);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: none; }
  body.nav-open .nav { transform: translateY(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ================================================================
   Novas seções — otimização de conversão
================================================================ */

/* ---------- Quem cuida das suas contas ---------- */
.contador-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: center;
}
.contador-foto {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 24px 50px rgba(22, 19, 12, 0.18);
}
.contador-foto-placeholder {
  background: #dedacd;
  color: var(--text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed var(--line-gold);
  box-shadow: none;
}
.contador-text h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 12px; }
.contador-cred {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.contador-text > p:not(.eyebrow):not(.contador-cred) {
  color: var(--text-soft);
  margin-bottom: 28px;
}

/* ---------- Como funciona ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr;
  align-items: start;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.step {
  padding: 0 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(36px);
}
.steps-in .step {
  animation: step-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.steps-in .step:nth-child(1) { animation-delay: 0.1s; }
.steps-in .step:nth-child(3) { animation-delay: 0.75s; }
.steps-in .step:nth-child(5) { animation-delay: 1.4s; }
@keyframes step-rise {
  to { opacity: 1; transform: translateY(0); }
}
.step-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  box-shadow: 0 10px 26px rgba(190, 155, 45, 0.4);
  opacity: 0;
  scale: 0.4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.steps-in .step-num {
  animation: num-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.steps-in .step:nth-child(1) .step-num { animation-delay: 0.2s; }
.steps-in .step:nth-child(3) .step-num { animation-delay: 0.85s; }
.steps-in .step:nth-child(5) .step-num { animation-delay: 1.5s; }
@keyframes num-pop {
  to { opacity: 1; scale: 1; }
}
.step:hover .step-num {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(190, 155, 45, 0.55);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-soft); max-width: 280px; margin: 0 auto; }

/* setas desenhadas entre os passos */
.step-arrow {
  margin-top: 6px;
  display: grid;
  place-items: center;
}
.step-arrow svg {
  width: 124px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(190, 155, 45, 0.25));
}
.step-arrow .arrow-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.step-arrow .arrow-dot,
.step-arrow .arrow-tip {
  opacity: 0;
  scale: 0.3;
  transform-box: fill-box;
  transform-origin: center;
}
.steps-in .step-arrow .arrow-line {
  animation: arrow-draw 0.7s cubic-bezier(0.45, 0, 0.4, 1) forwards;
}
.steps-in .step-arrow .arrow-dot {
  animation: arrow-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.steps-in .step-arrow .arrow-tip {
  animation: arrow-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.steps-in .step-arrow:nth-child(2) .arrow-dot { animation-delay: 0.4s; }
.steps-in .step-arrow:nth-child(2) .arrow-line { animation-delay: 0.5s; }
.steps-in .step-arrow:nth-child(2) .arrow-tip { animation-delay: 1.1s; }
.steps-in .step-arrow:nth-child(4) .arrow-dot { animation-delay: 1.05s; }
.steps-in .step-arrow:nth-child(4) .arrow-line { animation-delay: 1.15s; }
.steps-in .step-arrow:nth-child(4) .arrow-tip { animation-delay: 1.75s; }
@keyframes arrow-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes arrow-pop {
  to { opacity: 1; scale: 1; }
}

/* ---------- Por que a Castelli ---------- */
.diff-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 80px;
  max-width: 920px;
  margin: 0 auto;
}
.diff-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px 0;
  opacity: 0;
}
.diff-item:nth-child(odd) { transform: translateX(-48px); }
.diff-item:nth-child(even) { transform: translateX(48px); }
.diff-in .diff-item {
  animation: diff-slide 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.diff-in .diff-item:nth-child(1) { animation-delay: 0.1s; }
.diff-in .diff-item:nth-child(2) { animation-delay: 0.3s; }
.diff-in .diff-item:nth-child(3) { animation-delay: 0.5s; }
.diff-in .diff-item:nth-child(4) { animation-delay: 0.7s; }
@keyframes diff-slide {
  to { opacity: 1; transform: translateX(0); }
}
/* linha divisória que se estende sob cada item */
.diff-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(190, 155, 45, 0.05));
  transform: scaleX(0);
  transform-origin: left center;
}
.diff-in .diff-item::after {
  animation: diff-line 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.diff-in .diff-item:nth-child(1)::after { animation-delay: 0.45s; }
.diff-in .diff-item:nth-child(2)::after { animation-delay: 0.65s; }
.diff-in .diff-item:nth-child(3)::after { animation-delay: 0.85s; }
.diff-in .diff-item:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes diff-line {
  to { transform: scaleX(1); }
}
/* ícone em anel dourado que se desenha */
.diff-icon {
  flex-shrink: 0;
  position: relative;
  width: 68px;
  height: 68px;
  color: var(--gold-bright);
  display: grid;
  place-items: center;
}
.diff-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  scale: 0.55;
  opacity: 0;
}
.diff-in .diff-icon::before {
  animation: diff-ring 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.diff-in .diff-item:nth-child(1) .diff-icon::before { animation-delay: 0.2s; }
.diff-in .diff-item:nth-child(2) .diff-icon::before { animation-delay: 0.4s; }
.diff-in .diff-item:nth-child(3) .diff-icon::before { animation-delay: 0.6s; }
.diff-in .diff-item:nth-child(4) .diff-icon::before { animation-delay: 0.8s; }
@keyframes diff-ring {
  to { scale: 1; opacity: 1; }
}
.diff-icon svg { width: 30px; height: 30px; }
/* traço do ícone se desenhando */
.diff-icon svg path,
.diff-icon svg circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.diff-in .diff-icon svg path,
.diff-in .diff-icon svg circle {
  animation: diff-draw 1.2s ease forwards;
}
.diff-in .diff-item:nth-child(1) .diff-icon svg path,
.diff-in .diff-item:nth-child(1) .diff-icon svg circle { animation-delay: 0.5s; }
.diff-in .diff-item:nth-child(2) .diff-icon svg path,
.diff-in .diff-item:nth-child(2) .diff-icon svg circle { animation-delay: 0.7s; }
.diff-in .diff-item:nth-child(3) .diff-icon svg path,
.diff-in .diff-item:nth-child(3) .diff-icon svg circle { animation-delay: 0.9s; }
.diff-in .diff-item:nth-child(4) .diff-icon svg path,
.diff-in .diff-item:nth-child(4) .diff-icon svg circle { animation-delay: 1.1s; }
@keyframes diff-draw {
  to { stroke-dashoffset: 0; }
}
.diff-item h3 {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ivory);
}
.diff-item:hover .diff-icon::before {
  border-color: var(--gold-bright);
  box-shadow: 0 0 24px rgba(217, 184, 69, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- Diagnóstico (quiz) ---------- */
.quiz {
  max-width: 620px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fff 0%, #fdfcf7 100%);
  border: 1px solid var(--line-gold);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 36px 32px 40px;
  box-shadow: 0 24px 60px rgba(22, 19, 12, 0.1);
}
/* dots de progresso */
.quiz-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.quiz-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: all 0.35s ease;
}
.quiz-dot.active {
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 5px var(--gold-soft);
  transform: scale(1.1);
}
.quiz-dot.done {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  color: var(--ink);
}
.quiz-seg {
  width: 38px;
  height: 2px;
  background: var(--line);
  transition: background 0.35s ease;
}
.quiz-seg.done { background: var(--gold); }
/* transição entre perguntas */
.quiz-pane {
  animation: quiz-fade 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes quiz-fade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-q {
  font-size: 24px;
  margin-bottom: 22px;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.quiz-opt:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(190, 155, 45, 0.15);
}
.quiz-opt-letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: #fff;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.quiz-opt:hover .quiz-opt-letter {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: transparent;
  color: var(--ink);
}
.quiz-opt-text { flex: 1; }
.quiz-opt-arrow {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}
.quiz-opt:hover .quiz-opt-arrow {
  opacity: 1;
  transform: translateX(0);
}
/* tela final */
.quiz-final { text-align: center; }
.quiz-check {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(190, 155, 45, 0.4);
  animation: quiz-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes quiz-pop {
  from { opacity: 0; scale: 0.3; }
  to { opacity: 1; scale: 1; }
}
.quiz-final-sub {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
}
.quiz-back {
  margin-top: 20px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 0;
}
.quiz-back:hover { color: var(--gold); }
.quiz-resumo {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  text-align: left;
}
.quiz-resumo li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-soft);
}
.quiz-resumo li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--gold);
  font-weight: 700;
}
.quiz-resumo li strong { color: var(--text); }
#quiz-cta { width: 100%; justify-content: center; text-align: center; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 52px 20px 24px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  position: relative;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--gold); }
.faq-item p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-soft);
}

/* ---------- Link do mapa ---------- */
.map-link {
  margin-top: 14px;
  text-align: right;
}
.map-link a {
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.map-link a:hover { color: var(--ivory); border-color: var(--ivory); }

/* ---------- Responsivo das novas seções ---------- */
@media (max-width: 1000px) {
  .contador-grid { grid-template-columns: 1fr; gap: 40px; }
  .contador-foto { max-width: 380px; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step-arrow { margin: 18px 0 10px; }
  .step-arrow svg { width: 84px; height: 64px; transform: rotate(65deg); }
  .diff-list { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 760px) {
  .diff-item { gap: 18px; padding: 26px 0; }
  /* no mobile os itens sobem em vez de deslizar dos lados (evita overflow) */
  .diff-item:nth-child(odd),
  .diff-item:nth-child(even) { transform: translateY(30px); }
  .diff-icon { width: 56px; height: 56px; }
  .diff-icon svg { width: 26px; height: 26px; }
  .diff-item h3 { font-size: 15px; }
  .quiz { padding: 28px 20px 32px; }
  .quiz-q { font-size: 21px; }
  .quiz-seg { width: 22px; }
  .quiz-dot { width: 30px; height: 30px; }
  .hero-rating-text { font-size: 15.5px; padding: 0 12px; }
}
