/* ─────────────────────────────────────────
   PRIMA LIVING — Header / Navbar
   File: ~/Files/templates/main/css/header-nav.css
   Under 1440: values match Figma (base, plain px).
   Above 1440: --s scales everything 1 → 1.3333 up to 1920.
   ───────────────────────────────────────── */

/* Cross-browser: --s를 <number> 타입으로 등록 (Firefox 128+, Chrome 85+, Edge 85+, Safari 16.4+)
   이렇게 하면 calc(100vw / 1440px)이 number로 올바르게 평가됨 */
@property --s {
    syntax: '<number>';
    inherits: true;
    initial-value: 1;
}

:root {
    --s: 1;
}
/* scale factor, only changes ≥1440 (see bottom of file) */

/* ══════════════════════════════════════════
   NAVBAR   (base = Figma @ 1440)
══════════════════════════════════════════ */

body > header {
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar {
    background: var(--white, #FAFAFA);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 80px;
    width: 100%;
}

.navbar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

/* ── Logo ── */
.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

/* Text fallback */
.navbar-logo-text {
    font-family: 'STIX Two Text', serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--forest, #092E1D);
    letter-spacing: -0.3px;
    align-items: center;
    gap: 2px;
}

.navbar-logo-sage {
    color: var(--sage, #9EA274);
}

/* ── Desktop nav links ── */
.navbar-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-link {
    font-family: 'STIX Two Text', serif;
    font-weight: 500;
    font-size: 17px;
    color: var(--dark, #141414);
    letter-spacing: 0.51px;
    white-space: nowrap;
    text-decoration: none;
    height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

    .navbar-link:hover {
        color: var(--orange, #DD6D26);
    }

.navbar-link--active {
    border-bottom-color: var(--orange, #DD6D26);
    color: var(--dark, #141414);
}

.navbar-link-mobile--active {
    border-left: 3px solid var(--PL-Accent-Orange, #DD6D26);
    color: var(--dark, #141414);
}

.navbar-drawer li a:active {
    background: var(--PL-Light-Grey, #D9E2DB);
    opacity: 0.6;
}

/* ── CTA button ── */
.navbar-cta {
    background: var(--forest, #092E1D);
    color: var(--white, #FAFAFA) !important;
    padding: 0 24px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 2px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.navbar-cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.navbar-cta:hover {
    opacity: 0.85;
}

/* ── Hamburger (hidden on desktop) ── */
.navbar-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-shrink: 0;
}

    .navbar-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--forest, #092E1D);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .navbar-hamburger:active {
        border-radius: 8px;
        background: var(--PL-Light-Grey, #D9E2DB);
        padding: 12px;
    }


/* ── Mobile drawer (hidden on desktop) ── */
.navbar-drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white, #FAFAFA);
    flex-direction: column;
    padding: 32px 24px;
    gap: 0;
    z-index: 199;
    overflow-y: auto;
}

    .navbar-drawer.open {
        display: flex;
    }

    .navbar-drawer ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .navbar-drawer li {
        background: #EEF0EE;
        margin-bottom: 5px;
    }

        .navbar-drawer li a {
            display: block;
            padding: 20px 40px;
            font-family: 'STIX Two Text', serif;
            font-size: 20px;
            font-weight: 500;
            color: var(--dark, #141414);
            text-decoration: none;
            transition: color 0.2s;
        }

            .navbar-drawer li a:hover {
                color: var(--forest, #092E1D);
            }

.navbar-cta-mobile {
    margin-top: 24px;
    background: var(--forest, #092E1D);
    color: var(--white, #FAFAFA) !important;
    border-radius: 4px;
    padding: 16px 24px;
    /*font-family: 'STIX Two Text', serif;*/
    font-family: "Nunito Sans";
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s;
}

    .navbar-cta-mobile:hover {
        opacity: 0.85;
    }

.goog-te-banner-frame, .skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1100px)
   Links compress, gap tightens
══════════════════════════════════════════ */
@media (max-width: 1100px) {
    .navbar-inner {
        padding: 0 24px;
    }

    .navbar-links {
        gap: 20px;
    }

    .navbar-link {
        font-size: 15px;
    }
}


/* ══════════════════════════════════════════
   RESPONSIVE — TABLET / LARGE MOBILE (≤900px)
   Switch to hamburger
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .navbar-inner {
        padding: 0 24px;
    }

    .navbar-links,
    .navbar-cta {
        display: none;
    }

    .navbar-hamburger {
        display: flex;
    }
}


/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤540px)
══════════════════════════════════════════ */
@media (max-width: 540px) {
    .navbar-inner {
        padding: 0 20px;
    }
}


/* ══════════════════════════════════════════
   LARGE DESKTOP (≥1440px) — PROPORTIONAL SCALING
   Everything above just uses the Figma 1440 values.
   Here --s runs 1 → 1.3333 between 1440 and 1920, then
   caps, and each fixed size is multiplied by it so the
   1440 layout scales up uniformly to match the 1920 frame.
   (length/length division in calc — evergreen browsers, 2023+)
══════════════════════════════════════════ */
/*@media (min-width: 1440px) {
    :root {
        --s: clamp(1, calc(100vw / 1440px), 1.3333);
    }*/

    /* Header height is intentionally NOT scaled above 1440 — the bar,
       logo, links and CTA keep their 1440 heights so the navbar never
       grows taller. Only horizontal spacing and type scale up. */
    /*.navbar-inner {
        padding: 0 calc(40px * var(--s));
    }

    .navbar-links {
        gap: calc(32px * var(--s));
    }

    .navbar-link {
        font-size: calc(17px * var(--s));
        letter-spacing: calc(0.51px * var(--s));
    }

    .navbar-cta {
        padding: 0 calc(24px * var(--s));
        gap: calc(8px * var(--s));
        font-size: calc(13px * var(--s));
        line-height: calc(20px * var(--s));
        letter-spacing: calc(1.3px * var(--s));
    }

    .navbar-cta-icon {
        width: calc(20px * var(--s));
        height: calc(20px * var(--s));
    }
}*/
