/* ==========================================================================
   SHARED NAVBAR, MOBILE MENU, & FIXED ACTIONS
   (Relies on variables from your main style.css :root)
   ========================================================================== */

/* --- 1. MAIN DESKTOP NAVBAR --- */
.ss-navbar { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    right: 20px; 
    display: flex; 
    align-items: center; 
    padding: 12px 20px 12px 30px; 
    z-index: 30; 
    border-radius: var(--radius-md); 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid rgba(255, 255, 255, 0.4);   
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); 
}

/* Legacy Logo classes (Kept just in case) */
.ss-logo { display: block; width: 100px; position: relative; }
.ss-brand-logo { position: absolute; top: -30px; left: 0; height: 60px; width: auto; z-index: 40; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15)); }

/* --- 2. NAVBAR LOGO (New Layout) --- */
.ss-nav-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    width: max-content;
    transition: opacity 0.2s ease;
}
.ss-nav-logo-wrapper:hover { opacity: 0.85; }

.ss-nav-img { height: 38px; width: auto; object-fit: contain; }
.ss-nav-text { display: flex; flex-direction: column; justify-content: center; width: max-content; }

.ss-nav-name { 
    font-family: 'Unicorn', serif; 
    font-size: 24px; 
    color: #E22128; 
    line-height: 1; 
    letter-spacing: 1px; 
    padding-bottom: 4px; 
    border-bottom: 3px solid var(--primary-gold); 
    margin-bottom: 4px;
    white-space: nowrap; 
    text-align: center;
}

.ss-nav-tagline { 
    font-family: 'Montserrat', 'Inter', sans-serif; 
    font-size: 12px; 
    font-weight: 700; 
    color: #020277; 
    text-transform: uppercase; 
    letter-spacing: 0px; 
    margin-right: -2.8px; 
    white-space: nowrap; 
    width: 100%; /* Forces it to fill the exact width of Sai Shruti */
    text-align: justify; 
    text-align-last: justify;
}

/* --- 3. DESKTOP NAV LINKS & ACTIVE STATES --- */
.ss-nav-links { display: flex; gap: 30px; margin-left: auto; margin-right: 20px; }
.ss-nav-links a { 
    position: relative; 
    color: #aaa; 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 600; 
    padding-bottom: 4px; 
}

.ss-nav-links a::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 50%; 
    background-color: var(--primary-gold); 
    transition: all 0.3s ease; 
    transform: translateX(-50%); 
}

/* Hover AND Active Page Highlight */
.ss-nav-links a:hover,
.ss-nav-links a.active { color: var(--primary-gold); }

.ss-nav-links a:hover::after,
.ss-nav-links a.active::after { width: 100%; }

/* --- 4. CTA BUTTON & DIVIDER --- */
.ss-nav-divider { width: 1px; height: 20px; background-color: #eaeaea; margin-right: 20px; }

.ss-nav-cta { 
    display: flex; align-items: center; gap: 10px; background: transparent; 
    color: #aaa; text-decoration: none; padding: 0; 
    font-weight: 600; font-size: 15px; transition: transform 0.2s; 
}
.ss-nav-cta:hover { transform: translateX(5px); }

.ss-icon-circle-white { 
    width: 34px; height: 34px; background: var(--primary-gold); color: var(--text-light); 
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; 
    font-size: 16px; margin-left: 5px; transition: background 0.3s ease, transform 0.3s ease; 
}
.ss-icon-circle-white i { transition: transform 0.3s ease, color 0.3s ease; font-size: 20px; }

.ss-nav-cta:hover .ss-icon-circle-white { transform: scale(.9); background: var(--text-light); }
.ss-nav-cta:hover .ss-icon-circle-white i { transform: rotate(45deg); color: var(--primary-gold); }

/* --- 5. HAMBURGER MENU BUTTON --- */
.ss-menu-btn { display: none; }
.ss-hamburger { display: flex; flex-direction: column; justify-content: space-between; height: 12px; width: 28px; cursor: pointer; position: relative; }
.ss-hamburger span { display: block; height: 2px; width: 100%; background-color: var(--text-dark); border-radius: var(--radius-sm); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.ss-menu-btn.open .ss-hamburger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.ss-menu-btn.open .ss-hamburger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* --- 6. MOBILE MENU OVERLAY --- */
.ss-mobile-menu { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
    background: rgba(255, 255, 255, 0.98); z-index: 20; display: flex; 
    align-items: center; justify-content: center; opacity: 0; visibility: hidden; 
    transition: all 0.4s ease; transform: translateY(-20px); 
}
.ss-mobile-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.ss-mobile-links { display: flex; flex-direction: column; gap: 40px; text-align: center; }
.ss-mobile-links a {  border:1px solid var(--primary-gold);padding:10px 15px;font-size: 20px; font-weight: lighter; color: var(--primary-gold); text-decoration: none; transition: color 0.2s; letter-spacing: -1px; }
.ss-mobile-links a:hover { color: var(--primary-gold); }

/* Mobile Menu Active Highlight */
.ss-mobile-links a.active { background: var(--primary-gold) !important; color: #ffffff !important;}

/* --- 7. FIXED BOTTOM ACTIONS (Desktop Default) --- */
.ss-fixed-actions { display: none; }


/* ==========================================================================
   8. MASTER MOBILE RESPONSIVENESS (NAVBAR & ACTIONS)
   ========================================================================== */
@media (max-width: 900px) {
    /* Navbar Resets */
    .ss-nav-logo-wrapper { gap: 15px; }
    .ss-nav-links, .ss-nav-divider, .ss-nav-cta { display: none; }
    .ss-menu-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; }
    
    /* Your Custom Mobile Navbar Edits */
    .ss-navbar { position: fixed; padding: 8px 10px; background: rgba(250,250,250,.9); }
    .ss-brand-logo { top: -35px; height: 50px; }

    /* Your Custom Floating Action Buttons */
    .ss-fixed-actions {
        display: flex;
        position: fixed;
        bottom: 20px;
        left: 0;
        width: 100%;
        padding: 0 15px;
        justify-content: space-between;
        z-index: 9999;
        pointer-events: none; 
    }

    .ss-fixed-actions a {
        pointer-events: auto; 
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        color: var(--primary-gold);
        text-decoration: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--primary-gold);
        animation: mobile-float 3s ease-in-out infinite;
    }

    .ss-fixed-actions .ss-btn-call { 
        animation-delay: 0s; 
        background-color: rgba(170, 170, 170, 0.3); 
        border-color: var(--primary-gold);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
    }
    
    .ss-fixed-actions .ss-btn-whatsapp { 
        animation-delay: 1.5s; 
        color: #fff; 
        background-color: rgba(37, 211, 102, 0.85); 
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    }

    .ss-fixed-actions a i { font-size: 20px; }

    @keyframes mobile-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); } 
    }
}