/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ===== Tokens ===== */
:root {
  --azul: #1565C0;
  --azul-escuro: #0D4A94;
  --gelo: #DCEEFB;
  --laranja: #F2994A;
  --laranja-escuro: #DB7F2B;
  --grafite: #1B1F27;
  --branco-gelo: #F7FAFC;
  --branco: #FFFFFF;

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;

  --shadow-soft: 0 16px 40px rgba(21, 101, 192, 0.12);
  --shadow-card: 0 8px 24px rgba(27, 31, 39, 0.07);

  --max-width: 1140px;
  --navbar-h: 72px;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stagger > .reveal { transition-delay: 0ms !important; }
}

/* ===== Reveal on scroll ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 280ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 350ms; }
.stagger > .reveal:nth-child(7) { transition-delay: 420ms; }
.stagger > .reveal:nth-child(8) { transition-delay: 490ms; }

body {
  font-family: var(--font-body);
  background: var(--branco-gelo);
  color: var(--grafite);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azul);
  background: var(--gelo);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

section { padding: var(--space-7) 0; }
@media (max-width: 640px) { section { padding: var(--space-5) 0; } }

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

.section-head { max-width: 640px; margin: 0 auto var(--space-5); text-align: center; }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { color: #4A5568; font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--azul-escuro); outline-offset: 2px; }

.btn--primary { background: var(--laranja); color: var(--branco); box-shadow: 0 10px 24px rgba(242, 153, 74, 0.35); }
.btn--primary:hover { background: var(--laranja-escuro); }

.btn--secondary { background: transparent; border-color: var(--azul); color: var(--azul); }
.btn--secondary:hover { background: var(--gelo); }

.btn--onbrand { background: var(--branco); color: var(--azul); }
.btn--onbrand:hover { background: var(--gelo); }

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 31, 39, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--azul);
}
.navbar__logo-img { height: 38px; width: auto; }

.navbar__links {
  display: flex;
  gap: var(--space-4);
  font-weight: 500;
}
.navbar__links a { position: relative; padding: 4px 0; }
.navbar__links a:hover { color: var(--azul); }

@media (max-width: 768px) {
  .navbar__links { display: none; }
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
  overflow: hidden;
  min-height: calc(100vh - var(--navbar-h));
  min-height: calc(100svh - var(--navbar-h));
}
.hero .container { width: 100%; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-3); text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__art { order: -1; max-width: 150px; margin: 0 auto; }
  .hero__text .eyebrow { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: var(--space-4); padding-bottom: var(--space-4); }
}

.hero h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); margin-bottom: var(--space-3); }
.hero__subhead { font-size: 1.15rem; color: #3D4759; max-width: 46ch; margin-bottom: var(--space-4); }
@media (max-width: 900px) { .hero__subhead { margin-left: auto; margin-right: auto; margin-bottom: var(--space-3); } }

.hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.hero__art { position: relative; }
.hero__art-bg {
  position: absolute;
  inset: 0;
  background: var(--gelo);
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
  transform: scale(1.15);
  z-index: 0;
}
.hero__art-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(21, 101, 192, 0.25));
}

/* ===== Problema ===== */
.problema-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 860px) { .problema-grid { grid-template-columns: 1fr; } }

.problema-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.problema-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gelo);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  color: var(--azul);
}
.problema-card h3 { margin-bottom: var(--space-1); }
.problema-card p { color: #4A5568; }

/* ===== Sobre ===== */
.sobre {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 860px) { .sobre { grid-template-columns: 1fr; } }
.sobre__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}
.sobre__art-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sobre h2 { margin-bottom: var(--space-3); }
.sobre p { color: #3D4759; font-size: 1.05rem; }

/* ===== Serviços ===== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 700px) { .servicos-grid { grid-template-columns: 1fr; } }

.servico-card {
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: var(--space-3);
  transition: transform 0.15s ease;
}
.servico-card:hover { transform: translateY(-4px); }
.servico-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gelo);
  display: flex; align-items: center; justify-content: center;
  color: var(--azul);
}
.servico-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--laranja-escuro);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.servico-card h3 { margin-bottom: var(--space-1); }
.servico-card p { color: #4A5568; }

/* ===== Diferenciais ===== */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
@media (max-width: 960px) { .diferenciais-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diferenciais-grid { grid-template-columns: 1fr; } }

.diferencial-card {
  text-align: center;
  padding: var(--space-4) var(--space-2);
}
.diferencial-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--branco);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--laranja);
}
.diferencial-card h3 { margin-bottom: var(--space-1); font-size: 1.1rem; }
.diferencial-card p { color: #4A5568; font-size: 0.95rem; }

/* ===== Como funciona ===== */
.passos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  position: relative;
}
@media (max-width: 860px) { .passos { grid-template-columns: 1fr; } }

@media (min-width: 861px) {
  .passos::before {
    content: '';
    position: absolute;
    top: calc(var(--space-4) + 24px);
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--gelo) 0 10px, transparent 10px 18px);
    z-index: 0;
  }
}

.passo {
  position: relative;
  z-index: 1;
  background: var(--branco);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.passo__numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--branco);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.passo h3 { margin-bottom: var(--space-1); }
.passo p { color: #4A5568; }

/* ===== Depoimentos ===== */
.avaliacoes {
  background: var(--branco-gelo);
}
.avaliacoes-layout {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 900px) {
  .avaliacoes-layout { grid-template-columns: 1fr; gap: var(--space-4); }
}

.avaliacoes-col-left { position: relative; }

.avaliacoes-heading {
  font-family: var(--font-display);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}
.avaliacoes-heading .line1 {
  display: block;
  font-weight: 600;
  color: var(--grafite);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}
.avaliacoes-heading .line2 {
  display: block;
  font-weight: 700;
  color: var(--azul);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.avaliacoes-badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: var(--space-4);
  font-size: 0.95rem;
}
.avaliacoes-badge strong { font-weight: 700; color: var(--grafite); }
.avaliacoes-badge svg { width: 18px; height: 18px; }
.avaliacoes-badge .google-label { font-weight: 600; color: var(--grafite); }
.avaliacoes-badge .badge-secondary { flex-basis: 100%; color: #8996A6; font-size: 0.85rem; }

.avaliacoes-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid #D9E2EC;
  background: var(--branco);
  color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.carousel-arrow:hover { background: var(--gelo); transform: translateY(-1px); }
.carousel-arrow:focus-visible { outline: 3px solid var(--azul-escuro); outline-offset: 2px; }
.carousel-arrow svg { width: 18px; height: 18px; }

.avaliacoes-col-right { min-width: 0; }
.carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 clamp(240px, 27vw, 300px);
  scroll-snap-align: start;
  background: var(--branco);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
}
.review-card__stars { color: #FBBC04; letter-spacing: 2px; margin-bottom: var(--space-2); font-size: 1rem; }
.review-card__text { color: var(--grafite); font-size: 0.98rem; flex-grow: 1; margin-bottom: var(--space-3); }
.review-card__footer { display: flex; align-items: center; gap: 10px; }
.review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--branco);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.review-card__avatar--1 { background: var(--azul); }
.review-card__avatar--2 { background: var(--laranja); }
.review-card__avatar--3 { background: var(--grafite); }
.review-card__name { font-weight: 700; font-size: 0.9rem; color: var(--grafite); }
.review-card__meta { font-size: 0.8rem; color: #8996A6; }

@media (max-width: 900px) {
  .avaliacoes-nav { justify-content: flex-start; }
}

/* ===== CTA bands ===== */
.cta-band {
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-escuro) 100%);
  color: var(--branco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
@media (max-width: 780px) {
  .cta-band { grid-template-columns: 1fr; }
}
.cta-band__content {
  padding: var(--space-6) var(--space-4);
  align-self: center;
  min-width: 0;
}
.cta-band__content .btn { max-width: 100%; }
@media (max-width: 780px) {
  .cta-band__content { padding: var(--space-4) var(--space-4) var(--space-3); }
  .cta-band__content .btn {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    white-space: normal;
    text-align: center;
  }
}
.cta-band h2 { color: var(--branco); margin-bottom: var(--space-3); }
.cta-band p { color: var(--gelo); margin-bottom: var(--space-4); font-size: 1.1rem; }
.cta-band__media { width: 100%; min-height: 220px; min-width: 0; }
@media (max-width: 780px) { .cta-band__media { aspect-ratio: 16 / 9; } }
.cta-band__img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; display: block; }

.cta-final {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-final h2 { margin-bottom: var(--space-2); }
.cta-final p { color: #4A5568; margin-bottom: var(--space-4); font-size: 1.1rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item {
  background: var(--branco);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--azul);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
html:not(.js) .faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item.is-open summary::after { transform: rotate(45deg); }
.faq-item__body {
  display: grid;
  grid-template-rows: minmax(0, 0fr);
  transition: grid-template-rows 0.3s ease;
  color: #4A5568;
}
html:not(.js) .faq-item[open] .faq-item__body { grid-template-rows: minmax(0, 1fr); }
.faq-item.is-open .faq-item__body { grid-template-rows: minmax(0, 1fr); }
.faq-item__body-inner { overflow: hidden; padding: 0 var(--space-4) var(--space-3); }
.faq-item__body .placeholder-note { display: block; margin-top: 6px; font-style: italic; font-size: 0.85rem; color: var(--laranja-escuro); }

/* ===== Footer ===== */
.footer {
  background: var(--grafite);
  color: var(--branco-gelo);
  padding: var(--space-6) 0 var(--space-4);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(247, 250, 252, 0.12);
  margin-bottom: var(--space-3);
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand-img { height: 34px; width: auto; }
.footer__col h3 { font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gelo); margin-bottom: var(--space-2); font-weight: 600; }
.footer__col p, .footer__col a { color: #C7D3DE; font-size: 0.95rem; }
.footer__col a:hover { color: var(--branco); }
.footer__col ul { display: flex; flex-direction: column; gap: 6px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.85rem; color: #8996A6; }

/* ===== Legal pages ===== */
.legal-hero { padding: var(--space-6) 0 var(--space-4); text-align: center; }
.legal-hero .eyebrow { margin-bottom: var(--space-2); }
.legal-content { max-width: 760px; margin: 0 auto; padding-bottom: var(--space-6); }
.legal-content h2 { margin-top: var(--space-5); margin-bottom: var(--space-2); font-size: 1.4rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: #3D4759; margin-bottom: var(--space-2); }
.legal-content ul { padding-left: var(--space-3); list-style: disc; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content strong { color: var(--grafite); }
.legal-updated { color: #8996A6; font-size: 0.9rem; margin-bottom: var(--space-4); text-align: center; }

/* ===== 404 ===== */
.page-404 {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}
.page-404__art { width: 200px; margin: 0 auto var(--space-4); }
.page-404 h1 { font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); margin-bottom: var(--space-2); }
.page-404 p { color: #4A5568; font-size: 1.1rem; margin-bottom: var(--space-4); max-width: 46ch; margin-left: auto; margin-right: auto; }
.page-404__actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.page-404__code { font-family: var(--font-display); font-weight: 700; color: var(--gelo); -webkit-text-stroke: 2px var(--azul); font-size: 5rem; line-height: 1; margin-bottom: var(--space-2); }

/* ===== Utility ===== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
