/* ============================================================
   P3 AUTOMÁTICOS — Landing Page
   Dark premium · preto/grafite + vermelho automotivo
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --surface: #15151a;
  --surface-2: #191920;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --muted: #a3a7b0;
  --muted-dark: #6d717a;

  --accent: #e10600;
  --accent-hover: #ff2016;
  --accent-dark: #b30500;
  --wa: #22bd5a;

  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section {
  padding-block: clamp(76px, 11vw, 132px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.kicker--center {
  justify-content: center;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

h2 span,
.hero__title span {
  color: var(--accent-hover);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .kicker--center {
  display: inline-flex;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.25s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  will-change: transform;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(225, 6, 0, 0.55);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(225, 6, 0, 0.65);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--primary:active {
  background: var(--accent-dark);
  transform: translateY(0);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 20px 44px;
  font-size: 1.2rem;
  border-radius: 12px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.header.is-scrolled {
  background: rgba(11, 11, 13, 0.88);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.header__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.header__name em {
  font-style: normal;
  color: var(--accent-hover);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
}

.header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 60% 50% at 78% 42%, rgba(225, 6, 0, 0.09), transparent 65%),
    linear-gradient(180deg, #0d0d10 0%, var(--bg) 100%);
  overflow: clip;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero__title {
  font-size: clamp(3.1rem, 7.4vw, 5.6rem);
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 33rem;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
}

.hero__badges svg {
  color: var(--accent-hover);
  flex-shrink: 0;
}

.hero__visual {
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.transmission {
  width: 100%;
  height: auto;
}

.transmission__labels text,
.transmission__dim text {
  text-transform: uppercase;
}

@keyframes gear-rotate {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  transform-box: view-box;
  transform-origin: center;
  animation: gear-rotate 90s linear infinite;
}

.spin--sun {
  transform-origin: 300px 300px;
  animation-duration: 26s;
  animation-direction: reverse;
}

.spin--planet {
  animation-duration: 48s;
  animation-direction: reverse;
}

/* ---------- Sintomas ---------- */
.symptoms {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.symptoms__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 56px) clamp(48px, 6vw, 88px);
}

.symptom {
  border-left: 2px solid #232329;
  padding-left: clamp(20px, 2.5vw, 30px);
  transition: border-color 0.35s var(--ease);
}

.symptom:hover {
  border-color: var(--accent);
}

.symptom__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 18px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.symptom__icon svg {
  width: 24px;
  height: 24px;
}

.symptom:hover .symptom__icon {
  color: var(--accent-hover);
  border-color: rgba(225, 6, 0, 0.4);
}

.symptom h3 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.symptom p {
  color: var(--muted);
  max-width: 26rem;
}

.symptoms__cta {
  margin-top: clamp(52px, 7vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 26px;
  padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background:
    linear-gradient(100deg, rgba(225, 6, 0, 0.13), rgba(225, 6, 0, 0.02) 55%, transparent);
}

.symptoms__warning {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.08;
  max-width: 22ch;
}

/* ---------- Serviços ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(36px, 4vw, 48px);
}

.service {
  position: relative;
  padding-top: 34px;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--accent);
  transition: width 0.45s var(--ease);
}

.service:hover::before {
  width: 100%;
}

.service__num {
  position: absolute;
  top: 30px;
  right: 0;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #2b2b32;
  pointer-events: none;
}

.service__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  margin-bottom: 22px;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.service__icon svg {
  width: 30px;
  height: 30px;
}

.service:hover .service__icon {
  color: var(--accent-hover);
  border-color: rgba(225, 6, 0, 0.45);
}

.service h3 {
  font-size: 1.9rem;
  margin-bottom: 10px;
}

.service p {
  color: var(--muted);
  margin-bottom: 20px;
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.service__link svg {
  transition: transform 0.25s var(--ease);
}

.service__link:hover {
  color: var(--accent-hover);
}

.service__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Especialistas (imagem 1) ---------- */
.specialist {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  overflow: clip;
}

.specialist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.specialist__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--border);
}

.specialist__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.specialist__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.specialist__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.specialist__content p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
  max-width: 30rem;
}

.specialist__content p + p {
  margin-top: 12px;
}

.specialist__content .btn {
  margin-top: 32px;
}

/* ---------- Sinais do câmbio (imagem 2) ---------- */
.warning {
  background:
    radial-gradient(ellipse 50% 60% at 85% 50%, rgba(225, 6, 0, 0.06), transparent 70%),
    linear-gradient(180deg, #0e0e12 0%, var(--bg-2) 100%);
  overflow: clip;
}

.warning__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.warning__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.warning__content p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
  max-width: 30rem;
}

.warning__content p + p {
  margin-top: 12px;
}

.warning__cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text);
  margin-top: 24px;
  letter-spacing: 0.01em;
}

.warning__content .btn {
  margin-top: 24px;
}

.warning__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--border);
}

.warning__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.warning__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Autoridade ---------- */
.authority {
  position: relative;
  background:
    radial-gradient(ellipse 55% 65% at 50% 115%, rgba(225, 6, 0, 0.14), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.016) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, var(--bg-2), #0c0c0f);
  border-block: 1px solid var(--border);
  overflow: clip;
}

.authority__inner {
  max-width: 800px;
}

.authority__text {
  text-align: center;
}

.authority__text p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
  line-height: 1.85;
  max-width: 44rem;
  margin-inline: auto;
}

.authority__text p + p {
  margin-top: 18px;
}

.authority__text .btn {
  margin-top: 38px;
}

/* ---------- Como funciona ---------- */
.steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(40px, 5vw, 56px);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 10px;
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 4.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px #33333b;
  margin-bottom: 16px;
  transition: -webkit-text-stroke-color 0.35s var(--ease), color 0.35s var(--ease);
}

.step:hover .step__num {
  -webkit-text-stroke-color: var(--accent);
}

.step h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  max-width: 24rem;
}

/* ---------- Formulário ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.form {
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 22px;
  padding: clamp(26px, 5vw, 48px);
  background: linear-gradient(160deg, var(--surface), #111116);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form__field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form__optional {
  color: var(--muted-dark);
  font-weight: 400;
}

.form__field input,
.form__field textarea {
  width: 100%;
  background: #0e0e12;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.form__field ::placeholder {
  color: #585c65;
}

.form__field input:focus-visible,
.form__field textarea:focus-visible {
  outline: none;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.18);
}

.form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.form__error {
  color: #ff7a70;
  font-size: 0.86rem;
  margin-top: 7px;
}

.form__field.has-error input,
.form__field.has-error textarea {
  border-color: #ff7a70;
  box-shadow: 0 0 0 3px rgba(255, 122, 112, 0.14);
}

.form__submit {
  justify-self: start;
}

.form__note {
  color: var(--muted-dark);
  font-size: 0.85rem;
}

/* ---------- Localização ---------- */
.location {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.location__info .section__head {
  margin-bottom: 32px;
}

.location__address {
  display: flex;
  gap: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 30px;
}

.location__address svg {
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 4px;
}

.location__address strong {
  color: var(--text);
  font-size: 1.1rem;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  aspect-ratio: 5 / 4;
  border: 0;
  filter: grayscale(1) invert(0.91) contrast(0.86) brightness(0.92);
}

/* ---------- CTA final ---------- */
.final-cta {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 65% 80% at 50% 130%, rgba(225, 6, 0, 0.17), transparent 68%),
    var(--bg);
  overflow: clip;
}

.final-cta h2 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 22px;
}

.final-cta__text {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  max-width: 36rem;
  margin: 0 auto 42px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: #09090b;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(28px, 4vw, 44px);
}

.footer__logo {
  width: auto;
  height: 40px;
  object-fit: contain;
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  max-width: 28ch;
  margin-bottom: 14px;
}

.footer__address {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  font-style: normal;
}

.footer__nav h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--text);
}

.footer__nav ul {
  display: grid;
  gap: 8px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.25s var(--ease);
}

.footer__nav a svg {
  opacity: 0.6;
  transition: opacity 0.25s var(--ease);
}

.footer__nav a:hover {
  color: var(--accent-hover);
}

.footer__nav a:hover svg {
  opacity: 1;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 16px;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: var(--muted-dark);
}

.footer__dev {
  font-size: 0.72rem;
}

.footer__heart {
  color: var(--accent);
}

.footer__dev-link {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer__dev-link:hover {
  color: var(--text);
}

.footer__dev-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 700px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer__nav a {
    font-size: 0.84rem;
  }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 32px -8px rgba(34, 189, 90, 0.55);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px -8px rgba(34, 189, 90, 0.7);
}

.whatsapp-float:active {
  transform: scale(0.97);
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 12px 32px -8px rgba(34, 189, 90, 0.55), 0 0 0 0 rgba(34, 189, 90, 0.45);
  }
  70% {
    box-shadow: 0 12px 32px -8px rgba(34, 189, 90, 0.55), 0 0 0 16px rgba(34, 189, 90, 0);
  }
  100% {
    box-shadow: 0 12px 32px -8px rgba(34, 189, 90, 0.55), 0 0 0 0 rgba(34, 189, 90, 0);
  }
}

.whatsapp-float {
  animation: wa-pulse 2.8s ease-out infinite;
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

html.js .reveal[data-delay="1"] { --d: 1; }
html.js .reveal[data-delay="2"] { --d: 2; }
html.js .reveal[data-delay="3"] { --d: 3; }
html.js .reveal[data-delay="4"] { --d: 4; }
html.js .reveal[data-delay="5"] { --d: 5; }

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Variante: fade-in (sem deslocamento) */
html.js .reveal--fade {
  transform: none;
}

/* Variante: deslocamento lateral da esquerda */
html.js .reveal--left {
  transform: translateX(-30px);
}

/* Variante: deslocamento lateral da direita */
html.js .reveal--right {
  transform: translateX(30px);
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  :root {
    --header-h: 68px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__badges {
    justify-content: center;
  }

  .hero__visual {
    justify-self: center;
    max-width: 430px;
  }

  .location__inner {
    grid-template-columns: 1fr;
  }

  .specialist__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .specialist__media img {
    max-height: 360px;
  }

  .warning__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .warning__media img {
    max-height: 360px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 900px) {
  .header__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px clamp(20px, 5vw, 48px) 32px;
    background: rgba(11, 11, 13, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
      visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .symptoms__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .symptoms__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .symptoms__warning {
    max-width: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .btn {
    width: auto;
  }

  .hero__actions .btn,
  .location__actions .btn,
  .form__submit,
  .final-cta .btn--lg {
    flex: 1 1 100%;
    width: 100%;
  }

  .final-cta .btn--lg {
    max-width: 380px;
    margin-inline: auto;
  }

  .header__name {
    display: none;
  }

  .service__num {
    display: none;
  }

  .specialist__inner {
    gap: 32px;
  }

  .specialist__media img {
    max-height: 280px;
    min-height: 220px;
  }

  .warning__inner {
    gap: 32px;
  }

  .warning__media img {
    max-height: 280px;
    min-height: 220px;
  }

  .warning__cta-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.7rem, 12vw, 3.4rem);
  }

  .hero__visual {
    max-width: 330px;
  }

  .transmission__labels,
  .transmission__dim {
    display: none;
  }

  .specialist__media img,
  .warning__media img {
    min-height: 200px;
    max-height: 240px;
  }

  .specialist__content h2,
  .warning__content h2 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
