/* ─── Esentia Shared Navigation Styles ──────────────────────────────────
   Handles: products dropdown, mobile hamburger, footer links, journey CTAs
   ─────────────────────────────────────────────────────────────────────── */

/* ─── Logo image ────────────────────────────────────────────────────── */
.logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}
/* Ensure anchor wrapper doesn't add extra spacing */
a.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    gap: 10px;
}

/* ─── Logo text wrap (name + subtitle beside image) ────────────────── */
.logo-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.logo-name-main {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--sage);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dot-orange {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--orange);
    border-radius: 50%;
}
.dot-violet {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--violet, #6b5b95);
    border-radius: 50%;
}
.logo-sub-main {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--bark);
    opacity: 0.45;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

/* Footer logo: smaller text */
footer .logo-name-main {
    font-size: 18px;
}
footer .dot-orange,
footer .dot-violet {
    width: 6px;
    height: 6px;
}

/* Mobile: shrink logo text on small screens (keep visible) */
@media (max-width: 480px) {
    .logo-text-wrap { display: flex; }
    .logo-name-main { font-size: 16px; gap: 4px; }
    .dot-orange, .dot-violet { width: 5px; height: 5px; }
    .logo-sub-main { font-size: 10px; }
}

/* ─── Nav link items ────────────────────────────────────────────────── */
.nav-link-item {
    font-size: 14px;
    color: var(--bark);
    opacity: 0.6;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nav-link-item:hover { opacity: 1; }
.nav-link-item.active { opacity: 1; color: var(--sage); }

/* ─── Products Dropdown ─────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--bark);
    opacity: 0.6;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.nav-dropdown-btn:hover { opacity: 1; }

.nav-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
    line-height: 1;
}
.nav-dropdown.open .nav-dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(42, 24, 69, 0.14);
    padding: 8px;
    min-width: 210px;
    z-index: 200;
    border: 1px solid rgba(42, 24, 69, 0.06);
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: var(--bark) !important;
    opacity: 1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: background 0.15s;
    gap: 12px;
}
.nav-dropdown-menu a:hover { background: var(--cream) !important; }

.nav-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--sage) !important;
    background: rgba(74, 103, 65, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Hamburger Button ──────────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 300;
    position: relative;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bark);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Footer Link Row ───────────────────────────────────────────────── */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 12px 0;
}
.footer-links a {
    font-size: 13px;
    color: var(--bark);
    opacity: 0.5;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.9; }

/* ─── Continue Your Journey Section ────────────────────────────────── */
.journey-section {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 48px;
}
.journey-inner {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    border: 1px solid rgba(42, 24, 69, 0.06);
    box-shadow: 0 4px 24px rgba(42, 24, 69, 0.05);
}
.journey-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--sage);
    opacity: 0.7;
    margin-bottom: 8px;
}
.journey-price-tag {
    display: inline-block;
    background: rgba(74, 103, 65, 0.1);
    color: var(--sage);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.journey-inner h3 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--deep-green);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.journey-inner p {
    font-size: 15px;
    color: var(--bark);
    opacity: 0.65;
    line-height: 1.65;
    max-width: 440px;
    margin: 0 auto 28px;
}
.journey-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--sage);
    color: var(--cream) !important;
    padding: 16px 32px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    opacity: 1 !important;
}
.journey-cta-btn:hover {
    background: var(--moss) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 74, 45, 0.2);
    opacity: 1 !important;
}
.journey-cta-btn .arrow { transition: transform 0.3s; }
.journey-cta-btn:hover .arrow { transform: translateX(4px); }

/* ─── Affiliate Nav Link ────────────────────────────────────────────── */
.nav-affiliate-link {
    font-size: 12px !important;
    opacity: 0.45 !important;
    font-weight: 500;
    text-decoration: none;
    color: var(--bark);
    transition: opacity 0.2s;
}
.nav-affiliate-link:hover { opacity: 0.75 !important; }

/* ─── Mobile Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-hamburger { display: flex; }

    nav .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--cream);
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 24px !important;
        z-index: 250;
        padding: 80px 32px 32px;
        overflow-y: auto;
    }
    nav .nav-links.mobile-open {
        display: flex !important;
    }
    nav .nav-links .nav-link-item,
    nav .nav-links a:not(.nav-dropdown-menu a) {
        font-size: 20px !important;
        opacity: 0.8 !important;
    }
    nav .nav-links .nav-dropdown-btn {
        font-size: 20px !important;
        opacity: 0.8 !important;
    }

    .nav-dropdown { flex-direction: column; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(42, 24, 69, 0.04);
        border-radius: 12px;
        margin-top: 4px;
        width: 100%;
        max-width: 240px;
    }
    .nav-dropdown-menu a {
        font-size: 15px !important;
        padding: 10px 16px !important;
        justify-content: space-between;
    }

    .journey-section {
        padding: 0 20px;
        margin-bottom: 48px;
    }
    .journey-inner {
        padding: 32px 24px;
    }
    .footer-links { gap: 12px 16px; }
}

@media (max-width: 480px) {
    .journey-inner h3 { font-size: 20px; }
    .journey-cta-btn { font-size: 15px; padding: 14px 28px; }
}
