/* ============================================
   UZMIX — Footer CSS
   ============================================ */

/* ============================================
   Pre-footer — faqat hamkorlar marquee
   ============================================ */
.prefooter {
    background: #ffffff;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    padding: 1.5rem 0;
}

.prefooter__inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marquee */
.prefooter__partners {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.prefooter__partners-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: partnersScroll 35s linear infinite;
    width: max-content;
}

.prefooter__partners:hover .prefooter__partners-track {
    animation-play-state: paused;
}

@keyframes partnersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.prefooter__partner {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    min-width: 130px;
    padding: 0.5rem;
    opacity: 0.55;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.prefooter__partner:hover {
    opacity: 1;
    transform: scale(1.08);
}

.prefooter__partner img {
    max-height: 100%;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.prefooter__partner:hover img {
    filter: grayscale(0%);
}

/* ============================================
   Footer — 4 ustun
   ============================================ */
.footer {
    background: #f1f5f9;                /* och kulrang fon */
    border-top: 1px solid var(--gray-200);
    padding: 3rem 0 0;
    position: relative;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

/* Logo rasmi */
.footer__logo-img {
    height: 40px;              /* ⭐ Balandlik */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Agar rasm + matn bo'lsa */
.footer__logo-text {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.8rem;
    font-weight: 900;
}

.footer__logo-text .logo-uz {
    color: var(--black);
}

.footer__logo-text .logo-mix {
    color: var(--blue);
}

.footer__tagline {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 260px;
    margin-bottom: 1.5rem;
}

/* ============================================
   IJTIMOIY TARMOQLAR — Aylana, hover'da o'z rangida
   ============================================ */
.footer__social {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--gray-500);
    background: #ffffff;                /* oq fon — och fonda ajralib turadi */
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* HOVER — har biri o'z brend rangida */
.footer__social-link[aria-label="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.4);
}

.footer__social-link[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.footer__social-link[aria-label="YouTube"]:hover {
    background: #ff0000;
    border-color: #ff0000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.footer__social-link[aria-label="Telegram"]:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.footer__social-link[aria-label="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.4);
}

.footer__social-link[aria-label="TikTok"]:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.footer__social-link[aria-label="WhatsApp"]:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.footer__social-link[aria-label="Twitter"]:hover,
.footer__social-link[aria-label="X"]:hover {
    background: #000000;
    border-color: #000000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.footer__social-link[aria-label="Pinterest"]:hover {
    background: #e60023;
    border-color: #e60023;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.4);
}

.footer__social-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    letter-spacing: 0.1em;
}

/* ============================================
   Footer ustunlar
   ============================================ */
.footer__col-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.footer__divider {
    height: 2px;
    background: var(--blue);
    width: 24px;
    margin-bottom: 1.25rem;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__nav a {
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: color var(--transition);
}

.footer__nav a:hover { color: var(--blue); }

/* ============================================
   Katalog PDF
   ============================================ */
.footer__catalog-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.footer__catalog-download {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;      /* ← ixchamroq */
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: left;
    font-family: inherit;
    background: #ffffff;
    cursor: pointer;
}

.footer__catalog-download:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.08);
}

.footer__catalog-download span {
    font-size: 0.82rem;             /* 0.85 → 0.82 */
    font-weight: 600;
    display: block;
}

.footer__catalog-download small {
    font-size: 0.7rem;              /* 0.75 → 0.7 */
    color: var(--gray-400);
}

/* SVG PDF ikonka */
.catalog-pdf-icon {
    width: 24px;
    height: 24px;
    color: var(--blue);
    flex-shrink: 0;
}

/* Nofaol katalog tugmasi */
.footer__catalog-download--disabled {
    background: #f8fafc;
    border-color: var(--gray-200);
    cursor: pointer;
    opacity: 0.75;
}

.footer__catalog-download--disabled:hover {
    border-color: var(--gray-300);
    opacity: 0.9;
    box-shadow: none;
}

.footer__catalog-download--disabled .catalog-pdf-icon {
    color: var(--gray-400);
}

.footer__catalog-download--disabled span {
    color: var(--gray-500);
}

.footer__catalog-download--disabled small {
    color: var(--gray-400);
}

/* ============================================
   Watermark text
   ============================================ */
.footer__watermark {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.footer__watermark p {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gray-300);
    line-height: 1.3;
    text-align: right;
}

.footer__watermark-line {
    width: 2rem;
    height: 3px;
    background: var(--blue);
    margin-left: auto;
    margin-top: 0.5rem;
}

/* ============================================
   Footer bottom
   ============================================ */
.footer__bottom {
    background: #0D0D0D;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

.footer__bottom-links a:hover { color: white; }

.footer__bottom-slogan { letter-spacing: 0.1em; }

/* ============================================
   CATALOG MODAL (Katalog yuklanmagan)
   ============================================ */
.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-modal.open {
    opacity: 1;
    visibility: visible;
}

.catalog-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 41, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.catalog-modal__content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.3s ease;
}

.catalog-modal.open .catalog-modal__content {
    transform: translateY(0) scale(1);
}

.catalog-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.catalog-modal__close:hover {
    background: #dc2626;
    color: #fff;
}

.catalog-modal__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4BF5;
    position: relative;
}

.catalog-modal__icon svg {
    width: 40px;
    height: 40px;
    stroke: #1B4BF5;
}

.catalog-modal__icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(27, 75, 245, 0.3);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.catalog-modal__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f1729;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.catalog-modal__text {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-modal__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.catalog-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 130px;
}

.catalog-modal__btn--primary {
    background: #1B4BF5;
    color: #fff;
}

.catalog-modal__btn--primary:hover {
    background: #0d3ad4;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 75, 245, 0.3);
}

.catalog-modal__btn--secondary {
    background: #f3f4f6;
    color: #374151;
}

.catalog-modal__btn--secondary:hover {
    background: #e5e7eb;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
    .footer__watermark { display: none; }
}

@media (max-width: 768px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__bottom-slogan { display: none; }

    .footer__social-link {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    /* Hamkorlar mobil */
    .prefooter {
        padding: 1rem 0;
    }

    .prefooter__partners-track {
        gap: 2.5rem;
        animation-duration: 25s;
    }

    .prefooter__partner {
        height: 45px;
        min-width: 100px;
    }

    .prefooter__partner img {
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    .footer__inner { grid-template-columns: 1fr; }

    .footer__social {
        gap: 0.4rem;
    }

    .footer__social-link {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* Modal mobil */
    .catalog-modal__content {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }

    .catalog-modal__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }

    .catalog-modal__icon svg {
        width: 34px;
        height: 34px;
    }

    .catalog-modal__title {
        font-size: 1.2rem;
    }

    .catalog-modal__text {
        font-size: 0.88rem;
        margin-bottom: 1.5rem;
    }

    .catalog-modal__actions {
        flex-direction: column-reverse;
    }

    .catalog-modal__btn {
        width: 100%;
    }

    /* Hamkorlar juda kichik ekranda */
    .prefooter__partners-track {
        gap: 2rem;
        animation-duration: 20s;
    }

    .prefooter__partner {
        height: 40px;
        min-width: 80px;
    }

    .prefooter__partner img {
        max-width: 90px;
    }
}
/* ============================================
   FOOTER — MOBIL 2 USTUN (!important)
   ============================================ */
@media (max-width: 768px) {

    .footer__inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;   /* ⭐ 2 ustun */
        gap: 1.5rem 1rem !important;
        padding-bottom: 2rem !important;
        align-items: start !important;
    }

    /* Brand — butun en */
    .footer__brand {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }

    /* Sahifalar va Katalog — 2 ustun */
    .footer__col {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Katalog tugmasi — to'liq en */
    .footer__catalog-download {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        padding: 0.6rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .footer__catalog-download span {
        font-size: 0.75rem !important;
    }

    .footer__catalog-download small {
        font-size: 0.65rem !important;
    }

    .catalog-pdf-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* Watermark — yashirish */
    .footer__watermark {
        display: none !important;
    }

    /* Footer bottom — markazda */
    .footer__bottom-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.6rem !important;
    }

    .footer__bottom-links {
        justify-content: center !important;
    }

    .footer__bottom-slogan {
        display: none !important;
    }

    /* Sarlavha va nav kichraytirish */
    .footer__col-title {
        font-size: 0.92rem !important;
    }

    .footer__nav a {
        font-size: 0.82rem !important;
    }

    .footer__catalog-text {
        font-size: 0.78rem !important;
    }
}

/* ============================================
   480px va past — 2 ustun SAQLANADI
   ============================================ */
@media (max-width: 480px) {

    .footer__inner {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.25rem 0.75rem !important;
    }

    .footer__brand {
        grid-column: 1 / -1 !important;
    }
}