/* ==========================================================================
   Teodoro Assistência — style.css
   Variáveis em :root • Layout com flexbox (sem grid)
   ========================================================================== */

/* Fontes hospedadas no próprio site (Barlow / Barlow Condensed, licença OFL) */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Cores */
  --color-bg: #f4f8ff;
  --color-surface: #ffffff;
  --color-dark: #00285f;
  --color-dark-2: #00357b;
  --color-primary: #0b5bd3;
  --color-primary-dark: #08459f;
  --color-primary-soft: #e4edfa;
  --color-accent: #4aa3ff;
  --color-on-primary: #ffffff;
  --color-text: #0e1b30;
  --color-muted: #5a6b85;
  --color-border: #dbe6f5;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe5a;

  /* Feedback (notificações) */
  --color-success: #52c41a;
  --color-info: #1677ff;
  --color-warning: #faad14;
  --color-error: #ff4d4f;

  /* Medidas */
  --container: 1140px;
  --gap: 24px;
  --radius: 0px;
  --radius-sm: 0px;
  --header-h: 72px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(10, 37, 80, 0.08);
  --shadow-md: 0 6px 20px rgba(10, 37, 80, 0.12);
  --shadow-nz: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);

  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --cut: 22px;
  --transition: 0.2s ease;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: var(--fs, 100%);
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
img,
svg,
iframe {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.icon {
  --fa-display: inline-flex;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  width: var(--s, 1em);
  height: var(--s, 1em);
  font-size: calc(var(--s, 1em) * 0.82);
  line-height: 1;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.center {
  text-align: center;
}
.mt-32 {
  margin-top: 32px;
}
.text-primary {
  color: var(--color-accent);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  padding: 8px 12px;
  z-index: 2000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}
:focus-visible {
  outline: 3px solid var(--color-info);
  outline-offset: 2px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
}
.btn-dark {
  background: var(--color-dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--color-dark-2);
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Topbar + Header ---------- */
.topbar {
  background: var(--color-dark);
  color: #cbd5e1;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  min-height: 36px;
}
.topbar a,
.topbar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover {
  color: var(--color-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-dark-2);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--color-primary);
  color: #fff;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.05;
}
.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a:not(.btn) {
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 0;
  font-weight: 600;
  transition:
    background var(--transition),
    color var(--transition);
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}
.nav-cta {
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 6px;
}

/* ---------- Faixa de segurança ---------- */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--color-primary) 0 14px, #fff 14px 28px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #134a9e 0%, var(--color-dark) 60%);
  color: #fff;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 72px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 420px;
}
.hero-card {
  flex: 0 1 340px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero-card-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
}
.hero-phone {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 6px 0 18px;
}
.hero-phone:hover {
  color: var(--color-accent);
}
.eyebrow {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 0;
  margin-bottom: 18px;
}
.eyebrow-dark {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}
.check-list .icon {
  color: var(--color-accent);
}

.page-hero {
  background: var(--color-dark);
  color: #fff;
}
.page-hero .container {
  padding-top: 48px;
  padding-bottom: 44px;
}
.page-hero h1 {
  margin-bottom: 0.25em;
}
.page-hero p {
  color: #cbd5e1;
  margin: 0;
  font-size: 1.1rem;
}

/* ---------- Features ---------- */
.features {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.features-inner {
  display: flex;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 20px;
}
.feature {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.feature .icon {
  color: var(--color-primary);
}
.feature div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.feature span {
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* ---------- Seções e cards ---------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--color-surface);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.card {
  flex: 1 1 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.section-alt .card {
  background: var(--color-bg);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card p {
  color: var(--color-muted);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.service-card .btn {
  margin-top: auto;
}
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 16px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* ---------- Sobre / info ---------- */
.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 420px;
}
.about-text p {
  color: var(--color-muted);
}
.info-card {
  flex: 1 1 320px;
  background: var(--color-dark);
  color: #fff;
  border-radius: 0;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.info-card h3 {
  color: var(--color-accent);
  margin-bottom: 18px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-list .icon {
  color: var(--color-accent);
  margin-top: 3px;
}
.info-list div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}
.info-list small {
  color: #94a3b8;
}
.info-list a:hover {
  color: var(--color-accent);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}
.cta h2 {
  margin-bottom: 0.2em;
}
.cta p {
  margin: 0;
  font-weight: 600;
}
.cta .btn-primary {
  --b-bg: #fff;
  --b-bg-h: var(--color-primary-soft);
  --b-fg: var(--color-dark-2);
}

.cta p {
  color: #dbeafe;
}

/* ---------- Contato / formulário ---------- */
.contact-inner {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-form-wrap {
  flex: 2 1 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.field {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 0;
  padding: 11px 14px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(17, 85, 204, 0.22);
}
.field.has-error input,
.field.has-error select {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15);
}
.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}
.form-note a {
  text-decoration: underline;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.map {
  display: flex;
  line-height: 0;
}
.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Texto legal ---------- */
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
}
.prose p {
  color: var(--color-muted);
}
.prose a {
  text-decoration: underline;
  color: var(--color-info);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #cbd5e1;
  margin-top: auto;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer-col {
  flex: 1 1 200px;
}
.footer-brand {
  flex: 2 1 280px;
}
.footer-col .footer-title {
  color: #fff;
  margin-bottom: 14px;
}
.footer-col li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-col .icon {
  color: var(--color-accent);
  margin-top: 4px;
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-brand p {
  margin-top: 14px;
  max-width: 360px;
}
.social {
  display: flex;
  gap: 10px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background var(--transition),
    color var(--transition);
}
.social a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a:hover {
  color: var(--color-accent);
}

/* ---------- Botão flutuante WhatsApp ---------- */
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Notificações (estilo ng-zorro) ---------- */
.nz-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 384px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.nz {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 0;
  padding: 16px 48px 16px 24px;
  box-shadow: var(--shadow-nz);
  animation: nz-in 0.3s ease both;
}
.nz.is-leaving {
  animation: nz-out 0.25s ease both;
}
.nz-icon {
  display: inline-flex;
  margin-top: 2px;
}
.nz-success .nz-icon {
  color: var(--color-success);
}
.nz-info .nz-icon {
  color: var(--color-info);
}
.nz-warning .nz-icon {
  color: var(--color-warning);
}
.nz-error .nz-icon {
  color: var(--color-error);
}
.nz-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.nz-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.4;
}
.nz-desc {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.nz-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.45);
  display: inline-flex;
  border-radius: 0;
}
.nz-close:hover {
  color: rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.06);
}
@keyframes nz-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes nz-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ---------- Animações ---------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes slide-in-r {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes drive {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}
@keyframes menu-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes shine {
  from {
    transform: translateX(-120%) skewX(-20deg);
  }
  to {
    transform: translateX(220%) skewX(-20deg);
  }
}

/* Entrada do hero */
.hero-text > * {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-text > :nth-child(1) {
  animation-delay: 0.05s;
}
.hero-text > :nth-child(2) {
  animation-delay: 0.15s;
}
.hero-text > :nth-child(3) {
  animation-delay: 0.28s;
}
.hero-text > :nth-child(4) {
  animation-delay: 0.4s;
}
.hero-card {
  animation:
    slide-in-r 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both,
    float-y 6s ease-in-out 1.2s infinite;
}
.page-hero .container > * {
  animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero .container > :nth-child(2) {
  animation-delay: 0.12s;
}

/* Aparecer ao rolar (classes aplicadas via JS; sem JS o conteúdo fica visível) */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.6s ease var(--d, 0s),
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Microinterações */
.site-header {
  transition:
    box-shadow var(--transition),
    background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.brand:hover .brand-mark .icon {
  animation: drive 0.5s ease 2;
}
.main-nav a:not(.btn) {
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}
.icon-box {
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}
.card:hover .icon-box {
  transform: rotate(-6deg) scale(1.1);
  background: var(--color-primary);
  color: #fff;
}
.step:hover .step-n {
  transform: scale(1.12);
}
.step-n {
  transition: transform 0.25s ease;
}
.feature .icon {
  transition: transform 0.25s ease;
}
.feature:hover .icon {
  transform: scale(1.15);
}
.btn-primary,
.btn-whatsapp {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-whatsapp::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-whatsapp:hover::after {
  animation: shine 0.7s ease;
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.main-nav.is-open {
  animation: menu-down 0.25s ease both;
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--color-dark-2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-cta {
    margin: 10px 0 0;
  }
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 32px;
  }
  .section {
    padding: 52px 0;
  }
  .contact-form-wrap {
    padding: 22px;
  }
}
@media (max-width: 480px) {
  .topbar-inner {
    justify-content: center;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .nz-container {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }
}

/* ==========================================================================
   NOVOS RECURSOS: acessibilidade, marquee, galeria, cookies, voltar ao topo
   ========================================================================== */
[hidden] {
  display: none !important;
}
kbd {
  font: inherit;
  font-size: 0.85em;
  padding: 1px 7px;
  border: 1px solid var(--color-border);
  border-bottom-width: 2px;
  border-radius: 0;
  background: var(--color-surface);
}
code {
  font-size: 0.9em;
  background: var(--color-primary-soft);
  padding: 1px 6px;
  border-radius: 0;
}

/* ---------- Barra de progresso de rolagem ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

/* ---------- Barra de acessibilidade ---------- */
.a11y-bar {
  background: #06142e;
  color: #e2e8f0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.a11y-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 4px;
  min-height: 36px;
}
.a11y-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--color-accent);
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.a11y-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
}
.a11y-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.a11y-tools a,
.a11y-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition);
}
.a11y-tools a:hover,
.a11y-tools button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.a11y-tools button[aria-pressed="true"] {
  background: var(--color-primary);
  color: #fff;
}
.a11y-tools em {
  font-style: normal;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
}
.a11y-tools button[aria-pressed="true"] em {
  background: rgba(255, 255, 255, 0.28);
}
.a11y-font {
  display: inline-flex;
  gap: 2px;
  padding: 0 4px;
  border-inline: 1px solid rgba(255, 255, 255, 0.14);
}
.a11y-font button {
  padding: 6px 9px;
  font-weight: 800;
}

/* ---------- Animações extras do hero ---------- */
.hero-blob {
  position: absolute;
  border-radius: 0;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob.b1 {
  width: 340px;
  height: 340px;
  background: #2a74e6;
  top: -90px;
  left: -80px;
  animation: blob 14s ease-in-out infinite;
}
.hero-blob.b2 {
  width: 280px;
  height: 280px;
  background: #5ea0ff;
  bottom: 40px;
  right: 18%;
  animation: blob 18s ease-in-out -6s infinite reverse;
}
.hero-blob.b3 {
  width: 200px;
  height: 200px;
  background: #1155cc;
  top: 30%;
  left: 42%;
  animation: blob 16s ease-in-out -3s infinite;
}
@keyframes blob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, 30px) scale(1.12);
  }
  66% {
    transform: translate(-30px, 18px) scale(0.92);
  }
}
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 44px;
  overflow: hidden;
  pointer-events: none;
}
.road-truck {
  position: absolute;
  bottom: 2px;
  left: -60px;
  color: var(--color-accent);
  animation: drive-across 18s linear infinite;
}
.road-truck .icon {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  animation: bump 0.5s ease-in-out infinite;
}
@keyframes drive-across {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 120px));
  }
}
@keyframes bump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}
.text-primary {
  background: linear-gradient(90deg, var(--color-accent), #fff, var(--color-accent));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-shimmer 6s linear infinite;
}
@keyframes text-shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes ring {
  0%,
  86%,
  100% {
    transform: rotate(0);
  }
  88% {
    transform: rotate(-16deg);
  }
  91% {
    transform: rotate(14deg);
  }
  94% {
    transform: rotate(-10deg);
  }
  97% {
    transform: rotate(6deg);
  }
}
.topbar a[href^="tel"] .icon,
.hero-phone {
  transform-origin: 50% 50%;
}
.topbar a[href^="tel"] .icon {
  animation: ring 4s ease-in-out infinite;
}
.js .section-head h2::after {
  transform: skewX(-30deg) scaleX(0);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 0;
  background: var(--color-primary);
  margin: 12px auto 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s;
}
.section-head.is-visible h2::after {
  transform: skewX(-30deg) scaleX(1);
}
.social a {
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}
.social a:hover {
  transform: translateY(-4px) rotate(-6deg);
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-surface), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-surface), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 64px;
  padding-right: 64px;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.marquee-item .icon {
  color: var(--color-primary);
}
.marquee-item div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.marquee-item span {
  color: var(--color-muted);
  font-size: 0.9rem;
}
.marquee-pause {
  position: absolute;
  right: 12px;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.marquee-pause:hover {
  background: var(--color-primary-soft);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Galeria ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.gallery-li {
  flex: 1 1 300px;
  max-width: calc(33.333% - 12px);
  min-width: 260px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-dark);
  color: #fff;
  cursor: zoom-in;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-item:hover .gallery-media img {
  transform: scale(1.08);
}
.gallery-media.is-placeholder {
  background: radial-gradient(circle at 70% 20%, #1a5fd0, var(--color-dark) 70%);
  color: var(--color-accent);
}
.gallery-media.is-placeholder .icon {
  transition: transform 0.4s ease;
  opacity: 0.9;
}
.gallery-item:hover .gallery-media.is-placeholder .icon {
  transform: scale(1.18) rotate(-6deg);
}
.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 16px 14px;
  font-weight: 700;
  background: linear-gradient(0deg, rgba(5, 15, 36, 0.85), transparent);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 12, 30, 0.92);
  animation: lb-in 0.25s ease both;
}
.lightbox.is-closing {
  animation: lb-out 0.2s ease both;
}
.lightbox-fig {
  margin: 0;
  max-width: min(960px, 100%);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  color: #fff;
  animation: pop-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.lightbox-media {
  width: 100%;
  max-height: 74vh;
  display: flex;
  justify-content: center;
}
.lightbox-media img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 0;
  object-fit: contain;
}
.lightbox-media .gallery-media {
  width: min(560px, 100%);
  border-radius: 0;
}
.lightbox-media .gallery-media .icon {
  --s: 110px;
  font-size: 92px;
}
.lightbox-cap {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}
.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}
.lightbox-btn:hover {
  background: var(--color-primary);
  transform: scale(1.08);
}
.lightbox-close {
  top: 18px;
  right: 18px;
}
.lightbox-prev {
  left: 18px;
  top: 50%;
  translate: 0 -50%;
}
.lightbox-next {
  right: 18px;
  top: 50%;
  translate: 0 -50%;
}
body.no-scroll {
  overflow: hidden;
}
@keyframes lb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes lb-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ---------- Mapa do site e textos legais ---------- */
.sitemap .card {
  flex: 1 1 320px;
}
.card-title {
  font-size: 1.25rem;
}
.sitemap-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sitemap-list a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    padding var(--transition);
}
.sitemap-list a:hover {
  background: var(--color-primary-soft);
  border-left-color: var(--color-primary);
  padding-left: 16px;
}
.sitemap-list span {
  color: var(--color-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.prose-list {
  list-style: disc;
  padding-left: 22px;
  color: var(--color-muted);
}
.prose-list li {
  margin-bottom: 8px;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1em;
  border: 1px solid var(--color-border);
  border-radius: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--color-surface);
}
.table th,
.table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.table th {
  background: var(--color-primary-soft);
  color: var(--color-text);
}
.table td {
  color: var(--color-muted);
}
.table tr:last-child td {
  border-bottom: 0;
}
.consent-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 8px 24px 24px;
}
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.switch span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.switch small {
  color: var(--color-muted);
  font-size: 0.88rem;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  margin: 2px 0 0;
  border-radius: 0;
  background: #b7c4da;
  cursor: pointer;
  transition: background 0.2s;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch input:checked {
  background: var(--color-primary);
}
.switch input:checked::after {
  transform: translateX(20px);
}
.switch input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 10px;
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1400;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 460px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: var(--shadow-nz);
  animation: banner-up 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cookie-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  animation: float-y 4s ease-in-out infinite;
}
.cookie-body p {
  margin: 4px 0 14px;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.cookie-body p a,
.cookie-link {
  text-decoration: underline;
  color: var(--color-primary);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cookie-link {
  font-size: 0.88rem;
  font-weight: 600;
}
@keyframes banner-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Voltar ao topo ---------- */
.scroll-top {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: var(--color-dark-2);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0.3s,
    background var(--transition);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.scroll-top:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}
.scroll-top .icon {
  transition: transform 0.25s ease;
}
.scroll-top:hover .icon {
  transform: translateY(-3px);
}

/* VLibras: não deixa o botão do plugin ficar atrás do WhatsApp */
[vw] {
  z-index: 1050;
}

/* ---------- Alto contraste ---------- */
html.hc {
  --color-bg: #000;
  --color-surface: #000;
  --color-dark: #000;
  --color-dark-2: #000;
  --color-primary: #ffd400;
  --color-primary-dark: #ffea66;
  --color-primary-soft: #1a1a1a;
  --color-accent: #ffd400;
  --color-on-primary: #000;
  --color-text: #fff;
  --color-muted: #fff;
  --color-border: #fff;
  --color-info: #4da3ff;
}
.hc body {
  background: #000;
  color: #fff;
}
.hc .hero,
.hc .page-hero {
  background: #000;
  border-bottom: 2px solid #ffd400;
}
.hc .hero-slash,
.hc .road {
  display: none;
}
.hc .lead,
.hc .page-hero p,
.hc .topbar,
.hc .info-list small,
.hc .footer-brand p,
.hc .site-footer {
  color: #fff;
}
.hc a:not(.btn) {
  text-decoration: underline;
}
.hc .brand,
.hc .brand-mark {
  text-decoration: none;
}
.hc .brand-mark,
.hc .eyebrow,
.hc .eyebrow-dark,
.hc .step-n {
  background: #ffd400;
  color: #000;
}
.hc .btn-primary {
  --b-bg: #ffd400;
  --b-bg-h: #fff;
  --b-fg: #000;
}
.hc .btn-dark,
.hc .btn-outline-dark,
.hc .btn-outline-light {
  --b-bg: #000;
  --b-bg-h: #1a1a1a;
  --b-bd: #ffd400;
  --b-fg: #ffd400;
}
.hc .btn-whatsapp {
  --b-bg: #00e676;
  --b-bg-h: #fff;
  --b-fg: #000;
}
.hc .btn:hover::before {
  outline: 3px solid #fff;
}
.hc .card,
.hc .contact-form-wrap,
.hc .info-card,
.hc .hero-card,
.hc .gallery-item,
.hc .cookie-banner,
.hc .consent-form,
.hc .nz,
.hc .table-wrap {
  border: 2px solid #fff;
  box-shadow: none;
}
.hc .icon-box {
  background: #000;
  border: 2px solid #ffd400;
  color: #ffd400;
}
.hc .card:hover .icon-box {
  background: #ffd400;
  color: #000;
}
.hc .cta {
  background: #000;
  border-block: 3px solid #ffd400;
}
.hc .cta p {
  color: #fff;
}
.hc .cta .btn-primary {
  --b-bg: #ffd400;
  --b-bg-h: #fff;
  --b-fg: #000;
}
.hc .hazard {
  background: repeating-linear-gradient(-45deg, #ffd400 0 14px, #000 14px 28px);
}
.hc .site-header,
.hc .main-nav,
.hc .a11y-bar {
  background: #000;
  border-bottom: 1px solid #fff;
}
.hc .main-nav a:not(.btn) {
  color: #fff;
}
.hc .main-nav a:not(.btn):hover,
.hc .main-nav a.is-active {
  background: #000;
  color: #ffd400;
}
.hc .field input,
.hc .field select,
.hc .field textarea {
  background: #000;
  color: #fff;
  border-color: #fff;
}
.hc .nz {
  background: #000;
}
.hc .nz-title,
.hc .nz-desc,
.hc .nz-close {
  color: #fff;
}
.hc .marquee::before {
  background: linear-gradient(90deg, #000, transparent);
}
.hc .marquee::after {
  background: linear-gradient(270deg, #000, transparent);
}
.hc .gallery-media.is-placeholder {
  background: #000;
  border-bottom: 2px solid #ffd400;
}
.hc .table th {
  background: #1a1a1a;
  color: #ffd400;
}
.hc .switch input {
  background: #555;
}
.hc .switch input:checked {
  background: #ffd400;
}
.hc .switch input::after {
  background: #fff;
}
.hc .scroll-top {
  background: #ffd400;
  color: #000;
}
.hc .text-primary {
  -webkit-text-fill-color: #ffd400;
  color: #ffd400;
  background: none;
  animation: none;
}
.hc .prose a,
.hc .cookie-body p a {
  color: #ffd400;
}
.hc kbd,
.hc code {
  background: #000;
  border: 1px solid #fff;
  color: #fff;
}

/* ---------- Responsivo (novos recursos) ---------- */
@media (max-width: 960px) {
  .gallery-li {
    max-width: calc(50% - 9px);
  }
}
@media (max-width: 860px) {
  .a11y-toggle {
    display: inline-flex;
  }
  .a11y-title {
    display: none;
  }
  .a11y-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .a11y-tools {
    display: none;
    padding-bottom: 8px;
  }
  .a11y-bar.is-open .a11y-tools {
    display: flex;
    animation: menu-down 0.25s ease both;
  }
  .a11y-font {
    border-inline: 0;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .gallery-li {
    max-width: 100%;
  }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 16px;
  }
  .cookie-icon {
    display: none;
  }
  .scroll-top {
    right: 22px;
    bottom: 90px;
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 18px;
    translate: 0 0;
  }
  .lightbox-prev {
    left: calc(50% - 60px);
  }
  .lightbox-next {
    right: calc(50% - 60px);
  }
}

/* ---------- Reduzir animações (botão da barra) ---------- */
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.reduce-motion .reveal {
  opacity: 1;
  translate: 0 0;
}
html.reduce-motion .hero-slash,
html.reduce-motion .road,
html.reduce-motion .marquee-pause {
  display: none;
}
html.reduce-motion .marquee-track {
  animation: none;
  width: auto;
  flex-wrap: wrap;
  justify-content: center;
}
html.reduce-motion .marquee-group {
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 20px;
  gap: 24px 48px;
}
html.reduce-motion .marquee-group[aria-hidden="true"],
html.reduce-motion .marquee-group .marquee-item:nth-child(n + 5) {
  display: none;
}
html.reduce-motion .marquee::before,
html.reduce-motion .marquee::after {
  display: none;
}
html.reduce-motion .section-head h2::after {
  transform: skewX(-30deg);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slash,
  .road,
  .marquee-pause {
    display: none;
  }
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
    gap: 24px 48px;
  }
  .marquee-group[aria-hidden="true"],
  .marquee-group .marquee-item:nth-child(n + 5) {
    display: none;
  }
  .marquee::before,
  .marquee::after {
    display: none;
  }
  .section-head h2::after {
    transform: skewX(-30deg);
  }
}

/* ==========================================================================
   ESTILO INDUSTRIAL: cantos retos, cortes diagonais, tipografia condensada
   (paleta baseada na logo: azul #00357b + branco)
   ========================================================================== */
body {
  font-size: 1.0625rem;
}
h1,
h2,
h3,
h4,
.eyebrow,
.btn,
.hero-card-label,
.nz-title,
.step-n,
.main-nav a:not(.btn),
.footer-col h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1,
h2 {
  font-weight: 800;
  line-height: 1;
}
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}
h3 {
  font-size: 1.55rem;
}
.lead,
.hero p {
  font-size: 1.15rem;
}

/* ---------- Marca (logo vetorial) ---------- */
.brand-logo {
  display: block;
  height: 46px;
  width: auto;
}
.site-footer .brand-logo {
  height: 56px;
}
.site-header {
  border-bottom: 4px solid var(--color-primary);
  box-shadow: 0 6px 18px rgba(0, 30, 80, 0.25);
}
.main-nav a:not(.btn) {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.main-nav a:not(.btn):hover,
.main-nav a.is-active {
  background: none;
  color: #fff;
}
.main-nav a:not(.btn)::after {
  height: 3px;
  background: var(--color-accent);
  transform-origin: left;
}

/* ---------- Botões em paralelogramo (texto reto, fundo inclinado) ---------- */
.btn {
  --b-bg: var(--color-primary);
  --b-fg: #fff;
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 13px 32px;
  border: 0;
  background: none;
  color: var(--b-fg);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--b-bg);
  border: 2px solid var(--b-bd, var(--b-bg));
  transform: skewX(-14deg);
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}
.btn::after {
  display: none !important;
}
.btn:hover {
  transform: none;
  box-shadow: none;
}
.btn:hover::before {
  background: var(--b-bg-h, var(--b-bg));
  transform: skewX(-14deg) translateY(-2px);
}
.btn:active {
  transform: none;
}
.btn:active::before {
  transform: skewX(-14deg) translateY(1px);
}
.btn:disabled::before {
  opacity: 0.6;
}
.btn-sm {
  padding: 9px 22px;
  font-size: 1rem;
}
.btn-lg {
  padding: 16px 38px;
  font-size: 1.25rem;
}
.btn-primary {
  --b-bg: var(--color-primary);
  --b-bg-h: var(--color-primary-dark);
  --b-fg: #fff;
  background: none;
}
.btn-dark {
  --b-bg: var(--color-dark-2);
  --b-bg-h: var(--color-dark);
  --b-fg: #fff;
  background: none;
}
.btn-whatsapp {
  --b-bg: var(--color-whatsapp);
  --b-bg-h: var(--color-whatsapp-dark);
  --b-fg: #05230f;
  background: none;
}
.btn-outline-light {
  --b-bg: transparent;
  --b-bd: rgba(255, 255, 255, 0.75);
  --b-bg-h: rgba(255, 255, 255, 0.16);
  --b-fg: #fff;
  background: none;
  border: 0;
}
.btn-outline-dark {
  --b-bg: var(--color-surface);
  --b-bd: var(--color-dark-2);
  --b-bg-h: var(--color-primary-soft);
  --b-fg: var(--color-dark-2);
  background: none;
  border: 0;
}
.site-header .btn-primary {
  --b-bg: var(--color-accent);
  --b-bg-h: #fff;
  --b-fg: var(--color-dark);
}

/* ---------- Etiquetas inclinadas ---------- */
.eyebrow {
  --e-bg: var(--color-primary);
  --e-fg: #fff;
  position: relative;
  isolation: isolate;
  background: none;
  color: var(--e-fg);
  padding: 6px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--e-bg);
  transform: skewX(-14deg);
}
.eyebrow-dark {
  --e-bg: var(--color-primary-soft);
  --e-fg: var(--color-primary-dark);
  background: none;
}

/* ---------- Cortes diagonais ---------- */
.gallery-item,
.hero-card,
.info-card {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.icon-box,
.step-n,
.cookie-icon,
.social a,
.scroll-top,
.lightbox-btn {
  --cut: 10px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.gallery-li {
  filter: drop-shadow(0 8px 10px rgba(0, 30, 80, 0.22));
}
.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 0;
  border-left: 5px solid var(--color-accent);
}
.info-card {
  background: var(--color-dark-2);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 30, 80, 0.08);
}
.card:hover {
  transform: translateY(-5px);
  border-top-color: var(--color-accent);
  box-shadow: 0 14px 28px rgba(0, 30, 80, 0.16);
}
.icon-box {
  background: var(--color-primary);
  color: #fff;
}
.card:hover .icon-box {
  background: var(--color-dark-2);
}
.step-n {
  font-family: var(--font-head);
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  background: var(--color-dark-2);
}
.card-photo {
  display: block;
  margin: -28px -28px 22px;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--color-dark);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card-photo img {
  transform: scale(1.07);
}
.service-card .icon-box {
  position: relative;
  margin-top: -52px;
  width: 64px;
  height: 64px;
}

/* ---------- Hero: faixas diagonais animadas ---------- */
/* .hero {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 16px),
    linear-gradient(135deg, #00357b 0%, #00285f 55%, #001c45 100%);
} */
.hero {
  background:
    /* 1) textura diagonal (mantida do layout atual) */
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 16px),
    /* 2) película azul: garante a leitura do texto sobre a foto */
    linear-gradient(135deg, rgba(0, 53, 123, 0.9) 0%, rgba(0, 40, 95, 0.82) 55%, rgba(0, 28, 69, 0.9) 100%),
    /* 3) a foto */
    url("../img/hero.jpg") center / cover no-repeat;
  background-color: #00285f; /* cor de reserva enquanto a imagem carrega */
}
.hero-slash {
  position: absolute;
  top: -10%;
  bottom: -10%;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: slash-slide 13s ease-in-out infinite alternate;
}
.hero-slash.b1 {
  left: 5%;
  width: 70px;
}
.hero-slash.b2 {
  left: 46%;
  width: 220px;
  background: rgba(74, 163, 255, 0.08);
  animation-delay: -5s;
}
.hero-slash.b3 {
  right: 7%;
  width: 100px;
  animation-delay: -9s;
}
@keyframes slash-slide {
  from {
    translate: -34px 0;
  }
  to {
    translate: 46px 0;
  }
}
.hazard {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--color-accent) 0 16px, var(--color-dark) 16px 32px);
}
.page-hero {
  background: linear-gradient(135deg, #00357b, #00285f);
}
.text-primary {
  background-image: linear-gradient(90deg, var(--color-accent), #fff, var(--color-accent));
}
.cta {
  background: var(--color-primary);
  clip-path: polygon(0 22px, 100% 0, 100% 100%, 0 100%);
  padding-top: 22px;
}
.site-footer {
  background: var(--color-dark);
}

/* ---------- Faixa rolante com divisores inclinados ---------- */
.marquee-item {
  position: relative;
}
.marquee-item::after {
  content: "";
  position: absolute;
  right: -34px;
  top: 50%;
  width: 4px;
  height: 38px;
  background: var(--color-primary);
  opacity: 0.4;
  transform: translateY(-50%) skewX(-24deg);
}
.marquee-item strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
html.reduce-motion .marquee-item::after {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-item::after {
    display: none;
  }
}

/* ---------- Galeria (fotos em pé) ---------- */
.gallery-media {
  aspect-ratio: 4 / 5;
}
.gallery-media img {
  object-position: center 62%;
}
.gallery-cap {
  font-family: var(--font-head);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 44px;
}
.lightbox-media .gallery-media {
  aspect-ratio: 4 / 3;
}

/* ---------- Formulários, avisos e banner ---------- */
.field input,
.field select,
.field textarea {
  border-width: 2px;
}
.nz {
  border-left: 6px solid var(--color-primary);
}
.cookie-banner {
  border-left: 6px solid var(--color-primary);
}
.cookie-icon {
  background: var(--color-dark-2);
  color: #fff;
}
.a11y-tools a,
.a11y-tools button {
  border-radius: 0;
}
.scroll-top {
  background: var(--color-dark-2);
}
.scroll-top:hover {
  background: var(--color-primary);
}
.social a:hover {
  transform: translateY(-4px);
}

/* ---------- Alto contraste: ajustes finais ---------- */
.hc .hero,
.hc .page-hero {
  background: #000;
}
.hc .cta {
  clip-path: none;
}
.hc .site-header {
  border-bottom-color: #ffd400;
}
.hc .icon-box,
.hc .step-n {
  background: #000;
  color: #ffd400;
  border: 2px solid #ffd400;
}
.hc .card {
  border-top-color: #ffd400;
}
.hc .eyebrow,
.hc .eyebrow-dark {
  --e-bg: #ffd400;
  --e-fg: #000;
  background: none;
  color: #000;
}
.hc .site-header .btn-primary {
  --b-bg: #ffd400;
  --b-fg: #000;
}
.hc .brand-logo {
  filter: none;
}
.hc .hazard {
  background: repeating-linear-gradient(-45deg, #ffd400 0 16px, #000 16px 32px);
}

@media (max-width: 600px) {
  .brand-logo {
    height: 40px;
  }
  .card-photo {
    margin: -22px -22px 20px;
  }
  .cta {
    clip-path: polygon(0 14px, 100% 0, 100% 100%, 0 100%);
    padding-top: 14px;
  }
}

/* ==========================================================================
   WhatsApp flutuante com badge de notificação animado
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  animation: pop-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both;
}
.wa-float-btn {
  --cut: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-whatsapp);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition:
    background var(--transition),
    transform var(--transition);
}
.wa-float-btn:hover {
  background: var(--color-whatsapp-dark);
  transform: scale(1.07);
}
.wa-float-btn .icon {
  animation: ring 4.5s ease-in-out 2s infinite;
}
.wa-float-wrap {
  position: relative;
  filter: drop-shadow(0 8px 14px rgba(5, 120, 55, 0.45));
}
/* onda de pulso atrás do botão */
.wa-float-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-whatsapp);
  opacity: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  animation: wa-wave 2.4s ease-out infinite;
}
@keyframes wa-wave {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* badge "1": fica fora do recorte do botão */
.wa-badge {
  position: absolute;
  top: -9px;
  right: -9px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  background: #ff3b30;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font: 800 0.95rem/1 var(--font-head);
  letter-spacing: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  animation:
    badge-pop 0.5s cubic-bezier(0.2, 1.6, 0.3, 1) 1.6s both,
    badge-beat 2s ease-in-out 2.2s infinite;
}
.wa-badge::after {
  /* anel que se expande */
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #ff3b30;
  border-radius: 999px;
  opacity: 0;
  animation: badge-ring 2s ease-out 2.2s infinite;
}
.wa-badge.is-gone {
  animation: badge-out 0.25s ease forwards;
}
@keyframes badge-pop {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes badge-beat {
  0%,
  60%,
  100% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.28);
  }
  80% {
    transform: scale(0.95);
  }
  90% {
    transform: scale(1.12);
  }
}
@keyframes badge-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes badge-out {
  to {
    transform: scale(0);
    opacity: 0;
  }
}

/* balão de chamada */
.wa-bubble {
  position: relative;
  max-width: 250px;
  padding: 12px 38px 12px 14px;
  background: #fff;
  color: var(--color-text);
  border-left: 5px solid var(--color-whatsapp);
  box-shadow: 0 10px 24px rgba(0, 30, 80, 0.25);
  font-size: 0.95rem;
  line-height: 1.35;
  animation: bubble-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.wa-bubble strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wa-bubble::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
}
.wa-bubble-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.wa-bubble-close:hover {
  color: var(--color-text);
}
.wa-bubble.is-leaving {
  animation: bubble-out 0.3s ease forwards;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bubble-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

.hc .wa-float-btn {
  background: #00e676;
  color: #000;
}
.hc .wa-bubble {
  background: #000;
  color: #fff;
  border: 2px solid #ffd400;
}
.hc .wa-bubble::after {
  background: #000;
  border-right: 2px solid #ffd400;
  border-bottom: 2px solid #ffd400;
}
html.reduce-motion .wa-float-wrap::before,
html.reduce-motion .wa-badge::after {
  display: none;
}
html.reduce-motion .wa-badge {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .wa-float-wrap::before,
  .wa-badge::after {
    display: none;
  }
  .wa-badge {
    animation: none;
  }
}
@media (max-width: 600px) {
  .wa-bubble {
    max-width: 220px;
  }
  .scroll-top {
    bottom: 100px;
  }
}

/* Ícones Font Awesome dentro de botões e textos */
.btn .icon {
  width: auto;
  height: auto;
  font-size: 1.25em;
  margin-right: 2px;
}
.btn-lg .icon {
  font-size: 1.35em;
}
/* ==========================================================================
   Hero → Destaque (mais avaliada) → Avaliações
   ========================================================================== */
/* Selo do hero vira atalho */
.hero-card-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 12px;
  padding: 8px 12px;
  border: 0;
  border-left: 3px solid var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.hero-card-link:hover { background: rgba(255, 255, 255, 0.18); }
.hero-card-link .hero-card-label { flex: 1; }
.hero-card-link .icon { rotate: 90deg; animation: rh-bob-y 1.2s ease-in-out infinite; }
@keyframes rh-bob-y { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }

/* Seção clara: contrasta com o hero azul */
.rating-highlight {
  --p: 100;
  position: relative;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 72px 0 0;
  overflow: hidden;
}
.rh-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rh-slash {
  position: absolute;
  top: -10%;
  bottom: -10%;
  background: var(--color-primary-soft);
  transform: skewX(-22deg);
  animation: slash-slide 13s ease-in-out infinite alternate;
}
.rh-slash.s1 { left: 4%; width: 70px; }
.rh-slash.s2 { right: 8%; width: 200px; opacity: 0.6; animation-delay: -6s; }

.rh-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}

/* Cartão da nota: azul escuro, sobe sobre a borda do hero */
.rh-score {
  --cut: 22px;
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 28px 24px;
  text-align: center;
  color: #fff;
  background: var(--color-dark-2);
  border-left: 5px solid var(--color-accent);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}
.rh-g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rh-g .icon { width: 28px; height: 28px; background: #fff; color: var(--color-dark-2); }
.rh-number {
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.8rem, 10vw, 6.8rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.rh-stars { display: flex; gap: 6px; margin: 8px 0 4px; }
.rh-stars span {
  display: inline-flex;
  color: #fbbc04;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.3, 1), opacity 0.4s ease;
  transition-delay: calc(var(--i) * 0.18s);
}
.rh-score small {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cfe0ff;
}

/* Texto (fundo claro) */
.rh-text { flex: 1 1 400px; min-width: 0; transition: opacity 0.7s ease 0.2s, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.rh-text h2 { margin: 6px 0 14px; color: var(--color-dark-2); }
.rh-text .text-primary {
  background-image: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
}
.rh-text p { max-width: 60ch; color: var(--color-muted); }
.rh-text .check-list li { color: var(--color-text); }
.rh-text .check-list .icon { color: var(--color-primary); }
.rh-text .check-list { margin-bottom: 26px; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Estrada entre o destaque e as avaliações */
.rh-lane { position: relative; z-index: 2; height: 84px; margin-top: 24px; }
.rh-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  translate: 0 -50%;
  background: repeating-linear-gradient(90deg, var(--color-primary) 0 28px, transparent 28px 52px);
  opacity: 0.35;
}
.rh-truck {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 1%);
  transform: translate(-100%, -100%);
  color: var(--color-primary);
}
.rh-truck .icon { filter: drop-shadow(0 4px 6px rgba(0, 30, 80, 0.3)); animation: bump 0.5s ease-in-out infinite; }
.rating-highlight.is-done .rh-truck .icon { animation-duration: 0.35s; }
.rating-highlight.is-leaving .rh-truck { animation: rh-exit 1.6s cubic-bezier(0.5, 0, 0.9, 0.6) forwards; }
@keyframes rh-exit {
  from { transform: translate(-100%, -100%); }
  to { transform: translate(260px, -100%); }
}

/* Botão que liga as duas seções (o caminhão passa por trás) */
.rh-chip {
  --cut: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px 11px 30px;
  border: 0;
  background: var(--color-dark-2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background var(--transition);
}
.rh-chip:hover { background: var(--color-primary); }
.rh-chip .icon { rotate: 90deg; color: var(--color-accent); animation: rh-bob-y 1.2s ease-in-out infinite; }
.rh-chip:hover .icon { color: #fff; }
.rating-highlight.is-done .rh-chip { animation: rh-pop 0.7s cubic-bezier(0.2, 1.6, 0.3, 1) 0.2s both; }
@keyframes rh-pop {
  0% { background: var(--color-accent); scale: 0.85; }
  60% { scale: 1.1; }
  100% { scale: 1; }
}

/* Estado inicial só com JS ativo (sem JS tudo aparece pronto) */
.rating-highlight.is-armed:not(.is-visible) .rh-stars span { opacity: 0.2; transform: scale(0.5) rotate(-14deg); }
.rating-highlight.is-armed:not(.is-visible) .rh-text { opacity: 0; translate: 0 26px; }
.rating-highlight.is-armed:not(.is-visible) .rh-score { opacity: 0; translate: 0 40px; }

/* Cartão sobrepõe a borda do hero (só em telas largas) */
@media (min-width: 901px) {
  .rh-score { margin-top: -110px; }
}

/* Chegada na seção de avaliações: faixa de luz varre a caixa do widget */
#avaliacoes.rv-arrive .rv-box { overflow: hidden; }
#avaliacoes.rv-arrive .rv-box::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -20%;
  width: 110px;
  z-index: 6;
  background: rgba(74, 163, 255, 0.28);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: rh-arrive 1.3s ease-out forwards;
}
@keyframes rh-arrive { to { left: 120%; } }

/* Destaque após clique em "Ler/Ver avaliações" */
#avaliacoes.rv-flash .rv-box { animation: rh-flash 1.4s ease-out; }
@keyframes rh-flash {
  0% { outline: 4px solid var(--color-accent); outline-offset: 6px; }
  100% { outline: 4px solid transparent; outline-offset: 14px; }
}

/* Responsivo */
@media (max-width: 900px) {
  .rating-highlight { padding-top: 56px; }
  .rh-inner { flex-direction: column; gap: 32px; text-align: center; }
  .rh-score { flex: 0 0 auto; width: min(320px, 100%); }
  .rh-text { flex: 0 0 auto; width: 100%; }
  .rh-text p { margin-inline: auto; }
  .rh-text .check-list { display: inline-flex; text-align: left; }
  .rh-actions { justify-content: center; }
   .rh-slash { animation: none; }
}
@media (max-width: 600px) {
  .rh-actions .btn { width: 100%; }
  .rh-truck .icon { --s: 24px; }
}

/* Alto contraste / reduzir animações */
.hc .rating-highlight { background: #000; border-block: 3px solid #ffd400; }
.hc .rh-score { border: 2px solid #fff; border-left-color: #ffd400; background: #000; }
.hc .rh-text h2 { color: #fff; }
.hc .rh-slash { display: none; }
.hc .rh-stars span, .hc .rh-chip .icon, .hc .rh-truck { color: #ffd400; }
.hc .rh-chip { background: #000; border: 2px solid #ffd400; }
.hc .rh-lane::before { background: repeating-linear-gradient(90deg, #ffd400 0 28px, transparent 28px 52px); opacity: 1; }
.hc .hero-card-link { color: #ffd400; border-left-color: #ffd400; background: #1a1a1a; }
html.reduce-motion .rh-slash, html.reduce-motion #avaliacoes .rv-box::after { display: none; }
@media (prefers-reduced-motion: reduce) { .rh-slash, #avaliacoes .rv-box::after { display: none; } }
/* Evita que as faixas inclinadas vazem para fora da tela */
.rating-highlight {
  overflow: hidden;
  overflow: clip;          /* corta de verdade, sem criar scroll */
}
.rh-bg {
  overflow: hidden;
  overflow: clip;
  contain: paint;          /* garante que nada pinte fora da caixa */
}

@media (max-width: 900px) {
  /* faixas menores e mais próximas da borda no mobile */
  .rh-slash {
    top: 0;
    bottom: 0;             /* sem o -10%, reduz o deslocamento da inclinação */
  }
  .rh-slash.s1 { left: -2%; width: 40px; }
  .rh-slash.s2 { right: 2%; width: 90px; }
}
.error-code { font-family: inherit; font-size: clamp(5rem, 18vw, 10rem); font-weight: 800; line-height: 1; color: var(--primary, #00357b); margin: 0 0 12px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
        .topbar-phone {
            position: relative;
        }

        .phone-qrcode {
            display: none;
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            z-index: 9999;

            width: 190px;
            padding: 12px;

            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 18px rgba(0, 0, 0, .18);

            text-align: center;
            color: #333;
        }

        .phone-qrcode img {
            display: block;
            width: 160px;
            height: 160px;
            margin: 0 auto 8px;
        }

        .phone-qrcode small {
            display: block;
            font-size: 12px;
        }

        @media (hover: hover) and (pointer: fine) {

            .topbar-phone:hover .phone-qrcode,
            .topbar-phone:focus-visible .phone-qrcode {
                display: block;
            }
        }
