/* =====================================================================
   Smart Lockers — HOTFIX v3.2
   Logo + Mobile UI + Desktop UI mükəmməlləşdirilməsi
   ===================================================================== */

/* ============================================
   1. YENİ LOGO STILI
   ============================================ */

.navbar-brand.brand-link {
    display: flex;
    align-items: center;
    padding: 0;
    transition: transform 0.25s ease;
}

.navbar-brand.brand-link:hover {
    transform: translateY(-1px);
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

/* Dark mode logo switch */
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

/* Köhnə brand-text-i gizlət (artıq SVG-də mətn var) */
.navbar-brand .brand-text { display: none !important; }

/* ============================================
   2. NAVBAR DÜZƏLİŞİ
   ============================================ */

.smart-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(7, 24, 47, 0.06);
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
    padding: 12px 0;
}

.smart-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 24px rgba(7, 24, 47, 0.08);
    padding: 8px 0;
}

[data-theme="dark"] .smart-nav {
    background: rgba(11, 19, 32, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .smart-nav.scrolled {
    background: rgba(11, 19, 32, 0.98);
}

/* Nav links */
.smart-nav .nav-link {
    font-weight: 500;
    color: var(--text, #122033);
    padding: 10px 14px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.smart-nav .nav-link:hover {
    color: var(--primary-light, #1b6fff);
    background: rgba(27, 111, 255, 0.06);
}

.smart-nav .nav-link.active {
    color: var(--accent, #ff8a00);
}

.smart-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--accent, #ff8a00);
    border-radius: 2px;
}

/* Theme toggle button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(7, 24, 47, 0.12);
    background: transparent;
    color: var(--text, #122033);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

.theme-toggle:hover {
    background: rgba(27, 111, 255, 0.08);
    border-color: var(--primary-light, #1b6fff);
    color: var(--primary-light, #1b6fff);
}

[data-theme="dark"] .theme-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-block; }

/* CTA button in navbar */
.smart-nav .btn-accent {
    background: linear-gradient(135deg, #ff8a00, #ffa340);
    border: none;
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.25);
    transition: all 0.2s ease;
}

.smart-nav .btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 138, 0, 0.35);
    color: #fff;
}

/* ============================================
   3. HAMBURGER MENU (mobile)
   ============================================ */

.navbar-toggler {
    border: none !important;
    padding: 8px !important;
    width: 44px;
    height: 44px;
    box-shadow: none !important;
}

.navbar-toggler:focus { box-shadow: none !important; }

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background: var(--text-strong, #07182f);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}

[data-theme="dark"] .hamburger-inner,
[data-theme="dark"] .hamburger-inner::before,
[data-theme="dark"] .hamburger-inner::after { background: #fff; }

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ''; top: -7px; }
.hamburger-inner::after { content: ''; top: 7px; }

/* X animasiyası */
.navbar-toggler[aria-expanded="true"] .hamburger-inner { background: transparent; }
.navbar-toggler[aria-expanded="true"] .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .hamburger-inner::after { top: 0; transform: rotate(-45deg); }

/* Köhnə bootstrap toggler-icon-u gizlət */
.navbar-toggler-icon { display: none !important; }

/* ============================================
   4. PRICING CARDS DÜZƏLİŞİ
   ============================================ */

.pricing-card {
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border, #e5eaf2);
    border-radius: 20px;
    padding: 40px 28px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: visible;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(7, 24, 47, 0.14);
}

.pricing-card.featured {
    border: 2px solid var(--accent, #ff8a00);
    padding-top: 56px;
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(255, 138, 0, 0.18);
}

.pricing-card.featured:hover { transform: translateY(-14px); }

.pricing-card .featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff8a00, #ffa340);
    color: #fff;
    padding: 8px 24px;
    border-radius: 0 0 14px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.35);
    z-index: 2;
}

.pricing-card .plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 42, 102, 0.08), rgba(0, 188, 212, 0.12));
    color: var(--primary, #0a2a66);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.pricing-card.featured .plan-icon {
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.12), rgba(255, 163, 64, 0.18));
    color: var(--accent, #ff8a00);
}

.pricing-card .plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-strong, #07182f);
    margin: 0 0 8px;
}

.pricing-card .plan-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--text-muted, #64748b);
}

.pricing-card .plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border, #e5eaf2);
}

.pricing-card .plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-strong, #07182f);
    line-height: 1;
}

.pricing-card .plan-price .currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-strong, #07182f);
}

.pricing-card .plan-price .period {
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    margin-left: 4px;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex-grow: 1;
}

.pricing-card .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text, #122033);
}

.pricing-card .plan-features li i {
    color: var(--success, #16a34a);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

[data-theme="dark"] .pricing-card {
    background: var(--bg-elevated, #162338);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pricing-card.featured {
    background: linear-gradient(180deg, rgba(255, 138, 0, 0.04) 0%, var(--bg-elevated, #162338) 100%);
}

/* ============================================
   5. CONTACT FORM + INFO CARD
   ============================================ */

.contact-info-card,
.contact-form-card {
    background: var(--bg-elevated, #fff);
    border: 1px solid var(--border, #e5eaf2);
    border-radius: 20px;
    padding: 32px 28px;
    height: auto;
}

.contact-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-strong, #07182f);
}

.contact-info-card .contact-info-subtitle {
    color: var(--text-muted, #64748b);
    margin-bottom: 24px;
}

.contact-info-card .contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.contact-info-card .contact-info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(7, 24, 47, 0.04);
    color: var(--text, #122033);
}

.contact-info-card .contact-info-list li:last-child { border-bottom: none; }

.contact-info-card .contact-info-list li i {
    color: var(--accent, #ff8a00);
    font-size: 1.2rem;
    width: 24px;
    flex-shrink: 0;
}

.contact-info-card .contact-info-list li a {
    color: var(--text, #122033);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.contact-info-card .contact-info-list li a:hover {
    color: var(--accent, #ff8a00);
}

.contact-info-card .btn-whatsapp {
    background: #25d366;
    border: none;
    color: #fff;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-info-card .btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-1px);
}

[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .contact-form-card {
    background: var(--bg-elevated, #162338);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   6. MOBİL UI MÜKƏMMƏLLƏŞDIRMƏ
   ============================================ */

@media (max-width: 991.98px) {
    /* Logo daha kompakt */
    .brand-logo { height: 36px; }

    /* Mobile menu - tam ekran style */
    .navbar-collapse {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.99);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px 20px !important;
        overflow-y: auto;
        z-index: 999;
    }

    [data-theme="dark"] .navbar-collapse {
        background: rgba(11, 19, 32, 0.99);
    }

    .navbar-collapse:not(.show) { display: none; }

    .navbar-nav { gap: 4px; }

    .smart-nav .nav-link {
        font-size: 1.05rem;
        padding: 14px 16px !important;
        border-radius: 12px;
    }

    .smart-nav .nav-link.active {
        background: rgba(255, 138, 0, 0.08);
    }

    .smart-nav .nav-link.active::after { display: none; }

    /* Nav tools sırası mobil-də */
    .nav-cta, .nav-tool {
        margin: 8px 0 0 !important;
    }

    .nav-cta { margin-top: 16px !important; }
    .nav-cta .btn { width: 100%; padding: 12px 20px; font-size: 1rem; }

    .nav-tool {
        display: inline-block;
        margin-right: 8px !important;
    }

    /* Body scroll lock kömayı */
    body.navbar-open { overflow: hidden; }
}

@media (max-width: 575.98px) {
    /* Hero - kompakt mobile */
    .page-hero {
        padding: 32px 0 28px !important;
    }

    .page-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
        line-height: 1.15;
    }

    .page-hero .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Section spacing */
    .section { padding: 48px 0 !important; }

    /* Pricing kartları */
    .pricing-card {
        padding: 32px 22px 26px;
        border-radius: 16px;
    }

    .pricing-card.featured {
        padding-top: 50px;
        transform: none;
        margin-top: 16px;
    }

    .pricing-card.featured:hover { transform: translateY(-6px); }

    .pricing-card .plan-price .amount { font-size: 2.5rem; }
    .pricing-card .plan-name { font-size: 1.3rem; }

    /* Contact cards */
    .contact-info-card,
    .contact-form-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    /* Form input-ları daha böyük (touch-friendly) */
    .form-control, .form-select {
        font-size: 16px !important; /* iOS zoom önləyici */
        padding: 12px 14px !important;
        min-height: 48px;
    }

    .form-control[type="textarea"], textarea.form-control {
        min-height: auto;
    }

    /* Düymələr touch-friendly */
    .btn { min-height: 44px; padding: 10px 18px; }
    .btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1rem; }

    /* Breadcrumb sadə */
    .breadcrumb-nav { font-size: 0.85rem; }

    /* Container padding */
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }

    /* Footer */
    footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}

/* ============================================
   7. SCROLL-TO-TOP & WHATSAPP FAB
   ============================================ */

.scroll-top, .whatsapp-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(7, 24, 47, 0.18);
    transition: all 0.2s ease;
    font-size: 1.3rem;
    cursor: pointer;
}

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--primary, #0a2a66);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-light, #1b6fff);
    transform: translateY(-3px);
}

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    z-index: 998;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-fab:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.05);
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

@media (max-width: 575.98px) {
    .scroll-top, .whatsapp-fab { width: 46px; height: 46px; font-size: 1.15rem; }
    .scroll-top { bottom: 80px; right: 16px; }
    .whatsapp-fab { bottom: 20px; right: 16px; }
}

/* ============================================
   8. ÜMUMI DÜZƏLİŞLƏR
   ============================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Focus visible — touch-friendly */
:focus-visible {
    outline: 2px solid var(--primary-light, #1b6fff);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Better link hover */
a { transition: color 0.2s ease; }

/* Image - hər zaman max-width */
img { max-width: 100%; height: auto; }

/* Section heading consistent */
.section h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Better lead text */
.lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted, #64748b);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
