/* ===================================
   E7 TECH - MODERN PROFESSIONAL FOOTER
   Fully Responsive Design - No Pixel Values
   =================================== */

:root {
    --navy-950: #0a1128;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --gold: #fbbf24;
    --gold-600: #f59e0b;
    --white: #ffffff;
}

/* ===================================
   MAIN FOOTER
   =================================== */
.site-footer {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.footer-main {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* ===================================
   FOOTER COLUMNS
   =================================== */
.footer-column {
    display: flex;
    flex-direction: column;
}

/* Company Info */
.footer-about {
    padding-right: clamp(1rem, 3vw, 2rem);
}

.footer-logo {
    height: clamp(2.5rem, 4vw, 3.5rem);
    width: auto;
    max-width: 12rem;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    display: block;
    filter: brightness(1.1);
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    font-size: clamp(0.875rem, 2vw, 1rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.social-link {
    width: clamp(2.75rem, 5vw, 3rem);
    height: clamp(2.75rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.1);
    border: 0.0625rem solid rgba(251, 191, 36, 0.3);
    color: var(--gold);
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-950);
    transform: translateY(-0.375rem) scale(1.05);
    box-shadow: 0 0.75rem 1.5rem rgba(251, 191, 36, 0.4);
}

/* ===================================
   FOOTER TITLES
   =================================== */
.footer-title {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 700;
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    position: relative;
    padding-bottom: clamp(0.75rem, 1.5vw, 1rem);
    letter-spacing: 0.02em;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(3rem, 6vw, 4rem);
    height: 0.1875rem;
    background: var(--gold);
    border-radius: 0.125rem;
}

/* ===================================
   FOOTER LINKS
   =================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.5vw, 1rem);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links li a i {
    font-size: clamp(0.625rem, 1.5vw, 0.75rem);
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 0.625rem;
}

.footer-links li a:hover i {
    transform: translateX(0.375rem);
}

/* ===================================
   FOOTER CONTACT
   =================================== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.875rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    width: clamp(2rem, 3.5vw, 2.25rem);
    height: clamp(2rem, 3.5vw, 2.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    color: var(--gold);
    border-radius: 0.5rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    flex-shrink: 0;
    margin-top: 0.125rem;
    border: 0.0625rem solid rgba(251, 191, 36, 0.2);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-content strong {
    color: var(--white);
    font-weight: 600;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    margin-bottom: 0.125rem;
}

.contact-content span,
.contact-content a {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.8125rem, 1.8vw, 0.875rem);
    line-height: 1.6;
}

.contact-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: var(--gold);
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */
.footer-newsletter {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.03));
    border: 0.0625rem solid rgba(251, 191, 36, 0.2);
    border-radius: clamp(1rem, 2.5vw, 1.5rem);
    padding: clamp(2rem, 4vw, 3rem);
    backdrop-filter: blur(0.625rem);
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

.newsletter-text {
    flex: 1;
}

.newsletter-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: clamp(0.375rem, 1vw, 0.5rem);
    letter-spacing: -0.01em;
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: clamp(0.625rem, 1.5vw, 0.875rem);
    flex: 1;
    max-width: 35rem;
}

.newsletter-form input {
    flex: 1;
    padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1.125rem, 2.5vw, 1.5rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 0.1875rem rgba(251, 191, 36, 0.1);
}

.newsletter-form button {
    padding: clamp(0.875rem, 2.5vw, 1.125rem) clamp(1.5rem, 3.5vw, 2.25rem);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%);
    color: var(--navy-950);
    border: none;
    border-radius: 0.625rem;
    font-weight: 700;
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.625rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 0.25rem 1rem rgba(251, 191, 36, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.625rem 1.5rem rgba(251, 191, 36, 0.45);
}

.newsletter-form button i {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    transition: transform 0.3s ease;
}

.newsletter-form button:hover i {
    transform: translateX(0.25rem);
}

/* ===================================
   FOOTER BOTTOM
   =================================== */
.footer-bottom {
    padding: clamp(1.5rem, 3vw, 2rem) 0;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    margin: 0;
    font-weight: 300;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: clamp(0.8125rem, 2vw, 0.9375rem);
    transition: all 0.3s ease;
    padding: 0.375rem 0.625rem;
    border-radius: 0.25rem;
}

.footer-bottom-links a:hover {
    color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
}

.separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    bottom: clamp(1.25rem, 3vw, 2rem);
    right: clamp(1.25rem, 3vw, 2rem);
    width: clamp(3rem, 6vw, 3.5rem);
    height: clamp(3rem, 6vw, 3.5rem);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-600) 100%);
    color: var(--navy-950);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    box-shadow: 0 0.375rem 1.25rem rgba(251, 191, 36, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-0.375rem) scale(1.05);
    box-shadow: 0 0.75rem 2rem rgba(251, 191, 36, 0.5);
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: -0.125rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-600));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.back-to-top:hover::before {
    opacity: 0.3;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 75rem) {
    .footer-grid {
        grid-template-columns: 1.75fr repeat(4, 1fr);
    }
}

@media (max-width: 61.9375rem) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: left;
        max-width: 100%;
        margin: 0 0 clamp(2rem, 4vw, 3rem);
    }

    .footer-logo {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-title {
        text-align: left;
    }
    
    .footer-title::after {
        left: 0;
        transform: none;
    }

    .footer-links {
        align-items: flex-start;
    }

    .footer-contact {
        align-items: flex-start;
    }

    .footer-contact li {
        justify-content: flex-start;
        max-width: 100%;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 47.9375rem) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: left;
    }

    .footer-links li a {
        justify-content: flex-start;
    }

    .footer-contact {
        align-items: stretch;
    }

    .footer-contact li {
        text-align: left;
        flex-direction: row;
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
    }

    .footer-contact i {
        flex-shrink: 0;
    }

    .contact-content {
        flex: 1;
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        justify-content: center;
        width: 100%;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .footer-bottom-links {
        justify-content: flex-start;
    }
}

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: clamp(5rem, 12vw, 6.5rem);
    right: clamp(1.25rem, 3vw, 2rem);
    width: clamp(3.5rem, 8vw, 4rem);
    height: clamp(3.5rem, 8vw, 4rem);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.75rem, 4vw, 2rem);
    box-shadow: 0 0.375rem 1.5rem rgba(37, 211, 102, 0.4);
    z-index: 998;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem) scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-0.25rem);
    box-shadow: 0 0.75rem 2rem rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float i {
    position: relative;
    z-index: 1;
}

.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    background: var(--white);
    color: var(--navy-950);
    padding: clamp(0.5rem, 1.5vw, 0.625rem) clamp(0.875rem, 2vw, 1rem);
    border-radius: 0.5rem;
    font-size: clamp(0.8125rem, 2vw, 0.875rem);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0.625rem);
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.375rem 0 0.375rem 0.375rem;
    border-color: transparent transparent transparent var(--white);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 0.375rem 1.5rem rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0.375rem 1.5rem rgba(37, 211, 102, 0.4), 0 0 0 0.625rem rgba(37, 211, 102, 0.2);
    }
}

@media (max-width: 47.9375rem) {
    .whatsapp-float {
        bottom: clamp(5.5rem, 14vw, 7rem);
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

