:root {
  --ink: #111a27;
  --navy: #0c2745;
  --navy-2: #071b31;
  --muted: #5d6673;
  --line: #dce2e8;
  --soft: #f4f6f8;
  --white: #fff;
  --shadow: 0 18px 42px rgba(14, 31, 52, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.container {
  width: min(1430px, calc(100% - 92px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 clamp(24px, 4vw, 48px);
  color: var(--white);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.38);
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.site-header.is-scrolled,
.site-header:focus-within {
  background: rgba(7, 27, 49, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(210px, 18vw, 340px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 12px rgba(0, 0, 0, 0.28));
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 4vw, 60px);
  font-size: 14px;
  font-weight: 800;
}

/* ─── Hamburger ─────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--white);
  z-index: 40;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav overlay ─────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(5, 17, 34, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 90px 32px 48px;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-nav-links a {
  display: block;
  padding: 18px 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover { color: rgba(255, 255, 255, 0.65); }

.mobile-nav-footer {
  margin-top: 36px;
}

.mobile-nav-footer .button {
  width: 100%;
  justify-content: center;
}

/* ─── Header CTA ("Tenho Interesse") ───────────────────────── */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(160px, 12vw, 210px);
  min-height: 40px;
  padding: 10px 22px;
  border-radius: 5px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, background 0.2s ease;
}

.site-header.is-scrolled .header-cta {
  opacity: 1;
  pointer-events: auto;
}

.header-cta:hover {
  background: #0a1e38;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #07111d;
  transition: opacity 0.72s ease, transform 1.2s ease;
}

.hero-media.is-changing {
  opacity: 0;
  transform: scale(1.015);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 7, 14, 0.7), rgba(0, 7, 14, 0.3) 34%, rgba(0, 7, 14, 0.28) 64%, rgba(0, 7, 14, 0.64)),
    linear-gradient(90deg, rgba(0, 7, 14, 0.28), transparent 28%, transparent 72%, rgba(0, 7, 14, 0.36));
}

.hero-content {
  position: absolute;
  bottom: clamp(76px, 9.5vh, 112px);
  left: clamp(42px, 3.4vw, 70px);
  z-index: 2;
  width: min(740px, 48vw);
  padding-top: 0;
  text-align: left;
  text-wrap: balance;
  transition: opacity 0.44s ease, transform 0.44s ease;
}

.hero-content.is-changing,
.hero-title-corner.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(58px, 5.2vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.48;
}

.hero-lead {
  max-width: 740px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(34px, 2.42vw, 46px);
  font-weight: 800;
  line-height: 1.14;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

.hero-lead span {
  display: block;
}

.hero-support {
  width: min(590px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(16px, 1.02vw, 19px);
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.54);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 228px;
  min-height: 58px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-actions .button {
  min-width: 166px;
  min-height: 48px;
  padding: 12px 24px;
}

.hero-actions .button-glass {
  min-width: 198px;
}

.hero-title-corner {
  position: absolute;
  top: clamp(118px, 13vh, 148px);
  right: clamp(52px, 4vw, 84px);
  z-index: 2;
  display: block;
  width: min(520px, 29vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.48));
  transition: opacity 0.44s ease, transform 0.44s ease;
}

.hero-title-corner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title-corner span {
  display: block;
  color: var(--white);
  font-size: clamp(48px, 4.6vw, 86px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: right;
  white-space: pre-line;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
}

.hero-title-corner [hidden] {
  display: none !important;
}

.hero-corner-cta {
  position: absolute;
  top: clamp(34px, 4.8vh, 58px);
  right: clamp(28px, 3.2vw, 62px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 5px;
  color: var(--white);
  background: rgba(4, 26, 84, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-corner-cta:hover {
  border-color: var(--white);
  background: #041A54;
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hero-dots .is-active {
  background: var(--white);
}

.solution {
  display: grid;
  grid-template-columns: 0.58fr 1fr;
  gap: 32px;
  padding-block: 42px 24px;
}

.solution-copy {
  min-height: 540px;
  padding: clamp(34px, 4.4vw, 54px);
  border-radius: 8px;
  background: linear-gradient(135deg, #f7f8fa, #fff);
}

.solution-copy h2 {
  max-width: 500px;
  margin-bottom: 18px;
  color: #192435;
  font-size: clamp(40px, 3.8vw, 58px);
  line-height: 1.08;
}

.solution-copy > p {
  max-width: 510px;
  margin-bottom: 42px;
  color: #4e5a6c;
  font-size: 17px;
  line-height: 1.55;
}

.solution-items {
  display: grid;
  gap: 26px;
}

.solution-items article,
.quick-grid article,
.aftersales-items article {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.solution-items article {
  max-width: 560px;
}

.solution-items h3 {
  margin-bottom: 4px;
  font-size: 19px;
  line-height: 1.24;
}

.solution-items p {
  color: #5f6b7b;
  font-size: 16px;
  line-height: 1.45;
}

.solution-items p,
.quick-grid p,
.aftersales p {
  margin: 0;
}

.line-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-capacity { background-image: url("Public/icons/maior capacidade.png"); }
.icon-tech     { background-image: url("Public/icons/Tecnologia embarcada.png"); }
.icon-comfort  { background-image: url("Public/icons/Conforto.png"); }
.icon-tag      { background-image: url("Public/icons/oferta.png"); }
.icon-truck    { background-image: url("Public/icons/Estoque Disponível.png"); }
.icon-headset  { background-image: url("Public/icons/Atendimento Rápido.png"); }
.icon-pin      { background-image: url("Public/icons/Rede Autorizada.png"); }
.icon-gear     { background-image: url("Public/icons/Peças Originais.png"); }
.icon-team     { background-image: url("Public/icons/Equipe Especializada.png"); }

.icon-team::after {
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 18px 18px 0 0;
}

.solution-mob-img {
  display: none;
}

.solution-actions {
  display: flex;
  align-items: center;
  margin-top: 46px;
  flex-wrap: wrap;
}

.quick-grid a::after {
  content: "  →";
}

.solution-image {
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.solution-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}

.vehicle-showcase {
  padding-block: 0 24px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.featured-grid.lower {
  margin-top: 22px;
}

.product-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe5eb;
  color: var(--white);
}

.card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-card:hover .card-media {
  transform: scale(1.04);
}

.product-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 24, 42, 0.12), rgba(8, 24, 42, 0.76));
}

.product-content {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  z-index: 2;
}

.product-kicker {
  display: block;
  margin-bottom: 120px;
  font-size: 13px;
  font-weight: 800;
}

.product-content h2 {
  margin-bottom: 4px;
  font-size: clamp(34px, 4vw, 50px);
}

.product-content p {
  width: min(370px, 100%);
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions .button {
  min-width: 160px;
  min-height: 42px;
}

.button-white {
  color: var(--ink);
  background: var(--white);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-block: 22px;
}

.quick-grid article {
  min-height: 145px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.quick-grid a {
  display: inline-block;
  margin-top: 16px;
  color: var(--navy);
  font-weight: 900;
}

.aftersales {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  margin-block: 0 26px;
  padding: 28px 36px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-2), #123457);
  border-radius: 8px;
}

.aftersales-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
}

.shield-icon {
  position: relative;
  width: 76px;
  height: 76px;
}

.shield-icon::before {
  position: absolute;
  inset: 5px 11px;
  content: "";
  border: 4px solid currentColor;
  border-radius: 36px 36px 42px 42px;
  clip-path: polygon(50% 0, 100% 22%, 88% 100%, 50% 86%, 12% 100%, 0 22%);
}

.aftersales-foton-logo {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.aftersales h2,
.aftersales h3,
.aftersales p {
  color: var(--white);
}

.aftersales h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.aftersales p {
  color: rgba(255, 255, 255, 0.82);
}

.aftersales-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aftersales-items article {
  min-height: 72px;
  padding-inline: 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
}

.about-strip {
  padding: 76px 0;
  text-align: center;
  background: var(--soft);
}

.about-strip .container {
  width: min(900px, calc(100% - 44px));
}

.button-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 28px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.button-whatsapp:hover {
  background: #1ebe59;
}

.site-footer {
  border-top: 0;
  color: var(--white);
  background: #041A54;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr 1fr;
  gap: clamp(36px, 7vw, 110px);
  width: min(1430px, calc(100% - 92px));
  margin-inline: auto;
  padding: 54px 0 44px;
}

.footer-logo {
  display: block;
  width: 150px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 6px;
}

.site-footer h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-address {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1430px, calc(100% - 92px));
  margin-inline: auto;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.vehicle-modal {
  width: min(1040px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vehicle-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.modal-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 28px;
}

.modal-media {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: var(--soft);
}

.image-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(7, 27, 49, 0.82), rgba(18, 52, 87, 0.62)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 14px, rgba(255, 255, 255, 0.02) 14px 28px);
}

.image-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 6px;
  background: rgba(7, 27, 49, 0.4);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.modal-content {
  display: grid;
  align-content: center;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.modal-specs div {
  padding: 12px;
  border-radius: 6px;
  background: var(--soft);
}

.modal-specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.modal-specs strong {
  display: block;
  margin-top: 3px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 40px, 1430px);
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    grid-template-columns: 44px 1fr 44px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .site-header::after {
    display: none;
  }

  .hero-content {
    left: clamp(32px, 4vw, 48px);
    width: min(680px, calc(100% - 64px));
  }

  .solution,
  .aftersales {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 36px 0 28px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .aftersales-main {
    grid-template-columns: auto 1fr;
  }

  .aftersales-main .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 66px;
    padding-inline: 18px;
  }

  .brand img {
    width: 210px;
    max-height: 54px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    position: absolute;
    bottom: 92px;
    left: 20px;
    width: calc(100% - 40px);
    padding-top: 0;
  }

  h1 {
    font-size: clamp(54px, 15vw, 78px);
  }

  .hero-title-corner {
    position: relative;
    top: auto;
    right: auto;
    width: min(520px, calc(100% - 40px));
    margin: 0 auto 20px;
    padding-top: 104px;
  }

  .hero-lead {
    font-size: 30px;
  }

  .hero-support {
    width: 100%;
    font-size: 16px;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .solution {
    padding-top: 24px;
  }

  .solution-mob-img {
    display: block;
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 32px;
    margin-bottom: 28px;
  }

  .solution-image {
    display: none;
  }

  .solution-copy,
  .solution-image img {
    min-height: auto;
  }

  .solution-actions,
  .card-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 0;
  }

  .featured-grid,
  .quick-grid,
  .aftersales-items,
  .modal-hero,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 320px;
  }

  .product-kicker {
    margin-bottom: 80px;
  }

  .quick-grid article,
  .aftersales {
    padding: 24px;
  }

  .aftersales-main {
    grid-template-columns: 1fr;
  }

  .aftersales-main .button {
    grid-column: auto;
  }

  .aftersales-items article {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }
}
