@import url(variables.css);
/* Footer Section Responsive Styles */

/* ===== LARGE SCREENS ===== */
@media (max-width: 1199px) {
    .footer-main {
        padding: 50px 0 30px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-address-content,
    .footer-contact-item a,
    .footer-social-text,
    .footer-about-content,
    .footer-quick-links-list li a,
    .footer-subscription-text {
        font-size: 0.9rem;
    }
    
    .footer-social-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .footer-form-control {
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .footer-submit-btn {
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }
}

/* ===== TABLET SCREENS ===== */
@media (max-width: 991px) {
    .footer-main {
        padding: 40px 0 25px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-address,
    .footer-contact-info,
    .footer-social,
    .footer-about,
    .footer-quick-links,
    .footer-subscription {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-address-title::after,
    .footer-contact-title::after,
    .footer-social-title::after,
    .footer-about-title::after,
    .footer-quick-links-title::after,
    .footer-subscription-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-social-icon {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .footer-quick-links-list li a {
        justify-content: center;
    }
    
    .footer-form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .footer-submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ===== MOBILE LANDSCAPE ===== */
@media (max-width: 767px) {
    .footer-main {
        padding: 30px 0 20px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-address,
    .footer-contact-info,
    .footer-social,
    .footer-about,
    .footer-quick-links,
    .footer-subscription {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 0.95rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-address-content,
    .footer-contact-item a,
    .footer-social-text,
    .footer-about-content,
    .footer-quick-links-list li a,
    .footer-subscription-text {
        font-size: 0.85rem;
    }
    
    .footer-social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-form-control {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-submit-btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
    }
    
    .footer-copyright {
        padding: 1.5rem 0;
    }
    
    .copyright-text {
        font-size: 0.85rem;
    }
}

/* ===== MOBILE PORTRAIT ===== */
@media (max-width: 575px) {
    .footer-main {
        padding: 25px 0 15px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .footer-address,
    .footer-contact-info,
    .footer-social,
    .footer-about,
    .footer-quick-links,
    .footer-subscription {
        margin-bottom: 1.25rem;
        text-align: center;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-address-content,
    .footer-contact-item a,
    .footer-social-text,
    .footer-about-content,
    .footer-quick-links-list li a,
    .footer-subscription-text {
        font-size: 0.8rem;
    }
    
    .footer-social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .footer-form-control {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .footer-submit-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        padding: 1.25rem 0;
    }
    
    .copyright-text {
        font-size: 0.8rem;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .footer-main {
        padding: 20px 0 10px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .footer-address,
    .footer-contact-info,
    .footer-social,
    .footer-about,
    .footer-quick-links,
    .footer-subscription {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 0.85rem;
        margin-bottom: 0.625rem;
    }
    
    .footer-address-content,
    .footer-contact-item a,
    .footer-social-text,
    .footer-about-content,
    .footer-quick-links-list li a,
    .footer-subscription-text {
        font-size: 0.75rem;
    }
    
    .footer-social-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .footer-form-control {
        padding: 0.6rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .footer-submit-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
    }
    
    .footer-copyright {
        padding: 1rem 0;
    }
    
    .copyright-text {
        font-size: 0.75rem;
    }
}

/* Back to Top Button Responsive Styles */

/* Large screens */
@media (max-width: 1199px) {
    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 25px;
        right: 25px;
    }
    
    .back-to-top i {
        font-size: 1.1rem;
    }
}

/* Tablet screens */
@media (max-width: 991px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
    
    .back-to-top:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

/* Mobile landscape */
@media (max-width: 768px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top i {
        font-size: 0.95rem;
    }
    
    .back-to-top:hover {
        transform: translateY(-2px) scale(1.03);
    }
    
    .back-to-top::before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .back-to-top i {
        font-size: 0.9rem;
    }
    
    .back-to-top:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .back-to-top:active {
        transform: translateY(-1px) scale(1);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 12px;
        right: 12px;
    }
    
    .back-to-top i {
        font-size: 0.85rem;
    }
    
    .back-to-top:hover i {
        transform: translateY(-1px);
    }
    
    .back-to-top::before {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
    }
}

/* Height-specific adjustments for mobile landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .back-to-top i {
        font-size: 0.8rem;
    }
}

/* Ensure button doesn't interfere with bottom navigation on mobile */
@media (max-width: 768px) {
    .back-to-top {
        z-index: 999;
    }
    
    /* Adjust position if there's a mobile navigation bar */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .back-to-top {
            bottom: calc(15px + env(safe-area-inset-bottom));
        }
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
        transform: none !important;
    }
    
    .back-to-top:hover {
        transform: none !important;
    }
    
    .back-to-top i {
        transition: none;
    }
    
    .back-to-top:hover i {
        transform: none !important;
    }
    
    .back-to-top.pulse {
        animation: none;
    }
}

/* ===== MEDIA QUERIES MOVED FROM FOOTER.CSS ===== */

/* Responsive Adjustments */
@media (max-width: 991px) {
    .footer-top-section,
    .footer-middle-section {
        text-align: center;
    }
    
    .footer-address-title::after,
    .footer-contact-title::after,
    .footer-social-title::after,
    .footer-about-title::after,
    .footer-quick-links-title::after,
    .footer-subscription-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-quick-links-list li a {
        justify-content: center;
    }
    
    .copyright-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 30px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }
    
    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .footer-main {
        padding: 30px 0 20px 0;
    }
    
    .footer-top-section,
    .footer-middle-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-address-title,
    .footer-contact-title,
    .footer-social-title,
    .footer-about-title,
    .footer-quick-links-title,
    .footer-subscription-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-address-content,
    .footer-contact-item a,
    .footer-social-text,
    .footer-about-content,
    .footer-quick-links-list li a,
    .footer-subscription-text {
        font-size: 0.85rem;
    }
    
    .footer-social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-form-control {
        padding: 0.7rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .footer-submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .back-to-top {
        border: 3px solid #ffffff;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    }
    
    .back-to-top:hover {
        border-color: #000000;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
    
    .back-to-top.show {
        animation: none;
    }
    
    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top i {
        transition: none;
    }
    
    .back-to-top:hover i {
        animation: none;
        transform: none;
    }
    
    .back-to-top.pulse {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .back-to-top {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        border: 2px solid #444;
    }
    
    .back-to-top:hover {
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
        border-color: #666;
    }
}

/* Print styles */
@media print {
    .back-to-top {
        display: none !important;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .back-to-top {
        width: 60px;
        height: 60px;
        right: 40px;
        bottom: 120px;
    }
    
    .back-to-top i {
        font-size: 1.4rem;
    }
}

/* Small screens - ensure button doesn't interfere with content */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top i {
        font-size: 1.1rem;
    }
    
    /* Ensure button doesn't overlap with mobile navigation */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
        .back-to-top {
            bottom: calc(80px + env(safe-area-inset-bottom));
        }
    }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .back-to-top {
        bottom: 60px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top i {
        font-size: 1rem;
    }
}