/* ============================================================
   RAMPENHA AUTOMÓVEIS — CSS Global
   Clean Light · Montserrat + Playfair + Inter · Dourado Escuro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --preto:      #2C2416;  /* grafite quente — usado em textos e fundos de contraste */
  --escuro:     #f0ede8;
  --cinza:      #f6f4f0;
  --cinza2:     #ede9e3;
  --borda:      #E0DBD2;
  --borda2:     #CCC5B9;
  --am:         #8B6914;
  --am2:        #A07820;
  --am-s:       rgba(139,105,20,0.08);
  --branco:     #2C2416;
  --bpuro:      #1a1a1a;
  --ct: #444444;
  --cc:         #555;
  --cl:         #333;
  --verde:      #16a34a;
  --alerta:     #d97706;
  --vermelho:   #dc2626;
  --azul:       #2563eb;
  --fundo:      #F6F4F0;
  --fundo-card: #FFFFFF;
  --font-d:     'Playfair Display', Georgia, serif;
  --font-c:     'Montserrat', sans-serif;
  --font-b:     'Inter', system-ui, sans-serif;
  --nav-h: 80px;
  --t:          0.2s ease;
  --focus-ring: 0 0 0 3px rgba(139,105,20,0.45);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--fundo);
  color: var(--preto);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-b); border: none; }
input, select, textarea { font-family: var(--font-b); }

/* ── ACESSIBILIDADE — FOCUS VISIBLE ── */
/* Focus ring dourado para todos os interactivos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
.vc:focus-visible {
  outline: 3px solid var(--am);
  outline-offset: 2px;
  box-shadow: var(--focus-ring);
}
/* Cards com focus igual ao hover */
.vc:focus-visible {
  border-color: var(--am);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), var(--focus-ring);
  transform: translateY(-3px);
}
/* Remover outline feio no click (manter apenas para teclado) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: var(--preto); color: #fff;
  padding: 12px 24px;
  font-family: var(--font-c); font-size: 14px; font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--am);
  outline-offset: 2px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .vc:hover, .vc:focus-visible { transform: none; }
  .vc:hover .vc-iw img { transform: none; }
  .btn-pt:hover { transform: none; }
}

/* ── SCREEN READER ONLY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Garantir fundo claro em todos os inputs e selects do site */
input:not([type=range]):not([type=checkbox]):not([type=radio]),
select, textarea {
  background-color: #F6F4F0;
  color: #2C2416;
  border-color: #E0DBD2;
}
/* Selects — forçar aparência clara em todos os browsers */
select {
  background-color: #F6F4F0 !important;
  color: #2C2416 !important;
  border: 1px solid #E0DBD2;
  appearance: auto;
  -webkit-appearance: auto;
}
select option {
  background-color: #FFFFFF !important;
  color: #2C2416 !important;
}
select:focus {
  background-color: #FFFFFF !important;
  color: #2C2416 !important;
  outline: none;
  border-color: #8B6914;
}
input:focus, select:focus, textarea:focus {
  background-color: #fff;
  outline: 2px solid var(--am);
  outline-offset: 1px;
  border-color: var(--am);
}
select option { background-color: #FFFFFF !important; color: #2C2416 !important; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borda);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px;
  transition: box-shadow var(--t), border-color var(--t);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-bottom-color: var(--am);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.logo-wrap {
  background: var(--preto);
  padding: 5px 8px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 44px; width: auto; object-fit: contain; }
.logo-full-img { height: 66px; width: auto; object-fit: contain; max-width: 340px; }
.logo-txt  { display: flex; flex-direction: column; }
.logo-nome {
  font-family: var(--font-c);
  font-size: 18px; font-weight: 800;
  color: var(--preto); letter-spacing: -0.3px; line-height: 1;
}
.logo-sub {
  font-family: var(--font-c);
  font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--ct); margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--font-c);
  font-size: 13px; font-weight: 600;
  color: #444; letter-spacing: 0.3px;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--am); }
.nav-links a.pg  { color: var(--am); font-weight: 700; }
.nav-cta {
  background: var(--preto) !important;
  color: #fff !important;
  padding: 10px 22px;
  font-family: var(--font-c);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 6px;
  transition: background var(--t) !important;
}
.nav-cta:hover { background: var(--am) !important; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--preto); border-radius: 2px;
}
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 2px solid var(--am);
  flex-direction: column; z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.nav-mobile.aberto { display: flex; }
.nav-mobile a {
  padding: 16px 32px;
  font-family: var(--font-c); font-size: 14px; font-weight: 600;
  color: #333; border-bottom: 1px solid var(--borda);
  transition: background var(--t), color var(--t);
}
.nav-mobile a:hover { background: var(--cinza); color: var(--am); }
.nav-back {
  font-family: var(--font-c); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #444;
  transition: color var(--t);
}
.nav-back:hover { color: var(--am); }

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-c); font-weight: 700;
  font-size: 13px; letter-spacing: 0.5px;
  padding: 12px 26px; border-radius: 7px;
  transition: all var(--t);
}
.btn-am  { background: var(--preto); color: #fff; }
.btn-am:hover  { background: var(--am); }
.btn-out { background: transparent; color: var(--preto); border: 2px solid var(--borda2); }
.btn-out:hover { border-color: var(--am); color: var(--am); }
.btn-sm  { padding: 8px 16px; font-size: 11px; border-radius: 5px; }

/* ── LABELS DE SECÇÃO ── */
.sec-pre {
  font-family: var(--font-c); font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--am); margin-bottom: 10px;
}
.sec-tit {
  font-family: var(--font-d);
  font-size: clamp(30px, 4vw, 48px);
  color: var(--preto); line-height: 1.05; margin-bottom: 48px;
}

/* ── CARDS DE VIATURA ── */
.vc {
  background: var(--fundo-card);
  border: 1px solid var(--borda);
  border-radius: 10px;
  overflow: hidden; cursor: pointer;
  transition: all 0.25s; position: relative;
}
.vc:hover {
  border-color: var(--am);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}
.vc-iw { position: relative; height: 200px; overflow: hidden; background: var(--cinza); }
.vc-iw img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.vc:hover .vc-iw img { transform: scale(1.04); }
.vc-img-i {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; opacity: 0.12; background: var(--cinza2);
}
.vc-bads { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.bd {
  font-family: var(--font-c); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.bd-d    { background: #dcfce7; color: #15803d; }
.bd-r    { background: #fef3c7; color: #d97706; }
.bd-t    { background: var(--preto); color: #fff; }
.bd-n    { background: #eff6ff; color: #1d4ed8; }
.bd-star { background: var(--am); color: #fff; }
.vc-ptag {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--preto); color: #fff;
  font-family: var(--font-d); font-size: 20px;
  padding: 6px 14px; border-radius: 6px;
}
.vc-body { padding: 18px; }
.vc-marca {
  font-family: var(--font-c); font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ct); margin-bottom: 3px;
}
.vc-modelo {
  font-family: var(--font-d); font-size: 22px;
  color: var(--preto); line-height: 1;
}
.vc-versao { font-size: 12px; color: var(--ct); margin-bottom: 14px; margin-top: 2px; }
.vc-specs {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda);
  margin-bottom: 12px;
}
.vcs { text-align: center; }
.vcs-v { font-family: var(--font-c); font-size: 13px; font-weight: 700; color: var(--preto); }
.vcs-k { font-size: 9px; color: var(--ct); margin-top: 2px; text-transform: uppercase; letter-spacing: 1px; }
.vc-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vc-ref {
  font-family: var(--font-c); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--ct);
  background: var(--cinza); padding: 3px 8px; border-radius: 4px;
}
.vc-btn {
  background: var(--preto); color: #fff;
  font-family: var(--font-c); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 5px; border: none;
  cursor: pointer; transition: background var(--t);
}
.vc-btn:hover { background: var(--am); }

/* ── CTA BAND ── */
.cta-band {
  background: #2C2416; padding: 64px 56px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.cta-t {
  font-family: var(--font-d); font-size: clamp(28px, 3.5vw, 44px);
  color: #fff; line-height: 1.1; margin-bottom: 10px;
}
.cta-s { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.cta-ac { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn-pt {
  display: flex; align-items: center; gap: 8px;
  background: var(--am); color: #fff;
  padding: 14px 28px; font-family: var(--font-c);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  border-radius: 7px; text-decoration: none; white-space: nowrap;
  transition: all var(--t);
}
.btn-pt:hover { background: var(--am2); transform: translateY(-2px); }
.btn-op {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85);
  padding: 14px 28px; font-family: var(--font-c);
  font-size: 13px; font-weight: 600;
  border-radius: 7px; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--t);
}
.btn-op:hover { background: rgba(255,255,255,0.14); }

/* ── PLATAFORMAS BAR ── */
.plat-bar {
  background: #2C2416; border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 12px 56px; display: flex; align-items: center; gap: 20px; overflow-x: auto;
}
.plat-lbl {
  font-family: var(--font-c); font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); white-space: nowrap; flex-shrink: 0;
}
.plat-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.plat-lista { display: flex; gap: 14px; }
.plat-item {
  font-family: var(--font-c); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: rgba(255,255,255,0.45); white-space: nowrap;
}

/* ── FOOTER ── */
.footer { background: #2C2416; padding: 64px 56px 32px; color: rgba(255,255,255,0.6); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 24px;
}
.ft-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ft-logo-img-wrap { background: rgba(255,255,255,0.06); padding: 4px 8px; flex-shrink: 0; }
.ft-logo-img { height: 32px; width: auto; }
.ft-logo-nome { font-family: var(--font-c); font-size: 17px; font-weight: 800; color: #fff; }
.ft-logo-nome span { color: var(--am); }
.ft-desc { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-tag {
  font-family: var(--font-c); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.1);
  padding: 3px 8px; border-radius: 3px;
}
.ft-col-titulo {
  font-family: var(--font-c); font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 18px;
}
.ft-links { display: flex; flex-direction: column; gap: 10px; }
.ft-links a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color var(--t); }
.ft-links a:hover { color: var(--am); }
.footer-btm {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.ft-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.ft-arb  { font-size: 12px; color: rgba(255,255,255,0.3); }
.ft-arb a { color: var(--am); }

/* ── PÁGINA HEADER ── */
.pg-hdr {
  padding: calc(var(--nav-h) + 56px) 56px 48px;
  background: #fff; border-bottom: 2px solid var(--am);
  position: relative; overflow: hidden;
}
.pg-hdr::before {
  content: attr(data-titulo);
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-d); font-size: 180px;
  color: rgba(0,0,0,0.025); pointer-events: none; white-space: nowrap;
}
.ph-pre {
  font-family: var(--font-c); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--am); margin-bottom: 10px;
}
.ph-tit {
  font-family: var(--font-d); font-size: clamp(48px, 7vw, 80px);
  color: var(--preto); line-height: 0.9;
}

/* ── ANIMAÇÕES ── */
.a1 { animation: fadeUp .6s .1s both; }
.a2 { animation: fadeUp .6s .2s both; }
.a3 { animation: fadeUp .6s .3s both; }
.a4 { animation: fadeUp .6s .4s both; }
.a5 { animation: fadeUp .6s .5s both; }
.a6 { animation: fadeUp .6s .6s both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 24px; }
  .cta-ac { align-items: flex-start; }
  .footer { padding: 48px 24px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pg-hdr { padding: calc(var(--nav-h) + 32px) 24px 32px; }
  .plat-bar { padding: 12px 24px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .vc-specs { grid-template-columns: repeat(2,1fr); }
}

.vc-preco-row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px;margin:8px 0 10px;}
.vc-preco-val{font-family:var(--font-d);font-size:20px;font-weight:700;color:var(--texto);line-height:1;}
.vc-iva-tag{font-family:var(--font-c);font-size:10px;font-weight:800;letter-spacing:1px;color:#fff;background:#d97706;border:none;padding:2px 7px;border-radius:3px;vertical-align:middle;margin-left:4px;}
.vc-mensal{font-family:var(--font-c);font-size:11px;font-weight:700;letter-spacing:0.5px;color:#8B6914;background:rgba(139,105,20,.08);border:1px solid rgba(139,105,20,.2);padding:3px 8px;border-radius:4px;white-space:nowrap;}

/* Prevenir tema escuro do sistema operativo nos selects */
@media (prefers-color-scheme: dark) {
  select, select option, select option:checked {
    background-color: #F6F4F0 !important;
    color: #2C2416 !important;
  }
  input:not([type=range]):not([type=checkbox]):not([type=radio]) {
    background-color: #F6F4F0 !important;
    color: #2C2416 !important;
  }
}
