/* ==========================================================
   HEADER - RESPONSIVE STYLES
   ========================================================== */

/* Hide mobile header by default */
.header-mobile {
    display: none;
}

/* Large Desktop (1366px and below) */
@media (max-width: 1366px) {
    .header__logo {
        max-width: 300px;
        padding: 11px 40px 11px 2px;
    }
    
    .header__logo a img {
        height: 80px;
    }
    
    .header__search-login {
        gap: 2rem;
    }
    
    .header__search {
        max-width: 500px;
    }
    
    .header__menu ul {
        gap: 12px;
    }
    
    .header__contact {
        gap: 15px;
    }
    
    .header__contact > div a,
    .header__menu ul li a {
        font-size: 13px;
    }
}

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .header__logo {
        max-width: 250px;
        padding: 11px 30px 11px 2px;
    }
    
    .header__logo a img {
        height: 70px;
    }
    
    .header__search-login {
        gap: 1.5rem;
        padding: 8px 12px;
    }
    
    .header__search {
        max-width: 400px;
    }
    
    .header__search-input {
        font-size: 13px;
    }
    
    .header__menu-contact {
        padding: 12px 12px 12px 35px;
        margin-left: -48px;
    }
    
    .header__menu ul {
        gap: 10px;
    }
    
    .header__contact {
        gap: 12px;
    }
}

/* Tablet Portrait (768px and below) - Switch to mobile */
@media (max-width: 768px) {
    /* Hide desktop header */
    .header {
        display: none;
    }
    
    /* Show mobile header */
    .header-mobile {
        display: block;
        background-color: var(--blue);
        position: relative;
        z-index: 1000;
    }
    
    .header-mobile__main {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /*padding: 15px 20px;*/
        height: 60px;
    }
    
    .header-mobile__logo {
        max-width: 200px;
    }
    
    .header-mobile__logo img {
        max-height: 100px;
    }
    
    .header-mobile__toggle {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .header-mobile__toggle-bar {
        width: 25px;
        height: 3px;
        background: var(--white);
        display: block;
        transition: all 0.3s ease;
    }
    
    .header-mobile__toggle:hover .header-mobile__toggle-bar {
        background: var(--yellow);
    }
    
    .header-mobile__toggle:hover .header-mobile__toggle-bar:nth-child(1) {
        transform: translateY(-2px);
    }
    
    .header-mobile__toggle:hover .header-mobile__toggle-bar:nth-child(3) {
        transform: translateY(2px);
    }
    
    /* Mobile Menu */
    .header-mobile__menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 2000;
    }
    
    .header-mobile__menu-wrapper.is-active {
        right: 0;
    }
    
    .header-mobile__menu-inner {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        padding: 30px 25px;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .header-mobile__close {
        background: var(--yellow);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 24px;
        margin-left: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-bottom: 20px;
    }
    
    .header-mobile__close:hover {
        transform: rotate(90deg);
        background: var(--blue);
        color: var(--white);
    }
    
    .header-mobile__search {
        margin-bottom: 20px;
    }
    
    .header-mobile__search form {
        display: flex;
        align-items: center;
        background: #f9f9f9;
        border: 1px solid #ccc;
        border-radius: 30px;
        overflow: hidden;
    }
    
    .header-mobile__search-input {
        flex: 1;
        padding: 12px 15px;
        border: none;
        background: transparent;
        font-size: 14px;
        outline: none;
    }
    
    .header-mobile__search-button {
        background: none;
        border: none;
        padding: 8px 15px;
        cursor: pointer;
    }
    
    .header-mobile__menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .header-mobile__menu ul li {
        margin: 15px 0;
    }
    
    .header-mobile__menu ul li a {
        color: var(--blue);
        text-decoration: none;
        font-weight: 600;
        font-size: 16px;
        display: block;
        transition: all 0.3s ease;
    }
    
    .header-mobile__menu ul li a:hover {
        color: var(--yellow);
        padding-left: 10px;
    }
    
    .header-mobile__login {
        margin: 20px 0;
    }
    
    .header-mobile__login a {
        display: block;
        padding: 12px;
        background: var(--yellow);
        color: var(--blue);
        text-decoration: none;
        font-weight: 600;
        text-align: center;
        border-radius: 30px;
        transition: all 0.3s ease;
    }
    
    .header-mobile__login a:hover {
        background: var(--blue);
        color: var(--white);
        transform: translateY(-2px);
    }
    
    .header-mobile__contact {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 20px;
        border-top: 1px solid #eaeef2;
    }
    
    .header-mobile__contact a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .header-mobile__contact a:hover {
        color: var(--yellow);
        transform: translateX(5px);
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .header-mobile__logo {
        max-width: 150px;
    }
    
    .header-mobile__menu-inner {
        width: 90%;
        padding: 20px 15px;
    }
    
    .header-mobile__close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}