/* ==========================================================================
   Raiyani Legal - Premium Law Firm Custom CSS
   ========================================================================== */

:root {
    --primary-dark: #0B132B;       /* Deeper, richer navy */
    --secondary-dark: #1C2541;     /* Slightly lighter navy for contrast */
    --gold: #C5A059;               /* Muted, expensive-looking gold */
    --gold-hover: #A88645;
    --light-bg: #F9FAFC;           /* Very soft gray/blue for backgrounds */
    --text-main: #333333;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Prevents fixed navbar from covering section titles */
}

body {
    font-family: 'Open Sans', sans-serif;
    padding-top: 80px; 
    color: var(--text-main);
    line-height: 1.7;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

.tracking-wide {
    letter-spacing: 1.5px;
}

/* Colors & Backgrounds */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.text-gold {
    color: var(--gold) !important;
}
.bg-gold {
    background-color: var(--gold) !important;
}

/* Navbar Upgrades */
.navbar {
    background-color: rgba(11, 19, 43, 0.98) !important; /* Slightly transparent for modern feel */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-nav .nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 10px;
    color: #cbd5e1 !important;
    transition: 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

/* Premium Logo Mark */
.logo-mark {
    background: linear-gradient(135deg, var(--gold), #e8d09d);
    color: var(--primary-dark);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.8rem;
    border-radius: 3px;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Buttons (Squared off for corporate, serious feel) */
.btn {
    border-radius: 2px;
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.btn-gold {
    background-color: var(--gold);
    color: #fff;
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #fff;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: #fff;
}

.btn-outline-primary-dark {
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
}
.btn-outline-primary-dark:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

/* Hero Section with Animations */
.hero-section {
    background: linear-gradient(rgba(11, 19, 43, 0.88), rgba(11, 19, 43, 0.75)), 
                url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: white;
    padding: 160px 0 140px 0;
    min-height: 85vh;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { 
    animation: fadeInUp 0.8s ease-out forwards; 
    opacity: 0; 
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Structure Spacing */
.section-padding {
    padding: 100px 0;
}

/* Divider */
.divider {
    height: 3px;
    width: 50px;
    background-color: var(--gold);
    margin-bottom: 20px;
}
.divider-center {
    margin: 0 auto 20px auto;
}

/* Practice Area Cards (Elegant upgrade) */
.practice-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transition: all 0.4s ease;
    z-index: -1;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.practice-card:hover::before {
    height: 100%;
    background: var(--primary-dark);
}

.practice-card:hover .card-title,
.practice-card:hover .card-text,
.practice-card:hover .practice-icon {
    color: #fff !important;
}

.practice-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 25px;
    transition: color 0.4s ease;
}

/* Forms */
.form-control, .form-select {
    border-radius: 2px;
    padding: 12px 15px;
    border: 1px solid #ddd;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: none;
}

/* Footer styling */
footer {
    background-color: #050a17;
    color: #a0aec0;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

footer a {
    color: #a0aec0;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-right: 10px;
}

.social-icons a:hover {
    background: var(--gold);
    padding-left: 0; /* Override earlier hover */
}


/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   Premium Accordion Styling (FAQ/AEO Section)
   ========================================================================== */
.accordion-item {
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(197, 160, 89, 0.08);
    color: var(--primary-dark) !important;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}
.accordion-button:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.15rem rgba(197, 160, 89, 0.25);
}
