/* css/responsive.css */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 2.5rem;
        --header-height: 80px;
    }
    
    /* Category Banners - Tablet */
    body .page-header {
        height: auto;
        min-height: 350px;
        padding: calc(var(--header-height) + 30px) 0 40px;
        background-position: center right;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }
    
    /* Professional overlay to ensure legibility on responsive */
    body .page-header::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(90deg, rgba(239, 120, 25, 0.95) 0%, rgba(239, 120, 25, 0.5) 100%);
        z-index: 1;
    }
    
    body .page-header .container {
        position: relative;
        z-index: 2;
    }
    
    body .page-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: #ffffff; /* Clean white background */
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 25px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
        overflow-y: auto;
        padding-bottom: 80px;
        box-sizing: border-box;
    }

    .menu-open .main-navigation {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0; /* Subtle separator */
        width: 100%;
    }

    .nav-link {
        font-size: 1.35rem; /* Larger, bolder top level */
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 0;
        color: #111111; /* Strong dark text */
        width: 100%;
        font-weight: 700;
        letter-spacing: -0.02em;
    }

    .nav-link::after {
        display: inline-block;
        content: '+'; /* Modern plus sign for accordion */
        font-size: 1.5rem;
        font-weight: 400;
        margin-left: auto; 
        transition: transform 0.3s ease, color 0.3s ease;
        color: #999999;
    }
    
    .nav-item.mobile-dropdown-open > .nav-link::after {
        transform: rotate(45deg); /* Turns plus into an X */
        color: #EF7819; /* Corporate Orange */
    }
    
    .nav-item.mobile-dropdown-open > .nav-link {
        color: #EF7819; 
    }
    
    .nav-item.has-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background-color: transparent;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        gap: 0;
        border-radius: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-item.mobile-dropdown-open > .dropdown-menu {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 0 0 15px 0;
        animation: slideDownFade 0.3s ease forwards;
    }

    @keyframes slideDownFade {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .dropdown-link {
        font-size: 1.15rem;
        color: #444444 !important; /* Premium dark grey */
        text-align: left;
        padding: 14px 20px 14px 20px;
        border-bottom: 1px solid #f7f7f7;
        display: block;
        font-weight: 500;
        transition: all 0.2s;
    }
    
    .dropdown-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-link:hover, .dropdown-link:active {
        background-color: #fafafa;
        color: #EF7819 !important;
    }
    
    .dropdown-menu::before, .dropdown-menu::after {
        display: none !important;
    }
    
    /* Submenus handling on mobile */
    .has-dropdown-submenu {
        flex-direction: column;
    }
    
    .has-dropdown-submenu > .dropdown-submenu {
        position: static;
        box-shadow: none;
        background-color: #fcfcfc; /* Very subtle indent background */
        display: none;
        flex-direction: column;
        padding: 0;
        margin: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        border-left: 1px solid #eeeeee;
        margin-left: 15px;
    }
    
    .has-dropdown-submenu.mobile-submenu-open > .dropdown-submenu {
        display: flex !important;
        padding-top: 5px;
        padding-bottom: 10px;
    }
    
    .has-dropdown-submenu > .dropdown-link::after {
        display: inline-block;
        content: '+';
        font-size: 1.3rem;
        float: right;
        font-weight: 400;
        transition: transform 0.3s ease;
        color: #aaaaaa;
    }
    
    .has-dropdown-submenu.mobile-submenu-open > .dropdown-link::after {
        transform: rotate(45deg);
        color: #EF7819;
    }
    
    .has-dropdown-submenu.mobile-submenu-open > .dropdown-link {
        color: #EF7819 !important;
    }
    
    .has-dropdown-submenu > .dropdown-submenu .dropdown-link {
        padding-left: 20px; 
        font-size: 1.05rem;
        color: #666666 !important;
        border-bottom: none;
        padding-top: 10px;
        padding-bottom: 10px;
        border-left: none;
    }
    
    .has-dropdown-submenu > .dropdown-submenu .dropdown-link:hover,
    .has-dropdown-submenu > .dropdown-submenu .dropdown-link:active {
        color: #EF7819 !important;
        background-color: transparent;
        padding-left: 20px;
    }
    
    /* Removed old submenu hide rule */
    
    .nav-item-cta {
        margin-top: 25px;
        border-bottom: none;
        display: flex;
        justify-content: center;
    }
    
    .nav-item-cta .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
    }

    .section-placeholder {
        min-height: 50vh;
        padding: var(--spacing-lg) var(--container-padding);
    }

    /* Homepage Hero */
    .hero-image {
        min-height: 60vh;
        object-position: center 20%;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-text {
        font-size: 18px;
    }
    
    /* Category Banners - Smartphone */
    body .page-header {
        min-height: 300px;
        padding: calc(var(--header-height) + 20px) 0 30px;
    }
    
    body .page-header h1 {
        font-size: 2.5rem;
    }
    
    body .page-header-subtitle {
        font-size: 1.15rem;
        line-height: 1.4;
        text-align: left;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.25rem;
        --header-height: 70px;
    }
    
    .site-logo {
        max-width: 180px;
    }

    /* Homepage Hero */
    .hero-image {
        min-height: 70vh;
    }

    .hero-content {
        gap: 15px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-btn, .hero-btn-outline {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    
    /* Category Banners - Small Smartphone */
    body .page-header {
        min-height: 280px;
        padding: calc(var(--header-height) + 15px) 0 25px;
    }
    
    body .page-header h1 {
        font-size: 2.2rem;
    }
    
    body .page-header-subtitle {
        font-size: 1.05rem;
        margin-top: 15px;
    }
}

