/* ========================================
   7. Footer
   ======================================== */
.site-footer {
    background-color: var(--footer-bg);
    /* Daha koyu, sofistike antrasit */
    color: var(--footer-color);
    padding: var(--spacing-10) 0 var(--spacing-6);
    /* Reduced padding */
    position: relative;
    border-top: 4px solid var(--color-primary);
    /* Kurumsal cizgi */
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* Brand daha genis */
    gap: var(--spacing-8);
    /* Reduced gap */
    margin-bottom: var(--spacing-4);
    /* Reduced margin further to fix gap issue */
}

.footer-brand .footer-site-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-6);
    display: block;
}

.site-footer h3 {
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-6);
    position: relative;
    padding-bottom: var(--spacing-4);
}

.site-footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-contact p {
    margin-bottom: var(--spacing-4);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact a {
    color: inherit;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-white);
}

.footer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.footer-menu a {
    color: inherit;
    font-size: 0.95rem;
    padding-left: 0;
    transition: all var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--color-white);
    padding-left: 5px;
    /* Hafif kayma efekti */
}

/* Social Styles */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

.social-icons {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

.footer-social-item {
    background-color: rgba(255, 255, 255, 0.05);
    color: inherit;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Colors on Hover */
.footer-social-item[aria-label="Facebook"]:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #ffffff;
}

.footer-social-item[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
    color: #ffffff;
}

.footer-social-item[aria-label="Twitter"]:hover,
.footer-social-item[aria-label="X (twitter)"]:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.footer-social-item[aria-label="Linkedin"]:hover {
    background-color: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.footer-social-item[aria-label="Youtube"]:hover {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.footer-social-item[aria-label="WhatsApp"]:hover {
    background-color: #25D366;
    border-color: #25D366;
    color: #ffffff;
}

.footer-social-item:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-4);
    display: flex;
    align-items: center;
    width: 100%;
    /* Ensure separate ends */
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    display: flex;
    align-items: center;
}

.copyright {
    font-size: 0.85rem;
    color: var(--footer-color);
    opacity: 0.8;
    /* Force push right element to the end */
    margin-right: auto;
}

.working-hours-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--footer-color);
    opacity: 0.8;
    /* Ensure no wrapping affects alignment */
    white-space: nowrap;
}

.working-hours-bottom i {
    font-size: 1rem;
    color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-8);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-wrap: wrap;
        /* Wrap on tablets/mobile */
        justify-content: center;
        /* Center on wrap */
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        /* Stack vertically on small mobile */
        gap: var(--spacing-4);
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }
}

/* Logo Alignment Control */
.footer-brand {
    display: flex;
    flex-direction: column;
    /* Logoyu hizalamak icin asagidaki degeri degistirin: */
    /* flex-start = SOL (Varsayilan) */
    /* center     = ORTA */
    /* flex-end   = SAG */
    align-items: flex-start;
}

.footer-brand .custom-logo-link {
    display: block;
    max-width: 100%;
}

.footer-brand .custom-logo-link img {
    /* Max width removed to allow height control via Customizer */
    height: auto;
    object-fit: contain;
}