/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding-block: 0.9rem;
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.site-header.is-sticky {
    position: fixed;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-block: 0.6rem;
}

.site-header,
.navbar {
    position: relative;
}

.site-header.is-scrolled {
    padding-block: 0.55rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

/* Brand */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    margin-right: var(--space-6);
}

.brand-logo {
    height: 92px;
    width: auto;
    max-width: none;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-name span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange);
}

.site-header.is-scrolled .brand-name span { color: var(--accent); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: var(--space-7);
    margin-right: -0.5rem;
}

.header-actions .btn-cta {
    font-size: 0.98rem;
    height: 46px;
    min-width: 176px;
    justify-content: center;
    padding-inline: 1.7rem;
    gap: 0.6rem;
    background: var(--brand-dark);
    white-space: nowrap;
    margin-right: -0.4rem;
}

.header-actions .btn-cta:hover { background: var(--leaf); }

.header-actions .btn-cta i {
    font-size: 1.05rem;
}

/* Hamburger */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--brand-dark);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.hamburger img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.nav-mobile-label {
    display: none;
}

/* ============ Navigation ============ */
.site-nav { display: flex; position: relative; }

/* Navigation links area: Destination to Our Company */
.main-nav {
    position: relative;
}

.nav-links > li {
    position: static;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li { position: static; }

.nav-links > li.nav-regular {
    position: relative;
}

.nav-kili {
    position: static;
}

.nav-links > li.nav-regular {
    position: relative;
}

.nav-kili {
    position: static;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
    color: var(--orange);
}

/* Dropdown parents rendered as buttons (non-navigating triggers) */
button.nav-link {
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.nav-caret {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    display: inline-block;
}

/* Dropdown panels */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 1.4rem);
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.dropdown-regular {
    border-radius: 0 0 8px 8px;
}

.kilimanjaro-menu {
    border-radius: 0 0 8px 8px;
}

/* Regular dropdowns */
.dropdown-regular {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 250px;
}

.has-dropdown:hover > .dropdown-regular,
.has-dropdown:focus-within > .dropdown-regular {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Kilimanjaro mega menu - Match the Destination mega-menu dimensions */
.kilimanjaro-menu {
    border-radius: 0 0 8px 8px;
}

.kili-menu-tall {
    padding-top: var(--space-4);
    padding-bottom: var(--space-6);
    min-height: 380px;
}

.kili-menu-tall .mega-columns {
    gap: var(--space-4);
}

.kili-menu-tall .submenu-list {
    margin-top: 6px;
}

.kili-menu-tall .submenu-list a {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.has-dropdown:hover > .kilimanjaro-menu,
.has-dropdown:focus-within > .kilimanjaro-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Prevent columns from overflowing */
.kilimanjaro-menu > * {
    min-width: 0;
}

/* Individual menu columns */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mega-menu-column .submenu-trigger {
    color: var(--brand);
    padding: 0.55rem 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mega-menu-column .submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mega-menu-column .submenu-list li {
    margin: 0;
}

.mega-menu-column .submenu-list a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
    border-radius: 0;
}

.mega-menu-column .submenu-list a:hover {
    background: transparent;
    color: var(--accent-dark);
    text-decoration: underline;
}

.has-dropdown:hover > .kilimanjaro-menu,
.has-dropdown:focus-within > .kilimanjaro-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-panel--mega {
    /* Centred on the nav rather than left-aligned to it: the panel is wider
       than the nav on narrow screens, so left-aligning it would push it
       past the edge of the window. */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(820px, calc(100vw - 3rem));
    border-radius: 0 0 8px 8px;
}

.dropdown-panel--mega:hover,
.has-dropdown:hover > .dropdown-panel--mega,
.has-dropdown:focus-within > .dropdown-panel--mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list > li > a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text);
}

.dropdown-list > li > a:hover {
    background: var(--bg);
    color: var(--accent-dark);
}

/* Mega menu columns */
.mega-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.has-submenu-item { position: relative; }

.submenu-trigger {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    cursor: default;
}

.submenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu-list a {
    display: block;
    padding: 0.35rem 0.75rem;
    font-size: 0.96rem;
    color: var(--text);
    border-radius: var(--radius-sm);
}

.submenu-list a:hover {
    background: var(--bg);
    color: var(--accent-dark);
}

/* Drawer-only controls (hidden on desktop) */
.nav-cta-bottom {
    display: none;
}

.nav-close {
    display: none;
}

/* ============ Main ============ */
main {
    min-height: 60vh;
    display: block;
    padding-top: var(--header-h);
}

.page-home main { padding-top: 0; }

/* ============ Footer Newsletter CTA ============ */
.footer-cta {
    position: relative;
    background: #0E221A;
    color: #fff;
    text-align: center;
    padding-block: var(--space-7);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-newsletter {
    max-width: 620px;
    margin-inline: auto;
}

.footer-cta h2 {
    color: #fff;
    font-size: var(--fs-h3);
    margin-top: var(--space-2);
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 52ch;
    margin-inline: auto;
    margin-top: var(--space-2);
    font-size: var(--fs-body);
}

.subscribe-form {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
    text-align: left;
}

.subscribe-field {
    position: relative;
    flex: 1;
}

.subscribe-field i {
        position: absolute;
        left: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 15px;
        color: rgba(255, 255, 255, 0.55);
        pointer-events: none;
    }

.subscribe-field input {
    width: 100%;
    height: 52px;
    padding: 0 1.2rem 0 3rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 0;
    transition: all var(--dur) var(--ease);
}

.subscribe-field input::placeholder { color: rgba(255, 255, 255, 0.5); }

.subscribe-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 3px rgba(232, 123, 44, 0.28);
}

.subscribe-form .btn {
    height: 52px;
    padding-inline: 2rem;
    flex-shrink: 0;
}

.subscribe-note {
    margin-top: var(--space-3);
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.55);
}

/* ============ Footer ============ */
.site-footer {
    background: #000;
    color: rgba(255, 255, 255, 0.78);
    position: relative;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/footer-bg-kilimanjaro.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.footer-main {
    position: relative;
    padding-block: var(--space-8) var(--space-7);
}

.footer-grid {
    display: grid;
    /* minmax(0, ...) so a column may shrink below its content width instead
       of pushing the whole footer past the edge of the window. */
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-7);
}

.footer-brand .brand-name {
    color: #fff;
    font-size: 1.4rem;
}

.footer-brand p {
    margin-top: var(--space-3);
    font-size: 0.92rem;
    max-width: 34ch;
}

.footer-note {
    color: rgba(255, 255, 255, 0.78);
}

.footer-note strong { color: #fff; }

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0;
    color: #fff;
    transition: all var(--dur) var(--ease);
}

.footer-social a i {
    font-size: 16px;
    line-height: 1;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.footer-links a:hover { color: var(--orange); }

.footer-contact-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-7);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-contact-item strong {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-contact-item a { color: rgba(255, 255, 255, 0.9); white-space: nowrap; }
.footer-contact-item a:hover { color: var(--orange); }
.footer-contact-item span { white-space: nowrap; }

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-block: var(--space-4);
    font-size: 0.82rem;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-5);
    white-space: nowrap;
}

.footer-bottom-links a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom-links a:hover { color: var(--orange); }

/* ============ Responsive ============ */
@media (min-width: 961px) {
    .submenu-list { max-height: none !important; }
}

/* ---- Compact desktop header ------------------------------------------
   The full-size header (logo + five nav items + the "Get a Quote" button)
   needs roughly 1220px. Between the drawer breakpoint and that width the
   desktop nav has to tighten, otherwise the button is pushed past the
   edge of the screen and the page scrolls sideways. */
@media (min-width: 961px) and (max-width: 1220px) {
    .header-inner { gap: var(--space-3); }

    .brand { margin-right: var(--space-3); }

    .nav-links { gap: 0.55rem; }

    .nav-link {
        font-size: 0.87rem;
        padding: 0.55rem 0.45rem;
        gap: 0.28rem;
    }

    .nav-caret {
        width: 5px;
        height: 5px;
        border-width: 1.5px;
        margin-top: -2px;
    }

    .header-actions {
        margin-left: var(--space-3);
        gap: var(--space-3);
    }

    .header-actions .btn-cta {
        font-size: 0.87rem;
        min-width: 0;
        padding-inline: 1.1rem;
    }

    /* The last panel is centred on its link and would hang past the right
       edge of the window; anchor it to the link instead. */
    .nav-links > li:last-child > .dropdown-regular {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .nav-links > li:last-child:hover > .dropdown-regular,
    .nav-links > li:last-child:focus-within > .dropdown-regular {
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .header-actions .btn-cta { display: none; }

    .hamburger {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 210;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: var(--bg);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--dur) var(--ease);
        overflow-y: auto;
        overscroll-behavior: contain;
        min-height: 0;
        padding: var(--space-5) var(--space-6) var(--space-8);
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .site-nav::-webkit-scrollbar { display: none; }

    .nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
        margin-bottom: var(--space-4);
        background: var(--brand-dark);
        border: 0;
        color: #fff;
        cursor: pointer;
    }

    .nav-close i {
        font-size: 24px;
        line-height: 1;
    }

    body.nav-open .site-nav {
        transform: translateX(0);
    }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(21, 48, 36, 0.55);
        z-index: 140;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }

    .nav-desktop-label { display: none; }
    .nav-mobile-label { display: inline; }

    .nav-links > li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links > li:last-child { border-bottom: 0; }

    .dropdown-list > li {
        border-bottom: 1px solid var(--border);
    }

    .dropdown-list > li:last-child { border-bottom: 0; }

    .submenu-list > li {
        border-bottom: 1px solid var(--border);
    }

    .submenu-list > li:last-child { border-bottom: 0; }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        color: var(--ink);
        padding: 0.9rem 0;
        font-size: 1rem;
    }

    .nav-link[aria-expanded="true"] { color: var(--accent); }

    /* Dropdown panels closed by default on mobile */
    .dropdown-panel {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s var(--ease);
        min-width: 0;
        min-height: 0;
    }

    .kilimanjaro-menu {
        position: static;
        transform: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 0;
        transition: max-height 0.35s var(--ease);
    }

    /* Kilimanjaro panel must collapse exactly like the Destination panel.
       The desktop min-height would otherwise win over max-height: 0
       (CSS 2.1 10.4) and keep the panel permanently expanded. */
    .kili-menu-tall {
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .kili-menu-tall .mega-columns {
        gap: var(--space-2);
    }

    .kili-menu-tall .submenu-list {
        margin-top: 0;
    }

    .kili-menu-tall .submenu-list a {
        padding: 0.5rem 0;
    }

    .dropdown-regular {
        transform: none;
        left: auto;
    }

    .kilimanjaro-mega {
        position: static;
        transform: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 0;
        transition: max-height 0.35s var(--ease);
    }

    li.has-dropdown.open > .kilimanjaro-mega {
        max-height: 2000px;
    }

    .kilimanjaro-mega:hover,
    .has-dropdown:hover > .kilimanjaro-mega,
    .has-dropdown:focus-within > .kilimanjaro-mega {
        transform: none;
    }

    .kilimanjaro-mega .mega-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding-bottom: var(--space-3);
    }

    .kilimanjaro-mega .has-submenu-item {
        border-bottom: 1px solid var(--border);
    }

    .kilimanjaro-mega .has-submenu-item.open .submenu-list {
        max-height: 800px;
    }

    .kilimanjaro-mega .submenu-list a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }

    /* Override desktop hover transforms on touch */
    .dropdown-panel--mega:hover,
    .has-dropdown:hover > .dropdown-panel--mega,
    .has-dropdown:focus-within > .dropdown-panel--mega,
    .has-dropdown:hover > .kilimanjaro-menu,
    .has-dropdown:focus-within > .kilimanjaro-menu {
        transform: none;
    }

    .nav-kili:hover > .kili-mega,
    .nav-kili:focus-within > .kili-mega {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-regular:hover,
    .has-dropdown:hover > .dropdown-regular,
    .has-dropdown:focus-within > .dropdown-regular {
        transform: none;
    }

    .dropdown-panel--mega {
        width: 100%;
    }

    li.has-dropdown.open > .dropdown-panel,
    li.has-dropdown.open > .dropdown-regular,
    li.has-dropdown.open > .kilimanjaro-menu {
        max-height: 2400px;
    }

    li.has-dropdown.open > .nav-link .nav-caret {
        transform: rotate(225deg);
        margin-top: 3px;
    }

    .dropdown-list > li > a {
        font-size: 1rem;
        padding: 0.6rem 0;
        color: var(--text);
        text-align: left;
    }

    .dropdown-panel {
        width: 100%;
    }

    .dropdown-list,
    .submenu-list {
        display: flex;
        flex-direction: column;
        gap: var(--space-2);
    }

    .mega-columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding-bottom: var(--space-3);
    }

    .has-submenu-item {
        border-bottom: 1px solid var(--border);
    }

    .has-submenu-item.open .submenu-list {
        margin-bottom: var(--space-3);
    }

    .submenu-trigger {
        cursor: pointer;
        color: var(--text);
        font-size: 1rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        padding: 0.6rem 0;
        position: relative;
    }

    .submenu-trigger::after {
        content: "";
        position: absolute;
        right: 0.25rem;
        top: 50%;
        width: 7px;
        height: 7px;
        border-right: 2px solid var(--moss);
        border-bottom: 2px solid var(--moss);
        transform: rotate(45deg) translateY(-3px);
        transition: transform var(--dur) var(--ease);
    }

    .has-submenu-item.open .submenu-trigger::after {
        transform: rotate(225deg) translateY(3px);
    }

    .submenu-list {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s var(--ease);
    }

    .has-submenu-item.open .submenu-list {
        max-height: 800px;
    }

    .submenu-list a {
        padding: 0.5rem 0;
        font-size: 1rem;
        color: var(--text);
    }

    .nav-cta-bottom {
        display: block;
        margin-top: auto;
        padding-top: var(--space-6);
    }

    .nav-cta-bottom .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .footer-contact-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .brand-logo { height: 52px; }
    .brand-name { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-contact-row { grid-template-columns: 1fr; }
    .subscribe-form { flex-direction: column; }

    /* Footer columns stay open, links spaced nicely */
    .footer-col {
        padding-bottom: var(--space-4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-col .footer-links {
        margin-top: var(--space-2);
    }

    .footer-links li {
        margin-bottom: var(--space-3);
    }

    .footer-links li:last-child { margin-bottom: 0; }
}