/* ════════════════════════════════
   UNIFIED NAVBAR STYLES
   ════════════════════════════════ */

:root {
    /* Set nav background to the paper color used in home.css */
    --nav-bg: rgba(241, 233, 216, 0.97);
    --nav-ink: #0A0A0A;
    --nav-red: #C52222;
    --nav-mute: #666666;
    --nav-border: rgba(0, 0, 0, 0.05);
    --nav-sans: 'Inter', sans-serif;
    --nav-serif: 'Vesper Libre', serif;
}

/* Base Nav Settings */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 5%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.brand-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--nav-serif);
    font-weight: 700;
    font-size: 24px;
    color: var(--nav-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--nav-red);
    font-family: inherit;
}

.brand-sub {
    font-family: var(--nav-sans);
    font-size: 8px;
    font-weight: 600;
    color: var(--nav-mute);
    letter-spacing: 0.44em;
    margin-top: -2px;
}

/* Desktop Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--nav-ink);
    font-family: var(--nav-sans);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--nav-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nav-red);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

/* BDaaS Specific styling in nav */
.bdaas-text {
    font-family: var(--nav-sans);
    font-weight: inherit;
    color: inherit;
    display: inline;
    vertical-align: baseline;
    font-size: inherit;
    transition: color 0.3s ease;
}

.bdaas-text span {
    color: var(--nav-red);
    transition: color 0.3s ease;
}

/* Make BDaaS text entirely red when active or hovered */
.nav-link.active .bdaas-text,
.nav-link:hover .bdaas-text,
.nav-link.active .bdaas-text span,
.nav-link:hover .bdaas-text span {
    color: var(--nav-red);
}

/* Join Now CTA */
.btn-nav {
    display: inline-block;
    padding: 12px 28px;
    background-color: #D4921A;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--nav-sans);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid #D4921A;
}

.btn-nav:hover {
    background-color: transparent;
    border-color: #D4921A;
    color: #D4921A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 146, 26, 0.2);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--nav-ink);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 40px;
    overflow-y: auto;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mob-link {
    text-decoration: none;
    font-family: var(--nav-sans);
    font-weight: 600;
    font-size: 24px;
    color: var(--nav-ink);
    transition: color 0.3s ease;
}

.mob-link:hover, .mob-link.active {
    color: var(--nav-red);
}

.btn-mob {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--nav-red);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--nav-sans);
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    margin-top: 20px;
}

/* ════════════════════════════════
   RESPONSIVE DESIGN (Matching home.css breakpoints)
   ════════════════════════════════ */

@media (min-width: 2560px) {
    .nav-inner { height: 130px; padding: 0 6%; }
    .logo-img { height: 105px; }
    .logo-text { font-size: 38px; }
    .brand-sub { font-size: 12px; letter-spacing: 0.6em; }
    .nav-links { gap: 56px; }
    .nav-link { font-size: 20px; }
    .btn-nav { font-size: 18px; padding: 16px 38px; border-radius: 100px; }
}

@media (min-width: 2000px) {
    .nav-inner { height: 120px; padding: 0 6%; }
    .logo-img { height: 95px; }
    .logo-text { font-size: 34px; }
    .brand-sub { font-size: 11px; letter-spacing: 0.5em; }
    .nav-links { gap: 48px; }
    .nav-link { font-size: 18px; }
    .btn-nav { font-size: 17px; padding: 14px 36px; border-radius: 100px; }
}

@media (min-width: 1600px) {
    .nav-inner { height: 110px; }
    .logo-img { height: 80px; }
    .logo-text { font-size: 28px; }
    .brand-sub { font-size: 10px; }
    .nav-links { gap: 40px; }
    .nav-link { font-size: 16px; }
    .btn-nav { font-size: 16px; padding: 14px 32px; border-radius: 100px; }
}

@media (max-width: 1100px) {
    .nav-links, .btn-nav {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
    .nav-inner {
        height: 85px;
    }
}

@media (max-width: 768px) {
    .nav-inner {
        height: 80px;
    }
    .logo-img { height: 60px; }
    .logo-text { font-size: 22px; }
    .brand-sub { font-size: 8px; }
}

@media (max-width: 600px) {
    .nav-inner {
        height: 75px;
    }
    .logo-img { height: 50px; }
    .logo-text { font-size: 20px; }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 70px;
    }
    .logo-img { height: 45px; }
    .logo-text { font-size: 18px; }
    .brand-sub { font-size: 7px; }
}

@media (max-width: 400px) {
    .nav-inner {
        height: 65px;
    }
    .logo-img { height: 40px; }
    .logo-text { font-size: 16px; }
    .brand-sub { font-size: 6px; }
}

/* Tactile Active Highlight Effect for Buttons and Links */
.btn-primary:active,
.btn-outline:active,
.btn-nav:active,
.btn-mob:active,
.btn-white:active,
.btn-card-explore:active,
.floating-gold-btn:active,
.btn-form:active,
.btn-submit:active,
.btn-cta-red:active,
.btn-cta-outline:active,
.cta-bold-btn:active,
.cta-outline-btn:active,
.journey-cta-premium:active,
.btn-price:active,
.btn-red-rect:active,
.btn-download-pdf:active,
.btn-article-pdf:active,
.carousel-arrow:active,
.carousel-dot:active,
.social-btn:active,
.team-linkedin:active,
.nav-link:active,
.mob-link:active {
    transform: scale(0.95) !important;
    filter: brightness(0.9) contrast(1.05);
    transition: transform 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.08s ease;
}
