@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #f5f9ff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f1f7ff;
    --ink: #102a43;
    --ink-soft: #486581;
    --accent: #1269c7;
    --accent-deep: #084a99;
    --accent-soft: #46a0f5;
    --signal: #0a78b5;
    --signal-soft: #dcefff;
    --line: #cfe2f5;
    --line-strong: #a9c8e8;
    --success: #16805b;
    --danger: #ce4c4c;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 44px rgba(42, 52, 65, 0.12);
    --shadow-soft: 0 9px 24px rgba(42, 52, 65, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 6% 4%, rgba(60, 155, 246, 0.18), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(8, 74, 153, 0.10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f4f9ff 46%, #edf6ff 100%);
    position: relative;
    overflow-x: hidden;
}
.hhh {
    height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent;
    display: inline-block;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 300px;
    height: 300px;
    left: -140px;
    bottom: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 105, 199, 0.14), rgba(18, 105, 199, 0));
}

body::after {
    width: 360px;
    height: 360px;
    right: -180px;
    top: 26%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 160, 245, 0.16), rgba(70, 160, 245, 0));
}

main {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
    text-decoration: none;
}

blockquote {
    margin: 0 0 0.8rem;
    padding: 0.95rem 1rem;
    border-left: 4px solid var(--accent);
    background: #fff5e8;
    border-radius: 12px;
    color: #2f3c49;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', 'Franklin Gothic Medium', sans-serif;
    letter-spacing: 0.04em;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--accent);
    color: #111;
    z-index: 9999;
}

.skip-link:focus {
    left: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 26px rgba(38, 48, 61, 0.14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
}

.brand-mark {
    width: 46px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(140deg, var(--accent), var(--signal));
    box-shadow: 0 8px 18px rgba(26, 48, 73, 0.24);
}

.brand-mark-logo {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: linear-gradient(135deg, #063f82 0%, #0874d1 56%, #58b6ff 100%);
    box-shadow: 0 9px 22px rgba(8, 74, 153, 0.28);
}

.brand-mark-logo::before {
    content: '';
    position: absolute;
    width: 52px;
    height: 10px;
    left: -7px;
    bottom: 7px;
    border-top: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.brand-mark-logo span {
    position: relative;
    z-index: 1;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text > span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    color: #243241;
}

.brand-text small {
    font-size: 0.69rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6d7c89;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.navbar-nav .nav-link {
    color: #324455;
    border-radius: 999px;
    padding: 0.48rem 0.86rem;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.22s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #182631;
    background: #efe1cd;
}

.navbar-toggler {
    border-color: #cfbeaa;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(214, 95, 51, 0.2);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(130deg, var(--accent), var(--accent-soft));
    color: #271b13;
    border: 1px solid transparent;
    box-shadow: 0 9px 20px rgba(214, 95, 51, 0.26);
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(130deg, var(--accent-deep), #ffac63);
    color: #21150f;
}

.btn-ghost,
.btn-outline-light {
    background: #fff6ea;
    border: 1px solid #d8c4ad;
    color: #264456;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
    background: #f2e0cc;
    border-color: #c7af91;
    color: #1f3444;
}

.btn-state-active {
    background: #e7f6f8;
    border-color: #8cbec4;
    color: #1b5860;
}

.hero-wrap {
    margin-top: -1px;
}

.hero-slide {
    min-height: clamp(430px, 79vh, 760px);
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(107deg, rgba(24, 35, 44, 0.88), rgba(24, 35, 44, 0.43)),
        radial-gradient(circle at 82% 18%, rgba(255, 177, 111, 0.42), transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 710px;
    animation: intro-rise 0.72s ease both;
}

.hero-chip,
.kicker {
    display: inline-block;
    margin-bottom: 0.72rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
    font-weight: 700;
}

.hero-content .hero-chip,
.hero-content .kicker {
    color: #ffd7ac;
}

.hero-content h1,
.inner-hero h1 {
    font-size: clamp(2.35rem, 6vw, 4.55rem);
    margin: 0 0 0.9rem;
    line-height: 0.98;
}

.hero-content h1 {
    color: #fff;
}

.inner-hero h1 {
    color: #1f2d3b;
}

.hero-content p,
.inner-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 620px;
}

.hero-content p {
    color: #ebf2f6;
}

.inner-hero p {
    color: #4f6070;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
}

.hero-meta span {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fcff;
    font-size: 0.8rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
    padding: 1.16rem;
    background-color: rgba(30, 43, 55, 0.42);
}

.search-section {
    position: relative;
    margin-top: -72px;
    z-index: 18;
}

.search-panel {
    padding: 1.65rem;
    border-radius: var(--radius-lg);
}

.search-panel h2 {
    margin-bottom: 1.1rem;
    font-size: 2.1rem;
    line-height: 1;
}

.confidence-strip {
    position: relative;
    z-index: 2;
    padding: 0 0 34px;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid #d5e7f7;
    border-radius: 18px;
    background: #d5e7f7;
    box-shadow: 0 12px 28px rgba(15, 76, 129, 0.08);
}

.confidence-grid > div {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
}

.confidence-grid i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 12px;
    color: #0b67ba;
    background: #e5f2ff;
    font-size: 1.1rem;
}

.confidence-grid span {
    display: grid;
    gap: 0.12rem;
    color: #5a748e;
    font-size: 0.8rem;
    line-height: 1.35;
}

.confidence-grid strong {
    color: #153f68;
    font-size: 0.9rem;
}

.section-block {
    padding: 84px 0;
    position: relative;
}

.section-block.alt {
    background:
        linear-gradient(180deg, rgba(255, 245, 230, 0.84), rgba(255, 251, 244, 0.98));
    border-top: 1px solid rgba(200, 183, 159, 0.36);
    border-bottom: 1px solid rgba(200, 183, 159, 0.36);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2,
h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    color: #233240;
}

.text-muted-light {
    color: #607384;
}

.empty-state {
    padding: 0.96rem 1.1rem;
    margin: 0;
    border-radius: 13px;
    background: #fff4e4;
    border: 1px solid #e8d5ba;
    color: #485b6d;
}

.car-card,
.content-card,
.filter-card,
.promo-card,
.promo-box,
.newsletter-card,
.search-panel,
.admin-panel,
.admin-stat,
.blog-card,
.gallery-card,
.detail-table,
.stacked-info .content-card,
.compare-card {
    background: linear-gradient(165deg, var(--surface), var(--surface-alt));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.car-card,
.promo-card,
.blog-card,
.partner-item,
.stat-card,
.admin-stat,
.admin-panel {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.car-card:hover,
.promo-card:hover,
.blog-card:hover,
.partner-item:hover,
.stat-card:hover,
.admin-stat:hover,
.admin-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.car-card {
    overflow: hidden;
    height: 100%;
}

.car-image {
    height: 184px;
    overflow: hidden;
    display: block;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.045);
}

/* Compact auction-style inventory: four listings across on wide screens. */
.inventory-card .car-image {
    height: 148px;
}

.inventory-card .car-body {
    padding: 0.78rem;
}

.inventory-card .car-body h3 {
    font-size: 1.35rem;
}

.inventory-card .car-body p {
    font-size: 0.86rem;
    margin-bottom: 0.55rem;
}

.inventory-card .car-meta {
    gap: 0.25rem;
    font-size: 0.72rem;
}

.inventory-card .history-note {
    display: none;
}

.inventory-card .car-footer strong {
    font-size: 1.45rem;
}

.car-body {
    padding: 1rem 1rem 1.12rem;
}

.car-body h3,
.promo-box h3,
.promo-card h3,
.content-card h3,
.blog-card h3 {
    font-size: 1.72rem;
    line-height: 0.98;
    margin-bottom: 0.6rem;
    color: #263645;
}

.car-body p,
.promo-box p,
.content-card p,
.newsletter-card p,
.blog-card p,
.history-note,
.quote-by,
.small-note {
    color: var(--ink-soft);
}

.badge-soft {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0.24rem 0.56rem;
    border-radius: 999px;
    font-weight: 700;
    color: #175057;
    background: var(--signal-soft);
    border: 1px solid #8dc7cc;
}

.badge-soft.used {
    color: #8d4b12;
    background: #ffe6ca;
    border-color: #f0b880;
}

.stock {
    color: #7a8a98;
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.8rem;
}

.car-meta span,
.wishlist-chip,
.calc-result,
.partner-item,
.warranty-grid div,
.stat-card {
    border-radius: 999px;
    padding: 0.26rem 0.68rem;
    background: #f4ecdf;
    border: 1px solid #dccab1;
    color: #3a4d5f;
    font-size: 0.78rem;
}

.wishlist-chip,
.calc-result,
.partner-item,
.warranty-grid div,
.stat-card {
    border-radius: 13px;
    font-size: 0.9rem;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.car-footer strong,
.price-display {
    color: #223240;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
}

.car-footer strong {
    font-size: 1.82rem;
    line-height: 1;
}

.history-note {
    font-size: 0.85rem;
}

.promo-box,
.content-card,
.newsletter-card,
.filter-card,
.admin-panel,
.admin-stat {
    padding: 1.2rem;
}

.promo-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(132px, 38%) 1fr;
    align-items: stretch;
    height: 100%;
}

.promo-card img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.promo-card div {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card a,
.blog-card a,
.footer-link {
    color: #0b6570;
    font-weight: 700;
}

.feature-list {
    margin: 0;
    padding-left: 1.08rem;
}

.feature-list li {
    margin-bottom: 0.44rem;
    color: #36495c;
}

.warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
}

.warranty-grid div,
.stat-card {
    padding: 1rem;
    text-align: center;
}

.warranty-grid strong,
.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 0.95;
    color: #22313f;
}

.warranty-grid span,
.stat-card span {
    color: #5a6c7d;
}

.delivered-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 112px));
    gap: 0.68rem;
}

.delivered-grid img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.delivered-grid img:nth-child(1) {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
}

.delivered-grid img:nth-child(2) {
    grid-column: 8 / span 5;
    grid-row: 1;
}

.delivered-grid img:nth-child(3) {
    grid-column: 8 / span 5;
    grid-row: 2;
}

.delivered-grid img:nth-child(4) {
    grid-column: 1 / span 12;
    grid-row: 3;
}

.blog-card {
    overflow: hidden;
    height: 100%;
}

.blog-card img {
    width: 100%;
    height: 212px;
    object-fit: cover;
}

.blog-card div {
    padding: 1rem;
}

.blog-card span {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: #0f6771;
    text-transform: uppercase;
}

.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: #decdb7;
    --bs-accordion-btn-color: #273849;
    --bs-accordion-color: #40556a;
    --bs-accordion-active-bg: #fdf2e4;
    --bs-accordion-active-color: #273849;
}

.accordion-button:focus {
    box-shadow: none;
}

.inner-hero {
    padding: 95px 0 70px;
    background:
        linear-gradient(140deg, rgba(255, 236, 210, 0.92), rgba(226, 242, 243, 0.9));
    border-bottom: 1px solid rgba(200, 183, 159, 0.5);
}

.detail-hero,
.finance-hero {
    padding-top: 96px;
}

.filter-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1;
}

.inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 0.8rem;
}

.inventory-toolbar .badge {
    border: 1px solid #d7c3a6;
}

.wishlist-chip strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.thumb-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.44rem;
}

.thumb-row img {
    border-radius: 9px;
    height: 78px;
    object-fit: cover;
}

.detail-table {
    --bs-table-bg: transparent;
    --bs-table-color: #2b3e51;
    --bs-table-border-color: #e5d5be;
}

.detail-table th {
    width: 39%;
    color: #486783;
    font-weight: 700;
}

.price-display {
    margin: 0.2rem 0;
    font-size: 2.25rem;
    line-height: 0.96;
}

.stacked-info {
    display: grid;
    gap: 1rem;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.partner-item {
    font-weight: 700;
    text-align: center;
    padding: 1rem;
}

.calc-result p {
    margin: 0;
    color: #667b8f;
}

.calc-result strong {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: #223240;
}

.cta-finance .container {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(18, 104, 113, 0.1), rgba(214, 95, 51, 0.1));
    border: 1px solid rgba(187, 162, 132, 0.48);
}

.site-footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #1f2d3a, #17222e);
    border-top: 1px solid #2f4458;
}

.site-footer h5 {
    margin-bottom: 0.9rem;
    color: #f3f8fd;
    font-size: 1.82rem;
    line-height: 1;
}

.footer-list {
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.45rem;
    color: #cad8e5;
}

.site-footer p,
.footer-bottom p,
.site-footer .text-muted-light {
    color: #a7bacd;
}

.site-footer a,
.footer-link {
    color: #d5e9ff;
}

.site-footer a:hover,
.site-footer a:focus,
.footer-link:hover,
.footer-link:focus {
    color: #fff;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.73rem;
    font-weight: 700;
}

.footer-social a i {
    font-size: 0.95rem;
}

.footer-social a.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d5c5ac;
}

.map-wrap iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
}

.contact-details-list li,
.contact-details-list li strong,
.contact-details-list li a {
    color: #000 !important;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.44rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #d5c4a9;
    background: #fff6e9;
    color: #1f3347;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-social-link i {
    font-size: 0.95rem;
}

.contact-social-link:hover,
.contact-social-link:focus {
    background: #f0dfca;
    border-color: #c8b092;
    color: #12293d;
}

.form-control,
.form-select,
textarea {
    border-radius: 12px;
    border: 1px solid #d6c4ab;
    background: #fffdf8;
    color: #263b4f;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: #d56a40;
    box-shadow: 0 0 0 0.2rem rgba(214, 95, 51, 0.2);
    background: #fff;
    color: #1e3347;
}

.form-label {
    color: #3f556a;
    font-size: 0.86rem;
    font-weight: 600;
}

.form-control::placeholder,
textarea::placeholder {
    color: #8a9bad;
}

.is-invalid {
    border-color: var(--danger) !important;
}

.alert {
    border-radius: 12px;
    border: 1px solid rgba(43, 56, 70, 0.14);
}

.compare-modal {
    background: #fffaf2;
    color: #23384b;
    border: 1px solid #dbc9b1;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
}

.compare-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: #f7ecdc;
    border: 1px solid #dec7a8;
}

.compare-card {
    overflow: hidden;
}

.compare-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.compare-card-body {
    padding: 0.8rem;
}

.compare-meta {
    font-size: 0.84rem;
    color: #486078;
    line-height: 1.6;
}

.app-toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1200;
    display: grid;
    gap: 0.5rem;
    width: min(320px, calc(100vw - 24px));
}

.app-toast {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #cbb596;
    background: #fff9ef;
    color: #2a3b4d;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-toast-success {
    border-color: #97cdb1;
    background: #ecfbf4;
    color: #1e5a41;
}

.app-toast-warning {
    border-color: #e6c79f;
    background: #fff4e3;
    color: #764914;
}

.app-toast-info {
    border-color: #a8cfd6;
    background: #edf7f9;
    color: #21545c;
}

/* Admin */
.admin-body {
    background:
        radial-gradient(circle at 90% 8%, rgba(214, 95, 51, 0.12), transparent 28%),
        linear-gradient(180deg, #f7efe3, #f1e7d9);
    color: var(--ink);
}

.admin-nav {
    background: rgba(255, 248, 238, 0.96);
    border-bottom: 1px solid #d8c6ad;
}

.admin-nav .navbar-brand,
.admin-nav .nav-link,
.admin-user {
    color: #2b3e4f;
}

.admin-nav .nav-link {
    border-radius: 999px;
}

.admin-nav .nav-link.active,
.admin-nav .nav-link:hover {
    color: #192833;
    background: #f0e1cc;
}

.admin-main {
    min-height: calc(100vh - 72px);
}

.admin-head h1 {
    font-size: 2.75rem;
}

.admin-stat span {
    display: block;
    color: #698095;
    font-size: 0.85rem;
}

.admin-stat strong {
    font-size: 2.2rem;
    line-height: 0.95;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #2a3e51;
    --bs-table-striped-bg: #f9f0e4;
    --bs-table-border-color: #dccab3;
}

.media-thumb img {
    width: 100%;
    border-radius: 10px;
    height: 130px;
    object-fit: cover;
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 189, 126, 0.44), transparent 30%),
        radial-gradient(circle at 90% 22%, rgba(17, 104, 113, 0.16), transparent 34%),
        linear-gradient(180deg, #fff9ef, #f1e8db);
}

.admin-login-wrap {
    width: 100%;
    max-width: 460px;
}

.admin-login-card {
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid #dac8af;
    background: linear-gradient(165deg, #fffefb, #fff5e7);
    box-shadow: var(--shadow);
}

.admin-login-card h1 {
    margin-bottom: 0.35rem;
    font-size: 2.5rem;
    line-height: 0.96;
}

.small-note {
    color: #62798f;
    font-size: 0.82rem;
}

.purchase-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.plan-choice {
    display: block;
    position: relative;
}

.plan-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-choice-content {
    display: block;
    border-radius: 12px;
    border: 1px solid #d8c6ac;
    background: #fff9ef;
    padding: 0.86rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.plan-choice-content strong {
    display: block;
    margin-bottom: 0.33rem;
    color: #24384a;
}

.plan-choice-content small {
    display: block;
    color: #5f7489;
    line-height: 1.45;
}

.plan-choice-input:checked + .plan-choice-content {
    border-color: #d56a40;
    background: #fff2df;
    box-shadow: 0 0 0 2px rgba(214, 95, 51, 0.2);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

/* Truevalue Motors: midnight showroom with warm gold details */
.site-header {
    background: rgba(255, 253, 248, 0.95);
    border-bottom-color: #eee0c6;
}

.site-header.scrolled {
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 8px 26px rgba(18, 35, 60, 0.14);
}

.brand-logo { width: 180px; height: 64px; object-fit: contain; }
.footer-logo { width: 154px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: .5rem; }

.brand-text > span,
.section-head h2,
h2,
.inner-hero h1 {
    color: #12233c;
}

.brand-text small,
.text-muted-light,
.inner-hero p {
    color: #687386;
}

.navbar-nav .nav-link {
    color: #26364d;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #9b650e;
    background: #fff0d3;
}

.btn-accent {
    color: #fff;
    background: linear-gradient(130deg, #d69a33, #f0c469);
    box-shadow: 0 9px 20px rgba(180, 120, 25, 0.25);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(130deg, #b97b18, #dca542);
}

.btn-ghost,
.btn-outline-light {
    color: #5b3b0a;
    background: #fffdf8;
    border-color: #e2c58d;
}

.btn-ghost:hover,
.btn-ghost:focus,
.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #382400;
    background: #fff0d3;
    border-color: #d7aa55;
}

.hero-overlay {
    background:
        linear-gradient(107deg, rgba(11, 23, 42, 0.92), rgba(22, 35, 60, 0.48)),
        radial-gradient(circle at 82% 18%, rgba(232, 177, 73, 0.30), transparent 42%);
}

.hero-content .hero-chip,
.hero-content .kicker {
    color: #ffe0a3;
}

.section-block.alt,
.inner-hero {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.92), rgba(255, 253, 248, 0.98));
    border-color: #eee0c6;
}

.car-card,
.content-card,
.filter-card,
.promo-card,
.promo-box,
.newsletter-card,
.search-panel,
.gallery-card {
    border-color: #eadcc2;
    background: linear-gradient(165deg, #fffefa, #fff7e8);
    box-shadow: 0 14px 34px rgba(37, 39, 47, 0.09);
}

.form-control,
.form-select {
    border-color: #decaa2;
    background-color: #fffdf8;
}

.form-control:focus,
.form-select:focus {
    border-color: #c88c25;
    box-shadow: 0 0 0 0.2rem rgba(200, 140, 37, 0.16);
}

.kicker,
.footer-link,
.promo-card a,
.blog-card a {
    color: #9b650e;
}

.site-footer {
    background: linear-gradient(135deg, #0c1b32, #203a5f);
}

.vehicle-count { color: #9b650e; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

@media (max-width: 1199px) {
    .hero-slide {
        min-height: 75vh;
    }

    .section-block {
        padding: 70px 0;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .search-section {
        margin-top: -30px;
    }

    .search-panel {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .confidence-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .delivered-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 154px));
    }

    .delivered-grid img:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .site-header .navbar {
        padding-top: 0.58rem !important;
        padding-bottom: 0.58rem !important;
    }

    .site-header #mainNav {
        margin-top: 0.66rem;
        padding: 0.75rem;
        border-radius: 14px;
        border: 1px solid #d7c5ac;
        background: #fffaf1;
    }

    .site-header .nav-cta {
        margin-top: 0.7rem;
        flex-direction: column;
    }

    .site-header .nav-cta .btn {
        width: 100%;
    }

    .admin-nav .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.75rem;
        border-radius: 12px;
        border: 1px solid #d8c6ad;
        background: #fffaf1;
    }

    .admin-nav .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: 60vh;
    }

    .hero-content h1,
    .inner-hero h1 {
        font-size: clamp(2rem, 12vw, 3.1rem);
    }

    .inner-hero {
        padding: 82px 0 58px;
    }

    .section-block {
        padding: 58px 0;
    }

    .car-image,
    .blog-card img {
        height: 166px;
    }

    .promo-card {
        grid-template-columns: 1fr;
    }

    .promo-card img {
        min-height: 176px;
        max-height: 176px;
        height: 176px;
    }

    .delivered-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(0, 176px));
    }

    .warranty-grid,
    .purchase-plan-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .inventory-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .thumb-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-card .carousel-item img {
        width: 100%;
        max-height: 260px;
        object-fit: cover;
    }

    .thumb-row img {
        height: 64px;
    }

    .content-card img.rounded-4.w-100 {
        max-height: 220px;
        object-fit: cover;
    }
}

@media (max-width: 575px) {
    .hero-slide {
        min-height: 52vh;
    }

    .car-image,
    .blog-card img {
        height: 152px;
    }

    .gallery-card .carousel-item img {
        max-height: 220px;
    }
}
