/* Forbiz Enterprises public site. Mobile first. */
:root {
  --navy: #131E43;
  --navy-scrim: 12, 18, 38;
  --gold: #C6963C;
  --gold-hover: #B5852F;
  --link-hover: #835F1C;
  --text: #1D2228;
  --text-2: #3D444C;
  --muted: #59616A;
  --surface: #F2F3F1;
  --border: #DDE0DC;
  --input: #C9CDC8;
  --placeholder: #B9BEB8;
  --on-dark: #C9CDD2;
  --head: Archivo, 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --gutter: 16px;
}
@media (min-width: 760px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); color: var(--text); background: #FFFFFF; font-size: 17px; line-height: 1.45; }
img, video, svg { max-width: 100%; }
a { color: var(--text); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead-sm { font-size: 17px; }
.body-lg { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 48ch; }
.link-strong { font-weight: 600; font-size: 17px; }

.h1 { font-family: var(--head); font-weight: 800; font-stretch: 112%; font-size: clamp(28px, 6vw, 36px); line-height: 1.1; }
.h2 { font-family: var(--head); font-weight: 700; font-stretch: 110%; font-size: 24px; line-height: 1.15; }
.h2-lg { font-size: clamp(26px, 4vw, 30px); }
.h3 { font-family: var(--head); font-weight: 700; font-stretch: 110%; font-size: 22px; line-height: 1.2; }
@media (min-width: 760px) { .h2 { font-size: 26px; } .h3 { font-size: 23px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.15;
}
.btn-lg { min-height: 52px; }
.btn-block { display: flex; width: 100%; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; background: #1D2B5C; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { color: var(--navy); background: var(--gold-hover); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); font-weight: 600; }
.btn-outline:hover { color: var(--navy); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand img { display: block; width: auto; }
.brand-icon { height: 40px; }
.brand-word { height: 34px; }
.main-nav {
  order: 3; flex: 1 1 100%; display: flex; gap: 4px 20px; font-size: 16px; font-weight: 600;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { text-decoration: none; padding: 8px 0; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-toggle a {
  min-width: 44px; min-height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--text-2); text-decoration: none;
}
.lang-toggle a[aria-current="true"] { background: var(--navy); color: #fff; font-weight: 700; }
.header-phone { display: none; min-height: 44px; font-weight: 600; font-size: 16px; padding: 0 16px; }
@media (min-width: 760px) {
  .header-row { padding-top: 14px; padding-bottom: 14px; }
  .brand-icon { height: 54px; }
  .brand-word { height: 46px; }
  .header-phone { display: inline-flex; }
}
@media (min-width: 1100px) {
  .brand { margin-right: 0; }
  .main-nav { order: 0; flex: 1 1 auto; margin: 0; padding: 0; overflow: visible; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy) url('/assets/hero-poster.jpg') center / cover no-repeat; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--navy-scrim), .88) 0%, rgba(var(--navy-scrim), .6) 50%, rgba(var(--navy-scrim), .35) 100%); }
.hero-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; padding-top: 56px; padding-bottom: 32px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-slogan { margin-bottom: 14px; font-size: 20px; color: var(--gold); font-weight: 600; font-style: italic; letter-spacing: .01em; }
.hero h1 { font-family: var(--head); font-weight: 800; font-stretch: 115%; font-size: clamp(34px, 6vw, 78px); line-height: .98; letter-spacing: -.01em; max-width: 14ch; }
.hero-lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--on-dark); max-width: 46ch; }
@media (min-width: 760px) { .hero-row { padding-top: 120px; padding-bottom: 72px; } .hero-slogan { font-size: 22px; } .hero-lead { font-size: 20px; } }

.search-box { flex: 1 1 320px; background: #fff; color: var(--text); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.search-title { font-family: var(--head); font-weight: 700; font-size: 20px; font-stretch: 110%; }
@media (min-width: 760px) { .search-box { padding: 24px; } }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 46px; border: 1px solid var(--input); border-radius: 10px; padding: 0 12px;
  font: inherit; font-size: 17px; font-weight: 400; background: #fff; color: var(--text); width: 100%;
}
.field textarea { padding: 10px 12px; resize: vertical; min-height: 92px; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 140px; }

.trust-strip { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(var(--navy-scrim), .72); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 16px; padding-bottom: 16px; font-size: 16px; color: var(--on-dark); }
.trust-rating { display: flex; align-items: center; gap: 8px; }
.trust-rating strong { color: #fff; }

/* Sections */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-last { padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 20px; }
.section > .h2:first-child { margin-bottom: 20px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; background: var(--surface); }
.tile-title { font-family: var(--head); font-weight: 700; font-size: 19px; font-stretch: 108%; line-height: 1.15; }
.tile .muted { font-size: 15px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 132px; padding: 20px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-decoration: none; text-align: center; }
.logo-ph { width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--placeholder); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }

/* Car cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (min-width: 760px) { .card-grid { gap: 20px; } }
.car-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; background: #fff; }
.car-card:hover { color: var(--text); box-shadow: 0 6px 20px rgba(19, 30, 67, .08); }
.car-media { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.car-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.silhouette { width: 62%; height: auto; }
.badge { position: absolute; font-size: 13px; font-weight: 600; background: #fff; color: var(--text-2); padding: 4px 10px; border-radius: 999px; }
.badge-tl { left: 12px; top: 12px; }
.badge-bl { left: 12px; bottom: 12px; }
.badge-hold { right: 12px; top: 12px; background: #FBF0D9; color: #7A4E00; font-weight: 700; }
.car-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.car-title { font-family: var(--head); font-weight: 700; font-size: 19px; font-stretch: 106%; line-height: 1.2; }
.car-sub { font-size: 15px; color: var(--muted); }
.car-specs { font-size: 14px; color: var(--muted); }
.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.car-price { font-family: var(--head); font-weight: 800; font-size: 24px; }
.car-color { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-align: right; }
.swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--placeholder); flex: none; }

/* Offer cards */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 760px) { .offer-grid { gap: 20px; padding-top: 64px; padding-bottom: 64px; } }
.offer { background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--border); scroll-margin-top: 16px; }
.offer p { font-size: 17px; line-height: 1.5; color: var(--text-2); }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Visit */
.visit { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-bottom: 56px; scroll-margin-top: 16px; }
.visit-copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.visit-copy .body-lg strong { color: var(--text); }
.hours { border-collapse: collapse; font-size: 17px; max-width: 360px; }
.hours td { padding: 6px 0; }
.hours td:first-child { color: var(--muted); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours tr + tr td { border-top: 1px solid var(--border); }
.map-ph {
  flex: 1 1 380px; min-height: 280px; border-radius: 16px; background: #E4E7E3; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; color: var(--muted); font-size: 16px; text-decoration: none; text-align: center; padding: 16px;
}

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 15px; }
.site-footer a { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; padding-top: 40px; padding-bottom: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { height: 96px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.slogan { font-size: 18px; font-style: italic; color: var(--gold); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-content: flex-start; max-width: 520px; }
.footer-nav a { text-decoration: none; }
.footer-legal { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
@media (min-width: 760px) { .footer-logo { height: 120px; } }

/* Mobile action bar: WhatsApp + call always one tap away on phones */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(19, 30, 67, .08); }
.mobile-bar .btn { min-height: 50px; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Inventory */
.page-gray { background: var(--surface); }
.inv { padding-top: 24px; padding-bottom: 56px; }
.inv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.inv-head .muted { margin-top: 6px; }
.chip-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; white-space: nowrap; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.chip-label { font-size: 15px; font-weight: 600; color: var(--text-2); margin-right: 4px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--input); border-radius: 999px;
  background: #fff; color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; flex: none;
}
.chip:hover { border-color: var(--navy); color: var(--text); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.inv-layout { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-start; }
.filters { flex: 1 1 250px; max-width: 100%; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.filter-group h2 { font-size: 16px; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.chips::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .filters { padding: 22px; gap: 24px; position: sticky; top: 16px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.results { flex: 999 1 560px; min-width: 0; }
.empty { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.empty p:not(.h3) { color: var(--text-2); }

/* Vehicle */
.vehicle { padding-top: 16px; padding-bottom: 56px; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.v-top, .v-bottom { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.v-bottom { margin-top: 40px; }
.gallery { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  aspect-ratio: 16 / 10; border-radius: 16px; margin: 0 calc(-1 * var(--gutter));
}
.gallery-main::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .gallery-main { margin: 0; } }
@media (max-width: 759px) { .gallery-main { border-radius: 0; } }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; display: flex; align-items: center; justify-content: center; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.slide img { background: transparent; }
.slide-empty .silhouette { width: 56%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumb { aspect-ratio: 4 / 3; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); padding: 0; overflow: hidden; cursor: pointer; background: #DCE2EC; }
.thumb[aria-current="true"] { outline: 3px solid var(--gold); outline-offset: -3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-video { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.price-box { flex: 1 1 340px; border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.v-title { font-family: var(--head); font-weight: 800; font-stretch: 110%; font-size: clamp(26px, 5vw, 32px); line-height: 1.1; }
.v-sub { margin-top: 6px; font-size: 18px; color: var(--muted); }
.v-price { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1; }
.hold-note { background: #FBF0D9; color: #7A4E00; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.v-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.btn-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-pair .btn { flex: 1 1 140px; font-size: 16px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); margin: 0; }
.quick div { display: flex; flex-direction: column; gap: 2px; }
.quick dt { font-size: 14px; color: var(--muted); }
.quick dd { margin: 0; font-size: 16px; font-weight: 600; }
.v-details { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.specs { width: 100%; border-collapse: collapse; font-size: 17px; margin-top: 14px; }
.specs th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--border); width: 40%; }
.specs td { padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; overflow-wrap: anywhere; }
.about { display: flex; flex-direction: column; gap: 12px; }
.about p { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 64ch; }
.about .link-strong { align-self: flex-start; }
.ask { flex: 1 1 340px; background: var(--surface); border-radius: 16px; padding: 22px; scroll-margin-top: 16px; }
.ask form { display: flex; flex-direction: column; gap: 14px; }
.ask p { font-size: 16px; color: var(--text-2); }
.form-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.ask .form-note { font-size: 13px; color: var(--muted); }
.sim { margin-top: 56px; }
.sim .h2, .sim-h { margin-bottom: 18px; }
.sim-h { margin-top: 48px; }

/* Dialog forms */
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--text); }
.dlg::backdrop { background: rgba(var(--navy-scrim), .6); }
.dlg form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-head h2 { font-family: var(--head); font-weight: 700; font-stretch: 110%; font-size: 23px; }
.dlg-close { flex: none; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dlg-close:hover { background: var(--surface); }
.dlg-lead { color: var(--text-2); }

.prose { padding-bottom: 56px; max-width: 760px; }
.prose p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
