
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500&display=swap');

/* ==========================================
   APEX SIGNATURE — GLOBAL STYLES
========================================== */

:root {
    --apex-green: #003b2d;
    --apex-deep-green: #00271f;
    --apex-gold: #d6a84f;
    --apex-cream: #fff8e9;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--apex-deep-green);
    color: #fff;
    font-family: "DM Sans", Arial, sans-serif;
}

img {
    max-width: 100%;
}

/* ==========================================
   HERO BANNER
========================================== */

.apex-banner {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--apex-deep-green);
    border-bottom: 2px solid var(--apex-gold);
}

.apex-hero {
    min-height: clamp(440px, 34vw, 650px);
    display: grid;
    grid-template-columns: minmax(310px, 29%) minmax(0, 71%);
}

/* Brand panel */

.apex-brand-panel {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 3vw, 54px) clamp(22px, 2.6vw, 48px);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 45% 42%, rgba(10, 89, 64, .42), transparent 55%),
        linear-gradient(135deg, #003a2d 0%, #00291f 65%, #001d17 100%);
}

.apex-brand-panel::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(214, 168, 79, .65);
    border-radius: 48% 48% 0 0;
    z-index: -1;
    pointer-events: none;
}

.apex-logo {
    display: block;
    position: relative;
    z-index: 2;
    width: min(100%, 470px);
    max-height: 90%;
    object-fit: contain;
    transform-origin: center;
}

/* Decorative leaves */

.apex-leaves {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    height: auto;
    width: clamp(90px, 12vw, 205px);
    object-fit: contain;
    transform-origin: bottom center;
}

.apex-leaves-left {
    left: -25px;
    bottom: -15px;
}

.apex-leaves-top {
    top: -28px;
    left: -25px;
    width: clamp(85px, 10vw, 170px);
}

/* Room image */

.apex-room {
    position: relative;
    min-width: 0;
    min-height: 0;
    background: #d7c6a8;
    overflow: hidden;
}

.apex-room img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(440px, 34vw, 650px);
    object-fit: cover;
    object-position: center;
    transform-origin: center;
}

/* ==========================================
   CATEGORY BAR
========================================== */

.apex-categories {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 138px;
    padding: 20px 3.2% 22px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(7, 75, 55, .8), transparent 70%),
        linear-gradient(110deg, #00372a, #001f18 80%);
}

.apex-category {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 0 12px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: clamp(10px, .95vw, 17px);
    line-height: 1.2;
    letter-spacing: .07em;
    transition: color .2s, transform .2s;
    will-change: transform, opacity;
}

.apex-category:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(transparent, var(--apex-gold), transparent);
}

.apex-category:hover {
    color: var(--apex-gold);
    transform: translateY(-3px);
}

.apex-icon-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 4.4vw, 76px);
    height: clamp(48px, 4.4vw, 76px);
    border: 2px solid var(--apex-gold);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(214, 168, 79, .15),
        inset 0 0 12px rgba(214, 168, 79, .08);
    transition: background-color .35s, box-shadow .35s;
}

.apex-icon-wrap img {
    display: block;
    width: 64%;
    height: 64%;
    object-fit: contain;
}

.apex-category:hover .apex-icon-wrap {
    background: rgba(214, 168, 79, .12);
    box-shadow:
        0 0 18px rgba(214, 168, 79, .24),
        inset 0 0 14px rgba(214, 168, 79, .13);
}

.apex-leaves-right {
    right: -24px;
    bottom: -36px;
    width: clamp(95px, 11vw, 190px);
    z-index: 4;
}

.apex-leaves-bottom-left {
    left: -30px;
    bottom: -36px;
    width: clamp(90px, 10vw, 175px);
    z-index: 4;
}

/* ==========================================
   STICKY NAVBAR
   Hidden above viewport until JS reveals it.
========================================== */


.apex-sticky-nav {
    position: fixed !important;
    display: grid;
    top: 0;
    left: 0;
    z-index: 99999;

    width: 100%;
    min-height: 82px;
    padding: 10px clamp(18px, 4vw, 65px);

    grid-template-columns: 190px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 24px;

    background: rgba(0, 39, 31, .97);
    border-bottom: 1px solid rgba(214, 168, 79, .75);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: none !important;
}

/*.apex-sticky-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 99999;

    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 24px;

    width: 100%;
    min-height: 82px;
    padding: 10px clamp(18px, 4vw, 65px);

    background: rgba(0, 39, 31, .97);
    border-bottom: 1px solid rgba(214, 168, 79, .75);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .16);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* Initial hidden state — JS animates yPercent and autoAlpha. */
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Prevent CSS transitions from conflicting with GSAP. */
    transition: none !important;
}*/

/* Navbar logo */

.apex-nav-logo {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 190px;
}

.apex-nav-logo img {
    display: block;
    width: 100%;
    max-height: 58px;
    object-fit: contain;
}

/* Desktop navigation links */

.apex-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 32px);
}

.apex-main-menu a {
    position: relative;
    padding: 10px 0;
    color: var(--apex-cream);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .07em;
    white-space: nowrap;
    transition: color .25s;
}

.apex-main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 1px;
    background: var(--apex-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s;
}

.apex-main-menu a:hover {
    color: var(--apex-gold);
}

.apex-main-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile menu button */

.apex-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: transparent;
    border: 1px solid rgba(214, 168, 79, .6);
    border-radius: 4px;
    cursor: pointer;
}

.apex-menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--apex-gold);
    transition: transform .25s, opacity .25s;
}

/* ==========================================
   SCROLLABLE CONTENT SECTIONS
========================================== */

.apex-content-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(70px, 10vw, 140px) 7%;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(15, 92, 66, .5), transparent 60%),
        linear-gradient(135deg, #003b2d, #001d17);
    border-top: 1px solid rgba(214, 168, 79, .5);
}

.apex-content-section-alt {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(214, 168, 79, .08), transparent 62%),
        linear-gradient(135deg, #00271f, #00372a);
}

.apex-content-inner {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

.apex-content-eyebrow {
    margin-bottom: 22px;
    color: var(--apex-gold);
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.apex-content-section h1,
.apex-content-section h2 {
    margin: 0 0 24px;
    color: var(--apex-cream);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 5.5vw, 76px);
    font-weight: 400;
    line-height: 1.12;
}

.apex-content-section p {
    max-width: 650px;
    margin: 0 auto;
    color: rgba(255, 248, 233, .76);
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.9;
}

.apex-content-line {
    width: 75px;
    height: 2px;
    margin: 32px auto;
    background: var(--apex-gold);
}

.apex-content-cta {
    display: inline-block;
    margin-top: 28px;
    padding: 15px 27px;
    border: 1px solid var(--apex-gold);
    color: var(--apex-cream);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}

.apex-content-cta:hover {
    background: var(--apex-gold);
    color: #00271f;
}

/* ==========================================
   KEYBOARD ACCESSIBILITY
========================================== */

.apex-category:focus-visible,
.apex-main-menu a:focus-visible,
.apex-content-cta:focus-visible,
.apex-menu-toggle:focus-visible {
    outline: 2px solid var(--apex-gold);
    outline-offset: 5px;
}

/* ==========================================
   LARGE DESKTOP
========================================== */

@media (min-width: 1500px) {
    .apex-categories {
        min-height: 155px;
        padding-top: 22px;
    }

    .apex-category {
        font-size: 17px;
    }
}

/* ==========================================
   LAPTOP / SMALL DESKTOP
========================================== */

@media (max-width: 1050px) {
    .apex-sticky-nav {
        grid-template-columns: 150px minmax(0, 1fr) 40px;
        gap: 15px;
        padding-inline: 22px;
    }

    .apex-main-menu {
        gap: 13px;
    }

    .apex-main-menu a {
        font-size: 10px;
        letter-spacing: .035em;
    }

    .apex-nav-logo img {
        max-height: 48px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 900px) {
    .apex-hero {
        grid-template-columns: minmax(245px, 34%) minmax(0, 66%);
        min-height: 430px;
    }

    .apex-room img {
        min-height: 430px;
    }

    .apex-brand-panel {
        padding: 25px 18px;
    }

    .apex-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 22px;
        padding: 22px 5%;
    }

    .apex-category:nth-child(3)::after {
        display: none;
    }

    .apex-category {
        min-height: 95px;
        font-size: 12px;
    }

    .apex-category::after {
        top: 8% !important;
        bottom: 8% !important;
    }

    .apex-leaves-bottom-left,
    .apex-leaves-right {
        width: 105px;
    }
}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 760px) {
    .apex-sticky-nav {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 12px;
        min-height: 72px;
        padding: 10px 18px;
    }

    .apex-nav-logo {
        max-width: 145px;
    }

    .apex-nav-logo img {
        max-height: 48px;
    }

    .apex-menu-toggle {
        display: block;
        justify-self: end;
    }

    .apex-main-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 22px 18px;
        background: #00271f;
        border-bottom: 1px solid var(--apex-gold);

        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);

        transition:
            opacity .25s,
            transform .25s,
            visibility .25s;
    }

    .apex-main-menu a {
        padding: 15px 4px;
        border-bottom: 1px solid rgba(214, 168, 79, .15);
        font-size: 12px;
    }

    .apex-main-menu a::after {
        display: none;
    }

    .apex-main-menu.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Hamburger to close icon */

    .apex-menu-toggle.is-open span:first-child {
        transform: translateY(6px) rotate(45deg);
    }

    .apex-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .apex-menu-toggle.is-open span:last-child {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 600px) {
    .apex-hero {
        grid-template-columns: 1fr;
    }

    .apex-brand-panel {
        min-height: 300px;
        padding: 30px 28px;
    }

    .apex-logo {
        width: min(75%, 310px);
    }

    .apex-room {
        height: 290px;
    }

    .apex-room img {
        height: 100%;
        min-height: 0;
    }

    .apex-categories {
        gap: 18px 0;
        padding: 20px 10px 24px;
    }

    .apex-category {
        min-height: 88px;
        padding: 0 6px;
        font-size: 10px;
        letter-spacing: .04em;
    }

    .apex-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .apex-category:nth-child(3)::after {
        display: block;
    }

    .apex-category:nth-child(2)::after,
    .apex-category:nth-child(4)::after {
        display: none;
    }

    .apex-leaves-top {
        width: 95px;
    }

    .apex-leaves-left {
        width: 110px;
    }

    .apex-leaves-right,
    .apex-leaves-bottom-left {
        width: 80px;
    }

    .apex-content-section {
        min-height: 85vh;
        padding-inline: 24px;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .apex-main-menu,
    .apex-main-menu a,
    .apex-menu-toggle span,
    .apex-content-cta,
    .apex-icon-wrap,
    .apex-category {
        transition: none !important;
    }
}
