/* =============================================
   FOOTER
   ============================================= */

.footer-wrap {
    position: relative;
    z-index: 10;
    margin-top: 2.5rem;
    isolation: isolate;
}

/* ---- İletişim kartı ---- */
.footer-contact {
    position: relative;
    z-index: 2;
    margin-bottom: -3.25rem;
}

.footer-contact__card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(53, 102, 223, 0.08);
    box-shadow:
        0 24px 48px rgba(11, 26, 51, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.footer-contact__head {
    width: 100%;
    text-align: center;
}

.footer-contact__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
    min-width: 0;
}

.footer-contact__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    align-self: flex-start;
}

.footer-contact__logo img {
    display: block;
    width: auto;
    height: 3.75rem;
    max-width: 100%;
    object-fit: contain;
}

.footer-contact__title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.footer-contact__desc {
    max-width: 36rem;
    margin-inline: auto;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748b;
}

.footer-contact__methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

.footer-contact__method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef1f6;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.footer-contact__method:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: rgba(53, 102, 223, 0.15);
}

.footer-contact__method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.125rem;
}

.footer-contact__method--blue .footer-contact__method-icon,
.footer-contact__method--phone .footer-contact__method-icon {
    background: color-mix(in srgb, #1b41a6 12%, #ffffff);
    color: #1b41a6;
}

.footer-contact__method--green .footer-contact__method-icon,
.footer-contact__method--whatsapp .footer-contact__method-icon {
    background: color-mix(in srgb, #25d366 12%, #ffffff);
    color: #16a34a;
}

.footer-contact__method--coral .footer-contact__method-icon,
.footer-contact__method--mail .footer-contact__method-icon {
    background: color-mix(in srgb, #f87171 14%, #ffffff);
    color: #ef4444;
}

.footer-contact__method-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.footer-contact__method-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
}

.footer-contact__method-value {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Ana footer ---- */
.site-footer {
    --footer-brand: #1b41a6;
    --footer-brand-mid: #234cad;
    --footer-brand-light: #2f57b8;
    --footer-brand-dark: #0f329a;
    --footer-brand-deep: #0c2d8a;
    position: relative;
    overflow: hidden;
    padding-top: 5.5rem;
    background:
        radial-gradient(ellipse 90% 60% at 50% -8%, rgba(47, 87, 184, 0.38) 0%, transparent 56%),
        radial-gradient(circle at 82% 88%, rgba(15, 50, 154, 0.45) 0%, transparent 42%),
        linear-gradient(180deg, var(--footer-brand-mid) 0%, var(--footer-brand) 46%, var(--footer-brand-dark) 100%);
    color: #ffffff;
}

.site-footer__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 76%, rgba(35, 76, 173, 0.22) 0%, transparent 38%),
        radial-gradient(circle at 86% 22%, rgba(57, 103, 197, 0.14) 0%, transparent 34%);
}

.site-footer__container {
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

/* ---- Sekmeler ---- */
.site-footer__tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.625rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1.75rem;
    scrollbar-width: none;
}

.site-footer__tabs::-webkit-scrollbar {
    display: none;
}

.site-footer__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
    min-height: 46px;
    padding: 0.625rem 1.125rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.site-footer__tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.site-footer__tab.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(57, 103, 197, 0.65);
    color: #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 24px rgba(12, 45, 138, 0.35);
}

.site-footer__tab-icon {
    flex-shrink: 0;
    width: 0.875rem;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    opacity: 0.85;
}

.site-footer__tab.is-active .site-footer__tab-icon {
    opacity: 1;
}

.site-footer__tab-label--short {
    display: none;
}

/* ---- Link panelleri ---- */
.site-footer__panel {
    display: none;
    animation: footerPanelIn 0.35s ease;
}

.site-footer__panel.is-active {
    display: block;
}

@keyframes footerPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.site-footer__link-icon {
    flex-shrink: 0;
    font-size: 0.625rem;
    opacity: 0.55;
}

.site-footer__link:hover .site-footer__link-icon {
    opacity: 0.9;
    color: #7da3e8;
}

/* ---- Sosyal + hızlı iletişim ---- */
.site-footer__bottom-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(57, 103, 197, 0.35);
}

.site-footer__social,
.site-footer__quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__social-link,
.site-footer__quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.125rem;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.site-footer__social-link {
    --social-brand-start: var(--brand-color, #3566df);
    --social-brand-stop: var(--brand-color-end, var(--brand-color, #3566df));
    --social-brand-accent: var(--brand-accent, var(--social-brand-stop));
    border: 1px solid color-mix(in srgb, var(--social-brand-accent) 58%, rgba(255, 255, 255, 0.18));
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--social-brand-start) 46%, rgba(255, 255, 255, 0.12)) 0%,
            color-mix(in srgb, var(--social-brand-stop) 38%, rgba(255, 255, 255, 0.08)) 100%
        );
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 6px 18px color-mix(in srgb, var(--social-brand-accent) 28%, transparent);
}

.site-footer__quick-link {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__social-link i {
    line-height: 1;
    color: #ffffff;
    font-size: 1.125rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.site-footer__social-link--gradient i {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #ffffff;
}

.site-footer__social-link--dark {
    --social-brand-start: #111111;
    --social-brand-stop: #000000;
    --social-brand-accent: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
    background: linear-gradient(145deg, #1a1a1a 0%, #050505 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-footer__social-link--dark:hover,
.site-footer__social-link--dark:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: linear-gradient(145deg, #222222 0%, #000000 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.45);
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--social-brand-accent) 78%, #ffffff 22%);
    background: linear-gradient(145deg, var(--social-brand-start) 0%, var(--social-brand-stop) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 12px 28px color-mix(in srgb, var(--social-brand-accent) 42%, transparent);
}

.site-footer__social-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--social-brand-accent) 70%, #ffffff 30%);
    outline-offset: 2px;
}

.site-footer__social-link--gradient:hover i,
.site-footer__social-link--gradient:focus-visible i,
.site-footer__social-link:hover i,
.site-footer__social-link:focus-visible i {
    color: #ffffff;
    filter: none;
}

.site-footer__quick-link--blue:hover {
    background: rgba(27, 65, 166, 0.35);
    border-color: rgba(57, 103, 197, 0.55);
}

.site-footer__quick-link--green:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(74, 222, 128, 0.35);
}

.site-footer__quick-link--coral:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(252, 165, 165, 0.35);
}

/* ---- Alt bar ---- */
.site-footer__bar {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-top: 1px solid #eef1f6;
}

.site-footer__bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem 1.125rem;
}

.site-footer__copy {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}

.site-footer__payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.site-footer__payment-logo {
    display: block;
    width: 76px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
    .footer-contact__methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__bottom-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .footer-contact__card {
        gap: 1.75rem;
        padding: 1.75rem 2rem;
    }

    .footer-contact__logo img {
        height: 4.75rem;
    }

    .footer-contact {
        margin-bottom: -3.75rem;
    }

    .site-footer {
        padding-top: 6.25rem;
    }

    .site-footer__tabs {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }

    .site-footer__links {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.625rem 1.25rem;
    }

    .site-footer__bar-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .site-footer__copy {
        text-align: left;
    }
}

/* Tablet: iletişim kartları yan yana sığsın */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-contact__card {
        padding: 1.5rem 1.25rem;
    }

    .footer-contact__body {
        gap: 1.25rem;
    }

    .footer-contact__logo img {
        height: 4rem;
    }

    .footer-contact__methods {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
    }

    .footer-contact__method {
        min-width: 0;
        padding: 0.75rem 0.625rem;
        gap: 0.625rem;
    }

    .footer-contact__method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-contact__method-label,
    .footer-contact__method-value {
        font-size: 0.75rem;
    }

    .footer-contact__method-value {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 992px) {
    .footer-wrap {
        margin-top: 3.5rem;
    }

    .footer-contact__card {
        border-radius: 22px;
        padding: 2rem 2.25rem;
    }

    .footer-contact__body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-contact__methods {
        display: flex;
        flex-wrap: nowrap;
        flex: 0 0 auto;
        gap: 0.875rem;
        justify-content: flex-end;
        max-width: none;
        margin-left: auto;
    }

    .footer-contact__method {
        flex: 0 1 auto;
        min-width: 11.5rem;
    }

    .site-footer__links {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .site-footer__tab {
        min-height: 50px;
        padding: 0.75rem 1.375rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 767.98px) {
    .site-footer__payments {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding-inline: 0.25rem;
    }

    .site-footer__payment-logo {
        flex: 0 1 auto;
        width: auto;
        height: 1.2rem;
        max-width: 2.75rem;
        object-fit: contain;
    }
}

@media (max-width: 575px) {
    .site-footer__tab-label {
        display: none;
    }

    .site-footer__tab-label--short {
        display: inline;
    }
}
