/* Responsive Design */

/*
 * SENIOR DEV NOTE:
 * Spacing overrides have been removed from this file.
 * The new, improved text spacing is now handled globally in layout.css
 * to ensure a consistent and professional look across all devices.
*/
@media (max-width: 1024px) {
    /* --- Styles for Tablets and Mobiles --- */

    /* Hide Desktop Nav & Show Mobile Menu */
    .nav-menu, .login-btn {
        display: none;
    }

    nav {
        padding: 0.8rem 0;
    }

    .mobile-menu {
        display: flex;
    }
    
    /* Hide Desktop Audio Panel & Show Mobile Button */
    .audio-controls {
        display: none !important;
    }
    
    .mobile-audio-control {
        display: flex !important;
    }

    /* General Layout Adjustments */
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 45px 30px;
        margin: 15px 10px 25px 10px;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    /* DEV NOTE: Reduced the gap between panels for a tighter mobile layout. */
    .services-panels {
        gap: 40px; /* ADJUSTED */
        padding: 20px 20px 50px 20px;
    }
    
    .service-panel {
        flex-direction: column !important;
        min-height: auto;
        padding: 0;
        margin: 0 10px;
    }

    .panel-main-image,
    .service-panel:nth-child(even) .panel-main-image {
        width: 100%;
        height: 200px;
        flex: none;
        clip-path: none;
        border-radius: 35px 35px 0 0 !important;
    }

    .panel-content {
        padding: 2.5rem 2rem;
    }

    .service-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .panel-content h3 {
        font-size: 1.35rem;
        text-align: center;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    /* DEV NOTE: Re-introducing responsive line-height for a more compact mobile view. */
    .panel-description {
        font-size: 1.0rem;
        max-width: 100%;
        text-align: center;
        font-weight: 400;
        line-height: 1.65; /* ADDED */
    }
}

/* --- Styles for smaller mobile phones --- */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 0;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 35px 20px;
        margin: 10px 5px 20px 5px;
    }

    .services-panels {
        padding: 10px 10px 30px 10px;
        gap: 25px;
    }

    .service-panel {
        margin: 0 5px;
    }

    .panel-content {
        padding: 1.8rem 1.5rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .panel-content h3 {
        font-size: 1.25rem;
    }

    .panel-main-image {
        height: 180px;
    }
    
    /* DEV NOTE: Further reducing font-size and line-height for the smallest screens. */
    .panel-description {
        font-size: 0.95rem; /* ADJUSTED */
        line-height: 1.6; /* ADDED */
    }

    #backToTopBtn {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
        font-size: 1rem;
    }
}

@media (min-width: 1025px) {
    .mobile-audio-control {
        display: none !important;
    }
}