/* ═══════════════════════════════════════════════════════════════════════════
   اتوگالری ماهان — Design System
   Dark luxury automotive: #0A0A0A backgrounds · Gold #C9A84C accents · RTL
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Vazirmatn Self-Hosted ────────────────────────────────────────────────── */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
    --bg-deep:    #0A0A0A;
    --bg-dark:    #111111;
    --bg-card:    #181818;
    --bg-raised:  #1E1E1E;
    --bg-muted:   #141414;

    --gold:       #C9A84C;
    --gold-light: #E2B96F;
    --gold-dim:   #9A7A32;
    --gold-glow:  rgba(201,168,76,.10);
    --gold-line:  rgba(201,168,76,.22);
    --gold-hover: rgba(201,168,76,.45);

    --text-hi:    #F2F2F2;
    --text-mid:   #AAAAAA;
    --text-lo:    #666666;

    --r-xs: 3px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 18px;

    --shadow-card:
        0 1px 2px rgba(0,0,0,.55),
        0 6px 20px rgba(0,0,0,.42),
        0 20px 56px rgba(0,0,0,.28);
    --shadow-hover:
        0 2px 4px rgba(0,0,0,.6),
        0 10px 32px rgba(0,0,0,.5),
        0 32px 80px rgba(0,0,0,.35),
        0 0 0 1px var(--gold-line);
    --shadow-gold:
        0 0 0 1px var(--gold-line),
        0 4px 24px rgba(201,168,76,.08);

    --font:   'Vazirmatn', system-ui, -apple-system, sans-serif;
    --ease:   cubic-bezier(.4,0,.2,1);
    --dur:    .22s;
    --dur-lg: .38s;
}

/* ── Reset + Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 2;
    background: var(--bg-deep);
    color: var(--text-hi);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--gold); color: #000; }
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; transition: color var(--dur) var(--ease); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* custom scrollbar */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: var(--bg-dark); }
::-webkit-scrollbar-thumb  { background: var(--gold-dim); border-radius: 99px; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 56px);
}

.section {
    padding-block: clamp(72px, 10vw, 120px);
}
.section--dark   { background: var(--bg-dark); }
.section--card   { background: var(--bg-muted); }
.section--raised { background: var(--bg-raised); }

/* ── Section Headings ─────────────────────────────────────────────────────── */
.sec-head {
    margin-bottom: clamp(40px, 6vw, 64px);
}
.sec-head--center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    padding-inline-end: 24px;
}
.eyebrow::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
}

.sec-title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-hi);
    margin-bottom: 14px;
}
.sec-sub {
    font-size: .95rem;
    color: var(--text-mid);
    line-height: 1.9;
    max-width: 52ch;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: #0A0A0A;
    box-shadow: 0 2px 16px rgba(201,168,76,.35), 0 0 0 1px rgba(201,168,76,.3);
}
.btn-gold:hover, .btn-gold:focus-visible {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 4px 28px rgba(201,168,76,.55), 0 0 0 1px rgba(201,168,76,.5);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-line);
    box-shadow: var(--shadow-gold);
}
.btn-outline:hover, .btn-outline:focus-visible {
    border-color: var(--gold);
    background: var(--gold-glow);
    box-shadow: 0 0 0 1px var(--gold), 0 4px 20px rgba(201,168,76,.15);
    color: var(--gold-light);
    transform: translateY(-1px);
}
.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
.btn-sm {
    padding: 9px 22px;
    font-size: .85rem;
}

/* ── Hairline gold divider ────────────────────────────────────────────────── */
.gold-line-h { width: 100%; height: 1px; background: var(--gold-line); }

/* ════════════════════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gold-line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 68px;
}
.header-logo {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    margin-inline-start: auto;
    order: 3;
    flex-shrink: 0;
}
.header-logo a { color: inherit; }
.header-logo a:hover { color: var(--gold-light); }

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-inline: auto;
    order: 2;
}
.header-nav a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 24px 16px;
    transition: color var(--dur) var(--ease);
    position: relative;
}
.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 16px;
    right: 50%;
    left: 50%;
    height: 2px;
    background: var(--gold);
    transition: right var(--dur) var(--ease), left var(--dur) var(--ease);
    border-radius: 99px;
}
.header-nav a:hover,
.header-nav a.active { color: var(--gold-light); }
.header-nav a:hover::after,
.header-nav a.active::after { right: 16px; left: 16px; }

.header-phone {
    font-size: .88rem;
    font-weight: 500;
    color: var(--gold);
    order: 1;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
    transition: all var(--dur) var(--ease);
}
.header-phone:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    order: 0;
    margin-inline-end: auto;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-mid);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--gold-line);
    padding: 12px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mobile-nav a:hover { color: var(--gold); background: var(--gold-glow); }
.mobile-nav-phone {
    padding: 16px 24px;
    color: var(--gold);
    font-weight: 700;
    font-size: .95rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: clamp(520px, 88vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-deep);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: hero-zoom 14s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to left, rgba(10,10,10,.25) 0%, rgba(10,10,10,.70) 55%, rgba(10,10,10,.92) 100%),
        linear-gradient(to top,  rgba(10,10,10,.90) 0%, transparent 50%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-block: clamp(80px, 14vw, 140px);
}
.hero-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .06em;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid var(--gold-line);
    border-radius: 99px;
    background: var(--gold-glow);
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.28;
    color: #fff;
    margin-bottom: 22px;
}
.hero-title em {
    font-style: normal;
    color: var(--gold-light);
}
.hero-sub {
    font-size: clamp(.92rem, 1.8vw, 1.05rem);
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 40px;
    max-width: 44ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* decorative vertical gold line */
.hero::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 15%;
    width: 3px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
    opacity: .35;
}

/* ════════════════════════════════════════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.stats-strip {
    background: var(--bg-dark);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
    padding-block: 36px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 16px 20px;
    position: relative;
}
.stat + .stat::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gold-line);
}
.stat-num {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
}
.stat-plus { font-size: .7em; color: var(--gold-light); }
.stat-label {
    font-size: .82rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   CAR CARDS
   ════════════════════════════════════════════════════════════════════════════ */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.car-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255,255,255,.04);
    transition: transform var(--dur-lg) var(--ease), box-shadow var(--dur-lg) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}
.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* gold corner accent */
.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 44px;
    height: 44px;
    border-top: 2px solid var(--gold);
    border-inline-end: 2px solid var(--gold);
    border-radius: 0 var(--r-md) 0 0;
    opacity: .5;
    transition: opacity var(--dur) var(--ease);
    z-index: 2;
}
.car-card:hover::before { opacity: 1; }

.car-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-muted);
}
.car-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-lg) var(--ease);
}
.car-card:hover .car-card-img img { transform: scale(1.04); }

.car-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    line-height: 1.4;
    z-index: 2;
}
.car-badge--new   { background: rgba(201,168,76,.92); color: #0A0A0A; }
.car-badge--used  { background: rgba(80,80,80,.85); color: var(--text-hi); backdrop-filter: blur(4px); }
.car-badge--sold  { background: rgba(160,40,40,.85); color: #fff; backdrop-filter: blur(4px); }

.car-card-body {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.car-gold-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, var(--gold-line), transparent);
    margin-bottom: 16px;
}
.car-name {
    font-size: .98rem;
    font-weight: 700;
    color: var(--text-hi);
    line-height: 1.6;
    margin-bottom: 10px;
}
.car-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.car-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    color: var(--text-lo);
}
.car-meta-item svg { flex-shrink: 0; opacity: .7; }
.car-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 16px;
    margin-top: auto;
}
.car-price-strike {
    font-size: .8rem;
    color: var(--text-lo);
    text-decoration: line-through;
    margin-bottom: 4px;
}
.car-card-footer {
    padding: 0 20px 20px;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION: BRANDS
   ════════════════════════════════════════════════════════════════════════════ */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    align-items: center;
}
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-md);
    background: var(--bg-card);
    transition: all var(--dur) var(--ease);
    text-align: center;
    cursor: default;
}
.brand-item:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
    box-shadow: 0 0 0 1px var(--gold-line), 0 6px 24px rgba(201,168,76,.08);
    transform: translateY(-2px);
}
.brand-name-lat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gold-light);
    text-transform: uppercase;
    line-height: 1.2;
}
.brand-name-fa {
    font-size: .78rem;
    color: var(--text-mid);
    line-height: 1.4;
}
.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .05em;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION: OFFERS BANNER
   ════════════════════════════════════════════════════════════════════════════ */
.offers-banner {
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
}
/* diagonal gold stripe decoration */
.offers-banner::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-end: 35%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
    opacity: .25;
    transform: skewX(-8deg);
}
.offers-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,.055) 0%, transparent 65%);
    pointer-events: none;
}

.offers-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-block: clamp(56px, 9vw, 100px);
    position: relative;
    z-index: 1;
}
.offers-content .eyebrow { margin-bottom: 16px; }
.offers-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-hi);
    margin-bottom: 14px;
}
.offers-title span { color: var(--gold-light); }
.offers-desc {
    font-size: .92rem;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 32px;
}
.offers-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-glow);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
    padding: 10px 20px;
    margin-bottom: 28px;
}
.offers-highlight-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.offers-highlight-text {
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 1.5;
}

.offers-photo {
    aspect-ratio: 4/3;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 0 1px var(--gold-line);
    position: relative;
}
.offers-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85) saturate(.9);
    transition: filter var(--dur-lg) var(--ease), transform var(--dur-lg) var(--ease);
}
.offers-photo:hover img { filter: brightness(.95) saturate(1); transform: scale(1.02); }

/* ════════════════════════════════════════════════════════════════════════════
   SECTION: SOLD ARCHIVE
   ════════════════════════════════════════════════════════════════════════════ */
.sold-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.sold-thumb {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.sold-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) brightness(.65);
    transition: filter var(--dur-lg) var(--ease), transform var(--dur-lg) var(--ease);
}
.sold-thumb:hover img {
    filter: grayscale(60%) brightness(.75);
    transform: scale(1.04);
}
.sold-badge {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(160,40,40,.88);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,.2);
    white-space: nowrap;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.sold-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 55%);
    pointer-events: none;
}
.sold-caption {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════════════
   SECTION: ABOUT STRIP
   ════════════════════════════════════════════════════════════════════════════ */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 80px);
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-card), 0 0 0 1px var(--gold-line);
}
.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-lg) var(--ease);
}
.about-img-wrap:hover img { transform: scale(1.03); }

/* gold vertical border accent */
.about-text-inner {
    padding-inline-start: 24px;
    border-inline-start: 3px solid var(--gold);
}
.about-text .eyebrow { display: block; margin-bottom: 14px; }
.about-text .sec-title { margin-bottom: 20px; }
.about-text p {
    font-size: .92rem;
    color: var(--text-mid);
    line-height: 2.1;
    margin-bottom: 14px;
}
.about-text p:last-of-type { margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════════════════════
   SECTION: CONTACT CTA
   ════════════════════════════════════════════════════════════════════════════ */
.contact-cta { background: var(--bg-deep); }
.contact-card {
    border: 1px solid var(--gold-line);
    border-radius: var(--r-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-gold), var(--shadow-card);
    padding: clamp(40px, 7vw, 72px);
    max-width: 860px;
    margin-inline: auto;
}
.contact-card-head {
    text-align: center;
    margin-bottom: 40px;
}
.contact-card-head .sec-title { margin-bottom: 8px; }
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 24px 16px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    transition: all var(--dur) var(--ease);
}
.contact-info-item:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.contact-info-label {
    font-size: .75rem;
    color: var(--text-lo);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.contact-info-value {
    font-size: .88rem;
    color: var(--text-hi);
    font-weight: 500;
    line-height: 1.6;
}
.contact-info-value a { color: var(--gold); }
.contact-info-value a:hover { color: var(--gold-light); }

.map-frame {
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--gold-line);
    height: 260px;
    background: var(--bg-raised);
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) saturate(.8) brightness(.85);
}

/* ════════════════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--gold-line);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    padding-block: clamp(56px, 8vw, 88px);
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}
.footer-desc {
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 24px;
    max-width: 36ch;
}
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all var(--dur) var(--ease);
}
.footer-social a:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold-light);
}

.footer-col h3 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-line);
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav a {
    font-size: .88rem;
    color: var(--text-mid);
    padding: 4px 0;
    transition: color var(--dur) var(--ease), padding-inline-end var(--dur) var(--ease);
    position: relative;
}
.footer-nav a:hover { color: var(--gold-light); padding-inline-end: 8px; }
.footer-nav a::before {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.footer-nav a:hover::before { opacity: 1; }

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .85rem;
    color: var(--text-mid);
    line-height: 1.7;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.footer-contact-item a { color: var(--gold); }
.footer-contact-item a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid var(--gold-line);
    padding-block: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: .78rem;
    color: var(--text-lo);
}
.footer-copy a { color: var(--gold-dim); transition: color var(--dur) var(--ease); }
.footer-copy a:hover { color: var(--gold); }
.footer-rights {
    font-size: .78rem;
    color: var(--text-lo);
}

/* ════════════════════════════════════════════════════════════════════════════
   STUB PAGES (inventory, car, categories, sold, about, contact, account)
   ════════════════════════════════════════════════════════════════════════════ */
.stub-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stub-inner {
    max-width: 480px;
    padding: 60px 20px;
}
.stub-icon {
    width: 80px;
    height: 80px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: var(--gold);
}
.stub-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-hi);
    margin-bottom: 12px;
}
.stub-sub {
    font-size: .92rem;
    color: var(--text-mid);
    line-height: 2;
    margin-bottom: 32px;
}

/* page hero (for inner pages) */
.page-hero {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--gold-line);
    padding-block: clamp(48px, 8vw, 80px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,.04) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero .sec-title { margin-bottom: 8px; }
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: .82rem;
    color: var(--text-lo);
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-mid); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--gold-line); }

/* ═══ 404 ═══ */
.page-404 {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.num-404 {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px var(--gold-line);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
}

/* center section CTA */
.sec-cta { text-align: center; margin-top: clamp(40px, 6vw, 60px); }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 768px
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .offers-inner {
        grid-template-columns: 1fr;
    }
    .offers-photo { display: none; }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-top > *:first-child {
        grid-column: span 2;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .cars-grid { grid-template-columns: repeat(2, 1fr); }
    .sold-grid  { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 2fr); }
    .stat + .stat::before { display: none; }
    .about-inner { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — 390px (mobile)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
    /* header */
    .header-nav    { display: none; }
    .header-phone  { display: none; }
    .menu-toggle   { display: flex; }

    .header-inner  { gap: 0; }

    /* hero */
    .hero-actions  { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* grids */
    .cars-grid   { grid-template-columns: 1fr; }
    .sold-grid   { grid-template-columns: 1fr 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); }

    /* footer */
    .footer-top { grid-template-columns: 1fr; }
    .footer-top > *:first-child { grid-column: span 1; }

    .footer-bottom { flex-direction: column; text-align: center; }

    /* contact card */
    .contact-card { padding: 28px 20px; }
    .contact-info-grid { grid-template-columns: 1fr; }

    /* about */
    .about-inner { grid-template-columns: 1fr; }
    .about-img-wrap { aspect-ratio: 16/9; }

    /* offers */
    .offers-inner { grid-template-columns: 1fr; }

    /* hide long decorators on mobile */
    .hero::after { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════════
   STAGE 2 — Forms · Header icons · Cart · Checkout · Auth · Account
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Global form styles ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  { display:block; font-size:.82rem; font-weight:700; color:var(--text-mid); margin-bottom:8px; }
.form-input  {
    width:100%; background:var(--bg-card); color:var(--text-hi);
    border:1px solid var(--gold-line); border-radius:var(--r-sm);
    padding:13px 16px; font-family:var(--font); font-size:.92rem;
    transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    direction:rtl; appearance:none;
}
.form-input:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,76,.12); }
.form-input::placeholder { color:var(--text-lo); }
textarea.form-input { resize:vertical; min-height:140px; }
select.form-input { cursor:pointer; }

/* ── Alert banners ────────────────────────────────────────────────────────── */
.alert { border-radius:var(--r-md); padding:16px 20px; margin-bottom:24px; font-size:.92rem; line-height:1.8; }
.alert-success { background:rgba(40,160,80,.12); border:1px solid rgba(40,160,80,.3); color:#6fcc8f; }
.alert-error   { background:rgba(160,40,40,.12); border:1px solid rgba(160,40,40,.3); color:#cc8f8f; }

/* ── Flash toast ──────────────────────────────────────────────────────────── */
.flash-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
    padding: 13px 28px;
    font-size: .9rem;
    color: var(--text-hi);
    z-index: 9999;
    box-shadow: var(--shadow-card);
    white-space: nowrap;
    transition: opacity .5s ease;
}

/* ── Header icon buttons + logo restructure ───────────────────────────────── */
.header-logo { display:flex; align-items:center; gap:10px; font-size:inherit; }
.header-logo-text {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}
.header-logo-text:hover { color: var(--gold-light); }
.header-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold-line);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}
.header-icon-btn:hover { background:var(--gold-glow); border-color:var(--gold); color:var(--gold-light); }
.cart-badge {
    position: absolute;
    top: -7px;
    inset-inline-end: -7px;
    min-width: 18px;
    height: 18px;
    background: var(--gold);
    color: #0A0A0A;
    border-radius: 99px;
    font-size: .62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    pointer-events: none;
}

/* ── Auth card (login / register) ─────────────────────────────────────────── */
.auth-wrap {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px,8vw,80px) 20px;
}
.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-lg);
    padding: clamp(32px,5vw,56px);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.auth-logo  { text-align:center; font-size:1.3rem; font-weight:700; color:var(--gold); margin-bottom:6px; }
.auth-title { text-align:center; font-size:1.15rem; font-weight:700; color:var(--text-hi); margin-bottom:6px; }
.auth-sub   { text-align:center; font-size:.85rem; color:var(--text-mid); margin-bottom:32px; line-height:1.8; }
.auth-switch {
    text-align: center;
    font-size: .85rem;
    color: var(--text-mid);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gold-line);
}
.auth-switch a { color:var(--gold); font-weight:700; }
.auth-switch a:hover { color:var(--gold-light); }

/* ── Cart page ────────────────────────────────────────────────────────────── */
.cart-empty { text-align:center; padding:80px 20px; }
.cart-empty-icon {
    width:72px; height:72px;
    border:1px solid var(--gold-line); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 24px; color:var(--gold);
}
.cart-empty-title { font-size:1.4rem; font-weight:700; color:var(--text-hi); margin-bottom:10px; }
.cart-empty-sub   { font-size:.92rem; color:var(--text-mid); margin-bottom:32px; line-height:2; }
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
.cart-items { display:flex; flex-direction:column; gap:16px; }
.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 20px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-md);
    padding: 16px;
    transition: border-color var(--dur) var(--ease);
}
.cart-item:hover { border-color: rgba(201,168,76,.3); }
.cart-item-img {
    border-radius: var(--r-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-muted);
}
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-name  { font-size:.95rem; font-weight:700; color:var(--text-hi); margin-bottom:5px; line-height:1.5; }
.cart-item-price { font-size:.88rem; color:var(--gold); font-weight:700; }
.cart-item-meta  { font-size:.75rem; color:var(--text-lo); margin-top:4px; }
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-md);
    padding: 24px;
    position: sticky;
    top: 88px;
}
.cart-summary-title {
    font-size: 1rem; font-weight:700; color:var(--text-hi);
    margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--gold-line);
}
.cart-summary-row {
    display:flex; justify-content:space-between; align-items:center;
    font-size:.88rem; margin-bottom:10px; color:var(--text-mid);
}
.cart-summary-total {
    display:flex; justify-content:space-between; align-items:center;
    font-size:1.05rem; font-weight:700; color:var(--gold);
    border-top:1px solid var(--gold-line); padding-top:14px; margin-top:14px;
}
.cart-remove-btn {
    color:var(--text-lo); width:32px; height:32px;
    border:1px solid transparent; border-radius:var(--r-xs);
    display:flex; align-items:center; justify-content:center;
    transition:all var(--dur) var(--ease); background:none; cursor:pointer;
}
.cart-remove-btn:hover {
    color:#cc4444; border-color:rgba(160,40,40,.3); background:rgba(160,40,40,.08);
}

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
}
.checkout-section-title {
    font-size:1rem; font-weight:700; color:var(--text-hi);
    margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--gold-line);
}
.checkout-car-mini {
    display:flex; align-items:center; gap:14px;
    padding:12px 0; border-bottom:1px solid rgba(255,255,255,.05);
}
.checkout-car-mini:last-child { border-bottom:none; padding-bottom:0; }
.checkout-car-thumb {
    width:68px; height:51px; border-radius:var(--r-xs);
    overflow:hidden; flex-shrink:0; background:var(--bg-muted);
}
.checkout-car-thumb img { width:100%; height:100%; object-fit:cover; }
.checkout-car-name  { font-size:.88rem; font-weight:700; color:var(--text-hi); line-height:1.5; }
.checkout-car-price { font-size:.82rem; color:var(--gold); margin-top:3px; }
.checkout-panel {
    background:var(--bg-card); border:1px solid var(--gold-line);
    border-radius:var(--r-md); padding:24px; position:sticky; top:88px;
}

/* ── Account dashboard ────────────────────────────────────────────────────── */
.account-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}
.account-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-md);
    overflow: hidden;
    position: sticky;
    top: 88px;
}
.account-user {
    padding:24px 20px; border-bottom:1px solid var(--gold-line); text-align:center;
}
.account-avatar {
    width:56px; height:56px; border:2px solid var(--gold-line); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 12px; color:var(--gold); background:var(--bg-raised);
}
.account-name  { font-size:.95rem; font-weight:700; color:var(--text-hi); margin-bottom:2px; }
.account-email { font-size:.75rem; color:var(--text-lo); }
.account-nav   { padding:8px 0; }
.account-nav-item {
    display:flex; align-items:center; gap:10px; padding:12px 20px;
    font-size:.9rem; color:var(--text-mid);
    transition:all var(--dur) var(--ease); text-decoration:none;
}
.account-nav-item:hover,
.account-nav-item.active { color:var(--gold); background:var(--gold-glow); }
.order-card {
    background:var(--bg-card); border:1px solid var(--gold-line);
    border-radius:var(--r-md); margin-bottom:16px; overflow:hidden;
}
.order-card-head {
    display:flex; align-items:center; justify-content:space-between;
    gap:12px; padding:14px 20px; border-bottom:1px solid var(--gold-line); flex-wrap:wrap;
}
.order-id, .order-date { font-size:.78rem; color:var(--text-lo); }
.order-status {
    font-size:.72rem; font-weight:700; padding:4px 12px; border-radius:99px;
}
.order-status--pending   { background:rgba(201,168,76,.15); color:var(--gold); }
.order-status--confirmed { background:rgba(40,160,80,.15); color:#6fcc8f; }
.order-status--cancelled { background:rgba(160,40,40,.15); color:#cc8f8f; }
.order-card-body { padding:16px 20px; }
.order-car-line {
    display:flex; align-items:center; gap:10px; padding:8px 0;
    font-size:.88rem; color:var(--text-hi);
    border-bottom:1px solid rgba(255,255,255,.04);
}
.order-car-line:last-child { border-bottom:none; }
.order-car-line svg { color:var(--gold); flex-shrink:0; }

/* ── Car detail gallery ───────────────────────────────────────────────────── */
.car-gallery-main {
    border-radius:var(--r-lg); overflow:hidden; aspect-ratio:16/10;
    background:var(--bg-card); border:1px solid var(--gold-line);
    box-shadow:var(--shadow-card); cursor:zoom-in; position:relative;
}
.car-gallery-main img { width:100%; height:100%; object-fit:cover; transition:transform var(--dur-lg) var(--ease); }
.car-gallery-main:hover img { transform:scale(1.025); }
.car-gallery-zoom {
    position:absolute; bottom:14px; inset-inline-end:14px;
    width:38px; height:38px; background:rgba(10,10,10,.7); backdrop-filter:blur(8px);
    border:1px solid var(--gold-line); border-radius:var(--r-sm);
    display:flex; align-items:center; justify-content:center; color:var(--gold);
    transition:all var(--dur) var(--ease); pointer-events:none;
}
.car-gallery-main:hover .car-gallery-zoom { border-color:var(--gold); background:rgba(10,10,10,.85); }

/* image lightbox */
.lightbox {
    display:none; position:fixed; inset:0; z-index:9000;
    background:rgba(0,0,0,.92); align-items:center; justify-content:center;
    padding:24px;
}
.lightbox.open { display:flex; }
.lightbox img  { max-width:100%; max-height:90vh; object-fit:contain; border-radius:var(--r-md); }
.lightbox-close {
    position:absolute; top:16px; inset-inline-end:16px;
    width:44px; height:44px; border:1px solid rgba(255,255,255,.2); border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color:#fff; background:rgba(0,0,0,.5); cursor:pointer; font-size:1.2rem;
    transition:all var(--dur) var(--ease);
}
.lightbox-close:hover { background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.5); }

/* ── Responsive — stage 2 ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cart-grid     { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .account-grid  { grid-template-columns: 1fr; }
    .account-sidebar { position:static; }
    .checkout-panel  { position:static; }
    .cart-summary    { position:static; }
}
@media (max-width: 520px) {
    .cart-item { grid-template-columns: 90px 1fr auto; gap:12px; }
    .header-logo-text { font-size:1rem; }
}
