/* Base variables setup mapped to requested colors */
.hero {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Nav */
.hero-nav {
    display: flex;
    align-items: center;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
}

.logo {
    margin-right: 48px;
}

.nav-cta {
    margin-left: auto;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Hamburger Button — hidden on desktop */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 20;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 16px;
}

.hamburger-line {
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger open state — X animation */
.nav-hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Common Buttons */
.btn-dark-filled {
    background-color: var(--text);
    color: var(--background);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--text);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-dark-filled:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--text);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-bottom: 2px solid var(--text);
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-ghost:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Container */
.hero-container {
    display: flex;
    flex: 1;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.hero-visual {
    width: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ghost-map {
    width: 100%;
    max-width: 500px;
    max-height: 480px;
    object-fit: contain;
    opacity: 1;
    mix-blend-mode: multiply;
}

.hero-tag {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 1.25;
    margin-bottom: 32px;
    color: var(--text);
}

.hero-headline .line {
    overflow: hidden;
    display: block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.hero-headline .word {
    display: inline-block;
    padding-right: 0.15em;
    margin-right: -0.15em;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.hero-headline .italic {
    font-style: italic;
    font-weight: 400;
}

.hero-headline .gold {
    color: var(--secondary);
}

.hero-subheading {
    font-size: 19px;
    color: #4a4840;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Bottom Strip */
.hero-strip {
    border-top: 1px solid rgba(17, 17, 16, 0.1);
    border-bottom: 1px solid rgba(17, 17, 16, 0.1);
    overflow: hidden;
    padding: 16px 0;
    background: var(--background);
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    width: 100vw;
}

.ticker-content {
    display: flex;
    width: max-content;
    will-change: transform;
}

.ticker-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ticker-group span {
    margin: 0;
}

.ticker-group .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    margin: 0 32px;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .hero-nav {
        padding: 24px;
    }

    .logo {
        order: 1;
    }

    /* Show hamburger on mobile */
    .nav-hamburger {
        display: flex;
        order: 3;
        margin-left: 16px;
        margin-right: 0;
    }

    /* Hide nav links by default, show as dropdown when open */
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background);
        flex-direction: column;
        gap: 0;
        padding: 16px 24px 24px;
        border-bottom: 1px solid rgba(17, 17, 16, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        z-index: 50;

        /* Ease in from top to bottom (Slide + Fade) */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition:
            opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
            transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
            visibility 0.5s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(17, 17, 16, 0.06);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 17px;
    }

    /* Responsive nav CTA */
    .nav-cta {
        order: 2;
        margin-left: auto;
    }

    .nav-cta .btn-dark-filled {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 24px;
        justify-content: center;
        padding-top: 40px;
    }

    .hero-copy {
        width: 100%;
        padding-right: 0;
        z-index: 2;
    }

    .hero-visual {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        opacity: 0.5;
        justify-content: flex-end;
    }
}