/* Logo sizing fix */
.nav .brand img {
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0.93);
    transition: opacity 0.3s ease;
}

/* Transparent Header (Startup Style) */
.nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50 !important;
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Default state: Top of page over hero */
.nav nav {
    color: #fff !important;
    transition: color 0.3s ease;
}
.menu-toggle span {
    background: #fff !important;
    transition: background-color 0.3s ease;
}
.nav .brand img.logo-white { display: block; }
.nav .brand img.logo-color { display: none; }

/* Scrolled state */
.nav.scrolled {
    background: #fff !important;
    border-bottom: 1px solid #DCD6C4 !important;
}
.nav.scrolled nav {
    color: #2E5D45 !important;
}
.nav.scrolled .menu-toggle span {
    background: #2E5D45 !important;
}
.nav.scrolled .brand img.logo-white { display: none; }
.nav.scrolled .brand img.logo-color { display: block; }

/* Premium CTA Button styling */
.nav-cta {
    background: #A9853F;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 4px;
    border: none !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
.nav-cta:hover {
    background: #8b6d34;
    transform: translateY(-1px);
}

/* Mobile Fullscreen Menu */
@media (max-width: 760px) {
    .nav.menu-open {
        background: #fff !important;
        border-bottom: 1px solid #DCD6C4 !important;
        height: 100vh !important;
        align-items: flex-start;
        align-content: flex-start;
        overflow-y: auto;
    }
    .nav.menu-open nav {
        color: #2E5D45 !important;
    }
    .nav.menu-open .menu-toggle span {
        background: #2E5D45 !important;
    }
    .nav.menu-open .brand img.logo-white { display: none; }
    .nav.menu-open .brand img.logo-color { display: block; }

    .nav nav.open {
        height: calc(100vh - 90px);
        padding: 20px 0 40px !important;
        justify-content: flex-start;
        background: #fff !important;
    }
    
    /* Make standard links bigger and centered */
    .nav nav.open a:not(.nav-cta) {
        font-size: 20px;
        padding: 24px 0 !important;
        text-align: center;
        width: 100%;
        border-top: none !important;
        border-bottom: 1px solid rgba(220, 214, 196, 0.4) !important;
    }
    
    /* Push CTA to the bottom of the mobile screen */
    .nav nav.open .nav-cta {
        margin-top: auto;
        width: calc(100% - 10vw);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        font-size: 16px;
        padding: 18px 0 !important;
        border-radius: 4px;
        color: #fff !important; /* ensure it stays white inside */
    }
}

/* Hero scroll indicator styles */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.hero-scroll-btn {
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 700;
    background: rgba(46, 93, 69, 0.8);
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-scroll-btn:hover {
    background: #2E5D45;
    transform: translateY(-2px);
}

.hero-scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: bounce 2s infinite;
    transition: background 0.3s ease;
}

.hero-scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-scroll-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Force Hero to 60vh on mobile */
@media (max-width: 760px) {
    .hero {
        height: 60svh !important;
        min-height: 0 !important;
    }
    .hero video {
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: auto !important;
    }
}

/* Footer Logo Size adjustment */
footer img { width: 101px !important; }

/* Parallax Section */
.parallax-gateway {
    background-color: #141E28;
    background-image: url('./resources/americas_map.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 160px 8vw;
    display: flex;
    justify-content: center;
    position: relative;
}
.parallax-gateway::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 30, 40, 0.85);
    z-index: 1;
}
.parallax-gateway .parallax-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.parallax-gateway .eyebrow {
    color: #E6D5AE;
}
.parallax-gateway h2 {
    font-size: clamp(46px, 5.7vw, 84px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: -.04em;
    margin: 0 0 26px;
    max-width: 1120px;
    color: #fff;
}
.parallax-gateway .gold-line {
    color: #A9853F !important;
}
.parallax-gateway .gateway-purpose {
    color: #E6D5AE;
    margin: 40px auto 20px;
}
.parallax-gateway .lead {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}
.parallax-gateway-stat {
    margin-top: 80px;
    border-top: 2px solid #A9853F;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.parallax-gateway-stat strong {
    font-size: clamp(40px, 6vw, 76px);
    color: #fff;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 700;
}
.parallax-gateway-stat > span {
    font-size: clamp(18px, 2.5vw, 26px);
    max-width: 680px;
    margin-bottom: 20px;
}
.parallax-gateway-stat small {
    font-size: 10px;
    opacity: 0.6;
    max-width: 500px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}





/* Positions Hub Section */
.positions-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.positions-hub .hub-header {
    text-align: center;
    margin-bottom: 60px;
}
.positions-hub .hub-header h2 {
    margin-bottom: 0;
}
.positions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}
@media (min-width: 768px) {
    .positions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.position-card {
    background: #fff;
    border: 1px solid #DCD6C4;
    padding: 40px;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(20, 30, 40, 0.08);
    border-color: #A9853F;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8b7135;
    font-weight: bold;
}
.position-card h3 {
    font-family: Georgia, serif;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    color: #2E5D45;
    margin: 0 0 16px 0;
}
.position-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #5C6874;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.card-cta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: #141E28;
    border-bottom: 2px solid #A9853F;
    padding-bottom: 5px;
    align-self: flex-start;
    transition: color 0.3s ease;
}
.position-card:hover .card-cta {
    color: #A9853F;
}
