/* ═══════════════════════════════════════════════════════════
   Footer Styles
   Includes: footer sections, social links, newsletter signup
   ═══════════════════════════════════════════════════════════ */

/* ── Footer Container ─────────────────────────────────────── */
.sps-footer {
    background: linear-gradient(135deg, #1a1f35 0%, #0d3b6e 100%);
    color: var(--sps-light);
    padding: 60px 20px 40px;
    margin-top: 80px;
    border-top: 3px solid var(--sps-accent);
    position: relative;
    overflow: hidden;
}

/* Decorative bg pattern */
.sps-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(232, 93, 4, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(232, 93, 4, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.sps-footer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: relative;
    z-index: 1;
}

/* ── Footer Content ───────────────────────────────────────── */
.sps-footer__content {
    display: grid;
    grid-template-columns: 280px 1fr 200px;
    gap: 50px;
    align-items: start;
}

.sps-footer__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sps-footer__section--about {
    grid-column: 1;
    gap: 24px;
}

.sps-footer__section--newsletter {
    grid-column: 3;
}

.sps-footer__sections {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* ── Brand Section ────────────────────────────────────────── */
.sps-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sps-footer__brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: block;
}

.sps-footer__brand .sps-logo__text-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sps-footer__brand .sps-logo__text-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--sps-light);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.sps-footer__brand .sps-logo__text-sub {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 0.5px;
}

.sps-footer__brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ── Contact Info ─────────────────────────────────────────── */
.sps-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sps-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.sps-footer__contact-icon {
    display: inline-block;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sps-footer__contact-link,
.sps-footer__contact-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    transition: color 0.3s var(--sps-ease);
}

.sps-footer__contact-link {
    text-decoration: none;
    cursor: pointer;
}

.sps-footer__contact-link:hover {
    color: var(--sps-accent);
}

/* ── Social Links ─────────────────────────────────────────── */
.sps-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.sps-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(232, 93, 4, 0.15);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s var(--sps-ease);
    border: 1px solid rgba(232, 93, 4, 0.3);
}

.sps-footer__social-link:hover {
    background: var(--sps-accent);
    border-color: var(--sps-accent);
    transform: translateY(-3px);
}

.sps-social-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
    transition: all 0.3s var(--sps-ease);
}

/* ── Section Titles & Links ───────────────────────────────── */
.sps-footer__section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sps-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sps-accent);
    display: inline-block;
}

.sps-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sps-footer__link-item {
    display: block;
}

.sps-footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s var(--sps-ease);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sps-footer__link:hover {
    color: var(--sps-accent);
    padding-left: 4px;
}

.sps-footer__link::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s var(--sps-ease);
    width: 0;
}

.sps-footer__link:hover::before {
    opacity: 1;
    width: auto;
}

/* ── Newsletter Section ───────────────────────────────────── */
.sps-footer__newsletter-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.sps-footer__newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sps-footer__form-group {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid rgba(232, 93, 4, 0.3);
    transition: all 0.3s var(--sps-ease);
}

.sps-footer__form-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--sps-accent);
}

.sps-footer__input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--sps-light);
    padding: 10px 12px;
    font-size: 12px;
    outline: none;
}

.sps-footer__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sps-footer__btn {
    background: var(--sps-accent);
    color: var(--sps-white);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s var(--sps-ease);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sps-footer__btn:hover {
    background: #d64800;
    transform: scale(1.05);
}

.sps-footer__btn:active {
    transform: scale(0.98);
}

.sps-footer__newsletter-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ── Footer Bottom ────────────────────────────────────────── */
.sps-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.sps-footer__bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sps-footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.sps-footer__copyright strong {
    color: var(--sps-accent);
}

.sps-footer__bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.sps-footer__bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s var(--sps-ease);
}

.sps-footer__bottom-link:hover {
    color: var(--sps-accent);
}

.sps-footer__bottom-separator {
    color: rgba(255, 255, 255, 0.3);
}

.sps-footer__bottom-text {
    color: rgba(255, 255, 255, 0.7);
}

.sps-heart {
    color: var(--sps-accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ── Responsive Design ────────────────────────────────────── */
@media (max-width: 1024px) {
    .sps-footer__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sps-footer__section--about {
        grid-column: 1;
    }

    .sps-footer__section--newsletter {
        grid-column: 1;
    }

    .sps-footer__sections {
        grid-column: 1;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sps-footer {
        padding: 40px 20px 30px;
        margin-top: 60px;
    }

    .sps-footer__wrapper {
        gap: 30px;
    }

    .sps-footer__sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .sps-footer__bottom-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .sps-footer {
        padding: 30px 16px 20px;
        margin-top: 40px;
    }

    .sps-footer__content {
        gap: 30px;
    }

    .sps-footer__sections {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sps-footer__section-title {
        font-size: 13px;
    }

    .sps-footer__form-group {
        flex-direction: column;
    }

    .sps-footer__input,
    .sps-footer__btn {
        width: 100%;
    }

    .sps-footer__contact {
        gap: 10px;
        padding: 15px 0;
    }

    .sps-footer__bottom-links {
        flex-wrap: wrap;
    }
}

/* ── Animation & Transitions ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .sps-footer__link,
    .sps-footer__social-link,
    .sps-footer__contact-link,
    .sps-footer__btn {
        transition: none;
    }

    .sps-heart {
        animation: none;
    }
}
