/* =========================================================================
   MOTORISTAS EM SANTOS — extras.css · nova versão (2026-11-20; Orla Noturna em 2026-11-21)
   Complementa o style.css atual (paleta, fonte Atkinson Hyperlegible Next e
   tokens preservados). Regras fora de @layer, carregadas depois do style.css.
   Contrastes (WCAG 2.2): #fdfbf7 sobre #232b42 = 13,58:1 · #dfd17c sobre #0f172a = 11,52:1
   · #dfd17c sobre #232b42 = 9,06:1 · #25d366 sobre #0f172a = 9,0:1 · #0b2e22 sobre #25d366 = 7,41:1.
   ========================================================================= */

/* 1. Faixa de agendamento (logo abaixo do header) */
.faixa-agendamento {
  margin: 0; padding: .55rem 1rem; text-align: center;
  background: #232b42; color: #fdfbf7; border-bottom: 2px solid #dfd17c;
  font-size: 1rem; font-weight: 600; line-height: 1.35;
}
.faixa-mobile { display: inline; }
.faixa-desktop { display: none; }
@media (min-width: 40em) {
  .faixa-mobile { display: none; }
  .faixa-desktop { display: inline; }
}

/* 2. Menu: página atual */
.nav-link[aria-current="page"] { text-decoration-thickness: 3px; }

/* 3. Linha de botões da hero e das seções */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 40em) {
  .cta-row .button { width: auto; }
}

/* 4. Botão de WhatsApp em contorno — sempre no verde oficial; só sobre fundo escuro */
.button--whatsapp-outline {
  background: transparent; color: #25d366; border-color: #25d366;
  --md-focus-ring-color: #25d366;
}
.button--whatsapp-outline .icon { fill: currentColor; }
.button--whatsapp-outline:hover, .button--whatsapp-outline:active { background: #25d366; color: #0b2e22; }

/* 5. Linha de confiança e contato da hero */
.hero-confianca {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  margin: var(--md-custom-space-6, 1.5rem) 0 0; padding: 0; list-style: none;
  color: #fdfbf7; font-weight: 600;
}
.hero-confianca li { display: flex; align-items: flex-start; gap: .4rem; }
.hero-confianca li::before { content: "✓"; color: #dfd17c; font-weight: 800; }
.hero-contato { margin-top: var(--md-custom-space-4, 1rem); color: #fdfbf7; font-size: var(--md-sys-typescale-body-medium-size, 1rem); }
.hero-contato a, .final-cta a.inline-link, .section--midnight a.inline-link, .area-card a.inline-link { color: #dfd17c; }
/* Links em linha sobre fundo escuro: areia também nos estados visitado, hover e ativo */
.hero a.inline-link, .hero a.inline-link:visited, .hero a.inline-link:hover, .hero a.inline-link:active,
.final-cta a.inline-link:visited, .final-cta a.inline-link:hover,
.section--midnight a.inline-link:visited, .section--midnight a.inline-link:hover,
.area-card a.inline-link:visited, .area-card a.inline-link:hover { color: #dfd17c; --md-focus-ring-color: #dfd17c; }
.hero-copy > .hero-text { margin-top: var(--md-custom-space-4, 1rem); }

/* 6. Cards de modalidade com botão no rodapé do card */
.modality-body .button { margin-top: auto; }
.modality-body .card-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: auto; }
.service-card p + .card-link { margin-top: auto; }

/* 7. Resumo da área atendida (card escuro) */
.area-summary { display: grid; gap: var(--md-custom-space-5, 1.25rem); margin: 0; }
.area-summary dt { color: #dfd17c; font-weight: 700; }
.area-summary dd { margin: .25rem 0 0; }

/* 8. Texto corrido (políticas, guias, sobre) */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--md-custom-space-4, 1rem); }
.prose h2 { margin-top: var(--md-custom-space-10, 2.5rem); }
.prose h3 { margin-top: var(--md-custom-space-6, 1.5rem); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose .note { margin-top: var(--md-custom-space-6, 1.5rem); }

/* 9. Sumário de página (guias) */
.toc { margin-top: var(--md-custom-space-6, 1.5rem); padding: var(--md-custom-space-5, 1.25rem); border: 1px solid #d8d2c6; border-radius: .75rem; background: #fff; }
.toc p { margin: 0 0 .5rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.4rem; }
.toc li + li { margin-top: .25rem; }

/* 10. Âncoras por cidade (áreas atendidas) */
.city-anchor { scroll-margin-top: 6rem; }

/* 11. Rodapé enxuto: marca, contato e um único grupo institucional (âncoras de serviço ficam no corpo das páginas) */
.footer-grid { grid-template-columns: minmax(0, 1fr); }
.footer-marca { display: grid; gap: var(--md-custom-space-4, 1rem); align-content: start; }
.footer-marca p, .footer-marca address { margin: 0; font-style: normal; line-height: 1.6; }
.footer-wordmark { text-decoration: none; color: inherit; }
.footer-link { color: #dfd17c; text-decoration: underline; text-underline-offset: 3px; }
.footer-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--md-custom-space-6, 1.5rem); }
.footer-nav ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; margin: 0; padding: 0; list-style: none; }
.footer-nav li a { display: inline-flex; min-height: 2.75rem; align-items: center; }
.rodape-titulo { margin: 0 0 .5rem; color: #dfd17c; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-privacidade { max-width: 72ch; }
@media (min-width: 48em) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--md-custom-space-12, 3rem); }
}
@media (min-width: 64em) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .footer-marca { max-width: 60ch; }
}

/* 12. Página 404 (no index.html, exibida quando o caminho é /404) */
.nf-404[hidden] { display: none; }
html.is-404 .nf-404[hidden] { display: block; }
html.is-404 main > :not(.nf-404) { display: none; }

/* 13. Barra móvel: espaço para não cobrir o rodapé */
@media (max-width: 63.99em) {
  body { padding-bottom: 5rem; }
}

/* =========================================================================
   14. IDENTIDADE "ORLA NOTURNA" (aprovada em 21/11/2026)
   Mesma paleta do site: navy #0f172a, painel #232b42, areia #dfd17c (ochre-85),
   ocre #5e4310 (ochre-30), creme #fdfbf7, papel #f5f0e8. Sem cores novas.
   Motivo gráfico: a linha do horizonte com o meio sol (orla de Santos ao entardecer).
   Contrastes (WCAG 2.2): ocre #5e4310 sobre creme 8,89:1 · sobre papel 8,10:1 ·
   sobre neutral-90 #e7e2da 7,12:1 · vermelho de estado #b3261e sobre neutral-90 5,07:1 ·
   areia sobre navy 11,52:1 · areia sobre painel 9,06:1 · #0b2e22 sobre #25d366 7,41:1.
   O verde do WhatsApp (#25d366) e o GTM não são alterados.
   ========================================================================= */
/* 14.1 Links em fundo claro: ocre escuro (antes amarelo escurecido #6b5b00).
   Os estados hover/ativo/visitado seguem em vermelho #b3261e, como no menu original. */
:root { --md-custom-color-link: var(--md-ref-palette-ochre-30); }

/* 14.2 Logotipo: caixa alta, peso 800, linha do horizonte e meio sol (sem o ícone do carro) */
.brand-lockup { display: inline-flex; flex-direction: column; align-items: stretch; gap: .375rem; min-width: 0; max-width: 100%; }
.brand-wordmark, .footer-wordmark { font-weight: 800; letter-spacing: .04em; }
.brand-horizon { position: relative; display: block; width: 100%; height: 2px; background: #dfd17c; }
.brand-horizon::after {
  content: ""; position: absolute; right: 18%; bottom: 0;
  width: 16px; height: 8px; border-radius: 16px 16px 0 0; background: #dfd17c;
}
.footer-brand {
  display: inline-flex; flex-direction: column; gap: .375rem; justify-self: start;
  min-height: 2.75rem; justify-content: center; color: inherit; text-decoration: none;
}
.footer-brand:hover .footer-wordmark, .footer-brand:focus-visible .footer-wordmark { text-decoration: underline; text-underline-offset: 4px; }

/* 14.3 Hero: borda inferior em areia e meio sol apoiado na linha */
.hero { position: relative; border-bottom: 2px solid #dfd17c; }
.hero::after {
  content: ""; position: absolute; right: 14%; bottom: 0; z-index: 0;
  width: 64px; height: 32px; pointer-events: none;
  /* o sol é um fundo recortado pela própria caixa: ao "nascer", sobe a partir da linha */
  background: radial-gradient(circle 32px at 50% 100%, #dfd17c 31.5px, transparent 32px) 0 0 / 64px 32px no-repeat;
}

/* 14.4 Rodapé: a mesma linha do horizonte no topo */
.site-footer { border-top: 2px solid #dfd17c; }

/* 14.5 Números dos passos: círculo navy com algarismo areia */
.step-num { border-radius: 50%; background: #0f172a; color: #dfd17c; font-weight: 800; }
/* sobre o painel navy, um anel areia separa o círculo do fundo */
.step-card .step-num, .section--midnight .step-num { box-shadow: inset 0 0 0 2px #dfd17c; }

/* 14.6 Botão de WhatsApp em fundo claro: verde oficial com borda de 2px no verde-escuro do rótulo */
.section--cream .button--whatsapp, .section--paper .button--whatsapp { border-color: #0b2e22; }

/* 14.7 Movimento: só para quem não pediu movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: orla-rise .9s ease-out both; }
  .service-card, .modality-card, .link-card { transition: box-shadow .2s ease-out, border-color .2s ease-out; }
}
@keyframes orla-rise {
  from { background-position: 0 10px; opacity: .4; }
  to { background-position: 0 0; opacity: 1; }
}

/* 14.8 Cards com link: sombra leve no hover, sem deslocamento */
.service-card:has(a):hover, .modality-card:has(a):hover, .link-card:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }

/* 14.9 Alto contraste do sistema: a linha e o sol usam a cor do texto */
@media (forced-colors: active) {
  .brand-horizon, .brand-horizon::after { background: CanvasText; }
  .hero::after { background: none; }
}
