/* website/static/website/css/nav.css */

/* 1. NAVBAR (PILL) – BASE LAYOUT */

.nav-shell {
    width: 544px;
    flex: 0 0 544px;
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    height: 41px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-pill-link {
    flex: none;
    padding: 0 14px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 16px;
    line-height: 16px;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s ease,
                border 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.15s ease,
                color 0.15s ease;
}

.nav-pill-link--active {
    background: transparent;
    border: 1px solid currentColor;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nav-pill-link:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

/* NAVBAR – COLOR MODES */

.nav-pill--on-dark {
    border-color: rgba(255, 255, 255, 0.55);
}

.nav-pill--on-dark .nav-pill-link {
    color: #ffffff;
}

.nav-pill--on-dark .nav-pill-link--active {
    border-color: rgba(255, 255, 255, 0.9);
}

.nav-pill--on-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.12);
}

.nav-pill--on-light .nav-pill-link {
    color: #000000;
}

.nav-pill--on-light .nav-pill-link--active {
    border-color: rgba(0, 0, 0, 0.8);
}

.page-about .nav-pill,
.page-projects .nav-pill,
.page-view_project .nav-pill,
.page-view_property .nav-pill {
    border-color: rgba(0, 0, 0, 0.55);
}

.page-about .nav-pill-link,
.page-projects .nav-pill-link,
.page-view_project .nav-pill-link,
.page-view_property .nav-pill-link  {
    color: #000000;
}

.page-about .nav-pill-link--active,
.page-projects .nav-pill-link--active,
.page-view_project .nav-pill-link--active,
.page-view_property .nav-pill-link--active  {
    border-color: rgba(0, 0, 0, 0.9);
}

/* DARK MODE when scrolled */
.site-header--dark .nav-pill-link {
    color: #000000;
}

.site-header--dark .nav-pill-link--active {
    border-color: rgba(0, 0, 0, 0.9);
}

.site-header--dark .nav-pill {
    border-color: rgba(0, 0, 0, 0.55);
}


/* -----------------------------------------
   GLOBAL CONTACT BUTTON (PILL)
   ----------------------------------------- */

/* contact pill – DESKTOP */
.contact-pill {
    position: fixed;
    top: 57px;
    right: calc(50% - 560px);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 41px;
    padding: 0 22px;

    background: #ffffff;
    color: #000000;
    border-radius: 999px;

    font-family: "Outfit", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.15);

    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.contact-pill:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}

/* HAMBURGER BUTTON – hidden by default (desktop) */
.nav-toggle {
    position: fixed;
    top: 48px;
    right: 155px;

    padding: 0;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;

    display: none;               /* removes baseline alignment artifacts */
    align-items: center;         /* no vertical gaps */
    justify-content: center;

    line-height: 0;              /* kills text baseline spacing */
    font-size: 0;                /* kills inline whitespace issues */

    cursor: pointer;
    z-index: 70;
}

/* SVG icon */
.nav-toggle-icon {
    display: block;
    width: 61px;     
    height: 61px;
    opacity: 1;      
    pointer-events: none; 
    transition: fill 0.25s ease, stroke 0.25s ease;
    color: white;
}

.nav-toggle-icon > circle {
    fill-opacity: 0.1;
}

.page-projects .nav-toggle-icon > circle,
.page-about .nav-toggle-icon > circle{
    fill-opacity: 0;
}

.page-projects .nav-toggle-icon,
.page-about .nav-toggle-icon {
        color: black;             /* black below hero */
}

.nav-toggle-icon.scrolled {
    color: black;             /* black below hero */
}
.nav-toggle-icon.scrolled > circle {
    fill-opacity: 0;
}

/* Fullscreen mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100vh;
    background-color: #ffffff;

    /* background – solid color + optional image */
    background-image: url("/static/website/images/mobile-menu-bg.png"); /* optional */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: none; /* shown via JS with .mobile-menu--open */
    z-index: 999;
}

/* When menu is open */
.mobile-menu--open {
    display: block;
}

/* Inner layout: full height column */
.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 24px 24px;
}

/* Top bar: logo left, close right */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo img {
    height: 24px;
    width: auto;
    display: block;
}

/* Close button */
.mobile-menu-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close svg {
    display: block;
}

/* Centered nav links */
.mobile-menu-nav {
    flex: 1; /* takes all middle space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.mobile-menu-link,
.mobile-menu-cta {
    display: block;
    padding: 10px 18px;
    font-family: "Outfit", sans-serif;
    text-decoration: none;
    color: #475567;
}

.mobile-menu-link {
    font-family: "Outfit", sans-serif;
    font-weight: 400; /* Regular */
    font-size: 18px;
    color: #475567;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-menu-link--active {
    font-weight: 700; /* Bold */
}

.mobile-menu-link--active {
    font-weight: 600;
}

/* CTA button */
.mobile-menu-cta {
    margin-top: 18px;
    padding: 11px 28px;

    background-color: #475567;
    color: white;

    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 600;        /* Bold */
    text-transform: uppercase;
    letter-spacing: 0.04em;

    border-radius: 999px;
    text-decoration: none;

    box-shadow: none;         /* 🔥 No shadow */
}

/* Bottom row: social icons */
.mobile-menu-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
}

.mobile-menu-social {
    font-family: "Outfit", sans-serif;
    font-weight: 300; /* Light */
    font-size: 15px;
    color: #475567;
    text-decoration: none;
    opacity: 0.85;
}

.mobile-menu-social:hover {
    opacity: 1;
}


/* When viewport is narrower than the 1440px frame,
   just use normal left padding from the edge */
@media (max-width: 1285px) {
    .top-left-brand {
        left: 75px;
    }
    .contact-pill {
        right: 75px;
    }
    .nav-toggle {
        right: 75px;
    }
}

/* Hide text logo on narrower screens and bring icon closer to the edge */
@media (max-width: 1047px) {
    .top-left-brand {
        left: 75px;
    }
    .nav-shell {
        display: none;
    }
    .contact-pill {
        display: none;
    }

    /* show hamburger */
    .nav-toggle {
        display: inline-flex;
    }
}

/* When screen gets smaller, push it down */
@media (max-width: 1115px) {

}

@media (max-width: 1080px) {
}

@media (max-width: 768px) { /* tablets + phones */
}

@media (max-width: 576px) { /* normal phones */
}

@media (max-width: 480px) { /* small phones */ 
    .brand-logo-text {
        display: none;
    }
    .top-left-brand {
        top: 35px;
        left: 35px;
    }
    .nav-toggle {
        right: 35px;
        top: 31px;
    }
}

@media (max-width: 375px) { /* iPhone sizes */ 
}

@media (max-width: 320px) { /* smallest phones */ 
}