/* =========================================================
   Millenio Auto v1 (clean/premium)
   - Compatível com tokens antigos + novos
   ========================================================= */

:root {
  /* Brand tokens (antigos) */
  --brand-primary: #0b5fff;
  /* azul */
  --brand-accent: #ffcc00;
  /* amarelo */

  /* Map para tokens novos */
  --primary: var(--brand-primary);
  --accent: var(--brand-accent);
  --container: var(--max);

  /* Neutros (suaves) */
  --bg: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;

  /* Bordas e sombras */
  --border: #e6e6e6;
  --shadow: 0 10px 24px rgba(2, 6, 23, .08);

  /* Rounds */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius: var(--radius-md);

  /* Interação */
  --focus: 0 0 0 4px rgba(11, 95, 255, .18);
}

/* ── Overscroll fix ── */
html {
  overscroll-behavior: none;
  background: #0b2e6e;
  /* cor do footer = fundo que aparece no bounce inferior */
}

/* Fundo geral levemente mais premium */
body {
  color: var(--text);
  overscroll-behavior: none;
  min-height: 100vh;
  height: auto;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 1000px 320px at 10% 0%, rgba(11, 95, 255, .08), transparent 55%),
    radial-gradient(ellipse 900px 300px at 90% 10%, rgba(255, 204, 0, .10), transparent 55%);
}

/* Header */
.topbar {
  position: relative;
  background: linear-gradient(135deg, #0b2e6e 0%, #0f3d91 50%, #1a56c4 100%);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--brand-accent);
}

/* Extensão para cobrir overscroll no topo */
.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: #0b2e6e;
  pointer-events: none;
}

.brand {
  color: #fff;
}

.nav a {
  color: rgba(255, 255, 255, .85);
}

.nav a:hover {
  text-decoration: none;
  color: #fff;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-accent), transparent 85%);
  opacity: 0;
  transform: translateY(2px);
  transition: .18s ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Active state (novo, sem quebrar) */
.nav a.is-active {
  background: rgba(255, 204, 0, .10);
  border: 1px solid rgba(255, 204, 0, .22);
  opacity: 1;
}

/* Hero */
.hero__content {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 95, 255, .15);
  background-color: #f8fafc;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 255, 0.9) 100%),
    url('/assets/img/fundo-hero.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 24px rgba(11, 95, 255, 0.08);
  color: var(--text);
}

.hero__title {
  color: #0b2e6e;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.hero__subtitle {
  color: var(--muted);
}

/* Chips Premium no Hero (Claros) */
.hero__content .chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 95, 255, 0.15);
  color: #0b2e6e;
  backdrop-filter: blur(4px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero__content .chip:hover {
  background: #fff;
  border-color: rgba(11, 95, 255, 0.35);
}

/* Hero Search Card */
.hero__card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 95, 255, .12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(11, 95, 255, 0.06);
  transition: box-shadow 0.25s ease;
}

.hero__card:hover {
  box-shadow: 0 14px 40px rgba(11, 95, 255, .12);
}

/* Chips globais (fallback) */
.chip {
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
}

.chip:hover {
  border-color: rgba(11, 95, 255, .28);
}

/* ── Botões ── */
.btn--primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  box-shadow: 0 10px 22px rgba(11, 95, 255, .18);
  transition: var(--transition);
}

.btn--primary:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(11, 95, 255, .22);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(11, 95, 255, .16);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid rgba(11, 95, 255, .40);
  border-radius: 12px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: none;
  transition: var(--transition);
}

.btn--ghost:hover {
  background: rgba(11, 95, 255, .06);
  border-color: rgba(11, 95, 255, .55);
  transform: translateY(-1px);
}

.btn--ghost:active {
  transform: translateY(0);
  background: rgba(11, 95, 255, .10);
}

/* ── Labels de formulário ── */
.form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.form .hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Inputs, Textareas & Selects ── */
input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: #cbd5e1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(11, 95, 255, .55);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
}

/* Inputs ocultos e hidden não recebem estilo */
input[type="hidden"] {
  display: none;
}

/* File input */
input[type="file"] {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

/* ── Selects / Dropdowns customizados ── */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b5fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ── Checkbox customizado ── */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  vertical-align: middle;
  position: relative;
}

input[type="checkbox"]:hover {
  border-color: rgba(11, 95, 255, .40);
}

input[type="checkbox"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
  border-color: rgba(11, 95, 255, .55);
}

/* ── Radio Button customizado ── */
input[type="radio"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
  vertical-align: middle;
  position: relative;
}

input[type="radio"]:hover {
  border-color: rgba(11, 95, 255, .40);
}

input[type="radio"]:checked {
  border-color: var(--brand-primary);
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Ccircle cx='5' cy='5' r='5' fill='%230b5fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

input[type="radio"]:focus {
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
  border-color: rgba(11, 95, 255, .55);
}

/* ── Toggle Switch ── */
input[type="checkbox"].toggle {
  width: 44px;
  height: 24px;
  min-width: 44px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  background: #e5e7eb;
  background-image: none;
  cursor: pointer;
  position: relative;
  transition: background .25s ease, border-color .25s ease;
}

input[type="checkbox"].toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  transition: transform .25s ease;
}

input[type="checkbox"].toggle:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  background-image: none;
}

input[type="checkbox"].toggle:checked::after {
  transform: translateX(20px);
}

input[type="checkbox"].toggle:focus {
  box-shadow: 0 0 0 4px rgba(11, 95, 255, .12);
}

/* ── Estados de erro ── */
input.is-error,
textarea.is-error,
select.is-error {
  border-color: var(--danger);
}

input.is-error:focus,
textarea.is-error:focus,
select.is-error:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(176, 0, 32, .12);
}

/* ── Alertas de formulário (refinados) ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.alert.ok {
  background: rgba(26, 127, 55, .08);
  color: var(--success);
  border: 1px solid rgba(26, 127, 55, .20);
}

.alert.err {
  background: rgba(176, 0, 32, .06);
  color: var(--danger);
  border: 1px solid rgba(176, 0, 32, .18);
}

/* Cards */
.card,
.vehicle-card {
  border-color: rgba(15, 23, 42, .08);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
}

.card:hover,
.vehicle-card:hover {
  box-shadow: 0 18px 40px rgba(2, 6, 23, .10);
}

/* Trust headings */
.trust__item h3 {
  position: relative;
}

.trust__item h3::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  background: var(--brand-accent);
  border-radius: 99px;
  opacity: .9;
}

/* WhatsApp: mantém identidade */
.wa-float {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .25);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  z-index: 9999;
}

.wa-float:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 140, 126, .35);
  color: #fff;
  text-decoration: none;
}

.wa-float svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .wa-float__text {
    display: none;
  }

  .wa-float {
    padding: 14px;
  }
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #071a40 0%, #0a2155 40%, #0b2e6e 100%);
  color: rgba(255, 255, 255, .75);
}

.footer__name {
  color: #fff;
}

.footer__heading {
  color: var(--brand-accent);
}

.footer__list a {
  color: rgba(255, 255, 255, .65);
}

.footer__list a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__info {
  color: rgba(255, 255, 255, .7);
}

.footer__icon {
  color: var(--brand-accent);
}

.footer__social-link {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
}

.footer__social-link:hover {
  background: var(--brand-accent);
  color: #0b2e6e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 197, 24, .25);
}

.footer__bottom {
  border-top-color: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .45);
}

/* ── Página de Contato ── */
.contact-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(11, 46, 110, 0.03) 0%, rgba(15, 61, 145, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.contact-hero__title {
  color: var(--brand-primary-dark, #0b2e6e);
  font-size: 2.5rem;
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

.contact-hero__subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-item__icon {
  width: 50px;
  height: 50px;
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(11, 95, 255, 0.15);
}

.contact-item__icon--wa {
  background: #25D366;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}

.contact-item__title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item__text {
  color: var(--muted);
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-item__desc {
  font-size: 0.9rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.contact-form-wrap {
  background: var(--card);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form-wrap .section__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-form-wrap .btn {
  width: 100%;
  padding: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sellers-section {
  background: linear-gradient(180deg, rgba(11, 46, 110, 0.02) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  padding: 60px 0;
  margin-top: 60px;
}

.seller-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.04);
  transition: var(--transition);
}

.seller-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(11, 95, 255, 0.12);
  border-color: rgba(11, 95, 255, 0.2);
}

.seller-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(11, 95, 255, 0.2);
  border: 4px solid var(--bg);
  text-transform: uppercase;
}

.seller-card__name {
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 4px;
  font-weight: 800;
}

.seller-card__role {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.btn--wa {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn--wa:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}