/* ==========================================================================
   CarServ24 — Layout: Navbar, Footer, Containers, Grid System
   ========================================================================== */
@import url('variables.css');

.text-center {
    text-align: center;
}
.mx-auto{
    margin:0 auto;
}
.justify-center{
    justify-content: center;
}
/* ──────────────────────────────────────────────────
   CONTAINER
────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

/* ──────────────────────────────────────────────────
   NAVBAR
────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-navbar);
    padding: 0;
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-default);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--bg-navbar-scroll);
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 72px;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-container {
    height: 64px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary-sm);
}

.nav-logo-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-logo-text span {
    color: var(--brand-primary);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-nav-login {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    background: transparent;
}

.btn-nav-login:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(21, 93, 252, 0.05);
}

.btn-nav-register {
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--brand-gradient);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--glow-primary-sm);
    white-space: nowrap;
}

.btn-nav-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-default);
}

.hamburger:hover {
    background: rgba(21,93,252,0.1);
    border-color: rgba(21,93,252,0.3);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav — hidden on desktop */
.mobile-nav {
    display: none;
}

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    padding-top: 80px;
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-logo-text span {
    color: var(--brand-primary);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.03);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.footer-social-link:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(21, 93, 252, 0.1);
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--brand-primary);
    transform: translateX(4px);
}

.footer-link svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-link:hover svg {
    opacity: 1;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(21, 93, 252, 0.1);
    border: 1px solid rgba(21, 93, 252, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 16px;
    height: 16px;
    color: var(--brand-primary);
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
}

.footer-contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 3px;
}

.footer-contact-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--border-default);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-gray);
}

.footer-copyright a {
    color: var(--brand-primary);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-link {
    font-size: 13px;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--brand-primary);
}

/* ──────────────────────────────────────────────────
   SECTION UTILITIES
────────────────────────────────────────────────── */
.section {
    padding: var(--section-py) 0;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: var(--z-raised);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid rgba(21, 93, 252, 0.35);
    background: rgba(21, 93, 252, 0.08);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-primary);
    margin-bottom: 20px;
}

.section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-primary);
    animation: pulse-ring 2s ease-out infinite;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section-title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ──────────────────────────────────────────────────
   BG GLOW DECORATION
────────────────────────────────────────────────── */
.bg-glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 93, 252, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(21, 93, 252, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ──────────────────────────────────────────────────
   GRID BACKGROUND
────────────────────────────────────────────────── */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ──────────────────────────────────────────────────
   RESPONSIVE MEDIA QUERIES
────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Nav */
    .mobile-nav {
        display: none;
        position: fixed;
        inset: 0;
        top: 72px;
        background: var(--bg-mobile-nav);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: calc(var(--z-navbar) - 1);
        padding: 32px 24px 40px;
        flex-direction: column;
        gap: 4px;
        overflow-y: auto;
        border-top: 1px solid var(--border-default);
    }

    .mobile-nav.open {
        display: flex;
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .mobile-nav .nav-link {
        font-size: 16px;
        font-weight: 600;
        padding: 15px 16px;
        border-bottom: 1px solid var(--border-default);
        border-radius: 0;
        color: var(--text-secondary);
        width: 100%;
        display: block;
    }

    .mobile-nav .nav-link:hover,
    .mobile-nav .nav-link.active {
        color: var(--brand-primary);
        background: rgba(21, 93, 252, 0.08);
        border-radius: var(--radius-sm);
        border-bottom-color: rgba(21, 93, 252, 0.15);
    }

    .mobile-nav-actions {
        margin-top: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border-default);
    }
}

@media (max-width: 768px) {
    :root { --section-py: 64px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-px: 16px;
        --section-py: 48px;
    }
}
