:root {
    --footer-bg: var(--color-footer-bg, #f8fafc);
    --footer-text: #64748b;
    --footer-heading: var(--color-text, #1e293b);
    --footer-border: #e2e8f0;
    --brand-color: var(--color-primary, #1b81fc);
    --gradient-brand: linear-gradient(135deg, var(--color-secondary, #1b81fc) 0%, var(--color-primary, #1b81fc) 55%, #1566d4 100%);
}

.modern-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 0;
    font-family: 'Nunito', sans-serif;
    border-top: 0;
}

/* Newsletter üstte yapışık; kolonlar onun altında nefes alsın */
.modern-footer > .container {
    padding-top: 36px;
}

.modern-footer a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-main-row {
    --bs-gutter-y: 2rem;
}

.footer-widget-title {
    color: var(--footer-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--brand-color);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--footer-text);
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.contact-info i {
    font-size: 18px;
    color: var(--brand-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-info a {
    color: var(--footer-text);
}

.contact-info a:hover {
    color: var(--brand-color);
}

.footer-brand-logo {
    display: inline-block;
    text-decoration: none;
}

.footer-brand-logo img,
.footer-brand-logo .site-logo-img--footer {
    height: 32px;
    margin-bottom: 14px;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.65;
    margin-bottom: 18px;
    max-width: 280px;
    color: var(--footer-text);
}

.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-color);
    font-size: 16px;
    border: 1px solid var(--footer-border);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 20px 0;
    margin-top: 36px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--footer-text);
    line-height: 1.5;
}

.footer-bottom a {
    color: var(--footer-heading);
}

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

.payment-methods {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.payment-methods i {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.payment-methods i:hover {
    color: var(--brand-color);
}

@media (max-width: 991px) {
    .modern-footer {
        padding-top: 0;
        text-align: center;
    }

    .modern-footer > .container {
        padding-top: 28px;
    }

    .footer-desc {
        margin: 0 auto 18px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .payment-methods {
        justify-content: center;
        margin-top: 12px;
    }

    .footer-bottom {
        margin-top: 24px;
    }
}

/* Sabit WhatsApp widget (footer) */
.site-wa-widget {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    max-width: min(17rem, calc(100vw - 1.75rem));
}

.site-wa-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.7rem 0.55rem 0.55rem;
    border-radius: 999px;
    overflow: visible;
    background: linear-gradient(135deg, #34d96e 0%, #1fba57 45%, #0f9b45 100%);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow:
        0 8px 24px rgba(15, 155, 69, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.site-wa-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(15, 155, 69, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.site-wa-btn-badge {
    position: absolute;
    top: -0.55rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    color: #0f9b45;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(15, 155, 69, 0.22);
    white-space: nowrap;
}

.site-wa-btn-badge::before {
    content: '';
    width: 0.34rem;
    height: 0.34rem;
    border-radius: 50%;
    background: #25d366;
    flex-shrink: 0;
}

.site-wa-btn-icon,
.site-wa-btn-text,
.site-wa-btn-arrow {
    position: relative;
    z-index: 1;
}

.site-wa-btn-icon {
    position: relative;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.34);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.site-wa-online-dot {
    position: absolute;
    top: 0.05rem;
    right: 0.08rem;
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px #1fba57;
}

.site-wa-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
    line-height: 1.2;
    padding-top: 0.1rem;
}

.site-wa-btn-text strong {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.site-wa-btn-text small {
    margin-top: 0.12rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.site-wa-btn-arrow {
    flex-shrink: 0;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.22s ease;
}

.site-wa-btn:hover .site-wa-btn-arrow {
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .site-wa-widget {
        bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
        max-width: min(15.5rem, calc(100vw - 1.1rem));
    }

    .site-wa-btn-text strong {
        font-size: 0.8rem;
    }

    .site-wa-btn-text small {
        font-size: 0.64rem;
    }

    .site-wa-btn-icon {
        width: 2.3rem;
        height: 2.3rem;
        font-size: 1.25rem;
    }
}

@media (min-width: 992px) {
    .site-wa-widget {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-wa-btn {
        transition: none;
    }
}
