/* ==================================================================
   AUTOESCOLA PERCURSO — STYLE.CSS
   Organização deste arquivo:
   1. Reset e variáveis (tokens de design)
   2. Estilos globais / tipografia
   3. Utilitários (container, botões, animações de rolagem)
   4. Cabeçalho / menu
   5. Hero
   6. Serviços
   7. Diferenciais
   8. Como funciona
   10. Faixa de horário
   11. FAQ
   12. Contato
   13. Rodapé
   14. WhatsApp flutuante / voltar ao topo
   15. Responsividade
   ================================================================== */

/* ------------------------------------------------------------------
   1. RESET E VARIÁVEIS
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  scroll-padding-bottom: 90px;
}
body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:root {
  /* Paleta principal */
  --graphite: #16181c;        /* preto/grafite predominante */
  --graphite-deep: #0d0f12;   /* variação mais escura, para profundidade */
  --graphite-soft: #23262b;   /* bordas/linhas sobre fundo escuro */
  --orange: #ff6a1a;          /* cor de destaque */
  --orange-strong: #e85a0c;
  --orange-ink: #b34100;   /* hover / estado ativo */
  --white: #ffffff;
  --light: #f5f6f8;           /* cinza-claro para áreas de leitura */
  --light-border: #e6e7eb;
  --text-body: #3a3f47;
  --text-muted: #6b7280;
  --text-on-dark: #d6d8dc;
  --text-on-dark-muted: #9aa0a8;

  /* Vocabulário gráfico: linhas neutras e pontos de direção em laranja. */
  --route-line: #d4d6dc;
  --route-line-dark: #51565f;
  --route-node: 7px;
  --route-stroke: 1px;

  /* Tipografia */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 12px 28px rgba(13, 15, 18, 0.08);
  --shadow-card: 0 8px 20px rgba(13, 15, 18, 0.06);
  --header-height: 76px;
  --transition: 220ms ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------
   2. ESTILOS GLOBAIS
------------------------------------------------------------------ */
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--graphite);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  color: var(--orange-ink);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.eyebrow-light { color: var(--orange); }

.section-intro {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------------
   3. UTILITÁRIOS
------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

.section {
  padding: 72px 0;
}
.section-dark {
  background: var(--graphite);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--orange);
  color: var(--graphite-deep);
  box-shadow: 0 4px 12px rgba(255,106,26,.16);
}
.btn-whatsapp:hover {
  background: var(--orange-strong);
  box-shadow: 0 6px 16px rgba(255,106,26,.2);
}

.btn-outline {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid #747982;
}
.btn-outline:hover { background: var(--graphite); color: var(--white); }


/* animação sutil de revelação ao rolar a página */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   4. CABEÇALHO / MENU
------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(22, 24, 28, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logotipo temporário em texto */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
}
.logo-line {
  width: 34px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 5px 0 4px;
}
.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 18px;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after { width: 100%; }

.header-cta {
  padding: 11px 16px;
  font-size: .85rem;
}

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 8px; flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   5. HERO — identidade, oferta e contato
   Todas as regras abaixo estão restritas à primeira seção.
------------------------------------------------------------------ */
.hero { padding: calc(var(--header-height) + 36px) 0 52px; background: var(--light); color: var(--text-body); }
.hero .hero-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.85fr); gap: clamp(40px,6vw,88px); align-items: center; }
.hero .hero-text { min-width: 0; }
.hero .hero-identity { margin-bottom: 20px; }
.hero .hero-logo { width: 330px; max-width: 100%; height: auto; }
.hero .hero-location { font-size: .82rem; font-weight: 600; color: var(--orange-ink); margin-bottom: 10px; }
.hero .hero-text h1 { font-size: clamp(2.15rem,3.6vw,3.15rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; color: var(--graphite); margin-bottom: 20px; }
.hero .hero-subtitle { max-width: 490px; font-size: 1rem; line-height: 1.65; margin-bottom: 26px; }
.hero .hero-subtitle strong { font-weight: 600; color: var(--graphite); }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero .hero-actions .btn { min-height: 50px; padding: 13px 20px; font-size: .92rem; justify-content: center; border-radius: 10px; }
.hero .hero-actions .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero .hero-actions .btn-whatsapp { box-shadow: none; }
.hero .hero-actions .btn:hover { transform: none; }
.hero .hero-actions .btn-outline { border-color: #8b8f97; }
.hero .hero-meta { display: flex; flex-direction: column; gap: 10px; font-size: .82rem; line-height: 1.5; color: var(--text-body); }
.hero .hero-meta li { display: flex; align-items: flex-start; gap: 9px; }
.hero .hero-meta svg { width: 18px; height: 18px; color: var(--orange-ink); flex-shrink: 0; margin-top: 1px; }
/* Foto única da Categoria B; a legenda mantém a identidade da composição. */
.hero .hero-overview { min-width: 0; overflow: hidden; background: var(--graphite); color: var(--text-on-dark); border-radius: 16px; }
.hero .hero-car { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; object-position: center; }
.hero .hero-overview-caption { padding: 24px; }
.hero .hero-overview-category { display: flex; align-items: center; gap: 10px; color: var(--orange); font-size: .78rem; font-weight: 600; margin-bottom: 8px; }
.hero .hero-overview-category::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.hero .hero-overview-caption strong { display: block; font-family: var(--font-display); color: var(--white); font-size: 1.12rem; line-height: 1.4; }
.hero .hero-overview-note { margin-top: 12px; font-size: .8rem; color: #bec2c8; line-height: 1.6; }
@media (max-width: 1100px) {
  .hero .hero-inner { gap: 32px; }
  .hero .hero-actions .btn { padding: 13px 16px; font-size: .86rem; }
}
@media (max-width: 980px) {
  .hero .hero-inner { grid-template-columns: minmax(0,1fr); }
  .hero .hero-text { max-width: 640px; }
  .hero .hero-overview { width: 100%; max-width: 520px; }
  .hero .hero-actions .btn { font-size: .92rem; padding: 13px 20px; }
}
@media (max-width: 640px) {
  .hero { padding: calc(var(--header-height) + 16px) 0 36px; }
  .hero .hero-identity { margin-bottom: 12px; }
  .hero .hero-logo { width: 300px; }
  .hero .hero-location { font-size: .78rem; margin-bottom: 10px; }
  .hero .hero-text h1 { font-size: clamp(1.95rem,7.5vw,2.35rem); margin-bottom: 16px; }
  .hero .hero-subtitle { font-size: .95rem; line-height: 1.6; margin-bottom: 22px; }
  .hero .hero-actions { gap: 10px; margin-bottom: 22px; }
  .hero .hero-actions .btn { width: 100%; }
  .hero .hero-meta { font-size: .78rem; gap: 10px; }
  .hero .hero-overview-caption { padding: 18px 20px; }
  .hero .hero-overview-note { margin-top: 8px; }
}

/* ------------------------------------------------------------------
   6. SERVIÇOS
------------------------------------------------------------------ */
.cards-grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px; margin-top: 32px;
}

.card {
  background: var(--white); border: 1px solid var(--light-border);
  border-radius: var(--radius-lg); padding: 24px 22px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255, 106, 26, 0.1);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; }

.card-link {
  color: var(--orange-ink); font-weight: 600; font-size: .9rem;
  margin-top: auto; min-height: 44px; display: inline-flex; align-items: center;
  transition: color var(--transition);
}
.card-link:hover {
  color: #923400; text-decoration: underline; text-underline-offset: 4px;
}

/* Cards de serviços: estilos restritos a esta seção. */
#servicos .section-intro { max-width: 660px; }
#servicos .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
#servicos .service-card { padding: 26px; border-color: #dedfe3; box-shadow: none; }
#servicos .service-card:hover { transform: none; border-color: #b8bbc1; box-shadow: none; }
#servicos .service-card:focus-within { border-color: var(--orange-ink); }
#servicos .service-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
#servicos .card-icon { width: 42px; height: 42px; margin: 0; flex-shrink: 0; border-radius: 11px; color: var(--orange-ink); background: #fff0e7; }
#servicos .card-icon svg { width: 24px; height: 24px; }
#servicos .service-intent { color: var(--orange-ink); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#servicos .service-route { flex: 1; margin-left: 6px; border-top: var(--route-stroke) solid var(--route-line); position: relative; }
#servicos .service-route::after { content: ''; position: absolute; right: 0; top: -4px; width: var(--route-node); height: var(--route-node); border: 2px solid var(--orange); border-radius: 50%; background: var(--white); }
#servicos .service-card h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 12px; }
#servicos .service-audience { font-size: .95rem; font-weight: 600; color: var(--graphite); margin-bottom: 8px; line-height: 1.5; }
#servicos .service-description { font-size: .94rem; color: var(--text-body); margin-bottom: 22px; line-height: 1.6; max-width: 47ch; }
#servicos .card-link, .licensed-block .card-link { min-height: 48px; padding: 11px 14px; border: 1px solid #d8dade; border-radius: 8px; font-size: .88rem; line-height: 1.5; color: var(--graphite); background: var(--light); display: flex; justify-content: space-between; gap: 12px; transition: background var(--transition), border-color var(--transition); }
#servicos .card-link svg, .licensed-block .card-link svg, .simulado-teaser .btn svg { width: 18px; height: 18px; color: var(--orange-ink); flex-shrink: 0; }
#servicos .card-link:hover, .licensed-block .card-link:hover { background: #fff0e7; border-color: var(--orange-ink); text-decoration: none; }
/* Categorias A e B: apresentação equivalente, sem recorte dos veículos. */
#servicos .service-category-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; object-position: center; background: var(--light); border-radius: 10px; margin-bottom: 22px; }
/* A faixa intermediária foi removida; evita somar o respiro das duas seções. */
#como-funciona + #duvidas { padding-top: 0; }
/* Curso em faixa integrada: mantém o conteúdo e evita um card isolado. */
#servicos .service-course { gap: 24px; grid-column: 1 / -1; background: var(--light); border-top: 3px solid var(--orange); }
#servicos .service-course:hover { border-top-color: var(--orange); }
#servicos .service-course-image { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; object-position: center; border-radius: 10px; }
#servicos .service-course-content { min-width: 0; display: grid; gap: 18px; }
#servicos .service-course-copy .service-description { margin-bottom: 0; }
#servicos .service-course-details { min-width: 0; display: flex; flex-direction: column; }
#servicos .service-course-copy { min-width: 0; }
#servicos .service-course .card-link,
#servicos .card-link.service-contact, .licensed-block .service-contact { background: var(--white); border-color: #92969e; }
#servicos .service-course .card-link:hover,
#servicos .card-link.service-contact:hover, .licensed-block .service-contact:hover { background: #fff0e7; border-color: var(--orange-ink); }
#servicos .service-course-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 16px; font-size: .9rem; }
#servicos .service-course-features li { display: flex; gap: 8px; align-items: baseline; }
#servicos .service-course-features li::before { content: '✓'; color: var(--orange-ink); flex-shrink: 0; }
#servicos .service-course-note { font-size: .85rem; margin-bottom: 20px; }
@media (min-width: 641px) {
  #servicos .service-course { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
}
@media (max-width: 430px) {
  #servicos .service-course-features { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
  #servicos .cards-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  #servicos .service-card { padding: 20px; }
  #servicos .service-card-top { margin-bottom: 14px; }
  #servicos .service-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
  #servicos .service-description { margin-bottom: 18px; }
}

/* ------------------------------------------------------------------
   7. DIFERENCIAIS
------------------------------------------------------------------ */
.features-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px; margin-top: 32px;
}
.feature svg {
  color: var(--orange);
  width: 30px; height: 30px;
  margin-bottom: 16px;
}
.feature h3 { color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.feature p { color: var(--text-on-dark-muted); font-size: 0.94rem; }

/* ------------------------------------------------------------------
   8. COMO FUNCIONA (motivo visual: linha de percurso)
------------------------------------------------------------------ */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px; margin-top: 32px;
}
/* Cada trecho termina no próximo marco, sem prolongar a linha após a chegada. */
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 22px; left: 52px; right: -24px;
  border-top: var(--route-stroke) solid var(--route-line); pointer-events: none;
}
.step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--white);
}
.step h3 { margin-bottom: 8px; font-size: 1.02rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ------------------------------------------------------------------
   10. FAIXA DE HORÁRIO
------------------------------------------------------------------ */
.hours-strip {
  background: var(--light);
  color: var(--graphite);
}
.hours-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px;
}

/* ------------------------------------------------------------------
   11. FAQ
------------------------------------------------------------------ */
.faq-list {
  margin-top: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--light-border);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--graphite);
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--orange);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform var(--transition);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-answer p {
  padding: 0 4px 22px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ------------------------------------------------------------------
   12. CONTATO
------------------------------------------------------------------ */
.contact-inner {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start;
}
.contact-list {
  margin: 28px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
}
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-list a:hover { color: var(--orange); }

/* ------------------------------------------------------------------
   13. RODAPÉ
------------------------------------------------------------------ */
.site-footer {
  background: var(--graphite-deep); color: var(--text-on-dark-muted); padding-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--graphite-soft);
}
.footer-logo { font-size: 1.3rem; margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; }

.footer-col h3 {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-col p { font-size: 0.92rem; margin-bottom: 14px; line-height: 1.7; }
.footer-whatsapp {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-bottom {
  padding: 22px 24px 90px; text-align: center; font-size: .84rem;
}

/* ------------------------------------------------------------------
   14. WHATSAPP FLUTUANTE / VOLTAR AO TOPO
------------------------------------------------------------------ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%; background: #087f40;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px #0003; z-index: 900; transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); stroke: none; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }


/* Acessibilidade e identidade */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 5px; }
.site-header :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 12px 20px; background: white; color: var(--graphite); z-index: 1100; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.hero-inner > *, .footer-inner > *, .step { min-width: 0; }
.logo .header-logo { display: block; width: 154px; max-width: 100%; height: auto; }
.service-card { display: flex; flex-direction: column; }
.faq-answer a { color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-logo-image { display: block; width: 180px; max-width: 100%; height: auto; margin-bottom: 16px; }
.footer-business-name { color: var(--white); margin-bottom: 6px; }
.reveal:focus-within { opacity: 1; transform: none; }
.back-to-top.is-obscured { visibility: hidden; pointer-events: none; }
.back-to-top-label { display: none; }

/* Responsividade: cada breakpoint reúne as adaptações dos componentes. */
@media (max-width: 1100px) {
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; background: var(--graphite); border-top: 1px solid var(--graphite-soft); max-height: 0; overflow: hidden; visibility: hidden; }
  .main-nav.is-open { visibility: visible; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav li { border-bottom: 1px solid var(--graphite-soft); }
  .nav-link { display: block; padding: 16px 0; font-size: .95rem; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-list { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding: 48px 0; }
  .btn { white-space: normal; text-align: center; padding: 13px 20px; }
  .cards-grid { grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 24px; }
  .card { padding: 20px; }
  .card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .feature { display: grid; grid-template-columns: 28px minmax(0,1fr); column-gap: 14px; }
  .feature svg { width: 26px; height: 26px; grid-row: span 2; margin: 0; }
  .feature p { grid-column: 2; }
  .feature h3 { margin-bottom: 6px; }
  .steps { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .step:not(:last-child)::after { top: 44px; bottom: -16px; left: 17px; right: auto; border-top: 0; border-left: var(--route-stroke) solid var(--route-line); }
  .step { display: grid; grid-template-columns: 36px minmax(0,1fr); column-gap: 14px; }
  .step-number { width: 36px; height: 36px; margin: 0; grid-row: span 2; }
  .step p { grid-column: 2; }
  .hours-inner { align-items: flex-start; }
  .hours-inner .btn { width: 100%; justify-content: center; }
  .faq-question { font-size: .95rem; padding: 18px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-logo-image { width: 160px; }
  .logo .header-logo { width: 140px; }
  .whatsapp-float { right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .back-to-top { position: static; width: auto; height: 44px; margin: 0 auto 16px; padding: 0 16px; border-radius: 999px; gap: 8px; opacity: 1; visibility: visible; transform: none; }
  .back-to-top-label { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Assinatura Percurso: um traço e um ponto, sem competir com o conteúdo.
   Pseudo-elementos vazios são decorativos e nunca recebem cliques. */
.section .eyebrow {
  position: relative; padding-inline-start: 38px;
}
.section .eyebrow::before::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 50%; width: 27px;
  border-top: var(--route-stroke) solid var(--route-line); pointer-events: none;
}
.section .eyebrow::after::after {
  content: ''; position: absolute; inset-inline-start: 23px; top: 50%;
  width: var(--route-node); height: var(--route-node); border: 2px solid var(--orange);
  border-radius: 50%; transform: translateY(-50%); background: var(--white); pointer-events: none;
}
.section-dark .eyebrow::before::before { border-color: var(--route-line-dark); }
.section-dark .eyebrow::after::after { background: var(--graphite); }
.step-number { border: 1px solid var(--orange); }
.step:last-child .step-number { background: var(--orange); color: var(--graphite-deep); }
#contato .contact-info { position: relative; padding-inline-start: 24px; border-inline-start: var(--route-stroke) solid var(--route-line-dark); }
#contato .contact-info::after {
  content: ''; position: absolute; left: -4px; bottom: 0; width: var(--route-node); height: var(--route-node);
  background: var(--orange); border-radius: 50%; pointer-events: none;
}
.footer-inner { position: relative; }
.footer-inner::after {
  content: ''; position: absolute; left: 24px; bottom: -1px; width: 40px;
  border-bottom: 2px solid var(--orange); pointer-events: none;
}
@media (max-width: 640px) {
  #contato .contact-info { padding-inline-start: 18px; }
  .footer-inner::after { left: 20px; width: 28px; }
}

/* Revisão mobile: alvos de toque, leitura e espaços sem remover conteúdo. */
@media (max-width: 768px) {
  :root { --header-height: 4.25rem; }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .site-header { background: var(--graphite); backdrop-filter: none; }
  .header-inner { gap: 16px; }
  .site-header .logo { min-height: 44px; justify-content: center; }
  .site-header .logo-text { font-size: 1.35rem; }
  .main-nav { max-height: 0; }
  .main-nav.is-open { max-height: calc(100vh - var(--header-height)); max-height: calc(100dvh - var(--header-height)); overscroll-behavior: contain; }
  .main-nav ul { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .main-nav .nav-link { min-height: 48px; padding: 12px 0; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  h2, h3 { text-wrap: balance; }
  .hero .hero-text h1 { text-wrap: initial; }
  .service-card, .contact-list li > div, .footer-col { min-width: 0; overflow-wrap: break-word; }
  .contact-list a, .footer-col a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .faq-answer a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; vertical-align: middle; }
  .faq-question { min-height: 52px; line-height: 1.5; }
  .faq-question:focus-visible { outline-offset: 3px; }
  .footer-col ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 16px; }
  .footer-col ul a { width: 100%; }
  .footer-col h3 { margin-bottom: 10px; }
  .site-footer { padding-top: 36px; }
  .footer-inner { gap: 24px; padding-bottom: 24px; }
  .footer-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .back-to-top { position: static; width: fit-content; max-width: 100%; height: auto; min-height: 44px; margin: 0 auto 16px; padding: 10px 16px; border-radius: 999px; gap: 8px; opacity: 1; visibility: visible; transform: none; }
  .back-to-top-label { display: inline; }
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .section { padding-top: 40px; padding-bottom: 40px; }
  .hero { padding-bottom: 28px; }
  .hero .hero-identity { margin-bottom: 8px; }
  .hero .hero-subtitle { margin-bottom: 20px; }
  .hero .hero-meta { font-size: .82rem; }
  .hero .hero-actions { margin-bottom: 20px; }
  #servicos .service-card { padding: 18px; }
  #servicos .service-card-top { margin-bottom: 12px; }
  #servicos .service-description { margin-bottom: 14px; }
  .features-grid { gap: 20px; margin-top: 24px; }
  .steps { gap: 24px; margin-top: 24px; }
  .faq-list { margin-top: 20px; }
  .faq-question { padding: 16px 0; }
  #contato .contact-info { padding-inline-start: 14px; }
  .contact-list { gap: 16px; margin: 24px 0; }
  .contact-list li { gap: 12px; }
  .footer-col p { margin-bottom: 8px; }
}
/* Evita deslocamentos de hover persistentes em telas de toque. */
@media (hover: none) {
  .btn:hover, .card:hover, .whatsapp-float:hover { transform: none; }
}

/* A impressão deve incluir conteúdo ainda não alcançado pela rolagem. */
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Chamada compacta do Simulado Percurso; não altera as seções existentes. */
.simulado-teaser { padding: 32px 0; background: var(--light); }
.simulado-teaser-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.simulado-teaser-inner > div { width: 100%; min-width: 0; max-width: 680px; overflow-wrap: break-word; padding-left: 20px; border-left: 2px solid var(--orange); }
.simulado-teaser h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 12px; }
.simulado-teaser .eyebrow { font-size: .78rem; letter-spacing: .05em; }
.simulado-teaser-note { font-size: .8rem; margin-top: 8px; }
.simulado-teaser .btn { flex-shrink: 0; justify-content: space-between; gap: 12px; padding-inline: 14px; min-height: 50px; border-radius: 10px; box-shadow: none; }
.simulado-teaser .btn > span { display: flex; align-items: center; justify-content: flex-end; width: .863em; flex-shrink: 0; }
.simulado-teaser .btn:hover, .simulado-teaser .btn:focus-visible { color: var(--graphite); background: #fff0e7; border-color: var(--orange-ink); transform: none; }
.simulado-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.simulado-badges li { padding: 3px 10px; border: 1px solid #c9ccd2; border-radius: 6px; font-size: .75rem; font-weight: 600; color: var(--graphite); background: var(--white); }
@media (max-width: 900px) {
  .simulado-teaser-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 640px) {
  .simulado-teaser { padding-block: 32px; }
  .simulado-teaser .btn { width: 100%; }
}

/* Canais complementares: ícones discretos com área de toque de 44 px. */
.contact-social { margin-top: 24px; }
.contact-social p { margin-bottom: 4px; font-size: .9rem; color: var(--text-on-dark-muted); }
.social-links { display: flex; align-items: center; gap: 8px; }
.footer-brand .social-links { margin-top: 12px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; color: var(--text-on-dark); border-radius: 6px; }
.social-links a:hover, .social-links a:focus-visible { color: var(--orange); }
.social-links a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.social-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Redes no cabeçalho: complementares ao WhatsApp e ocultas sem espaço. */
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-social { gap: 4px; }
.header-social a { width: 36px; height: 36px; }
.header-social .header-instagram, .contact-social .header-instagram { color: #e969a0; }
.header-instagram svg { stroke: url(#header-instagram-gradient); }
.header-instagram circle:last-child { fill: url(#header-instagram-gradient); }
.header-social .header-youtube, .contact-social .header-youtube { color: #ff4040; }
.header-social a:hover, .header-social a:focus-visible, .contact-social a:hover, .contact-social a:focus-visible { opacity: .8; }
@media (max-width: 1279px) {
  .header-social { display: none; }
}
@media (max-width: 1100px) {
  .header-actions { display: none; }
}

/* Hero: espaço reservado para fotos autorizadas, sem imagens provisórias. */
.hero-approved .approved-photo { width: 100%; aspect-ratio: 1672 / 941; background: #e1e3e6; overflow: hidden; touch-action: pan-y; }
.hero-approved .approved-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-approved #approved-heading { color: var(--white); font-size: 1.12rem; line-height: 1.4; }
.hero-approved .approved-caption { padding: 12px 20px 0; font-size: .8rem; overflow-wrap: anywhere; }
.hero-approved .approved-gallery { position: relative; }
.hero-approved .approved-controls { position: absolute; inset: 0; pointer-events: none; }
.hero-approved [hidden] { display: none; }
.hero-approved .approved-controls button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 6px; color: var(--white); pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; }
.hero-approved .approved-prev, .hero-approved .approved-next { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; }
.hero-approved .approved-prev::before, .hero-approved .approved-next::before { content: ""; position: absolute; inset: 6px; border-radius: 6px; background: rgba(22, 24, 28, .78); pointer-events: none; }
.hero-approved .approved-prev svg, .hero-approved .approved-next svg { position: relative; }
.hero-approved .approved-prev { left: 8px; }
.hero-approved .approved-next { right: 8px; }
.hero-approved .approved-controls svg { width: 18px; height: 18px; }
.hero-approved .approved-controls button:hover { color: var(--orange); }
.hero-approved .approved-controls button:focus-visible { outline: 2px solid var(--orange); outline-offset: -3px; }
.hero-approved .approved-indicators { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; max-width: calc(100% - 16px); overflow-x: auto; pointer-events: auto; border-radius: 22px; background: rgba(22, 24, 28, .78); }
.hero-approved .approved-indicators button::after { content: ''; display: block; width: 6px; height: 6px; margin: auto; border-radius: 50%; background: #bec2c8; }
.hero-approved .approved-indicators button[aria-current="true"]::after { background: var(--orange); }

/* Celular na horizontal e tablets: manter alvos de toque sem mudar desktop. */
@media (min-width: 769px) and (max-width: 1100px) {
  .contact-list a, .footer-col a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; }
  .footer-col ul a { width: 100%; }
}
/* O contorno permanece dentro do card, que possui overflow para os cantos. */
.hero-approved .approved-gallery:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* Serviço para quem já tem CNH: componente existente, após o Simulado. */
.licensed-wrapper { padding-top: 32px; padding-bottom: 32px; }
.licensed-block { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-color: #dedfe3; box-shadow: none; }
.licensed-block > div { min-width: 0; }
.licensed-block .eyebrow { margin-bottom: 8px; font-size: .78rem; }
.licensed-block h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 8px; }
.licensed-block .card-link { margin-top: 0; flex-shrink: 0; min-width: 190px; }
@media (max-width: 640px) {
  .licensed-wrapper { padding-top: 24px; padding-bottom: 24px; }
  .licensed-block { flex-direction: column; align-items: stretch; gap: 18px; padding: 18px; }
  .licensed-block .card-link { min-width: 0; }
  #diferenciais .features-grid { gap: 16px; margin-top: 20px; }
  #diferenciais .feature h3 { margin-bottom: 4px; }
}

/* WhatsApp permanece fixo; somente o menu mobile aberto o oculta. */
@media (max-width: 1100px) {
  body:has(.main-nav.is-open) .whatsapp-float { visibility: hidden; pointer-events: none; }
}

/* Redes secundárias apenas dentro do menu mobile expandido. */
.mobile-menu-social { display: none; }
.mobile-menu-social .header-instagram svg { stroke: url(#mobile-instagram-gradient); }
.mobile-menu-social .header-instagram circle:last-child { fill: url(#mobile-instagram-gradient); }
@media (max-width: 1100px) {
  .main-nav.is-open .mobile-menu-social { display: flex; padding: 0 24px max(16px, env(safe-area-inset-bottom)); }
  .mobile-menu-social a { width: 44px; height: 44px; }
}

/* Mesmo gradiente do header, disponível também com o header mobile oculto. */
.contact-social .header-instagram svg { stroke: url(#contact-instagram-gradient); }
.contact-social .header-instagram circle:last-child { fill: url(#contact-instagram-gradient); }
