@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Global Font Definitions */
.font-serif { font-family: 'Merriweather', serif; }
.font-body { font-family: 'Lora', serif; }
.font-sans { font-family: 'Inter', sans-serif; }
.font-classic { font-family: 'Cinzel', serif; }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #040406; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #A3803B; border-radius: 10px; }

/* Smooth Scroll & Layout Guard */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.scroll-smooth { scroll-behavior: smooth; }

/* Strictly Hide Top Header Utility Bar on Mobile / Tablet Viewports (< 1024px) */
@media (max-width: 1023px) {
    .header-top-bar,
    div.bg-navy-950.text-stone-400.hidden.lg\:block,
    div.hidden.lg\:block {
        display: none !important;
    }
}

/* Team Carousel */
#team-track {
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
#team-track::-webkit-scrollbar {
    display: none;
}
.team-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}
#team-section {
    min-height: 400px;
}


/* Navigation Links Animation */
.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: -4px; 
    left: 0; 
    background-color: #C5A059; 
    transition: width 0.3s ease; 
}
.nav-link:hover::after { width: 100%; }
.group:hover .nav-link::after { width: 100%; }

/* Card & Box Styling */
.legal-header { font-family: 'Cinzel', serif; letter-spacing: 0.1em; }
.glass-card { 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}
.glass-morphism { 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Gradients */
.gold-gradient-text { 
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}
.premium-gradient-text { 
    background: linear-gradient(to right, #C5A059, #A3803B, #D4AF37); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* Roadmap line for Writ pages */
.roadmap-line::before { 
    content: ''; 
    position: absolute; 
    left: 50%; 
    top: 0; 
    bottom: 0; 
    width: 2px; 
    background: linear-gradient(to bottom, transparent, #C5A059, transparent); 
}
@media (max-width: 768px) { 
    .roadmap-line::before { left: 20px; } 
}
.highlight-border { 
    border-left: 4px solid #C5A059; 
    padding-left: 1.5rem; 
}

/* Carousels & Sliders */
#team-track { 
    scroll-snap-type: x mandatory; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
}
#team-track::-webkit-scrollbar { display: none; }
.team-item { scroll-snap-align: start; flex-shrink: 0; }
#team-section { min-height: 400px; }
[cloak] { display: none; }

/* Background Pattern Utilities */
.bg-pattern-gplay { background-image: url('https://www.transparenttextures.com/patterns/gplay.png'); }
.bg-pattern-cubes { background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); }
.bg-pattern-wood { background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png'); }
.bg-pattern-graphy { background-image: url('https://www.transparenttextures.com/patterns/graphy.png'); }
.bg-pattern-pinstriped { background-image: url('https://www.transparenttextures.com/patterns/pinstriped-suit.png'); }

/* Component Styling */

/* Social media links in topbar & footer */
.social-icon-link {
    color: #a8a29e; /* text-stone-400 */
    transition: all 0.3s ease;
}
.social-icon-link:hover {
    color: #C5A059; /* text-gold-500 */
    transform: translateY(-2px); /* hover:-translate-y-0.5 */
}

/* Header utility items */
.header-utility-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    color: #a8a29e; /* text-stone-400 */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    cursor: default;
}
.header-utility-item svg {
    color: #C5A059; /* text-gold-500 */
    transition: transform 0.3s ease;
}
.header-utility-item:hover svg {
    transform: scale(1.1); /* group-hover:scale-110 */
}

/* Floating WhatsApp button (Desktop View Pinned Bottom Right) */
.whatsapp-float-btn {
    position: fixed !important;
    bottom: 2.5rem !important;
    right: 2.5rem !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    background-color: #22c55e !important;
    color: white !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    text-decoration: none !important;
}
@media (max-width: 767px) {
    .whatsapp-float-btn {
        display: none !important;
    }
}
.whatsapp-float-btn:hover {
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.7) !important;
    transform: translateY(-4px) scale(1.05) !important;
}
.whatsapp-float-btn:active {
    transform: scale(0.95) !important;
}

/* Mobile View Overrides for Legal Disclaimer Popup */
@media (max-width: 768px) {
    #disclaimer-modal aside {
        padding: 0.75rem !important; /* compact sidebar on mobile */
        gap: 0.75rem !important;
        flex-direction: row !important; /* side by side layout on mobile */
    }
    #disclaimer-modal aside img {
        width: 3rem !important; /* 48px logo on mobile */
        height: 3rem !important;
    }
    #disclaimer-modal aside .mt-4 {
        margin-top: 0 !important;
        text-align: left !important;
    }
    #disclaimer-modal aside span {
        font-size: 0.65rem !important;
    }
    .popup-title {
        font-size: 1.15rem !important; /* compact h2 on mobile */
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }
    .popup-description {
        font-size: 0.7rem !important; /* readable smaller description text */
        line-height: 1.45 !important;
    }
    .popup-description p {
        font-size: 0.725rem !important; /* readable body text */
        margin-bottom: 0.5rem !important;
    }
    .popup-description ul {
        padding-left: 1rem !important;
    }
    .popup-description li {
        margin-bottom: 0.35rem !important;
    }
    .popup-description .bg-stone-100 {
        padding: 0.75rem !important;
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        font-size: 0.7rem !important;
    }
    .popup-form {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        gap: 0.5rem !important;
    }
}

/* Mobile & Tablet Overrides for the Top Utility Bar */
@media (max-width: 1023px) {
    body > div.bg-navy-950.text-stone-400 {
        display: block !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    body > div.bg-navy-950.text-stone-400 > .container {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    body > div.bg-navy-950.text-stone-400 > .container > div:first-child {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.75rem 1.25rem !important;
    }
    
    body > div.bg-navy-950.text-stone-400 > .container > div:last-child {
        justify-content: center !important;
        width: 100%;
        gap: 1.25rem !important;
    }
}

/* Responsive Red Urgent Assistance Banner Layout */
@media (max-width: 1023px) {
    div[class*="from-red-900"] > div,
    .from-red-900 > .container,
    .from-red-900 > div {
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 0.5rem 2rem !important;
        text-align: center !important;
    }
}
@media (max-width: 639px) {
    div[class*="from-red-900"] > div,
    .from-red-900 > .container,
    .from-red-900 > div {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Mobile Menu Drawer Overlay */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(4, 4, 6, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
}

#mobile-menu.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#mobile-menu-btn {
    position: relative !important;
    z-index: 100000 !important;
    min-width: 44px !important;
    min-height: 44px !important;
    cursor: pointer !important;
}
