/* ═══════════════════════════════════════════════════════════════
   AutoMart Digital — Layout
   Banner · Nav · Hero Bento · Services · Process · Blog · Footer
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. FULL-PAGE FRONT BANNER ─────────────────────────────── */
.banner {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    overflow: hidden;
    isolation: isolate;
}

.banner-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.banner-image {
    position: absolute;
    inset: 0;
    display: block;
    background-image: url('/assets/img/front_banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transform-origin: center;
    will-change: transform;
}

.banner-scrim {
    position: absolute;
    inset: 0;
    display: block;
    background:
        linear-gradient(90deg,
            rgba(7,11,22,0.85) 0%,
            rgba(7,11,22,0.35) 40%,
            rgba(7,11,22,0.35) 60%,
            rgba(7,11,22,0.85) 100%),
        linear-gradient(180deg,
            rgba(7,11,22,0.55) 0%,
            rgba(7,11,22,0.30) 40%,
            rgba(7,11,22,0.55) 80%,
            rgba(7,11,22,0.95) 100%);
    backdrop-filter: saturate(140%);
    -webkit-backdrop-filter: saturate(140%);
}

.banner-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.28;
    animation: orbFloat 22s ease-in-out infinite;
    mix-blend-mode: screen;
}
.orb-1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(0,212,255,0.55), transparent 70%);
    top: -140px; left: -120px;
}
.orb-2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(108,74,182,0.65), transparent 70%);
    bottom: -160px; right: -140px;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -40px) scale(1.05); }
    66%      { transform: translate(-30px, 30px) scale(0.97); }
}

.banner-bg .grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.banner-inner {
    position: relative;
    max-width: 980px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(11,17,32,0.55);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.banner-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 12px var(--secondary);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

.banner-title {
    font-family: var(--f-head);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text);
    margin: 0;
    text-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.banner-grad {
    background: linear-gradient(135deg, var(--secondary), #A78BFA 60%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.banner-lede {
    max-width: 620px;
    color: rgba(234,242,255,0.85);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.banner-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}
.banner-cta .btn {
    min-height: 54px;
    padding: 0.9rem 1.75rem;
}
.banner-cta .btn-ghost {
    background: rgba(11,17,32,0.4);
    border-color: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.banner-trust {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    max-width: 780px;
}
@media (min-width: 640px) {
    .banner-trust { grid-template-columns: repeat(4, 1fr); }
}
.banner-trust li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
}
.banner-trust strong {
    font-family: var(--f-head);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), #A78BFA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.banner-trust span {
    font-size: 0.75rem;
    color: rgba(234,242,255,0.7);
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.banner-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(234,242,255,0.6);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.2s var(--ease);
    z-index: 2;
}
.banner-scroll:hover { color: var(--secondary); }

.banner-scroll-line {
    display: block;
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, var(--secondary), transparent);
    animation: scrollLine 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0.2); opacity: 0.4; }
    50%  { transform: scaleY(1);   opacity: 1; }
    100% { transform: scaleY(0.2); opacity: 0.4; }
}

@media (max-width: 640px) {
    .banner { padding: 100px 16px 100px; min-height: 92svh; }
    .banner-title { letter-spacing: -0.03em; }
    .banner-cta .btn { width: 100%; }
    .banner-trust { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1rem; margin-top: 1.5rem; padding-top: 1.5rem; }
    .banner-scroll { bottom: 16px; }
    .banner-scrim { background: linear-gradient(180deg, rgba(7,11,22,0.75) 0%, rgba(7,11,22,0.55) 45%, rgba(7,11,22,0.75) 75%, rgba(7,11,22,0.95) 100%); }
}
@media (max-height: 520px) and (orientation: landscape) {
    .banner { min-height: auto; padding: 100px 20px 60px; }
    .banner-trust { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .banner-bg .orb, .banner-badge-dot, .banner-scroll-line { animation: none; }
}


/* ─── 2. 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%);
    transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.nav--scrolled { background: rgba(11,17,32,0.92); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.nav--hidden { transform: translate(-50%, -140%); }

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
    padding: 0.25rem 0;
    transition: opacity 0.2s var(--ease);
}
.brand:hover { opacity: 0.9; }

.brand-logo {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 0 10px rgba(0,212,255,0.35));
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}
.brand:hover .brand-logo { transform: rotate(-3deg) scale(1.05); }
.brand-text { display: inline-block; letter-spacing: -0.01em; white-space: nowrap; }

.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;
    }
}
@media (max-width: 380px) {
    .brand-text { font-size: 0.95rem; }
    .brand-logo { width: 30px; height: 30px; }
}


/* ─── 3. HERO BENTO (Below Banner) ──────────────────────────── */
.hero { padding: 40px 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; }


/* ─── 4. SERVICES GRID (21 Cards) ───────────────────────────── */
.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(3, 1fr); } }
@media (min-width: 1440px) { .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);
    position: relative;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.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-category {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.service-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.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-deliverables {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    margin-top: auto;
}

.deliverable-tag {
    font-size: 0.7rem;
    font-family: var(--f-mono);
    color: var(--accent);
    background: rgba(108,74,182,0.15);
    border: 1px solid rgba(108,74,182,0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.service-card .btn {
    align-self: flex-start;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    min-height: 42px;
    width: 100%;
    margin-top: 0.5rem;
}


/* ─── 5. 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; }


/* ─── 6. BLOG POST GRID (Fallback styles) ───────────────────── */
.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;
    flex: 1;
}
.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; flex: 1; }
.post-meta {
    display: flex;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-family: var(--f-mono);
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}


/* ─── 7. FOOTER ─────────────────────────────────────────────── */
.footer {
    margin-top: 60px;
    padding: 3.5rem 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: 1.5fr 1fr 1fr 1fr; } }

.footer-col 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-col p,
.footer-col address {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    font-style: normal;
    margin-top: 0.75rem;
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.footer-col nav 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-col nav a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-address a {
    color: var(--text);
    opacity: 0.85;
    transition: color 0.2s var(--ease);
}
.footer-address a:hover { color: var(--secondary); opacity: 1; }

.footer-hours {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ─── Footer Social Icons (Bulletproof Horizontal Alignment) ── */
.footer .social-list {
    display: flex !important;          /* Force flexbox, override any global ul rules */
    flex-direction: row !important;    /* Force horizontal layout */
    flex-wrap: wrap;                   /* Allow wrapping on tiny phones */
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    margin: 1.25rem 0 0 0 !important;  /* Reset margins */
    padding: 0 !important;             /* Remove default ul padding */
    list-style: none !important;
}

.footer .social-list li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;            /* Prevents full-width blocking */
}

.footer .social-list .social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.25s var(--ease);
}

.footer .social-list .social-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #0B1120;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.footer .social-list .social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block !important;         /* Removes invisible baseline gap */
}

/* Center icons on mobile screens */
@media (max-width: 640px) {
    .footer .social-list { justify-content: center !important; margin-top: 1.5rem; }
}

/* ─── Footer Legal Row ──────────────────────────────────────── */
.footer-legal {
    max-width: 1180px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}
.footer-legal nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.footer-legal a {
    color: var(--muted);
    transition: color 0.2s var(--ease);
}
.footer-legal a:hover { color: var(--secondary); }

/* ═══════════════════════════════════════════════════════════════
   FIXED BANNER CANVAS (With Sample Image)
   ═══════════════════════════════════════════════════════════════ */
.banner-canvas {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    
    /* Fallback dark color */
    background-color: #0A2540; 
    
    /* 
      The Image is now an Unsplash sample.
      The linear-gradient ensures the text stays readable.
    */
    background-image: 
        linear-gradient(180deg, rgba(7,11,22,0.7) 0%, rgba(7,11,22,0.4) 40%, rgba(7,11,22,0.95) 100%), 
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&q=80&w=2070');
        
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Locks image in place while scrolling */
    background-repeat: no-repeat;
    z-index: 1;
}