:root {
  --primary: #e3212b;
  --primary-active: #bd141d;
  --ink: #1f2328;
  --body: #42464b;
  --muted: #73777c;
  --hairline: #dedfe1;
  --canvas: #ffffff;
  --soft: #f4f5f6;
  --card: #f8f8f8;
  --dark: #11161c;
  --dark-elevated: #1c2229;
  --on-dark: #ffffff;
  --on-dark-soft: #bfc4c9;
  --section: clamp(4rem, 7vw, 6rem);
  --container: min(1440px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Inter", system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.55; }
body.menu-open { overflow: hidden; }
body.dialog-open { position: fixed; width: 100%; overflow: hidden; }
html:has(.vehicle-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
.container { width: var(--container); margin-inline: auto; }
.section { padding-block: var(--section); }
.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); background: var(--canvas); padding: 12px 16px; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto 0; height: 72px; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - 1440px) / 2)); background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-logo { width: 150px; height: 58px; object-fit: contain; }
.brand-mark { position: relative; width: 42px; height: 22px; border-top: 3px solid var(--primary); transform: skewX(-28deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; transform: skewX(28deg); }
.brand-mark::before { left: 4px; }.brand-mark::after { right: 2px; }
.brand-mark span { position: absolute; inset: 4px 5px auto; height: 7px; border-top: 2px solid var(--primary); }
.brand-copy { display: grid; line-height: .92; }
.brand-copy strong { font-size: 1rem; letter-spacing: .08em; font-weight: 700; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: .58rem; letter-spacing: .34em; font-weight: 700; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 42px); }
.primary-nav a { position: relative; font-size: .88rem; font-weight: 400; letter-spacing: .02em; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--primary); transition: right .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.nav-cta, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 0 28px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-align: center; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.nav-cta, .button-primary { color: #fff; background: var(--primary); }
.nav-cta:hover, .nav-cta:focus-visible, .button-primary:hover, .button-primary:focus-visible { background: var(--primary-active); }
.button-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.7); background: transparent; }
.button-ghost:hover, .button-ghost:focus-visible { color: var(--dark); background: #fff; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; place-content: center; gap: 7px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }

.hero { position: relative; min-height: max(700px, 100svh); padding-top: 72px; display: grid; align-items: center; isolation: isolate; overflow: hidden; color: var(--on-dark); background: var(--dark); }
.hero-media { position: absolute; z-index: -3; inset: 72px 0 0 42%; background: url("assets/compass-2017.jpg") center 34% / cover no-repeat; }
.hero-shade { position: absolute; z-index: -2; inset: 72px 0 0; background: linear-gradient(90deg, #11161c 0%, #11161c 34%, rgba(17,22,28,.92) 48%, rgba(17,22,28,.22) 74%, rgba(17,22,28,.28) 100%), linear-gradient(0deg, rgba(17,22,28,.9), transparent 45%); }
.hero::before { content: ""; position: absolute; z-index: -1; left: 0; top: 22%; width: 5px; height: 31%; background: var(--primary); }
.hero-content { padding-block: 84px 170px; }
.eyebrow { margin: 0 0 20px; color: #e5e8ea; font-size: .76rem; font-weight: 700; letter-spacing: .17em; }
.eyebrow-dark { color: var(--primary); }
.hero h1, .section-heading h2, .service-intro h2, .story-copy h2, .contact h2 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
.hero h1 { max-width: 840px; font-size: clamp(3.35rem, 7vw, 6.6rem); }
.hero-lead { max-width: 560px; margin: 28px 0 0; color: var(--on-dark-soft); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-foot { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); min-height: 112px; display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: center; border-top: 1px solid rgba(255,255,255,.2); }
.hero-foot div { display: grid; gap: 2px; }
.hero-foot strong, .hero-foot > a { font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.hero-foot span { color: var(--on-dark-soft); font-size: .85rem; }
.hero-foot > a { display: flex; gap: 28px; align-items: center; }
.hero-foot > a span { font-size: 1.2rem; }

.section-heading { display: grid; grid-template-columns: 1.2fr .7fr; gap: 10vw; align-items: end; }
.section-heading h2, .service-intro h2, .story-copy h2, .contact h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.section-heading > p { margin: 0 0 8px; color: var(--body); font-size: 1.05rem; }
.inventory-tools { margin-top: 52px; display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 16px; align-items: center; }
.search-field { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid var(--hairline); }
.search-field svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 300; }
.search-field:focus-within { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-chip, .clear-filter { min-height: 44px; padding: 0 15px; border: 1px solid #c9cbcd; background: var(--canvas); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.filter-chip.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.clear-filter { color: var(--primary); border: 0; padding-inline: 8px; }
.inventory-meta { display: flex; justify-content: space-between; margin-top: 28px; padding-bottom: 13px; border-bottom: 1px solid var(--hairline); color: var(--muted); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
.vehicle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 20px; margin-top: 20px; }
.vehicle-card { min-width: 0; background: var(--canvas); }
.vehicle-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); }
.vehicle-photo img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.vehicle-card:hover .vehicle-photo img { transform: scale(1.025); }
.vehicle-badge { position: absolute; left: 0; top: 0; padding: 8px 11px; color: #fff; background: rgba(17,22,28,.92); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-info { padding-top: 18px; }
.vehicle-info h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.vehicle-version { min-height: 43px; margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 17px 0; padding: 13px 0; border-block: 1px solid var(--hairline); color: var(--body); font-size: .78rem; }
.vehicle-price { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.vehicle-price strong { font-size: 1.22rem; }
.vehicle-price button { border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 4px; background: transparent; font-size: .69rem; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
.empty-state { margin-top: 24px; padding: 64px 24px; text-align: center; background: var(--soft); }
.text-button, .text-link { display: inline-block; border: 0; padding: 0; background: transparent; font-size: .75rem; font-weight: 700; letter-spacing: .12em; cursor: pointer; }
.empty-state .text-button { margin-top: 10px; }

.services { color: var(--on-dark); background: var(--dark); }
.service-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 160px); }
.service-intro { position: sticky; top: 112px; align-self: start; }
.service-intro h2 { max-width: 560px; }
.service-list article { display: grid; grid-template-columns: 40px 1fr 48px; gap: 28px; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.2); }
.service-list article:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.service-list article > span { color: var(--primary); font-size: .73rem; font-weight: 700; }
.service-list h3 { margin: 0; font-size: 1.3rem; }
.service-list p { margin: 8px 0 0; color: var(--on-dark-soft); }
.service-list a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.6); font-size: 1.25rem; transition: background .2s, color .2s; }
.service-list a:hover, .service-list a:focus-visible { color: var(--dark); background: #fff; }

.story { display: grid; grid-template-columns: 1.1fr .9fr; padding-block: 0; min-height: 680px; background: var(--soft); }
.story-image { overflow: hidden; min-height: 560px; background: #0b0d10; }
.story-image img { height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); transform: scale(1.01); }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 120px); }
.story-copy > p:not(.eyebrow) { max-width: 590px; margin: 28px 0 0; color: var(--body); font-size: 1.08rem; }
.story-stat { margin: 44px 0 34px; padding-block: 24px; display: flex; align-items: baseline; gap: 18px; border-block: 1px solid var(--hairline); }
.story-stat strong { font-size: 2rem; }.story-stat span { color: var(--muted); }

.contact { padding-block: var(--section); color: var(--on-dark); background: var(--dark-elevated); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.contact-details { display: grid; gap: 28px; }
.contact-details > div:not(.contact-actions) { padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-details span { color: var(--on-dark-soft); font-size: .7rem; font-weight: 700; letter-spacing: .13em; }
.contact-details p { margin: 7px 0 0; font-size: 1.06rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer { padding: 52px 0 24px; background: var(--soft); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.brand-footer { color: var(--ink); }.brand-footer .brand-logo { width: 190px; height: auto; }.footer-top > p { color: var(--muted); }
.footer-links { display: flex; gap: 28px; font-size: .82rem; font-weight: 400; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: .72rem; }
.mobile-whatsapp { display: none; }

.vehicle-dialog { width: min(1040px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 0; overflow: hidden; color: var(--ink); background: var(--canvas); }
.vehicle-dialog::backdrop { background: rgba(5,8,11,.78); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; z-index: 3; right: 0; top: 0; width: 52px; height: 52px; border: 0; color: #fff; background: var(--dark); font-size: 1.8rem; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: 1.12fr .88fr; min-width: 0; min-height: 620px; max-height: calc(100dvh - 40px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.dialog-image { min-height: 520px; background: var(--soft); }
.dialog-image img { height: 100%; object-fit: cover; }
.dialog-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 72px); }
.dialog-content h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.02; }
.dialog-price { margin: 16px 0 0; font-size: 1.45rem; font-weight: 700; }
.dialog-specs { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 32px; border-top: 1px solid var(--hairline); }
.dialog-specs div { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.dialog-specs div:nth-child(odd) { border-right: 1px solid var(--hairline); padding-right: 16px; }.dialog-specs div:nth-child(even) { padding-left: 16px; }
.dialog-specs span { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dialog-specs strong { display: block; margin-top: 3px; font-size: .95rem; }
.dialog-note { margin: 24px 0; color: var(--muted); font-size: .82rem; }
.dialog-content .text-link { margin-top: 22px; align-self: flex-start; }

@media (max-width: 1100px) {
  :root { --container: min(100% - 40px, 1440px); }
  .site-header { grid-template-columns: auto auto; justify-content: space-between; padding-inline: 20px; }
  .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .primary-nav { position: fixed; inset: 72px 0 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding: 40px; color: #fff; background: var(--dark); visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .28s ease, visibility 0s linear .28s; }
  .primary-nav.is-open { visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .primary-nav a { width: 100%; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.5rem; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-tools { grid-template-columns: 1fr; }
  .clear-filter { justify-self: start; }
  .service-layout { grid-template-columns: 1fr; }
  .service-intro { position: static; }
  .story { grid-template-columns: 1fr; }.story-image { aspect-ratio: 16/9; min-height: 0; }.story-copy { padding-inline: 40px; }
}

@media (max-width: 767px) {
  :root { --container: calc(100% - 32px); --section: 4rem; }
  .site-header { height: 64px; }.brand-logo { width: 132px; height: 54px; }.primary-nav { inset-block-start: 64px; }
  .hero { min-height: 780px; padding-top: 64px; }
  .hero-media { inset: 64px 0 0 0; background-position: 56% 35%; opacity: .6; }
  .hero-shade { inset-block-start: 64px; background: linear-gradient(0deg, #11161c 0%, rgba(17,22,28,.78) 62%, rgba(17,22,28,.38) 100%); }
  .hero-content { align-self: end; padding: 120px 0 210px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-actions { display: grid; }.hero-actions .button { width: 100%; }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 18px; min-height: 142px; padding-block: 22px; }.hero-foot > a { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }.section-heading h2, .service-intro h2, .story-copy h2, .contact h2 { font-size: 2.6rem; }
  .inventory-tools { margin-top: 36px; }.filter-chips { margin-inline: -16px; padding-inline: 16px; }
  .inventory-meta span:last-child { display: none; }
  .vehicle-grid { grid-template-columns: 1fr; gap: 34px; }
  .vehicle-photo { aspect-ratio: 4/3; }
  .service-list article { grid-template-columns: 28px 1fr; gap: 16px; }.service-list article > a { grid-column: 2; }
  .story-image { aspect-ratio: 4/3; }.story-copy { padding: 56px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }.contact-actions { display: grid; }.contact-actions .button { width: 100%; }
  .footer { padding-bottom: 88px; }.footer-top { grid-template-columns: 1fr; gap: 22px; }.footer-top > p { margin: 0; }.footer-links { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-whatsapp { position: fixed; z-index: 40; display: flex; justify-content: center; align-items: center; left: 16px; right: 16px; bottom: 12px; min-height: 52px; color: #fff; background: var(--primary); font-size: .8rem; font-weight: 700; letter-spacing: .1em; box-shadow: 0 8px 30px rgba(0,0,0,.22); }
  body.dialog-open .mobile-whatsapp { display: none; }
  .dialog-layout { grid-template-columns: 1fr; min-height: 0; max-height: none; height: 100%; }.dialog-image { min-height: 260px; aspect-ratio: 4/3; }.dialog-content { justify-content: flex-start; padding: 34px 22px 40px; }.vehicle-dialog { width: calc(100% - 24px); max-width: 680px; height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); margin: auto; }.dialog-close { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
