
/* =========================================
   BLUE CEYLON INTERNATIONAL
   HEADER AND RESPONSIVE NAVIGATION
========================================= */

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 0;
    background: transparent;
    transition:
        background 0.3s ease,
        padding 0.3s ease,
        box-shadow 0.3s ease;
}

/* Header Container */
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Scrolled Header */
.main-header.scrolled {
    background: rgba(10, 35, 35, 0.97);
    padding: 12px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

/* Logo */
.main-header .logo {
    flex: 0 0 auto;
}

.main-header .logo a {
    display: inline-block;
}

.main-header .logo img {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    transition: width 0.3s ease;
}

.main-header.scrolled .logo img {
    width: 125px;
}

/* Desktop Navigation */
.main-header .main-nav {
    display: block;
    margin-left: auto;
}

.main-header .main-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-header .main-nav li {
    margin: 0;
    padding: 0;
}

.main-header .main-nav li a {
    display: inline-block;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.main-header .main-nav li a:hover,
.main-header .main-nav li a:focus-visible {
    color: #d9b56d;
}

/* Plan My Journey Button */
.main-header .btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 12px 20px;
    border: 1px solid #d9b56d;
    border-radius: 4px;
    background: #d9b56d;
    color: #102d2d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.main-header .btn-plan:hover {
    background: transparent;
    color: #fff;
}

/* Hamburger Button */
.main-header .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 5px;
    background: rgba(16, 45, 45, 0.8);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.main-header .menu-toggle:hover,
.main-header .menu-toggle:focus-visible {
    background: #d9b56d;
    color: #102d2d;
    outline: none;
}

/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 991px) {

    .main-header {
        padding: 14px 0;
        background: rgba(10, 35, 35, 0.94);
    }

    .main-header.scrolled {
        padding: 10px 0;
    }

    .main-header .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Mobile Logo */
    .main-header .logo img {
        width: 120px;
    }

    .main-header.scrolled .logo img {
        width: 110px;
    }

    /* Show Hamburger */
    .main-header .menu-toggle {
        display: inline-flex;
        flex: 0 0 46px;
        margin-left: auto;
        position: relative;
        z-index: 10001;
    }

    /* Hide Navigation by Default */
    .main-header .main-nav {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 4px 0 0;
        padding: 8px 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 6px;
        background: #102d2d;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    /* Open Navigation */
    .main-header.menu-open .main-nav {
        display: block;
    }

    .main-header .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-header .main-nav li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-header .main-nav li:last-child {
        border-bottom: none;
    }

    .main-header .main-nav li a {
        display: block;
        width: 100%;
        padding: 13px 4px;
        color: #fff;
        font-size: 15px;
        white-space: normal;
    }

    .main-header .main-nav li a:hover,
    .main-header .main-nav li a:focus-visible {
        color: #d9b56d;
    }

    /* Hide Desktop CTA on Mobile */
    .main-header > .container > .btn-plan {
        display: none;
    }
}

/* =========================================
   SMALL MOBILE PHONES
========================================= */

@media (max-width: 380px) {

    .main-header {
        padding: 12px 0;
    }

    .main-header .container {
        gap: 8px;
    }

    .main-header .logo img {
        width: 105px;
    }

    .main-header .menu-toggle {
        width: 42px;
        height: 40px;
        flex-basis: 42px;
        font-size: 26px;
    }

    .main-header .main-nav {
        padding: 6px 12px;
    }
}
