/**
 * NESTPRO - Footer Styles
 */

.site-footer {
    position: relative;
    background: var(--gradient-luxury);
    color: var(--white);
    padding: 80px 0 0;
    overflow: hidden;
}

/* Floating shapes */
.footer-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
}

.footer-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    right: -100px;
    animation: floatShape 25s infinite ease-in-out;
}

.footer-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    bottom: -100px;
    left: -80px;
    animation: floatShape 30s infinite ease-in-out reverse;
}

.footer-shape.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 50%;
    left: 50%;
    animation: floatShape 20s infinite ease-in-out;
    animation-delay: -8s;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

/* Footer Logo */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo .logo-name {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--white);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Footer Headings */
.footer-heading {
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(8px);
}

.footer-links a:hover::before {
    width: 12px;
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.6;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--gold);
}

/* Newsletter */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.newsletter-content h4 {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.newsletter-input {
    width: 320px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: 14px;
    transition: all var(--transition);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--gold);
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-newsletter {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-float);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    color: var(--white);
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
}

.float-btn svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 2;
}

.float-btn-call {
    background: var(--gradient-primary);
}

.float-btn-whatsapp {
    background: #25D366;
}

.float-btn-email {
    background: var(--gradient-gold);
    color: var(--navy);
}

.float-btn-top {
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.float-btn-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: var(--white);
}

.float-btn-email:hover {
    color: var(--navy);
}

/* Pulse animation */
.float-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid currentColor;
    opacity: 0;
    animation: floatPulse 2s infinite;
}

.float-btn:hover::after {
    animation: none;
    opacity: 0;
}

@keyframes floatPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Tooltip */
.float-btn .float-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.float-btn .float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--navy);
    border-right: none;
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
    right: 64px;
}

@media (max-width: 768px) {
    .floating-buttons {
        right: 12px;
        gap: 10px;
    }

    .float-btn {
        width: 44px;
        height: 44px;
    }

    .float-btn svg {
        width: 18px;
        height: 18px;
    }

    .float-btn .float-tooltip {
        display: none;
    }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--navy);
    z-index: var(--z-preloader);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 30px;
    animation: preloaderPulse 1.5s infinite ease-in-out;
}

.preloader-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: preloaderBar 1.5s infinite ease-in-out;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes preloaderBar {
    0% { width: 0; margin-left: 0; }
    50% { width: 100%; margin-left: 0; }
    100% { width: 0; margin-left: 100%; }
}

.preloader-text {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 16px;
}
