/* Responsive Design */

/*
 * SENIOR DEV NOTE:
 * I've moved the critical UI switching rules (for navigation and audio controls)
 * into this 1024px block. This ensures that iPads get the mobile menu and
 * audio button, not just the stacked content layout.
*/
@media (max-width: 1024px) {
    /* --- Styles for Tablets and All Mobile Devices --- */

    /* Audio Controls & Navigation */
    .audio-controls {
        display: none !important;
    }
    
    .mobile-audio-control {
        display: flex !important;
    }

    .nav-menu, 
    .login-btn:not(.mobile-nav .login-btn) {
        display: none !important;
    }
    
    .mobile-menu {
        display: flex !important;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* General Layout Adjustments */
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
        margin-left: 15px;
    }

    .hero {
        padding: 45px 30px;
    }

    .contact-panels {
        grid-template-columns: 1fr;
        padding: 20px 20px 50px 20px;
        gap: 35px;
    }

    .panel-content {
        padding: 2rem 1.8rem;
    }
}

@media (max-width: 768px) {
    /* --- Styles for Smaller Tablets and Phones --- */
    
    header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }
    
    nav {
        padding: 0.8rem 0;
        position: relative;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 25px;
        margin: 15px 10px 25px 10px;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: clamp(1rem, 2vw, 1.15rem);
    }

    .contact-panels {
        padding: 15px 15px 40px 15px;
        gap: 30px;
    }

    .contact-panel {
        margin: 0 10px;
    }

    .panel-content {
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: -40px auto 20px auto;
    }

    .panel-header h3 {
        font-size: 1.2rem;
    }

    .panel-header .subtitle {
        font-size: 1.1rem;
    }

    .unified-content {
        font-size: 1rem;
        padding: 22px;
    }

    .panel-image {
        height: 200px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 18px;
        margin-bottom: 20px;
    }

    .info-item .info-icon {
        margin-right: 0;
        margin-bottom: 12px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .map-placeholder {
        height: 250px;
    }
}

@media (max-width: 480px) {
    /* --- Styles for Smaller Mobile Phones --- */
    .hero {
        padding: 35px 20px;
        margin: 10px 5px 20px 5px;
    }

    .contact-panels {
        gap: 25px;
    }

    .contact-panel {
        margin: 0 5px;
    }

    .panel-content {
        padding: 1.8rem 1.2rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .info-item {
        padding: 15px;
    }

    .info-item .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .info-text h4 {
        font-size: 1rem;
    }

    .info-text p {
        font-size: 0.9rem;
    }

    .map-placeholder {
        height: 220px;
    }

    #backToTopBtn {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 1rem;
    }
}

/*
 * SENIOR DEV NOTE:
 * Both of these blocks were updated from 769px to 1025px to match
 * the new tablet breakpoint, correctly hiding mobile elements on desktop.
*/
@media (min-width: 1025px) {
    .mobile-audio-control {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
}