/*
Theme Name: Vehicle Catalog
Template: generatepress
Version: 1.1.0
Description: A GeneratePress child theme for a searchable used BMW X1 inventory.
*/

.vehicle-catalog {
    --navy: #0d1728;
    --ink: #112f4e;
    --muted: #536980;
    --line: #dce6ef;
    --sky: #41bfe8;
    --blue: #1769aa;
    color: var(--ink);
    background: white;
    font: 16px/1.6 Arial, system-ui, sans-serif;
}
.vehicle-catalog h1, .vehicle-catalog h2, .vehicle-catalog h3 {
    color: inherit;
    font-family: "Archivo Black", system-ui, sans-serif;
    font-weight: 850;
    letter-spacing: -.022em;
    line-height: 1.14;
}
.vehicle-catalog p { margin: 0 0 1em; }
.vehicle-catalog a { color: inherit; }
.vehicle-catalog :focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.catalog-shell { width: min(1272px, calc(100% - 64px)); margin-inline: auto; }
.catalog-skip { position: absolute; z-index: 10; left: 1rem; top: -10rem; background: white; padding: .75rem 1rem; }
.catalog-skip:focus { top: 1rem; }
.catalog-header { color: white; background: var(--navy); border-bottom: 1px solid #25384a; }
.catalog-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.catalog-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 13px; }
.catalog-header a, .catalog-footer a { text-decoration: none; font-weight: 700; }
.catalog-header a:hover, .catalog-footer a:hover { text-decoration: underline; }
.catalog-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; line-height: 1.12; letter-spacing: -.025em; }
.catalog-brand small { display: block; font-size: 10px; letter-spacing: .15em; color: #a9bdd4; margin-top: 5px; }
.catalog-mark { display: grid; place-items: center; min-width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg,#177ebc,#14acc8); color: white; font-weight: 850; }
.brand-accent { color: var(--sky); }
.vehicle-catalog .nav-contact { padding: 12px 18px; background: linear-gradient(120deg,#ff901e,#ffab12); border-radius: 10px; color: #152136; font-size: 13px; white-space: nowrap; }
.catalog-hero {
    padding: 77px 0 75px;
    color: white;
    background: radial-gradient(ellipse at 18% 13%, #15384f, transparent 49%), radial-gradient(ellipse at 84% 10%, #1b193c, transparent 68%), #151b34;
}
.hero-copy { margin: 0 auto 40px; text-align: center; }
.vehicle-catalog .kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .09em; }
.hero-copy .kicker {
    display: inline-block; padding: 7px 16px; margin-bottom: 24px; color: #4dd3fa;
    border: 1px solid #2b6987; border-radius: 999px; background: #17364c; letter-spacing: .015em;
}
.hero-copy h1 { margin: 0 0 17px; font-size: clamp(35px, 4.4vw, 64px); }
.hero-copy h1 span { color: var(--sky); }
.hero-copy > p:last-child { max-width: 770px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: #f1f5fc; }
.hero-filter {
    box-sizing: border-box; width: min(100%,1120px); margin-inline: auto; padding: 26px 30px 24px;
    background: #1c273e; border: 1px solid #526078; border-radius: 19px; box-shadow: 0 24px 55px #080f2538;
}
.hero-filter-title, .hero-filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hero-filter-title { padding-bottom: 17px; border-bottom: 1px solid #3d4a63; margin-bottom: 20px; }
.hero-filter-title span, .hero-filter-actions span { font-size: 12px; color: #bfd3ea; }
.hero-fields { display: grid; gap: 15px; grid-template-columns: 2fr 1fr 1fr; }
.hero-fields label { display: grid; min-width: 0; gap: 6px; color: #c0d1e7; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hero-fields input, .hero-fields select {
    box-sizing: border-box; width: 100%; min-height: 47px; padding: 9px 11px;
    border: 1px solid #44546f; border-radius: 8px; color: white; background: #101a2b; font: 14px Arial, sans-serif;
}
.hero-fields input::placeholder { color: #a2b6cd; }
.hero-filter-actions { margin-top: 18px; }
.vehicle-catalog .catalog-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    padding: 10px 20px; border: 0; border-radius: 8px; background: linear-gradient(125deg,#118cc1,#226abd);
    color: white; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer;
}
.vehicle-catalog .catalog-button:hover { background: #124f86; color: white; }
.catalog-steps { background: #111d30; color: #fff; }
.catalog-steps .catalog-shell { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; padding-block: 24px; }
.catalog-steps .catalog-shell > div { display: flex; align-items: center; gap: 14px; }
.catalog-steps b { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 11px; color: #4dd2f2; background: #183954; font-size: 21px; }
.catalog-steps strong, .catalog-steps small { display: block; font-size: 13px; }
.catalog-steps small { color: #c4d7eb; font-size: 11px; }
.catalog-band, .catalog-content { padding-block: 62px; }
.generation-band { background: linear-gradient(120deg,#d8e7f3,#f0f6fc); }
.trim-band { background: #f7fafe; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-heading h2, .inquiry-panel h2 { margin: 0; font-size: clamp(27px, 3vw, 34px); }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.section-heading > a { color: var(--blue); font-weight: 750; font-size: 14px; white-space: nowrap; text-decoration: none; }
.section-heading > span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.category-grid, .trim-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.category-grid a { position: relative; padding: 22px; border-top: 4px solid #218bc4; border-radius: 13px; background: #123255; color: white; text-decoration: none; }
.category-grid a:hover { background: #194b76; }
.category-grid a span { position: absolute; top: 14px; right: 18px; color: #67d4f4; }
.category-grid small { display: block; margin-bottom: 8px; color: #b6d4ed; }
.category-grid h3 { margin: 0; font-size: 20px; }
.trim-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.trim-grid > * { display: block; border: 1px solid var(--line); border-radius: 11px; padding: 18px; background: white; text-decoration: none; }
.trim-grid a span { float: right; color: var(--blue); }
.trim-grid h3 { font-size: 19px; margin-bottom: 8px; }
.trim-grid p { color: var(--muted); margin: 0; font-size: 14px; }
.buying-guide { margin-top: 58px; }
.catalog-filter {
    display: grid; grid-template-columns: 1.4fr repeat(3,1fr) auto; align-items: end; gap: 12px;
    padding: 20px; background: #f3f7fa; border: 1px solid var(--line); border-radius: 12px;
}
.catalog-filter label, .inquiry-panel label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; min-width: 0; }
.catalog-filter input, .catalog-filter select, .inquiry-panel input, .inquiry-panel textarea {
    box-sizing: border-box; min-height: 46px; width: 100%; border: 1px solid #cbd8e4;
    border-radius: 7px; padding: 9px 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 450;
}
.vehicle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 22px; }
.vehicle-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 12px; }
.vehicle-card-image { display: block; }
.vehicle-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vehicle-photo-empty { display: grid; place-items: center; background: #e7eef5; color: var(--muted); font-size: 14px; }
.vehicle-card-copy { padding: 18px; }
.vehicle-card-copy h3 { font-size: 20px; margin: 0 0 8px; }
.vehicle-card-copy h3 a, .vehicle-card-bottom a { text-decoration: none; }
.vehicle-card-copy h3 a:hover, .vehicle-card-bottom a:hover { text-decoration: underline; }
.vehicle-card-copy p { color: var(--muted); font-size: 14px; }
.vehicle-card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.vehicle-card-bottom a { color: var(--blue); font-weight: 700; }
.vehicle-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.inventory-empty { margin-top: 16px; border: 1px dashed #cbd8e5; border-radius: 12px; padding: 28px; text-align: center; }
.inventory-empty h3 { font-size: 20px; margin: 0 0 7px; }
.inventory-empty p { color: var(--muted); margin: 0; }
.inquiry-panel {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 5vw, 70px);
    margin-top: 58px; border-radius: 16px; padding: clamp(22px, 4vw, 48px); background: #123255; color: white;
}
.inquiry-panel .kicker { color: var(--sky); }
.inquiry-panel h2 { margin-bottom: 16px; }
.inquiry-panel p:not(.kicker) { color: #dce8f5; }
.inquiry-panel form, .form-row { display: grid; gap: 12px; }
.form-row { grid-template-columns: 1fr 1fr; }
.inquiry-panel textarea { min-height: 96px; resize: vertical; }
.inquiry-panel button { justify-self: start; }
.form-trap { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; white-space: nowrap; }
.inquiry-panel .form-status { border: 1px solid #769bbf; padding: 8px 12px; border-radius: 6px; margin: 0; }
.catalog-footer { background: var(--navy); color: white; font-size: 14px; }
.catalog-footer .catalog-shell { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; padding-block: 36px; }
.catalog-footer a { display: block; color: #cfdfef; }
.catalog-footer p { color: #cfdfef; }
.vehicle-detail { padding-block: 28px 65px; }
.back-link { display: inline-block; margin-bottom: 20px; }
.vehicle-detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: clamp(22px, 4vw, 55px); }
.vehicle-detail-grid .vehicle-photo { border-radius: 13px; }
.vehicle-detail h1 { font-size: clamp(34px, 5vw, 58px); margin: 0 0 20px; }
.vehicle-specs { margin: 0 0 22px; }
.vehicle-specs div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; }
.vehicle-specs dt { color: var(--muted); }
.vehicle-specs dd { margin: 0; font-weight: 700; text-align: right; }
.vehicle-description { max-width: 760px; margin-top: 26px; }
@media (max-width: 900px) {
    .catalog-header-inner { flex-wrap: wrap; gap: 11px; padding-block: 13px; }
    .catalog-header nav { order: 3; width: 100%; justify-content: center; gap: 13px; }
    .catalog-filter, .category-grid, .vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
    .catalog-shell { width: calc(100% - 30px); }
    .catalog-brand { font-size: 17px; gap: 8px; }
    .catalog-mark { min-width: 39px; height: 39px; }
    .vehicle-catalog .nav-contact { padding: 9px 12px; font-size: 12px; }
    .catalog-hero { padding: 38px 0; }
    .hero-copy { margin-bottom: 22px; }
    .hero-copy h1 br { display: none; }
    .hero-copy > p:last-child { font-size: 15px; }
    .hero-filter { padding: 16px; }
    .hero-filter-title, .hero-filter-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
    .hero-fields, .catalog-steps .catalog-shell, .catalog-filter, .trim-grid, .vehicle-grid, .vehicle-detail-grid, .inquiry-panel { grid-template-columns: minmax(0,1fr); }
    .hero-filter-actions button { width: 100%; }
    .catalog-band, .catalog-content { padding-block: 36px; }
    .section-heading { flex-wrap: wrap; }
    .catalog-footer .catalog-shell { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .catalog-footer .catalog-shell > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
    .form-row, .category-grid { grid-template-columns: minmax(0,1fr); }
}

