/* ============================================
   LOTUS · LTS BRASIL · FICHAS TÉCNICAS
   Design System
   ============================================ */

:root {
  /* Cores · Identidade Lotus */
  --lotus-yellow: #FFE500;
  --lotus-yellow-soft: #FFEC4C;
  --lotus-black: #0A0A0A;
  --lotus-deep: #050505;
  --lotus-white: #FFFFFF;
  --lotus-grey-100: #F4F4F4;
  --lotus-grey-300: #B8B8B8;
  --lotus-grey-500: #6B6B6B;
  --lotus-grey-700: #2A2A2A;
  --lotus-grey-800: #161616;
  --lotus-grey-900: #0F0F0F;

  /* Tipografia */
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter Tight', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Espaço */
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(60px, 9vh, 120px);

  /* Transições */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.25s;
  --t-med: 0.5s;
  --t-slow: 0.9s;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--lotus-white);
  background: var(--lotus-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grão sutil global - textura da identidade ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
  max-width: 1800px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lotus-yellow);
  transition: opacity var(--t-fast) var(--ease);
}
.brand:hover { opacity: 0.8; }

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--lotus-white);
}

.topbar-nav {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 14px;
  color: var(--lotus-grey-300);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
}
.nav-link:hover { color: var(--lotus-white); border-color: rgba(255,255,255,0.12); }
.nav-link.active { color: var(--lotus-yellow); border-color: rgba(255,229,0,0.35); }

.topbar-meta { text-align: right; }
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lotus-grey-500);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.35) 45%, rgba(5,5,5,0.1) 65%, rgba(5,5,5,0.6) 100%),
    radial-gradient(ellipse at 80% 30%, rgba(255,229,0,0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 4vh, 56px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lotus-grey-300);
  animation: fadeUp 0.8s 0.2s var(--ease) backwards;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--lotus-yellow);
  box-shadow: 0 0 12px var(--lotus-yellow);
}

/* Espaço para logotipo do modelo */
.model-logo {
  min-height: 80px;
  display: flex;
  align-items: center;
  animation: fadeUp 0.8s 0.35s var(--ease) backwards;
}
.model-logo-placeholder {
  display: inline-flex;
  align-items: baseline;
}
.model-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 128px);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, var(--lotus-white) 0%, var(--lotus-grey-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Logotipo oficial do modelo (PNG transparente) */
.model-logo-img {
  height: clamp(56px, 8vw, 112px);
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,0.45));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 18ch;
  animation: fadeUp 0.8s 0.5s var(--ease) backwards;
}
.hero-title .t-line { display: block; }
.hero-title .t-line--accent { color: var(--lotus-yellow); font-style: italic; font-weight: 400; }

.hero-stats {
  padding-top: clamp(16px, 3vh, 32px);
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeUp 0.8s 0.65s var(--ease) backwards;
}

/* Layout flex aplicado tanto em .hero-stats diretos (sem variantes)
   quanto em .variant-stats (com variantes Emira/Eletre). */
.hero-stats:not([data-variant-content]),
.variant-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: clamp(16px, 3vw, 40px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lotus-white);
}
.stat-unit {
  font-family: var(--font-display);
  font-size: 0.45em;
  font-weight: 400;
  margin-left: 4px;
  color: var(--lotus-grey-300);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lotus-grey-500);
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  align-self: stretch;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lotus-grey-500);
  animation: fadeUp 0.8s 0.8s var(--ease) backwards;
}
.hero-scroll svg {
  animation: scrollArrow 2.2s var(--ease) infinite;
}
@keyframes scrollArrow {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SPECS
   ============================================ */
.specs {
  background: var(--lotus-deep);
  padding: var(--section-y) var(--gutter);
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  gap: clamp(40px, 7vh, 96px);
}

.spec-block {
  display: grid;
  gap: clamp(20px, 3vh, 36px);
}

.spec-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 24px;
  padding-bottom: 8px;
}
.spec-head--gallery { margin-bottom: clamp(20px, 3vh, 36px); }

.spec-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--lotus-yellow);
}

.spec-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--lotus-white);
}

.spec-line {
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 100%);
  align-self: end;
  margin-bottom: 12px;
}

/* Spec grid em duas colunas (desktop / iPad landscape) */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 0;
}
.spec-grid--single { grid-template-columns: 1fr; }

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: padding var(--t-fast) var(--ease);
}
.spec-row::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--lotus-yellow);
  transition: transform var(--t-fast) var(--ease);
  transform-origin: center;
}
.spec-row:hover::before { transform: translateY(-50%) scaleY(1); }
.spec-row:hover { padding-left: 8px; }

.spec-key {
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 15px);
  font-weight: 400;
  color: var(--lotus-grey-300);
  letter-spacing: 0;
}
.spec-val {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  color: var(--lotus-white);
  letter-spacing: -0.005em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Bloco duplo lado a lado */
.spec-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}

/* ============================================
   IMAGE BANDS
   ============================================ */
.image-band {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  aspect-ratio: 21 / 9;
}
.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.image-band:hover img { transform: scale(1.03); }

.image-band--full {
  aspect-ratio: 16 / 7;
}

/* ============================================
   VARIANT SELECTOR
   Seletor de variantes (Emira 2.0/3.5, Eletre 600/900)
   ============================================ */
.variant-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 640px;
  margin: 0;
  animation: fadeUp 0.8s 0.55s var(--ease) backwards;
}

.variant-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.variant-btn:hover {
  border-color: rgba(255, 229, 0, 0.4);
  background: rgba(20, 20, 20, 0.7);
}
.variant-btn.active {
  border-color: var(--lotus-yellow);
  background: rgba(20, 20, 20, 0.8);
}
.variant-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid var(--lotus-yellow);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(255, 229, 0, 0.15);
}

.variant-num {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--lotus-grey-500);
  align-self: center;
}
.variant-btn.active .variant-num { color: var(--lotus-yellow); }

.variant-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lotus-white);
  line-height: 1.1;
}
.variant-engine {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lotus-grey-300);
  margin-top: 4px;
}

/* Hidden por JS quando inativa */
.variant-stats[hidden] { display: none !important; }

/* Variante atual em destaque na linha de spec */
.spec-val[data-variant-val] {
  position: relative;
  transition: color 0.3s var(--ease);
}

/* ============================================
   HERO — Variação Light (Emira, fundo claro)
   ============================================ */
.hero--light .hero-vignette,
.hero-vignette--light {
  background:
    linear-gradient(to top, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.15) 40%, rgba(5,5,5,0) 65%, rgba(5,5,5,0.2) 100%),
    radial-gradient(ellipse at 80% 30%, rgba(255,229,0,0.06) 0%, transparent 50%);
}

/* Eyebrow / Title / Wordmark light (para hero com bg claro) */
.hero-eyebrow--light {
  color: var(--lotus-grey-300);
}

.hero-title--light .t-line { color: var(--lotus-white); }
.hero-title--light .t-line--accent { color: var(--lotus-yellow); }

.model-wordmark--light {
  background: linear-gradient(180deg, var(--lotus-white) 0%, var(--lotus-grey-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats--light { border-top-color: rgba(255,255,255,0.18); }

.hero-scroll--light { color: var(--lotus-grey-300); }

/* ============================================
   HERO — Variação Yellow (Eletre, fundo amarelo)
   ============================================ */
.hero--yellow .hero-vignette,
.hero-vignette--yellow {
  background:
    linear-gradient(to top, rgba(5,5,5,0.92) 0%, rgba(5,5,5,0.25) 45%, rgba(5,5,5,0.05) 70%, rgba(5,5,5,0.1) 100%);
}
.heritage {
  margin: clamp(20px, 4vh, 40px) 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: clamp(40px, 6vh, 72px) 0;
}

.heritage-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.heritage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lotus-yellow);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.heritage-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--lotus-yellow);
  box-shadow: 0 0 12px var(--lotus-yellow);
}

.heritage-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--lotus-white);
  margin-bottom: clamp(20px, 3vh, 28px);
  max-width: 24ch;
}
.heritage-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--lotus-yellow);
}

.heritage-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.6;
  color: var(--lotus-grey-300);
  max-width: 52ch;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.heritage-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.heritage-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.heritage-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lotus-grey-500);
}
.heritage-meta-value {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 500;
  color: var(--lotus-white);
  letter-spacing: -0.005em;
}

.heritage-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
  background: var(--lotus-grey-800);
}
.heritage-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.4);
}
.heritage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease);
}
.heritage-image:hover img { transform: scale(1.04); }

/* ============================================
   GALERIA — Editorial Mosaic
   ============================================ */
.gallery { display: grid; gap: clamp(20px, 3vh, 36px); }

/* Grid editorial: 12 colunas, alturas dinâmicas */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--lotus-grey-800);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
  filter: saturate(0.95);
}
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.05); }

/*
   Layout mosaico — 6 imagens em ritmo editorial
   linha 1: 7+5 (Fittipaldi assinatura horizontal | roda quadrada)
   linha 2: 4+4+4 (porta vertical | interior | volante)
   linha 3: full width (bancos panorâmica)
*/
.gi-1 { grid-column: span 7; grid-row: span 2; }  /* Fittipaldi - horizontal */
.gi-2 { grid-column: span 5; grid-row: span 2; }  /* Roda - quadrada/horizontal */
.gi-3 { grid-column: span 4; grid-row: span 3; }  /* Porta - vertical */
.gi-4 { grid-column: span 4; grid-row: span 3; }  /* Interior - horizontal */
.gi-5 { grid-column: span 4; grid-row: span 3; }  /* Volante - horizontal */
.gi-6 { grid-column: span 12; grid-row: span 2; } /* Bancos - panorâmica */

/* Layout galeria 5 imagens (Eletre)
   Linha 1: hero panorâmica (span 12)
   Linha 2: duas médias (span 6 + span 6)
   Linha 3: assimétrica (span 7 + span 5)
*/
.gallery-grid--five { grid-auto-rows: 160px; }
.gallery-grid--five .ge-hero    { grid-column: span 12; grid-row: span 3; }
.gallery-grid--five .ge-half-l  { grid-column: span 6;  grid-row: span 2; }
.gallery-grid--five .ge-half-r  { grid-column: span 6;  grid-row: span 2; }
.gallery-grid--five .ge-wide    { grid-column: span 7;  grid-row: span 2; }
.gallery-grid--five .ge-narrow  { grid-column: span 5;  grid-row: span 2; }

/* Caption editorial */
.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lotus-white);
  padding: 8px 12px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--lotus-black);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(40px, 6vh, 64px) var(--gutter);
}
.footer-inner {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--lotus-yellow);
}
.footer-wordmark {
  height: 28px;
  width: auto;
  display: block;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--lotus-white);
}
.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lotus-grey-500);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--lotus-grey-500);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--lotus-grey-500);
  text-align: right;
}

/* ============================================
   RESPONSIVE — iPad Portrait (820px e abaixo)
   ============================================ */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(28px, 5vw, 44px); }
  .model-wordmark { font-size: clamp(56px, 12vw, 100px); }
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: auto auto;
    gap: 16px;
    padding: 14px 20px;
  }
  .topbar-meta { display: none; }
  .topbar-nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    margin: 0 -20px;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }

  .hero {
    padding-top: 130px;
    padding-bottom: 40px;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-divider { display: none; }
  .stat { flex: 1 1 calc(50% - 10px); min-width: 130px; }

  .spec-grid { grid-template-columns: 1fr; column-gap: 0; }
  .spec-row-double { grid-template-columns: 1fr; gap: clamp(40px, 7vh, 80px); }

  .spec-head { gap: 16px; }

  /* Variant selector colapsa para 1 coluna no mobile */
  .variant-selector { grid-template-columns: 1fr; gap: 8px; }

  /* Heritage colapsa para 1 coluna */
  .heritage-inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vh, 40px);
  }
  .heritage-image { aspect-ratio: 16 / 10; order: -1; }
  .heritage-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  /* Galeria — mosaico colapsa para alturas maiores em 2 colunas */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 10px;
  }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6 {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
  .gi-1, .gi-4 { grid-column: span 2; aspect-ratio: 16 / 9; }

  /* Galeria 5 imagens (Eletre) no mobile */
  .gallery-grid--five .ge-hero,
  .gallery-grid--five .ge-half-l,
  .gallery-grid--five .ge-half-r,
  .gallery-grid--five .ge-wide,
  .gallery-grid--five .ge-narrow {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
  .gallery-grid--five .ge-hero { grid-column: span 2; aspect-ratio: 16 / 9; }

  .image-band { aspect-ratio: 16 / 10; }
  .image-band--full { aspect-ratio: 16 / 10; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .footer-brand { justify-content: center; }
  .footer-info { text-align: center; }
  .footer-meta { text-align: center; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .hero-stats { gap: 16px; padding-top: 20px; }
  .stat { flex: 1 1 100%; }
  .stat-value { font-size: 32px; }
  .heritage-meta { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6 {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }
  .gallery-grid--five .ge-hero,
  .gallery-grid--five .ge-half-l,
  .gallery-grid--five .ge-half-r,
  .gallery-grid--five .ge-wide,
  .gallery-grid--five .ge-narrow {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }
}

/* ============================================
   ANIMAÇÕES ON SCROLL (sutil)
   Aplicadas apenas quando JS está ativo (.js no <html>)
   ============================================ */
.js-ready .spec-block,
.js-ready .image-band,
.js-ready .gallery,
.js-ready .heritage {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-ready .spec-block.in-view,
.js-ready .image-band.in-view,
.js-ready .gallery.in-view,
.js-ready .heritage.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .spec-block,
  .js-ready .image-band,
  .js-ready .gallery,
  .js-ready .heritage {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print fallback */
@media print {
  body { background: white; color: black; }
  .topbar, .footer, .image-band, .gallery, .hero-scroll { display: none; }
  .hero { min-height: auto; }
}
