/* =========================================
   SHARED FOOTER — floating compact curved footer
   Loaded on every page (via footer.php)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Scoped reset — affects ONLY the footer, not the rest of the page */
.footer-wrapper *,
.footer-wrapper *::before,
.footer-wrapper *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: 'Inter', sans-serif;
}

.launchouse-footer {
    width: 100%;
    background: linear-gradient(135deg, #181818 0%, #080808 100%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 45px 45px 20px 45px;
    color: #ffffff;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.8fr 0.9fr 0.9fr 1.8fr;
    gap: 40px;
}

/* 1. Brand & Socials */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brand-logo img {
    max-width: 160px;
    height: auto;
    display: block;
}

.footer-brand p {
    color: #a0a0a0;
    font-size: 14.5px;
    line-height: 1.6;
    max-width: 320px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icons a:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

.social-icons a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 2 & 3. Links Section */
.footer-links h4 {
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

/* 4. Newsletter Section */
.footer-newsletter h4 {
    color: #ffffff;
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-newsletter p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.newsletter-box {
    display: flex;
    background: #0d0d0d;
    border: 1px solid #282828;
    border-radius: 50px;
    padding: 5px;
    align-items: center;
    width: 100%;
    transition: border-color 0.3s ease;
}

.newsletter-box:focus-within {
    border-color: #555555;
}

.newsletter-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    width: 100%;
}

.newsletter-box input::placeholder {
    color: #555555;
}

/* Animated gradient border button */
.animated-gradient-btn {
    position: relative;
    padding: 1.5px;
    border-radius: 50px;
    background: #111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.animated-gradient-btn::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    background: conic-gradient(transparent,
            #ffffff,
            #444444,
            #888888,
            transparent);
    animation: spin 3.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animated-gradient-btn button {
    position: relative;
    background: linear-gradient(135deg, #222222 0%, #111111 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.animated-gradient-btn button:hover {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ffffff;
}

.animated-gradient-btn button:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Bottom Copyright & Legal Links */
.footer-bottom {
    margin-top: 35px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom p {
    color: #777777;
    font-size: 13.5px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: #777777;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* =========================================
   RESPONSIVE — compact on mobile (shorter height)
   ========================================= */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1.6fr 1fr 1fr 1.6fr;
        gap: 32px;
    }
}

/* Brand + newsletter full width; the two link lists sit side by side to save height */
@media (max-width: 860px) {
    .launchouse-footer {
        padding: 36px 32px 18px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 28px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-wrapper {
        padding: 16px 12px;
    }

    .launchouse-footer {
        padding: 26px 20px 14px;
        border-radius: 20px;
    }

    .footer-container {
        gap: 20px 16px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}