/* AUTOHERO Motors standalone site. Brand blue #012DC9. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f4f3f5;
    color: #251f21;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

.card {
    background: #fff;
    border: 1px solid #eae9ea;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(1, 20, 90, 0.06);
}

@media (min-width: 768px) {
    .page { padding: 28px 20px 56px; }
    .card { padding: 36px; border-radius: 28px; }
}

.ah-anchor { scroll-margin-top: 16px; }

/* ---------- Sections ---------- */

.ah-group { margin-top: 44px; }

.ah-group-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #012DC9;
}

.ah-para {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #585254;
    max-width: 68ch;
}

/* ---------- Top bar ---------- */

.ah-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eae9ea;
}

.ah-nav-brand { display: flex; align-items: center; gap: 10px; }

.ah-nav-logo { height: 52px; width: auto; display: block; }

.ah-nav-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-weight: 600;
    font-size: 15px;
}

.ah-nav-name .ah-wordmark { font-size: 24px; color: #012DC9; }

.ah-nav-sub {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #585254;
}

.ah-nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }

.ah-nav-link { font-size: 14px; color: #251f21; text-decoration: none; padding: 10px 0; }
.ah-nav-link:hover { color: #012DC9; text-decoration: underline; }

.ah-nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #012DC9;
    border-radius: 999px;
    padding: 10px 18px;
    text-decoration: none;
}
.ah-nav-cta:hover { background: #01209a; }

@media (max-width: 480px) {
    .ah-nav-links { gap: 4px 12px; }
    .ah-nav-link { font-size: 13px; }
    .ah-nav-cta { font-size: 13px; padding: 9px 14px; }
}

/* ---------- Hero ---------- */

.ah-hero {
    margin: 0 -24px;
    padding: 44px 24px 110px;
    background:
        linear-gradient(115deg, rgba(1, 20, 90, 0.95) 0%, rgba(1, 32, 154, 0.88) 45%, rgba(1, 45, 201, 0.60) 100%),
        url('photos/hero.jpg') center 38% / cover no-repeat #01209a;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 0 100%);
}

@media (min-width: 768px) {
    .ah-hero {
        margin: 0 -36px;
        padding: 64px 36px 140px;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
    }
}

.ah-hero-inner { display: flex; flex-direction: column; gap: 30px; }

@media (min-width: 900px) {
    .ah-hero-inner { flex-direction: row; align-items: center; gap: 44px; }
    .ah-hero-copy { flex: 1 1 55%; min-width: 0; }
    .ah-finder { flex: 0 1 400px; }
}

.ah-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #dfe7ff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    padding: 7px 14px;
}

.ah-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9dbcff;
    box-shadow: 0 0 0 3px rgba(157, 188, 255, 0.25);
}

.ah-hero-title {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) { .ah-hero-title { font-size: 52px; } }

.ah-hero-accent { color: #9dbcff; }

.ah-hero-sub { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: #dfe7ff; max-width: 46ch; }

.ah-hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 13.5px;
    color: #bcd0ff;
}

.ah-hero-trust svg { flex: none; }

/* ---------- Find Your Vehicle card ---------- */

.ah-finder {
    background: #fff;
    color: #251f21;
    border-radius: 18px;
    padding: 22px 20px 20px;
    box-shadow: 0 24px 60px rgba(0, 10, 60, 0.45);
}

.ah-finder-title { font-size: 18px; font-weight: 800; margin: 0 0 14px; }

.ah-finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

@media (max-width: 480px) { .ah-finder-grid { grid-template-columns: 1fr; } }

.ah-finder-field span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8587;
    margin-bottom: 5px;
}

.ah-finder select {
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcdd0;
    border-radius: 10px;
    background: #fff;
    color: #251f21;
}

.ah-finder select:disabled { color: #8a8587; background: #f4f3f5; }
.ah-finder select:focus { outline: 2px solid #012DC9; border-color: #012DC9; }

.ah-finder-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8587;
    margin-bottom: 6px;
}

.ah-finder-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }

.ah-finder-body button {
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 9px;
    border: 1.5px solid #e0dee0;
    border-radius: 12px;
    background: #fff;
    color: #251f21;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.ah-finder-body button:hover { border-color: #012DC9; }
.ah-finder-body button.is-selected { border-color: #012DC9; background: #eef2ff; color: #012DC9; }
.ah-finder-body svg { width: 40px; height: 24px; }

.ah-finder-priceRow { margin-bottom: 16px; }
.ah-finder-priceRow .ah-finder-label b { color: #251f21; text-transform: none; letter-spacing: 0; font-size: 13px; }
.ah-finder-priceRow input[type="range"] { width: 100%; accent-color: #012DC9; margin: 6px 0 0; display: block; }

.ah-finder-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    background: #012DC9;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
}

.ah-finder-search:hover { background: #01209a; }

/* ---------- Trust strip ---------- */

.ah-trust { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 28px 0 8px; }

@media (min-width: 768px) { .ah-trust { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.ah-trust-item { border-left: 3px solid #012DC9; padding: 4px 0 4px 14px; }
.ah-trust-title { font-size: 14px; font-weight: 600; color: #251f21; margin-bottom: 3px; }
.ah-trust-detail { font-size: 13px; line-height: 1.5; color: #585254; }

/* ---------- Makes strip ---------- */

.ah-makes {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
    padding: 2px 0 8px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ah-makes-track { display: flex; gap: 10px; width: max-content; animation: ah-marquee 32s linear infinite; }
.ah-makes:hover .ah-makes-track { animation-play-state: paused; }

@keyframes ah-marquee { to { transform: translateX(calc(-50% - 5px)); } }

.ah-make {
    flex: 0 0 auto;
    border: 1.5px solid #d9d7d8;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #251f21;
    background: #fff;
}

/* ---------- Choice row (body style filter) ---------- */

.ah-choice-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
}

.ah-choice-label {
    font-size: 13px;
    font-weight: 600;
    color: #585254;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ah-choice-options { display: flex; flex-wrap: wrap; gap: 8px; }

.ah-choice {
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #251f21;
    background: #fff;
    border: 1.5px solid #d9d7d8;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.ah-choice:hover { border-color: #012DC9; color: #012DC9; }

.ah-choice.is-selected {
    background: #012DC9;
    border-color: #012DC9;
    color: #fff;
}

/* ---------- Inventory cards ---------- */

.ah-cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 14px; }

@media (min-width: 768px) { .ah-cards { grid-template-columns: repeat(3, 1fr); } }

.ah-card {
    border: 1px solid #eae9ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.ah-card.is-hidden { display: none; }

.ah-card-photoWrap { position: relative; overflow: hidden; }

.ah-card-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.ah-card:hover .ah-card-photo { transform: scale(1.05); }

.ah-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #012DC9;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}

.ah-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.ah-card-title { font-size: 16px; font-weight: 600; color: #251f21; }
.ah-card-trim { font-size: 13px; color: #585254; }

.ah-card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ah-chip { font-size: 12px; color: #8a8587; background: #f1f0f0; border-radius: 6px; padding: 4px 8px; }

.ah-card-priceRow {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eae9ea;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ah-card-priceBox { display: flex; flex-direction: column; }
.ah-card-priceLabel { font-size: 11px; color: #8a8587; text-transform: uppercase; letter-spacing: 0.06em; }
.ah-card-priceValue { font-size: 16px; font-weight: 600; color: #8a8587; }

.ah-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: #012DC9;
    border: 1.5px solid #c3d0f5;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
}

/* ---------- Tips ---------- */

.ah-tips { display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (min-width: 768px) { .ah-tips { grid-template-columns: repeat(3, 1fr); } }

.ah-tip { border: 1px solid #eae9ea; border-radius: 14px; padding: 16px; background: #fff; }
.ah-tip-title { font-size: 14px; font-weight: 600; color: #012DC9; margin-bottom: 6px; }
.ah-tip-detail { font-size: 13px; line-height: 1.55; color: #585254; }

/* ---------- Get the app ---------- */

.ah-appcards { display: grid; grid-template-columns: 1fr; gap: 14px; }

@media (min-width: 768px) { .ah-appcards { grid-template-columns: repeat(2, 1fr); } }

.ah-appcard { border: 1px solid #eae9ea; border-radius: 14px; padding: 16px; background: #fff; }
.ah-appcard-os { font-size: 14px; font-weight: 600; color: #012DC9; margin-bottom: 6px; }
.ah-appcard-note { font-size: 12px; font-weight: 400; color: #8a8587; margin-left: 4px; }

.ah-appcard-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; color: #585254; }
.ah-appcard-steps li + li { margin-top: 4px; }
.ah-appcard-steps b { color: #262122; }

/* ---------- Facts ---------- */

.ah-facts { margin: 0 0 14px; display: flex; flex-direction: column; }

.ah-fact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eae9ea;
}

.ah-fact:first-child { border-top: 1px solid #eae9ea; }

.ah-fact dt {
    flex: 0 0 90px;
    font-size: 12px;
    font-weight: 600;
    color: #8a8587;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 2px;
}

.ah-fact dd { margin: 0; font-size: 14px; color: #251f21; }

/* ---------- Footer ---------- */

.ah-footer {
    margin: 48px -24px -24px;
    background: #0d1b3e;
    color: #dfe7ff;
    padding: 36px 24px 20px;
}

@media (min-width: 768px) {
    .ah-footer { margin: 56px -36px -36px; padding: 44px 36px 22px; }
}

.ah-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}

@media (min-width: 768px) { .ah-footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; } }

.ah-footer-logo { width: 52px; height: 52px; border-radius: 12px; display: block; margin-bottom: 12px; }
.ah-footer-blurb { margin: 0; font-size: 13.5px; line-height: 1.6; color: #aebadd; max-width: 40ch; }

.ah-footer-head {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #012DC9;
    display: inline-block;
}

.ah-footer-col { display: flex; flex-direction: column; gap: 9px; }
.ah-footer-link { font-size: 14px; color: #dfe7ff; text-decoration: none; }
.ah-footer-link:hover { text-decoration: underline; }
.ah-footer-text { font-size: 14px; color: #aebadd; }

.ah-footer-bar { padding-top: 18px; font-size: 12.5px; color: #8fa0cc; text-align: center; }

.ah-closing {
    margin: 20px 0 0;
    font-size: 12.5px;
    color: #8a8587;
    text-align: center;
}

/* ---------- Motion ---------- */

.ah-hero-copy > * { animation: ah-rise 0.8s ease both; }
.ah-hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.ah-hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.ah-hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.ah-hero-copy > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes ah-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ah-js .ah-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ah-js .ah-reveal.is-in { opacity: 1; transform: none; }

.ah-card, .ah-tip, .ah-appcard, .ah-btn, .ah-nav-cta, .ah-finder-search {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ah-card:hover, .ah-tip:hover, .ah-appcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(1, 20, 90, 0.16);
}

.ah-btn:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ah-makes-track, .ah-hero-copy > * { animation: none; }
    .ah-js .ah-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Wordmark ---------- */

@font-face {
    font-family: 'AhDisplay';
    src: url('./fonts/mont-900i.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

.ah-wordmark {
    font-family: 'AhDisplay', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

/* ---------- Inventory search + filters ---------- */
.ah-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 2px; }
.ah-filters[hidden] { display: none; }
.ah-filters input, .ah-filters select { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid #cfcdd0; border-radius: 10px; background: #fff; color: #251f21; }
.ah-filters input { flex: 1 1 200px; min-width: 0; }
.ah-filters input:focus, .ah-filters select:focus { outline: 2px solid #012DC9; border-color: #012DC9; }
.ah-count { font-size: 14px; color: #585254; margin: 10px 0 0; }
.ah-count[hidden] { display: none; }
.ah-empty-clear { display: inline-block; margin-left: 8px; border: 2px solid #012DC9; background: #fff; color: #012DC9; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ah-empty-clear:hover { background: #eef1fb; }

/* ---------- Vehicle detail list ---------- */
.ah-dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 14px 0 2px; font-size: 15px; }
.ah-dl dt { font-weight: 600; color: #3a3436; }
.ah-dl dd { margin: 0; color: #251f21; word-break: break-word; }

/* ---------- Contact / test-drive form ---------- */
.ah-contact { margin-top: 20px; border: 1px solid #e4e6f2; border-radius: 18px; padding: 20px; background: #fbfbff; }
.ah-contact-title { font-size: 20px; font-weight: 700; color: #251f21; }
.ah-contact-sub { font-size: 14px; line-height: 1.5; color: #585254; margin: 6px 0 0; }
.ah-contact form { display: grid; gap: 10px; margin-top: 14px; }
.ah-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .ah-contact-row { grid-template-columns: 1fr; } }
.ah-contact input, .ah-contact select, .ah-contact textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cfcdd0; border-radius: 10px; background: #fff; color: #251f21; width: 100%; }
.ah-contact input:focus, .ah-contact select:focus, .ah-contact textarea:focus { outline: 2px solid #012DC9; border-color: #012DC9; }
.ah-contact textarea { min-height: 100px; resize: vertical; }
.ah-contact-status { font-size: 14px; min-height: 18px; }
.ah-contact-status.is-err { color: #b30600; }
.ah-contact-status.is-ok { color: #0a7a2f; }
.ah-contact-btn { background: #012DC9; color: #fff; border: 0; border-radius: 999px; padding: 13px 20px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ah-contact-btn:disabled { opacity: .5; }
.ah-mobile-bottom{display:none}
@media(max-width:767px){body:has(.ah-mobile-bottom){padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}.ah-mobile-bottom:not([hidden]){position:fixed;bottom:0;left:0;right:0;z-index:80;display:flex;align-items:stretch;justify-content:space-around;gap:2px;padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #d9e2f7;box-shadow:0 -4px 18px #10214912}.ah-mobile-bottom a{flex:1;min-width:0;min-height:50px;font-size:11px;line-height:1.25;font-weight:700;color:#012dc9;text-decoration:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center;border-radius:10px;padding:4px 1px}.ah-mobile-bottom a[aria-current=page]{background:#eaf0ff}.ah-mobile-bottom .ah-icon{width:24px;height:24px;flex:none}.ah-card-price,.ah-detail-price{font-size:28px}input,select,textarea{font-size:16px!important}}
