/* ==========================================================================
   Site Footer — Figma Spec
   Background: beyaz, border-top: 1px solid #E9E9E9
   Container: max-width 1440px, padding 65px 43px
   Grid: 153px 224px 179px 228px 1fr
   ========================================================================== */

.saha-site-footer {
    border-top: 1px solid var(--saha-color-border, #E9E9E9);
    position: relative;
    min-height: 222px;
}

.saha-site-footer__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 65px 43px 40px;
    display: grid;
    grid-template-columns: 153px 224px 179px 228px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Genel Tipografi --- */

.saha-site-footer__copyright,
.saha-site-footer__col-title,
.saha-site-footer__address,
.saha-site-footer__phone,
.saha-site-footer__legal-link,
.saha-site-footer__legal a {
    font-family: var(--saha-font-primary);
    font-weight: 400;
    font-size: 14px;
    line-height: 22.75px;
    color: #000;

    margin: 0;
}

/* --- Sütun 1: Copyright --- */

.saha-site-footer__copyright {
    /* vertical-center within column height */
}

/* --- Sütun 2 & 3: Adres --- */

.saha-site-footer__col-title {
    margin-bottom: 13px;
}

.saha-site-footer__address {
    font-style: normal;
}

.saha-site-footer__phone {
    margin: 0;
}

.saha-site-footer__phone a {
    color: inherit;
    text-decoration: none;
}

/* --- Email --- */

.saha-site-footer__email {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 8px 0 0;
}

.saha-site-footer__email-icon {
    font-size: 13px;
    line-height: 1;
}

.saha-site-footer__email-link {
    font-family: var(--saha-font-primary);
    font-weight: 400;
    font-size: 13px;
    line-height: 21.125px;
    color: #000;
    text-decoration: none;

}

/* --- Sütun 4: Legal Linkler --- */

.saha-site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.saha-site-footer__legal li {
    margin: 0;
    padding: 0;
}

.saha-site-footer__legal-link,
.saha-site-footer__legal a {
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.saha-site-footer__legal-link:hover,
.saha-site-footer__legal a:hover {
    opacity: 0.7;
}

/* --- Sütun 5: Sosyal + Newsletter --- */

.saha-site-footer__social {
    display: flex;
    align-items: center;
    gap: 34px;
}

.saha-site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: opacity 0.2s ease;
}

.saha-site-footer__social-link:hover {
    opacity: 0.7;
}

.saha-site-footer__social-link .saha-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* --- Newsletter --- */

.saha-site-footer__newsletter {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 317px;
}

.saha-site-footer__newsletter-title {
    font-family: var(--saha-font-secondary, var(--saha-font-primary));
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 2px;
    color: #242424;
    margin: 0;
}

.saha-site-footer__newsletter-form {
    margin: 0;
}

.saha-site-footer__newsletter-field {
    position: relative;
}

.saha-site-footer__newsletter-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.saha-site-footer__newsletter-field.has-value .saha-site-footer__newsletter-submit {
    opacity: 1;
    visibility: visible;
}

.saha-site-footer__newsletter-submit:hover {
    color: #000;
}

.saha-site-footer__newsletter-message {
    font-size: 13px;
    line-height: 18px;
    margin-top: 8px;
    padding: 8px 0;
}

.saha-site-footer__newsletter-message.--success {
    color: #2e7d32;
}

.saha-site-footer__newsletter-message.--error {
    color: #c62828;
}

.saha-site-footer__newsletter-input {
    width: 100%;
    height: 42px;
    border: 1px solid #666;
    border-radius: 3px;
    padding: 0 16px;
    font-family: var(--saha-font-secondary, var(--saha-font-primary));
    font-size: 16px;
    color: #000;
    background: #fff;
    box-sizing: border-box;
}

.saha-site-footer__newsletter-input::placeholder {
    color: #757575;
}

.saha-site-footer__newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 15px;
    color: #666;
    cursor: pointer;
}

.saha-site-footer__newsletter-consent input[type="checkbox"] {
    margin: 2px 0 0;
    flex-shrink: 0;
}

.saha-site-footer__newsletter-consent a {
    color: #333;
    text-decoration: underline;
}

/* --- Design by Fol --- */

.saha-site-footer__credits {
    position: absolute;
    bottom: 14px;
    right: 43px;
}

.saha-site-footer__credits-text {
    font-family: var(--saha-font-primary);
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    color: rgba(0, 0, 0, 0.5);

}

.saha-site-footer__credits-link {
    font-family: var(--saha-font-primary);
    font-weight: 700;
    font-size: 12px;
    line-height: 18px;
    color: #000;
    text-decoration: none;

}

/* --- Responsive --- */

@media (max-width: 1023px) {
    .saha-site-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 32px 40px;
        padding: 40px 20px 60px;
    }

    .saha-site-footer__col--copyright {
        grid-column: 1 / -1;
        order: 5;
    }

    .saha-site-footer__col--right {
        grid-column: 1 / -1;
    }

    .saha-site-footer__credits {
        position: static;
        text-align: right;
        padding: 0 20px 16px;
    }
}

@media (max-width: 767px) {
    .saha-site-footer__container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 20px 60px;
    }

    .saha-site-footer__col--copyright {
        order: 5;
    }
}
