/* 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: 40px 24px 84px;
    background: linear-gradient(150deg, #012DC9 0%, #01209a 60%, #011a7d 100%);
    color: #fff;
}

@media (min-width: 768px) {
    .ah-hero { margin: 0 -36px; padding: 56px 36px 96px; }
}

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

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

.ah-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bcd0ff;
}

.ah-hero-title {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

.ah-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.ah-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none;
}

.ah-btn-light { background: #fff; color: #012DC9; }
.ah-btn-light:hover { background: #eaf0ff; }
.ah-btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.ah-btn-outline:hover { background: rgba(255,255,255,0.12); }

.ah-hero-note { margin: 0; font-size: 13px; color: #bcd0ff; }

.ah-hero-figure { margin: 0; }

/* ---------- Quick-link cards overlapping hero ---------- */

.ah-qcards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: -56px 8px 0;
    position: relative;
}

@media (min-width: 768px) { .ah-qcards { margin: -64px 24px 0; gap: 18px; } }

.ah-qcard {
    background: #fff;
    border: 1px solid #eae9ea;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(1, 20, 90, 0.12);
    padding: 18px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.ah-qcard:hover { border-color: #012DC9; }

.ah-qcard-svg { width: 56px; height: 33px; }
.ah-qcard-label { font-size: 14px; font-weight: 600; color: #251f21; }

/* ---------- 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-slides { margin: 0; }

.ah-slides-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.25);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35);
    background: #01209a;
}

.ah-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1s ease;
}

.ah-slide.is-active { opacity: 1; animation: ah-kenburns 6s ease-out forwards; }

@keyframes ah-kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }

.ah-slides-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(1, 20, 90, 0.72);
    color: #fff;
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 999px;
}

.ah-slides-dots { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }

.ah-dot {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.ah-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.45);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, background 0.3s ease;
}

.ah-dot.is-active::after { width: 24px; background: #fff; }

.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-qcard, .ah-card, .ah-tip, .ah-appcard, .ah-btn, .ah-nav-cta {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ah-qcard:hover, .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-slide.is-active, .ah-hero-copy > * { animation: none; }
    .ah-js .ah-reveal { opacity: 1; transform: none; transition: none; }
    .ah-slide { 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;
}

.ah-wordmark-xl {
    display: inline-block;
    font-size: clamp(28px, 8.6vw, 76px);
    color: #fff;
    text-shadow: 0 6px 24px rgba(0, 10, 70, 0.45);
    white-space: nowrap;
}

.ah-hero-brand {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(8px, 2.4vw, 20px);
    margin: 0 0 12px;
}

@media (min-width: 900px) {
    .ah-wordmark-xl { font-size: clamp(42px, 4.4vw, 56px); }
    .ah-hero-shield { height: clamp(62px, 6.2vw, 80px); }
}

.ah-hero-shield {
    height: clamp(42px, 12.5vw, 112px);
    width: auto;
    display: block;
    flex: none;
    filter: drop-shadow(0 6px 24px rgba(0, 10, 70, 0.45));
}
