:root {
    --gold: #9b761d;
    --gold-dark: #6f5210;
    --gold-bright: #d4ae45;
    --black: #0d0e0f;
    --white: #ffffff;
    --ivory: #faf8f2;
    --ivory-deep: #f1ecdf;
    --text: #171717;
    --text-muted: #66635d;
    --border: #e3dac3;
    --shadow: 0 18px 55px rgba(42, 31, 8, 0.1);
    --shadow-soft: 0 8px 30px rgba(42, 31, 8, 0.07);
    --radius: 12px;
    --container: 1240px;
}

html { background: var(--ivory); }
body {
    background: var(--ivory);
    color: var(--text);
    overflow-x: hidden;
}
.site-shell,
.site-main { background: var(--ivory); }
.container { width: min(var(--container), calc(100% - 3rem)); }
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    background: var(--black);
    color: var(--white);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
    border-bottom: 1px solid rgba(155, 118, 29, 0.2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(35, 27, 8, 0.06);
    backdrop-filter: blur(16px);
}
.site-header__inner {
    min-height: 88px;
    padding-block: 0.7rem;
}
.brand { gap: 0.85rem; }
.brand__icon { width: 76px; height: 54px; }
.brand__name { color: var(--gold-dark); font-size: 1.88rem; }
.brand__sub { color: #27241e; }
.site-nav__link {
    position: relative;
    padding: 0.65rem 0.58rem;
    color: #27241e;
}
.site-nav__link::after {
    position: absolute;
    right: 0.6rem;
    bottom: 0.25rem;
    left: 0.6rem;
    height: 1px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-header__contact { border-color: rgba(155, 118, 29, 0.24); }

.btn {
    min-height: 48px;
    border-radius: 8px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn:hover {
    opacity: 1;
    box-shadow: 0 10px 26px rgba(42, 31, 8, 0.14);
    transform: translateY(-2px);
}
.btn--primary {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    color: #15120a;
}
.btn--outline-dark { background: transparent; }
.link-gold { color: var(--gold-dark); }

.hero-ca {
    min-height: clamp(650px, 74vh, 780px);
    align-items: stretch;
    background: #111;
}
.hero-ca__bg {
    background:
        linear-gradient(90deg, rgba(5, 6, 6, 0.94) 0%, rgba(5, 6, 6, 0.72) 37%, rgba(5, 6, 6, 0.16) 68%, rgba(5, 6, 6, 0.05) 100%),
        url("/assets/images/kingz-portland-hero.jpg") center / cover no-repeat;
    transform: scale(1.01);
    animation: heroImageIn 1.2s ease-out both;
}
.hero-ca > .container {
    display: flex;
    width: min(var(--container), calc(100% - 3rem));
    margin-inline: auto;
    min-height: inherit;
    align-items: center;
}
.hero-ca__content {
    max-width: 650px;
    padding: 5rem 0;
    animation: heroCopyIn 0.85s 0.12s ease-out both;
}
.hero-ca__eyebrow {
    color: var(--gold-bright);
    font-size: 0.78rem;
}
.hero-ca__content h1 {
    max-width: 12ch;
    margin-bottom: 1.4rem;
    font-size: clamp(3rem, 5.5vw, 5.3rem);
    line-height: 0.98;
    text-wrap: balance;
}
.hero-ca__content p { font-size: 1.08rem; line-height: 1.75; }
.hero-ca__actions { gap: 0.8rem; }
.hero-ca__actions .btn { min-width: 190px; }
.hero-ca__actions .btn--outline-dark {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(5, 6, 6, 0.48);
    color: var(--white);
    backdrop-filter: blur(8px);
}
.hero-ca__actions .btn--outline-dark:hover {
    border-color: var(--gold-bright);
    background: rgba(5, 6, 6, 0.72);
    color: var(--gold-bright);
}

.section-ca,
.features-ca,
.contact-ca,
.inner-section,
.about-split { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.section-head-ca,
.cq-heading {
    margin-bottom: 2.5rem;
}
.section-head-ca h2,
.features-ca__title,
.inner-section__title {
    color: var(--black);
    font-size: clamp(2rem, 4vw, 3.8rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}
.section-head-ca__line {
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
}

.vehicle-grid--ca,
.inventory-grid {
    gap: 1.5rem;
}
.vehicle-card--ca,
.inv-card {
    overflow: hidden;
    border: 1px solid rgba(155, 118, 29, 0.25);
    border-radius: 14px;
    background: var(--white) !important;
    box-shadow: var(--shadow-soft);
    color: var(--black) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.vehicle-card--ca:hover,
.inv-card:hover {
    border-color: rgba(155, 118, 29, 0.65);
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}
.vehicle-card__media,
.inv-card__media {
    aspect-ratio: 1.38;
    background: #ebe8df;
}
.vehicle-card__media img,
.inv-card__media img { transition: transform 0.65s cubic-bezier(.2,.7,.2,1); }
.vehicle-card--ca:hover .vehicle-card__media img,
.inv-card:hover .inv-card__media img { transform: scale(1.045); }
.vehicle-card__body,
.inv-card__body {
    padding: 1.35rem;
    color: var(--black) !important;
}
.vehicle-card__body h3,
.inv-card__body h3 {
    color: var(--black) !important;
    font-size: clamp(1rem, 1.4vw, 1.22rem);
}
.vehicle-card__meta,
.inv-card__eyebrow { color: var(--gold-dark); }
.vehicle-card__price,
.inv-card__price { color: var(--gold-dark) !important; font-size: 1.55rem; }
.vehicle-card__cta {
    border-color: rgba(155, 118, 29, 0.32);
    background: var(--ivory);
    color: var(--black);
}
.vehicle-card__cta:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: #15120a;
}
.inv-card__bottom { border-color: rgba(155, 118, 29, 0.22) !important; }
.inv-card__stock { color: var(--text-muted) !important; }
.inv-card__view {
    border-color: rgba(212, 174, 69, 0.42);
    border-radius: 7px;
    color: var(--gold-bright);
}

.features-ca {
    position: relative;
    overflow: hidden;
    background: var(--ivory-deep);
}
.features-ca::before {
    position: absolute;
    top: -220px;
    right: -180px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(155, 118, 29, 0.13);
    border-radius: 50%;
    content: "";
}
.features-ca__grid { gap: 1rem; }
.feature-ca {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(155, 118, 29, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-ca:hover { border-color: var(--gold); transform: translateY(-5px); }
.feature-ca__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(155, 118, 29, 0.45);
    border-radius: 50%;
    color: var(--gold-dark);
}

.contact-ca { background: var(--white); }
.contact-ca__grid { gap: 1.5rem; }
.contact-ca__photo,
.contact-ca__form-wrap,
.contact-ca__info,
.contact-map {
    overflow: hidden;
    border: 1px solid rgba(155, 118, 29, 0.22);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.contact-ca__form-wrap,
.contact-ca__info { padding: clamp(1.6rem, 3vw, 2.5rem); background: var(--ivory); }
.contact-ca__photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-map__embed { min-height: 360px; background: #ebe8df; }
.contact-map__embed > a { display: block; width: 100%; height: 100%; min-height: inherit; }
.contact-map__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}
.contact-map__caption { border-color: rgba(155, 118, 29, 0.22); background: var(--white); }
.contact-ca__form-wrap > h2 {
    margin-top: 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}
.contact-ca .lead-form-card h2 { font-size: 1rem; letter-spacing: 0.06em; }
.contact-ca .field input,
.contact-ca .field textarea {
    border-radius: 8px;
    background: var(--white);
}

.inventory-hero,
.page-banner {
    position: relative;
    display: flex;
    min-height: clamp(330px, 43vw, 500px);
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    overflow: hidden;
    border: 0;
    color: var(--white);
}
.inventory-hero__bg,
.page-banner__bg {
    position: absolute;
    inset: 0;
    filter: none;
}
.inventory-hero__content,
.page-banner__head,
.page-banner__body {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 3rem));
    margin-inline: auto;
    padding: 0;
    background: transparent;
}
.page-banner__head { min-height: 0; }
.inventory-hero__content h1,
.page-banner__head h1 {
    margin: 0;
    color: var(--white) !important;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.95;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.inventory-hero__content p,
.page-banner__body p {
    max-width: 680px;
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.05rem;
}
.inventory-page { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--ivory); }
.inventory-simple-meta {
    margin-bottom: 2.5rem;
    padding: 0 0 1.3rem;
    border-top: 0;
    border-bottom: 1px solid var(--border);
}

.inner-intro { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--white); }
.inner-intro__content { max-width: 900px; }
.inner-intro__content h2 {
    font-size: clamp(2rem, 4.5vw, 4.2rem);
    line-height: 1.08;
}
.inner-intro__content p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }
.inner-section--muted { background: var(--ivory-deep); }
.inner-section .content-narrow > .lead-form-section {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(155, 118, 29, 0.24);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}
.inner-section .lead-form-card h2 {
    margin-top: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.inner-section .lead-form__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.process-grid,
.info-cards { gap: 1rem; }
.process-card,
.info-card {
    overflow: hidden;
    border: 1px solid rgba(155, 118, 29, 0.22);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-card:hover,
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.process-card__num { color: var(--gold); }

.about-split { background: var(--white); }
.about-split__grid { gap: clamp(2.5rem, 7vw, 6rem); }
.about-split__photo { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-split__photo img { min-height: 520px; object-fit: cover; }
.about-list li::before { color: var(--gold-dark); }
.about-stats {
    overflow: hidden;
    border: 1px solid rgba(155, 118, 29, 0.24);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.vehicle-detail { padding-block: clamp(2rem, 5vw, 4.5rem); background: var(--ivory); }
.vehicle-gallery__main,
.vehicle-detail__specs-list,
.vehicle-specs-panel,
.vehicle-summary-card,
.vehicle-detail__vin {
    border-color: rgba(155, 118, 29, 0.25);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.vehicle-summary-card {
    background: var(--white);
    color: var(--black);
}
.vehicle-summary-card__facts {
    border-color: rgba(155, 118, 29, 0.2);
    background: var(--ivory);
}
.vehicle-detail__main--bottom {
    padding: clamp(1.3rem, 3vw, 2.2rem);
    border: 1px solid rgba(155, 118, 29, 0.22);
    border-radius: var(--radius);
    background: var(--white);
}
.premium-lead {
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 5% 0, rgba(212, 174, 69, 0.12), transparent 34%),
        var(--white);
    color: var(--black);
    box-shadow: var(--shadow);
}
.premium-lead::after { border-color: rgba(155, 118, 29, 0.18); }
.premium-lead__eyebrow,
.premium-lead__channels a { color: var(--gold-dark); }
.premium-lead__channels a { border-color: rgba(155, 118, 29, 0.48); }
.premium-lead__intro h2 { color: var(--black); }
.premium-lead__intro p { color: var(--text-muted); }
.premium-lead__form label > span { color: #5f5a4f; }
.premium-lead__form input,
.premium-lead__form textarea {
    border-bottom-color: rgba(23, 23, 23, 0.28);
    color: var(--black);
}
.premium-lead__form input::placeholder,
.premium-lead__form textarea::placeholder { color: #8a877f; }
.premium-lead__form input:focus,
.premium-lead__form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 1px 0 var(--gold);
}
.vehicle-detail__map { margin-top: 2rem; }

.inner-cta {
    padding-block: clamp(3rem, 6vw, 5rem);
    background: var(--white);
    color: var(--black);
}
.inner-cta__inner {
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid rgba(155, 118, 29, 0.3);
    border-radius: var(--radius);
    background: var(--ivory);
    box-shadow: var(--shadow-soft);
}
.inner-cta h2 { color: var(--black); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.inner-cta p { color: var(--text-muted); }

.legal-page,
.not-found { background: var(--ivory); }
.legal-page { padding-block: clamp(3.5rem, 7vw, 6rem); }
.legal-page .content-narrow {
    max-width: 880px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    border: 1px solid rgba(155, 118, 29, 0.22);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}
.legal-page__eyebrow,
.legal-page__updated { color: var(--gold-dark); }
.legal-page h2 {
    margin-top: 2.2rem;
    color: var(--black);
    font-family: var(--font-display);
}
.legal-page p { color: var(--text-muted); line-height: 1.85; }
.legal-page a { color: var(--gold-dark); font-weight: 700; }
.not-found { min-height: 68vh; }
.not-found__inner {
    padding-block: clamp(5rem, 10vw, 9rem);
}
.not-found__inner img {
    filter: drop-shadow(0 10px 20px rgba(155, 118, 29, 0.16));
}
.site-footer { background: #0d0e0f; }
.site-footer__top { padding-block: 4.5rem 3rem; }

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes heroCopyIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroImageIn {
    from { opacity: 0.7; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1.01); }
}

@media (max-width: 1199px) {
    .vehicle-grid--ca,
    .inventory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .container { width: min(100% - 2rem, var(--container)); }
    .site-header__inner { min-height: 72px; }
    .brand__icon { width: 66px; height: 48px; }
    .brand__name { font-size: 1.55rem; }
    .site-nav {
        background: rgba(255, 255, 255, 0.985);
        backdrop-filter: blur(18px);
    }
    .site-nav__link.is-active { background: rgba(155, 118, 29, 0.09); }

    .hero-ca {
        min-height: 690px;
        align-items: stretch;
    }
    .hero-ca__bg {
        background:
            linear-gradient(180deg, rgba(4, 5, 5, 0.82) 0%, rgba(4, 5, 5, 0.34) 30%, rgba(4, 5, 5, 0.08) 54%, rgba(4, 5, 5, 0.82) 100%),
            url("/assets/images/kingz-portland-hero-mobile.jpg?v=2") center / cover no-repeat;
    }
    .hero-ca > .container {
        width: min(100% - 2rem, var(--container));
        min-height: 690px;
        align-items: stretch;
    }
    .hero-ca__content {
        display: flex;
        width: 100%;
        max-width: none;
        min-height: 690px;
        flex-direction: column;
        padding: 2.2rem 0 1.5rem;
    }
    .hero-ca__content h1 {
        max-width: 11ch;
        font-size: clamp(2.25rem, 9vw, 4.2rem);
    }
    .hero-ca__lead {
        display: block;
        max-width: 30ch;
        font-size: 0.94rem !important;
    }
    .hero-ca__actions {
        width: 100%;
        margin-top: auto;
    }
    .hero-ca__actions .btn { width: 100%; min-width: 0; }

    .vehicle-grid--ca,
    .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-ca__grid,
    .process-grid,
    .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-ca__grid,
    .about-split__grid { grid-template-columns: 1fr; }
    .about-split__photo img { min-height: 0; max-height: 560px; }
    .premium-lead { grid-template-columns: 1fr; gap: 2.5rem; }
    .inner-section .lead-form__fields { grid-template-columns: 1fr; }
    .vehicle-summary-card { margin-top: 1rem; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 1.25rem); }
    .site-header__inner { min-height: 64px; }
    .brand { gap: 0.45rem; }
    .brand__icon { width: 58px; height: 42px; }
    .brand__name { font-size: 1.28rem; }
    .brand__sub { font-size: 0.58rem; }

    .hero-ca,
    .hero-ca > .container,
    .hero-ca__content { min-height: 650px; }
    .hero-ca > .container { width: calc(100% - 1.25rem); }
    .hero-ca__bg {
        background-position: center;
    }
    .hero-ca__content { padding-top: 1.6rem; }
    .hero-ca__eyebrow { font-size: 0.62rem; }
    .hero-ca__content h1 { font-size: clamp(2rem, 10vw, 3rem); }

    .section-ca,
    .features-ca,
    .contact-ca,
    .inner-section,
    .about-split { padding-block: 3.5rem; }
    .vehicle-grid--ca,
    .inventory-grid,
    .features-ca__grid,
    .process-grid,
    .info-cards { grid-template-columns: 1fr; }
    .section-head-ca { align-items: flex-start; gap: 1rem; }
    .section-head-ca h2,
    .features-ca__title,
    .inner-section__title { font-size: 2rem; }
    .vehicle-card__body,
    .inv-card__body { padding: 1.15rem; }

    .inventory-hero,
    .page-banner { min-height: 360px; }
    .inventory-hero,
    .page-banner { padding-block: 3rem; }
    .inventory-hero__content,
    .page-banner__head,
    .page-banner__body { width: calc(100% - 1.25rem); }
    .inventory-hero__content h1,
    .page-banner__head h1 { font-size: 2.7rem; }
    .inventory-simple-meta { align-items: flex-start; flex-direction: column; }

    .premium-lead {
        gap: 2rem;
        padding: 2.2rem 1.25rem;
        border-radius: 0;
    }
    .premium-lead__row { flex-direction: column; }
    .premium-lead__form .btn { width: 100%; }
    .vehicle-detail__main--bottom { padding: 1.15rem; }
    .inner-cta__inner { align-items: stretch; }
    .inner-cta__actions { width: 100%; }
    .inner-cta__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
