/* Apex Inventory styles — scoped under .apex-scope to protect the theme. */
/* ============================================================
   Apex Auto Group — Design System
   ============================================================ */
:root {--navy:      #0f2440;
  --navy-2:    #16305a;
  --navy-800:  #1b3a6b;
  --accent:    #e5411f;   /* red-orange */
  --accent-2:  #ff6a3d;
  --ink:       #16202e;
  --muted:     #5b6a7d;
  --line:      #e3e8ef;
  --bg:        #ffffff;
  --bg-soft:   #f4f6fa;
  --bg-soft-2: #eef2f8;
  --white:     #ffffff;
  --green:     #1f9d57;
  --shadow-sm: 0 1px 3px rgba(15,36,64,.08), 0 1px 2px rgba(15,36,64,.06);
  --shadow-md: 0 6px 20px rgba(15,36,64,.10);
  --shadow-lg: 0 18px 50px rgba(15,36,64,.16);
  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1200px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; }


.apex-scope * {box-sizing: border-box; }

.apex-scope {scroll-behavior: smooth; }

.apex-scope {margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

.apex-scope img {max-width: 100%; display: block; }

.apex-scope a {color: var(--accent); text-decoration: none; }

.apex-scope a:hover {text-decoration: underline; }

.apex-scope h1, .apex-scope h2, .apex-scope h3, .apex-scope h4 {line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 800; }

.apex-scope h1 {font-size: clamp(2rem, 4vw, 3.1rem); }

.apex-scope h2 {font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.apex-scope p {margin: 0 0 1em; }

.apex-scope .container {max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.apex-scope .section {padding: 68px 0; }

.apex-scope .section-soft {background: var(--bg-soft); }

.apex-scope .center {text-align: center; }

.apex-scope .eyebrow {color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }

.apex-scope .lead {color: var(--muted); font-size: 1.08rem; max-width: 640px; }

.apex-scope .center .lead {margin-left: auto; margin-right: auto; }


/* ---- Buttons ---- */
.apex-scope .btn {display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: .15s ease; text-decoration: none; }

.apex-scope .btn:hover {text-decoration: none; transform: translateY(-1px); }

.apex-scope .btn-primary {background: var(--accent); color: #fff; }

.apex-scope .btn-primary:hover {background: var(--accent-2); }

.apex-scope .btn-navy {background: var(--navy); color: #fff; }

.apex-scope .btn-navy:hover {background: var(--navy-2); }

.apex-scope .btn-ghost {background: transparent; color: var(--navy); border-color: var(--line); }

.apex-scope .btn-ghost:hover {border-color: var(--navy); }

.apex-scope .btn-light {background: #fff; color: var(--navy); }

.apex-scope .btn-outline-light {background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

.apex-scope .btn-outline-light:hover {background: rgba(255,255,255,.12); }

.apex-scope .btn-sm {padding: .6em 1.1em; font-size: .9rem; }

.apex-scope .btn-block {width: 100%; }


/* ---- Top bar ---- */
.apex-scope .topbar {background: var(--navy); color: #cfe; font-size: .82rem; }

.apex-scope .topbar-inner {display: flex; justify-content: space-between; align-items: center; height: 38px; color: #b9c6d9; }

.apex-scope .topbar a {color: #dfe8f4; }

.apex-scope .topbar-right {display: flex; align-items: center; gap: 10px; }

.apex-scope .topbar-sep {opacity: .5; }


/* ---- Header ---- */
.apex-scope .site-header {position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }

.apex-scope .header-inner {display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }

.apex-scope .logo {display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--navy); }

.apex-scope .logo:hover {text-decoration: none; }

.apex-scope .logo-mark {color: var(--accent); font-size: 1.4rem; transform: translateY(-1px); }

.apex-scope .logo-text {font-size: 1.3rem; letter-spacing: .02em; }

.apex-scope .logo-text strong {color: var(--accent); font-weight: 800; }

.apex-scope .logo-light .logo-text, .apex-scope .logo-light {color: #fff; }

.apex-scope .main-nav {display: flex; gap: 4px; margin-left: auto; }

.apex-scope .main-nav a {color: var(--ink); font-weight: 600; padding: .5em .9em; border-radius: 8px; font-size: .96rem; }

.apex-scope .main-nav a:hover {background: var(--bg-soft); text-decoration: none; }

.apex-scope .main-nav a.active {color: var(--accent); }

.apex-scope .header-cta {display: flex; align-items: center; gap: 10px; }

.apex-scope .nav-toggle {display: none; background: none; border: 0; font-size: 1.5rem; color: var(--navy); cursor: pointer; }


/* ---- Hero ---- */
.apex-scope .hero {position: relative; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(229,65,31,.35), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #0b1c34 100%); }

.apex-scope .hero-inner {padding: 84px 0 96px; max-width: 720px; }

.apex-scope .hero h1 {color: #fff; }

.apex-scope .hero p {color: #c9d6e8; font-size: 1.15rem; max-width: 560px; }

.apex-scope .hero-actions {display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.apex-scope .hero-stats {display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }

.apex-scope .hero-stats .num {font-size: 1.9rem; font-weight: 800; color: #fff; }

.apex-scope .hero-stats .lbl {color: #a9bad2; font-size: .9rem; }


/* ---- Quick search bar ---- */
.apex-scope .quick-search {background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px; margin-top: -46px; position: relative; z-index: 5; }

.apex-scope .quick-search h3 {margin: 0 0 14px; font-size: 1.05rem; }

.apex-scope .qs-grid {display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }

.apex-scope .field {display: flex; flex-direction: column; gap: 6px; }

.apex-scope .field label {font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.apex-scope .field select, .apex-scope .field input {padding: .7em .8em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fff; width: 100%; }

.apex-scope .field select:focus, .apex-scope .field input:focus {outline: none; border-color: var(--navy-800); }


/* ---- Chips / badges ---- */
.apex-scope .badge {display: inline-block; padding: .28em .7em; border-radius: 999px; font-size: .72rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }

.apex-scope .badge-new {background: #e7f4ec; color: var(--green); }

.apex-scope .badge-certified {background: #e7eefb; color: #245bc4; }

.apex-scope .badge-used {background: #f0eef8; color: #6b4bb3; }

.apex-scope .badge-electric {background: #e6f6f2; color: #0d9488; }


/* ---- Vehicle cards ---- */
.apex-scope .card-grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.apex-scope .v-card {background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s ease; display: flex; flex-direction: column; }

.apex-scope .v-card:hover {box-shadow: var(--shadow-md); transform: translateY(-3px); }

.apex-scope .v-media {position: relative; aspect-ratio: 8/5.2; background: var(--bg-soft); }

.apex-scope .v-media img {width: 100%; height: 100%; object-fit: cover; }

.apex-scope .v-media .badge {position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }

.apex-scope .v-fav {position: absolute; top: 10px; right: 12px; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }

.apex-scope .v-body {padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }

.apex-scope .v-title {font-size: 1.12rem; font-weight: 800; color: var(--navy); margin: 0 0 2px; }

.apex-scope .v-trim {color: var(--muted); font-size: .9rem; margin: 0 0 12px; }

.apex-scope .v-specs {display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }

.apex-scope .v-specs span {display: inline-flex; align-items: center; gap: 5px; }

.apex-scope .v-price-row {display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

.apex-scope .v-price {font-size: 1.5rem; font-weight: 800; color: var(--navy); }

.apex-scope .v-price small {display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }

.apex-scope .v-card .btn {margin-top: 12px; }


/* ---- Inventory layout ---- */
.apex-scope .inv-layout {display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }

.apex-scope .filters {background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 8px; position: sticky; top: 96px; }

.apex-scope .filters h3 {font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }

.apex-scope .filters h3 button {font-size: .78rem; font-weight: 700; color: var(--accent); background: none; border: 0; cursor: pointer; }

.apex-scope .filter-group {border-top: 1px solid var(--line); padding: 14px 0; }

.apex-scope .filter-group > label.grp {font-weight: 700; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); display: block; margin-bottom: 10px; }

.apex-scope .check {display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .92rem; color: var(--ink); cursor: pointer; }

.apex-scope .check input {accent-color: var(--accent); width: 16px; height: 16px; }

.apex-scope .range-row {display: flex; gap: 8px; }

.apex-scope .inv-main {min-width: 0; }

.apex-scope .inv-toolbar {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

.apex-scope .inv-count {font-weight: 700; color: var(--navy); }

.apex-scope .inv-count span {color: var(--muted); font-weight: 500; }

.apex-scope .sort-wrap {display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }

.apex-scope .sort-wrap select {padding: .55em .7em; border: 1.5px solid var(--line); border-radius: 8px; font-family: inherit; }

.apex-scope .mobile-filter-btn {display: none; }

.apex-scope .empty {text-align: center; padding: 70px 20px; color: var(--muted); }

.apex-scope .empty h3 {color: var(--navy); }


/* ---- Vehicle detail ---- */
.apex-scope .vd-top {display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }

.apex-scope .vd-gallery img.main {width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

.apex-scope .vd-thumbs {display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }

.apex-scope .vd-thumbs img {border-radius: 8px; cursor: pointer; border: 2px solid transparent; }

.apex-scope .vd-thumbs img.active {border-color: var(--accent); }

.apex-scope .vd-info h1 {margin-bottom: 4px; }

.apex-scope .vd-sub {color: var(--muted); margin-bottom: 14px; }

.apex-scope .vd-price {font-size: 2.3rem; font-weight: 800; color: var(--navy); }

.apex-scope .vd-price small {font-size: .9rem; color: var(--muted); font-weight: 600; }

.apex-scope .vd-est {color: var(--muted); margin: 4px 0 18px; }

.apex-scope .vd-est strong {color: var(--accent); }

.apex-scope .vd-actions {display: grid; gap: 10px; margin: 18px 0; }

.apex-scope .vd-key {display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }

.apex-scope .vd-key .cell {background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; }

.apex-scope .vd-key .cell .k {font-size: .75rem; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .04em; }

.apex-scope .vd-key .cell .val {font-weight: 700; color: var(--navy); }

.apex-scope .spec-table {width: 100%; border-collapse: collapse; }

.apex-scope .spec-table td {padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }

.apex-scope .spec-table td:first-child {color: var(--muted); width: 45%; }

.apex-scope .spec-table td:last-child {font-weight: 600; color: var(--navy); }

.apex-scope .feature-list {columns: 2; column-gap: 30px; padding: 0; list-style: none; }

.apex-scope .feature-list li {padding: 7px 0 7px 26px; position: relative; break-inside: avoid; }

.apex-scope .feature-list li::before {content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }


/* ---- Value props / features ---- */
.apex-scope .feat-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 22px; }

.apex-scope .feat {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  text-align: center; box-shadow: var(--shadow-sm); }

.apex-scope .feat .ico {width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-soft-2); font-size: 1.5rem; }

.apex-scope .feat h3 {font-size: 1.1rem; }

.apex-scope .feat p {color: var(--muted); font-size: .94rem; margin: 0; }


/* ---- Body type strip ---- */
.apex-scope .type-strip {display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; }

.apex-scope .type-card {display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--navy);
  transition: .15s ease; }

.apex-scope .type-card:hover {text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--accent); }

.apex-scope .type-card .emo {font-size: 2rem; }


/* ---- CTA band ---- */
.apex-scope .cta-band {background: linear-gradient(120deg, var(--accent) 0%, #c0341a 100%); color: #fff; border-radius: 20px;
  padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.apex-scope .cta-band h2 {color: #fff; margin: 0 0 6px; }

.apex-scope .cta-band p {color: #ffe6df; margin: 0; }


/* ---- Forms / panels ---- */
.apex-scope .panel {background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; }

.apex-scope .form-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.apex-scope .form-grid .full {grid-column: 1 / -1; }

.apex-scope .form-field {display: flex; flex-direction: column; gap: 6px; }

.apex-scope .form-field label {font-weight: 700; font-size: .86rem; color: var(--navy); }

.apex-scope .form-field input, .apex-scope .form-field select, .apex-scope .form-field textarea {padding: .75em .85em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fff; }

.apex-scope .form-field input:focus, .apex-scope .form-field select:focus, .apex-scope .form-field textarea:focus {outline: none; border-color: var(--navy-800); }

.apex-scope .form-note {font-size: .84rem; color: var(--muted); }

.apex-scope .form-success {background: #e7f4ec; border: 1px solid #bce3cd; color: #14733f; padding: 16px 18px;
  border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 16px; }

.apex-scope .hidden {display: none !important; }


/* ---- Financing calculator ---- */
.apex-scope .calc-layout {display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }

.apex-scope .calc-result {background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; text-align: center; position: sticky; top: 96px; }

.apex-scope .calc-result .pay {font-size: 3rem; font-weight: 800; margin: 8px 0 2px; }

.apex-scope .calc-result .pay small {font-size: 1rem; color: #a9bad2; font-weight: 600; }

.apex-scope .calc-result .breakdown {text-align: left; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }

.apex-scope .calc-result .breakdown div {display: flex; justify-content: space-between; padding: 6px 0; color: #c9d6e8; font-size: .95rem; }

.apex-scope .calc-result .breakdown div strong {color: #fff; }

.apex-scope .range-input {width: 100%; accent-color: var(--accent); }

.apex-scope .range-val {font-weight: 800; color: var(--navy); }


/* ---- Page hero (inner pages) ---- */
.apex-scope .page-hero {background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 46px 0; }

.apex-scope .page-hero h1 {color: #fff; margin: 0; }

.apex-scope .page-hero p {color: #c9d6e8; margin: 8px 0 0; }

.apex-scope .breadcrumb {font-size: .86rem; color: #a9bad2; margin-bottom: 8px; }

.apex-scope .breadcrumb a {color: #d7e2f2; }


/* ---- About ---- */
.apex-scope .about-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }

.apex-scope .stat-row {display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; text-align: center; }

.apex-scope .stat-row .num {font-size: 2.2rem; font-weight: 800; color: var(--accent); }

.apex-scope .stat-row .lbl {color: var(--muted); font-size: .9rem; }

.apex-scope .map-embed {width: 100%; aspect-ratio: 16/7; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--bg-soft); }

.apex-scope .info-cards {display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.apex-scope .info-card {background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }

.apex-scope .info-card h3 {font-size: 1.05rem; }

.apex-scope .hours-list {list-style: none; padding: 0; margin: 0; }

.apex-scope .hours-list li {display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; }


/* ---- Footer ---- */
.apex-scope .site-footer {background: var(--navy); color: #b9c6d9; margin-top: 40px; }

.apex-scope .footer-grid {display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 30px; padding: 52px 22px 34px; }

.apex-scope .footer-brand p {font-size: .92rem; color: #9fb0c7; }

.apex-scope .footer-contact a {color: #fff; }

.apex-scope .footer-col h4 {color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }

.apex-scope .footer-col ul {list-style: none; padding: 0; margin: 0; }

.apex-scope .footer-col li {padding: 5px 0; }

.apex-scope .footer-col a {color: #b9c6d9; font-size: .93rem; }

.apex-scope .footer-col a:hover {color: #fff; }

.apex-scope .footer-col .hours-list span:last-child {color: #fff; }

.apex-scope .footer-bottom {border-top: 1px solid rgba(255,255,255,.12); }

.apex-scope .footer-bottom-inner {display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-size: .82rem; color: #8b9bb3; flex-wrap: wrap; }

.apex-scope .footer-disclaimer {color: #7b8ba3; }


/* ---- Responsive ---- */
@media (max-width: 960px) {

  .apex-scope .qs-grid {grid-template-columns: 1fr 1fr; }

  .apex-scope .vd-top {grid-template-columns: 1fr; }

  .apex-scope .calc-layout {grid-template-columns: 1fr; }

  .apex-scope .calc-result {position: static; }

  .apex-scope .about-grid {grid-template-columns: 1fr; }

  .apex-scope .info-cards {grid-template-columns: 1fr; }

  .apex-scope .stat-row {grid-template-columns: repeat(2,1fr); }

  .apex-scope .footer-grid {grid-template-columns: 1fr 1fr; }


}

@media (max-width: 820px) {

  .apex-scope .main-nav {position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 10px 16px; box-shadow: var(--shadow-md); display: none; }

  .apex-scope .main-nav.open {display: flex; }

  .apex-scope .nav-toggle {display: block; }

  .apex-scope .header-cta .btn {display: none; }

  .apex-scope .inv-layout {grid-template-columns: 1fr; }

  .apex-scope .filters {position: static; display: none; }

  .apex-scope .filters.open {display: block; }

  .apex-scope .mobile-filter-btn {display: inline-flex; }

  .apex-scope .topbar {display: none; }


}

@media (max-width: 560px) {

  .apex-scope .qs-grid {grid-template-columns: 1fr; }

  .apex-scope .form-grid {grid-template-columns: 1fr; }

  .apex-scope .vd-key {grid-template-columns: 1fr; }

  .apex-scope .feature-list {columns: 1; }

  .apex-scope .footer-grid {grid-template-columns: 1fr; }

  .apex-scope .cta-band {padding: 30px; }

  .apex-scope .stat-row {grid-template-columns: 1fr 1fr; }


}

