/* ============================================================
   BUSINESS PRESTIGE — Shared Navigation & Theme Styles
   ============================================================ */

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 20px 40px 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, rgba(var(--green-deep-rgb), 0.85) 0%, transparent 100%);
}

.nav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav__logo-img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(var(--gold-rgb), 0.15));
}

.nav__menu {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(var(--white-rgb), 0.07) 0%,
            rgba(var(--white-rgb), 0.03) 50%,
            rgba(var(--gold-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: 32px;
    padding: 3px 6px;
    backdrop-filter: blur(3px) saturate(0.5);
    -webkit-backdrop-filter: blur(3px) saturate(0.5);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(var(--white-rgb), 0.06);
}

.nav__link {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(var(--white-rgb), 0.5);
    padding: 9px 18px;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.nav__link:hover {
    color: var(--gold);
}

.nav__link.active {
    background: rgba(var(--white-rgb), 0.12);
    color: var(--text-main);
}




/* --- Hamburger Button --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 28px;
    position: relative;
    z-index: 110;
    margin-left: auto;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger__line:nth-child(1) {
    top: 4px;
}

.hamburger__line:nth-child(2) {
    top: 13px;
}

.hamburger__line:nth-child(3) {
    top: 22px;
}

.hamburger.is-open .hamburger__line:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.hamburger.is-open .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger__line:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(var(--green-deep-rgb), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__link {
    font-family: 'Encode Sans Condensed', sans-serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(var(--white-rgb), 0.5);
    padding: 14px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    color: var(--gold);
}

.mobile-menu__divider {
    width: 40px;
    height: 1px;
    margin: 8px 0;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .nav__menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 20px;
        align-items: center;
        gap: 0;
    }

    .nav__logo {
        margin-bottom: 0;
    }

    .nav__logo-img {
        width: 180px !important;
    }
}

@media (max-height: 820px) {
    .nav__logo-img {
        width: 190px !important;
    }
    .main-nav {
        padding: 10px 40px 6px !important;
    }
}

/* ============================================================
   AMBIENT TRANSITIONS & LAPTOP RESOLUTION OVERRIDES
   ============================================================ */

html {
    scrollbar-gutter: stable; /* Fixes layout shift when scrollbars appear/disappear */
    overflow-x: hidden;
}

body {
    opacity: 0;
    overflow-x: hidden;
}

main {
    display: block;
}

.page-content {
    width: 100% !important;
    max-width: var(--content-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.page-loaded {
    opacity: 1 !important;
    transition: opacity 0.5s ease-in-out;
}

body.page-exiting {
    opacity: 0 !important;
    transition: opacity 0.5s ease-in-out;
}

/* Laptop resolution overrides (-30% heading size) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .page-title {
        font-size: clamp(20px, 3vw, 30px) !important;
    }
    .section__title {
        font-size: clamp(18px, 2.5vw, 27px) !important;
    }
    .tl-title {
        font-size: clamp(18px, 2vw, 24px) !important;
    }
}
