/* ═══════════════════════════════════════════════════════════════
   AutoMart Digital — Layout
   Nav · Hero bento · Services · Process · Footer · Responsive
   ═══════════════════════════════════════════════════════════════ */

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    z-index: 100;
    border-radius: 999px;
    background: rgba(11,17,32,0.72);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    box-shadow: 0 0 12px var(--secondary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.92rem;
}
.nav-links a { color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-cta {
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #04101E !important;
    font-weight: 600;
}
.nav-cta:hover { transform: translateY(-1px); }

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}
.burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

@media (min-width: 820px) {
    .nav-links { display: flex; }
    .burger { display: none; }
}

@media (max-width: 819.9px) {
    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        padding: 1rem;
        border-radius: var(--r-md);
        background: rgba(11,17,32,0.96);
        border: 1px solid var(--border);
        backdrop-filter: blur(18px);
        gap: 0.75rem;
    }
}

/* ─── Hero Bento ────────────────────────────────────────────── */
.hero { padding: 112px 16px 24px; }

.hero-bento {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hero-bento { grid-template-columns: repeat(2, 1fr); }
    .cell-hero { grid-column: 1 / -1; }
    .cell-wide { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .hero-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(190px, auto);
    }
    .cell-hero { grid-column: span 2; grid-row: span 2; }
    .cell-wide { grid-column: span 2; }
}

.cell {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cell:hover {
    transform: translateY(-4px);
    border-color: var(--border-2);
}

.cell-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.cell-hero h1 .grad {
    background: linear-gradient(135deg, var(--secondary), #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    color: var(--muted);
    font-size: 1rem;
    max-width: 52ch;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.stat {
    font-family: var(--f-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cell-stat p { color: var(--muted); font-size: 0.9rem; }

.link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s var(--ease);
}
.link:hover { opacity: 0.75; }

/* ─── Services grid ─────────────────────────────────────────── */
.services-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.service-icon {
    font-family: var(--f-mono);
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,212,255,0.18), rgba(108,74,182,0.18));
    color: var(--secondary);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.service-card h3 { font-size: 1.05rem; }

.service-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    flex: 1;
    margin: 0.25rem 0 0.75rem;
}
.service-card ul li::before {
    content: "—";
    margin-right: 0.45rem;
    color: var(--secondary);
}

.service-card .btn {
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    min-height: 42px;
}

/* ─── Process ───────────────────────────────────────────────── */
.process {
    list-style: none;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    counter-reset: step;
}
@media (min-width: 640px)  { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(5, 1fr); } }

.process li {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-radius: var(--r-md);
}
.process strong {
    font-family: var(--f-mono);
    color: var(--secondary);
    font-size: 0.9rem;
}
.process h4 { font-size: 1rem; color: var(--text); }
.process p  { color: var(--muted); font-size: 0.85rem; }

/* ─── Blog post grid ────────────────────────────────────────── */
.post-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}
.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.post-card h3 { font-size: 1.05rem; line-height: 1.3; }
.post-card h3 a { color: var(--text); }
.post-card p { color: var(--muted); font-size: 0.88rem; }
.post-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-family: var(--f-mono);
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
    margin-top: 60px;
    padding: 3rem 16px 1.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(108,74,182,0.06));
}
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-grid h5 {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.footer-grid a {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.75;
    padding: 0.25rem 0;
    transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-grid a:hover { opacity: 1; color: var(--secondary); }
.footer-grid p { color: var(--muted); font-size: 0.88rem; margin-top: 0.5rem; }

.copy {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}