:root {
  --navy: #07132c;
  --navy-2: #0d214a;
  --orange: #f36b21;
  --orange-dark: #d95112;
  --cream: #fff5df;
  --paper: #f6f4ee;
  --ink: #121722;
  --muted: #647084;
  --line: #dfe3e8;
  --white: #fff;
  --shadow: 0 24px 60px rgba(7, 19, 44, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.topbar { min-height: 34px; padding: 7px 4vw; display: flex; justify-content: flex-end; align-items: center; gap: 13px; background: #030a19; color: #dce4f1; font-size: .78rem; letter-spacing: .02em; }
.topbar a { color: var(--cream); font-weight: 700; }
.topbar-separator { width: 1px; height: 13px; background: #536078; }

.site-header { height: 92px; padding: 8px 4vw; display: flex; align-items: center; gap: 28px; background: var(--navy); color: white; border-bottom: 4px solid var(--orange); position: sticky; top: 0; z-index: 20; }
.brand { width: 190px; height: 76px; display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 8px rgba(0,0,0,.3)); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: .93rem; font-weight: 750; color: #dce4f1; }
.main-nav a:hover { color: var(--orange); }
.menu-button { display: none; color: white; background: transparent; border: 0; font-size: 1.5rem; }

.button { min-height: 47px; border-radius: 4px; border: 1px solid transparent; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; font-weight: 850; letter-spacing: .01em; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--orange); color: #111; border-color: #ff8c4e; box-shadow: 0 10px 26px rgba(243,107,33,.23); }
.button-primary:hover { background: #ff7a2e; }
.button-ghost { background: rgba(7,19,44,.55); color: white; border-color: rgba(255,255,255,.55); }
.button-dark { background: var(--navy); color: white; }
.button-light { width: 100%; background: white; color: var(--navy); opacity: .75; cursor: not-allowed; }

.hero { min-height: 590px; position: relative; overflow: hidden; display: grid; align-items: center; color: white; background: var(--navy) url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1800&q=88') center 58% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,25,.97) 0%, rgba(3,10,25,.86) 43%, rgba(3,10,25,.25) 76%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--orange) 0 36px, var(--cream) 36px 72px, var(--navy) 72px 108px); }
.hero-content { position: relative; z-index: 2; width: min(720px, 88vw); margin-left: 7vw; padding: 70px 0 112px; }
.eyebrow { text-transform: uppercase; font-weight: 900; font-size: .73rem; letter-spacing: .18em; color: var(--cream); }
.eyebrow.orange { color: var(--orange-dark); }
.hero h1 { margin: 14px 0 18px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.2rem, 6.2vw, 6.2rem); line-height: .91; letter-spacing: -.055em; text-shadow: 0 4px 18px rgba(0,0,0,.45); }
.hero h1 span { color: var(--orange); font-style: italic; }
.hero-content > p { max-width: 625px; margin: 0 0 29px; color: #e6ebf2; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { position: absolute; z-index: 3; left: 7vw; bottom: 28px; display: flex; background: rgba(3,10,25,.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.hero-stats div { min-width: 160px; padding: 15px 24px; border-right: 1px solid rgba(255,255,255,.17); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { color: var(--orange); font-size: .95rem; }
.hero-stats span { margin-top: 4px; color: #dfe6ef; font-size: .77rem; }

.inventory-section { max-width: 1420px; margin: 0 auto; padding: 90px 5vw 105px; }
.section-heading h2, .finance-copy h2, .about-section h2, .contact-section h2 { margin: 7px 0 10px; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.inventory-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.draft-note { color: var(--muted); margin: 0; font-size: .9rem; }
.search-box { width: min(370px, 100%); display: flex; align-items: center; gap: 10px; padding: 0 16px; background: white; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 9px 30px rgba(7,19,44,.06); }
.search-box span { color: var(--orange); font-size: 1.3rem; }
.search-box input { width: 100%; height: 50px; border: 0; outline: 0; background: transparent; font-size: 1rem; }
.filters { margin: 30px 0; display: flex; gap: 9px; flex-wrap: wrap; }
.filter { padding: 10px 17px; border: 1px solid #cfd5dd; border-radius: 100px; background: transparent; color: #475266; font-weight: 750; }
.filter.active, .filter:hover { background: var(--navy); color: white; border-color: var(--navy); }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vehicle-card { overflow: hidden; background: white; border: 1px solid #e2e5ea; border-radius: 7px; box-shadow: 0 14px 38px rgba(7,19,44,.07); transition: transform .25s ease, box-shadow .25s ease; }
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.vehicle-card[hidden] { display: none; }
.vehicle-image { position: relative; height: 238px; overflow: hidden; background: #cdd2db; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vehicle-card:hover img { transform: scale(1.04); }
.vehicle-badge { position: absolute; left: 14px; top: 14px; padding: 7px 10px; border-radius: 3px; background: var(--orange); color: #121212; font-size: .71rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.vehicle-badge.neutral { background: var(--cream); }
.vehicle-body { padding: 21px; }
.vehicle-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 750; }
.vehicle-body h3 { margin: 8px 0 6px; color: var(--navy); font-size: 1.27rem; }
.vehicle-body > p { margin: 0 0 22px; color: var(--muted); font-size: .88rem; }
.vehicle-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 17px; border-top: 1px solid #ebedf0; }
.vehicle-footer strong { color: var(--navy); font-size: 1.35rem; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--orange-dark); font-weight: 850; font-size: .8rem; }
.empty-state { padding: 40px; text-align: center; border: 1px dashed #aeb6c2; color: var(--muted); }

.finance-section { min-height: 460px; padding: 75px 8vw; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; gap: 9vw; background: var(--navy); color: white; position: relative; overflow: hidden; }
.finance-section::before { content: ""; position: absolute; width: 420px; height: 420px; left: -180px; top: -160px; border: 75px solid rgba(243,107,33,.13); border-radius: 50%; }
.finance-copy { position: relative; }
.finance-copy h2 { color: white; }
.finance-copy p { max-width: 720px; color: #cbd5e5; line-height: 1.7; }
.future-label { width: fit-content; margin-top: 23px; padding: 8px 11px; border: 1px solid rgba(255,245,223,.35); color: var(--cream); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.finance-card { position: relative; padding: 34px; background: var(--orange); color: var(--navy); border: 5px solid white; box-shadow: 18px 18px 0 rgba(255,245,223,.1); transform: rotate(1deg); }
.finance-card h3 { margin: 12px 0 8px; font-family: Georgia, serif; font-size: 2rem; }
.finance-card p { line-height: 1.55; }
.finance-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 1.4rem; font-weight: 900; }

.about-section { max-width: 1200px; margin: 0 auto; padding: 90px 5vw; display: grid; grid-template-columns: 150px 1fr auto; gap: 50px; align-items: center; }
.about-mark { width: 140px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: var(--orange); color: var(--cream); border: 10px solid var(--navy); box-shadow: 0 0 0 4px var(--orange); }
.about-mark strong { font-family: Georgia, serif; font-size: 2.65rem; font-style: italic; line-height: .88; }
.about-mark span { margin-top: 7px; font-size: .67rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.about-section p { max-width: 700px; color: var(--muted); line-height: 1.7; }

.contact-section { padding: 70px 8vw; background: #e9e4d9; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: center; border-top: 1px solid #d4cbbd; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 20px; }
.contact-grid div { padding: 20px; border-left: 3px solid var(--orange); background: rgba(255,255,255,.45); }
.contact-grid span, .contact-grid strong { display: block; }
.contact-grid span { margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.contact-grid strong { color: var(--navy); line-height: 1.5; }

footer { min-height: 125px; padding: 20px 5vw; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #030a19; color: #9ba8bc; font-size: .82rem; }
footer img { width: 150px; height: 85px; object-fit: contain; }

.floating-appointment { display: none; }
dialog { width: min(700px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,.42); }
dialog::backdrop { background: rgba(3,10,25,.79); backdrop-filter: blur(5px); }
#appointment-form, .form-success { padding: 42px; }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: var(--muted); font-size: 2rem; }
.dialog-icon { float: right; width: 62px; height: 62px; margin: 0 0 15px 20px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--orange); border: 4px solid var(--orange); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 900; }
dialog h2 { margin: 6px 0 9px; color: var(--navy); font-family: Georgia, serif; font-size: 2.35rem; letter-spacing: -.035em; }
dialog p { color: var(--muted); line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { color: #344054; font-size: .82rem; font-weight: 750; }
input, select, textarea { width: 100%; margin: 7px 0 15px; padding: 13px; border: 1px solid #cfd5dd; border-radius: 4px; background: white; color: var(--ink); }
textarea { resize: vertical; }
.form-submit { width: 100%; margin-top: 4px; }
dialog small { display: block; margin-top: 12px; color: #7a8494; text-align: center; }
.form-success { min-height: 400px; display: grid; place-items: center; align-content: center; text-align: center; }
.success-check { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy); font-size: 2rem; font-weight: 900; }

@media (max-width: 1050px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: .82rem; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { grid-template-columns: 120px 1fr; }
  .about-mark { width: 110px; height: 110px; }
  .about-section .button { grid-column: 2; width: fit-content; }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { justify-content: center; font-size: .7rem; }
  .topbar span:last-child, .topbar-separator:last-of-type { display: none; }
  .site-header { height: 78px; padding: 5px 18px; }
  .brand { width: 145px; height: 66px; }
  .menu-button { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 22px; flex-direction: column; align-items: flex-start; background: var(--navy); border-bottom: 4px solid var(--orange); }
  .main-nav.open { display: flex; }
  .hero { min-height: 650px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,10,25,.96), rgba(3,10,25,.68)); }
  .hero-content { margin-left: 6vw; padding-bottom: 190px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 4.6rem); }
  .hero-stats { left: 6vw; right: 6vw; bottom: 35px; }
  .hero-stats div { min-width: 0; flex: 1; padding: 12px; }
  .hero-stats span { font-size: .66rem; }
  .inventory-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .finance-section { grid-template-columns: 1fr; padding: 65px 6vw; }
  .about-section { grid-template-columns: 1fr; gap: 25px; }
  .about-section .button { grid-column: 1; }
  .about-mark { width: 90px; height: 90px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; padding-bottom: 90px; }
  .floating-appointment { display: flex; position: fixed; z-index: 18; left: 18px; right: 18px; bottom: 16px; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border: 1px solid #ff9b65; border-radius: 4px; background: var(--orange); color: var(--navy); font-weight: 900; box-shadow: 0 14px 40px rgba(7,19,44,.35); }
  .floating-appointment span { font-size: .6rem; }
  #appointment-form, .form-success { padding: 32px 21px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  dialog h2 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.inventory-contact { display:flex; flex-wrap:wrap; gap:20px; align-items:center; margin-top:28px; }
.inventory-contact span { color:var(--muted); }
section[id] { scroll-margin-top:110px; }
a:focus-visible, button:focus-visible { outline:3px solid var(--orange); outline-offset:5px; }

.careers-section { max-width:1200px; margin:0 auto; padding:65px 5vw; display:flex; align-items:center; gap:40px; border-top:1px solid var(--line); }
.careers-section h2 { font-family:Georgia,serif; font-size:clamp(2.2rem,4vw,3.5rem); color:var(--navy); margin:10px 0; }
.careers-section p { line-height:1.7; color:var(--muted); max-width:720px; }
.careers-section .button { flex-shrink:0; }
@media(max-width:1100px) { .main-nav { gap:12px; } .header-cta { padding:0 12px; font-size:.8rem; } }
@media(max-width:760px) { .careers-section { flex-direction:column; align-items:flex-start; gap:15px; } }
