/* ==========================================================================
   1. CORE VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #0F0F0F;
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --text-light: #FFFFFF;
    --text-muted: #A0A0A0;
    --card-bg: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden; /* Prevents background scroll when mobile menu is open */
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
}

p {
    color: var(--text-muted);
}

.gold-text { color: var(--gold); }
.text-center { text-align: center; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.section-header { margin-bottom: 50px; }

/* ==========================================================================
   2. NAVBAR & LOGO
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    max-width: 280px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.03); }

nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
nav a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 14px; 
    font-family: 'Inter', sans-serif;
    text-transform: uppercase; 
    transition: 0.3s;
}
nav a:hover, nav a.active { color: var(--gold); }

/* CTA Button Visibility Logic */
.mobile-only { display: none; }
.nav-cta { display: inline-block; }

/* ==========================================================================
   3. BUTTONS & LINKS
   ========================================================================== */
.btn-gold {
    display: inline-block; background-color: var(--gold); color: var(--bg-dark);
    padding: 12px 28px; text-decoration: none; font-family: 'Inter', sans-serif;
    font-weight: 600; border-radius: 2px; transition: all 0.3s ease; border: 1px solid var(--gold);
}
.btn-gold:hover { background-color: transparent; color: var(--gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }

.btn-dark {
    display: inline-block; background-color: var(--bg-dark); color: var(--gold);
    padding: 12px 28px; text-decoration: none; font-family: 'Inter', sans-serif;
    font-weight: 600; border-radius: 2px; transition: all 0.3s ease; border: 1px solid var(--bg-dark);
}
.btn-dark:hover { background-color: transparent; color: var(--bg-dark); border-color: var(--bg-dark); }

.btn-outline {
    background: transparent; border: 1px solid var(--gold); color: var(--gold);
    padding: 10px 24px; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600;
    transition: 0.3s; border-radius: 2px;
}
.btn-outline:hover { background: var(--gold); color: var(--bg-dark); }

.link-gold { color: var(--gold); text-decoration: none; font-weight: 600; transition: 0.3s; font-family: 'Inter', sans-serif; }
.link-gold:hover { letter-spacing: 1px; }

/* ==========================================================================
   4. GLOBAL GRIDS & ANIMATIONS
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   5. HOME PAGE SPECIFIC
   ========================================================================== */
/* Hero Section */
.hero { position: relative; height: 100vh; overflow: hidden; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
    display: flex; align-items: center; padding: 0 10%;
}
.slide.active { opacity: 1; z-index: 1; }
.hero-content { max-width: 700px; transform: translateY(30px); opacity: 0; transition: 1s ease 0.5s; }
.slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: var(--text-light); }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.2rem; color: #E0E0E0; margin-bottom: 30px; }
.hero-indicators { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.dot { width: 40px; height: 3px; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--gold); width: 60px; }

/* Home About Section */
.about-text h2 { font-size: 2.5rem; margin: 10px 0 20px; color: var(--text-light); }
.about-image { position: relative; }
.about-image img { width: 100%; border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 4px; }
.glass-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: rgba(212, 175, 55, 0.1); backdrop-filter: blur(15px);
    border: 1px solid var(--gold); padding: 20px 40px; text-align: center; border-radius: 4px;
}
.glass-badge h2 { color: var(--gold); font-size: 2.5rem; margin: 0;}

/* Home Practice Cards */
.practice-card {
    background: var(--card-bg); padding: 40px 30px;
    border: 1px solid transparent; border-radius: 4px;
    transition: all 0.4s ease; cursor: pointer;
}
.practice-card:hover { border-color: var(--gold); transform: translateY(-10px); background: #1f1f1f;}
.gold-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; }
.practice-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-light); }
.practice-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Why Us Section */
.feature-list { list-style: none; margin-top: 30px; }
.feature-list li { display: flex; gap: 20px; margin-bottom: 30px; }
.feature-list i { font-size: 1.5rem; margin-top: 5px; }
.feature-list h4 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 5px; color: var(--text-light);}
.feature-list p { color: var(--text-muted); font-size: 0.9rem;}
.why-image img { width: 100%; border-radius: 4px; }

/* Testimonials Carousel */
.testimonial-wrapper { overflow: hidden; margin-top: 50px; padding: 20px 0; }
.testimonial-track { display: flex; gap: 30px; transition: transform 0.5s ease; }
.test-card {
    min-width: calc(33.333% - 20px); background: var(--card-bg);
    padding: 40px; border-bottom: 3px solid var(--gold); border-radius: 4px;
}
.stars { color: var(--gold); margin-bottom: 20px; font-size: 0.9rem;}
.test-card p { font-style: italic; color: #ddd; margin-bottom: 20px; }
.test-card h4 { color: var(--gold); font-family: 'Inter', sans-serif; }
.test-card span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase;}

/* Newsletter */
.newsletter { border-top: 1px solid rgba(255,255,255,0.05); }
.newsletter-form { display: flex; justify-content: center; max-width: 600px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 15px 20px; background: var(--card-bg); border: 1px solid #333;
    color: white; outline: none; font-family: 'Inter', sans-serif; font-size: 1rem;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button { cursor: pointer; border-radius: 0; }

/* ==========================================================================
   6. ABOUT US PAGE SPECIFIC
   ========================================================================== */
.page-header {
    height: 60vh; display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center; margin-top: 80px; 
}
.page-header h1 { font-size: 3.5rem; margin-bottom: 15px; color: var(--text-light); }

.founder-image { position: relative; padding: 20px; }
.founder-image img { width: 100%; position: relative; z-index: 2; border-radius: 4px; }
.gold-frame {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid var(--gold); z-index: 1; transform: translate(20px, 20px);
}
.founder-text h2 { font-size: 2.5rem; margin: 10px 0 20px; color: var(--text-light); }
.founder-text p { margin-bottom: 20px; }

/* Timeline UI */
.timeline {
    position: relative; max-width: 800px; margin: 0 auto;
    padding-left: 50px; border-left: 2px solid rgba(212, 175, 55, 0.3);
}
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -58px; top: 0; width: 16px; height: 16px; 
    background-color: var(--gold); border-radius: 50%; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.timeline-content {
    background: var(--card-bg); padding: 30px; border-radius: 4px; border: 1px solid transparent; transition: 0.3s;
}
.timeline-content:hover { border-color: var(--gold); transform: translateX(10px); }
.timeline-content h3 { margin-bottom: 5px; font-family: 'Inter', sans-serif; font-size: 1.2rem; }
.timeline-content h4 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-light); }

/* Core Values Cards */
.value-card {
    background: var(--card-bg); padding: 40px 20px; border-radius: 4px;
    border-top: 3px solid var(--gold); transition: 0.4s;
}
.value-card:hover { transform: translateY(-10px); background: #1f1f1f; }
.value-card h3 { margin: 15px 0; font-size: 1.3rem; color: var(--text-light); }

/* ==========================================================================
   7. PRACTICE AREAS PAGE SPECIFIC
   ========================================================================== */
.practice-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.practice-row:nth-child(even) { flex-direction: row-reverse; }
.practice-row:last-child { margin-bottom: 0; }

.practice-img-wrapper {
    flex: 1; overflow: hidden; border-radius: 4px; border: 1px solid rgba(212, 175, 55, 0.2);
}
.practice-img-wrapper img { width: 100%; display: block; transition: transform 0.6s ease; }
.practice-row:hover .practice-img-wrapper img { transform: scale(1.05); }

.practice-info { flex: 1; }
.practice-info h2 { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-light); }

/* ==========================================================================
   8. ATTORNEYS PAGE SPECIFIC
   ========================================================================== */
.team-card {
    background: var(--card-bg); border-radius: 4px; overflow: hidden;
    border: 1px solid transparent; transition: all 0.4s ease;
}
.team-card:hover { border-color: var(--gold); transform: translateY(-10px); }

.team-img-box { position: relative; overflow: hidden; }
.team-img-box img { width: 100%; display: block; transition: 0.5s ease; filter: grayscale(20%); }
.team-card:hover .team-img-box img { transform: scale(1.05); filter: grayscale(0%); }

.team-social {
    position: absolute; bottom: -50px; left: 0; width: 100%;
    background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(5px);
    display: flex; justify-content: center; gap: 20px;
    padding: 15px 0; transition: bottom 0.4s ease;
}
.team-card:hover .team-social { bottom: 0; }
.team-social a { color: var(--text-light); font-size: 1.2rem; transition: 0.3s; }
.team-social a:hover { color: var(--gold); }

.team-info { padding: 30px 20px; }
.team-info h3 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-light); }
.team-info h4 { font-family: 'Inter', sans-serif; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }

/* ==========================================================================
   9. CONTACT US PAGE SPECIFIC
   ========================================================================== */
.info-list { list-style: none; margin-top: 30px; }
.info-list li { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.info-list i { font-size: 1.5rem; margin-top: 3px; }
.info-list h4 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 5px; color: var(--text-light); }

.contact-form-wrapper {
    background: rgba(26, 26, 26, 0.6); backdrop-filter: blur(12px);
    padding: 40px; border-radius: 8px; border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.modern-form .form-row { display: flex; gap: 20px; }
.modern-form .form-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); 
    text-transform: uppercase; letter-spacing: 1px; font-family: 'Inter', sans-serif;
}
.modern-form input, .modern-form select, .modern-form textarea {
    width: 100%; padding: 15px; background: rgba(15, 15, 15, 0.8);
    border: 1px solid #333; border-radius: 4px; color: var(--text-light); 
    font-family: 'Inter', sans-serif; font-size: 1rem; transition: all 0.3s ease; outline: none;
}
.modern-form input:focus, .modern-form select:focus, .modern-form textarea:focus {
    border-color: var(--gold); box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}
.modern-form select option { background: var(--bg-dark); color: var(--text-light); }

.map-section { margin-top: 50px; }
.dark-map iframe { filter: invert(90%) hue-rotate(180deg) contrast(100%); display: block; }

/* ==========================================================================
   10. MODALS (POP-UPS)
   ========================================================================== */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s ease;
}
.modal.show { display: block; opacity: 1; }

.modal-content {
    background-color: var(--card-bg); margin: 10% auto; padding: 40px;
    border: 1px solid var(--gold); border-radius: 4px; width: 90%; max-width: 600px; 
    position: relative; transform: translateY(-50px); transition: transform 0.4s ease;
}
.modal.show .modal-content { transform: translateY(0); }

.close-btn {
    color: var(--text-muted); position: absolute; top: 20px; right: 30px;
    font-size: 28px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-btn:hover { color: var(--gold); }

.modal-header { margin-bottom: 20px; text-align: center; border-bottom: 1px solid #333; padding-bottom: 20px; }
.modal-header h2 { font-size: 2rem; margin-top: 10px; color: var(--text-light); }
.modal-body p { color: #ccc; line-height: 1.8; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
footer { padding: 30px 0; background: #0a0a0a; border-top: 1px solid var(--gold); text-align: center; color: var(--text-muted); font-size: 0.9rem;}

/* ==========================================================================
   12. MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */

/* --- TABLET USERS (Max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container { width: 85%; }
    .hero h1, .page-header h1 { font-size: 3.2rem; }
    
    .grid-4 { grid-template-columns: 1fr 1fr; gap: 25px; } 
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 40px; }
    
    .section-padding { padding: 80px 0; }
    .practice-row { gap: 40px; }
}

/* --- MOBILE USERS (Max-width: 768px) --- */
@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    h2 { font-size: 2rem !important; }
    
    /* Navbar Scaling & Logic */
    .navbar { padding: 10px 5%; }
    .logo img { height: 45px; }
    
    .nav-cta { display: none !important; } /* Hide Desktop Button */
    .mobile-only { display: block; width: 100%; text-align: center; margin-top: 25px; }
    .mobile-only .btn-gold { width: 80%; }

    /* The Hamburger Icon */
    .menu-toggle {
        display: flex; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001;
    }
    .bar {
        width: 30px; height: 3px; background-color: var(--gold);
        transition: all 0.3s ease-in-out; border-radius: 2px;
    }

    /* Slide-in Mobile Menu */
    #nav-menu {
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
        background: rgba(15, 15, 15, 0.98); backdrop-filter: blur(15px);
        border-left: 1px solid rgba(212, 175, 55, 0.2); display: flex;
        flex-direction: column; justify-content: center; align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0); z-index: 1000;
    }
    #nav-menu.active { right: 0; }
    #nav-menu ul { flex-direction: column; gap: 35px; width: 100%; }
    #nav-menu ul li a { font-size: 1.4rem; display: block; text-align: center; }

    /* Burger to 'X' Animation */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Hero Section & Page Headers */
    .hero h1, .page-header h1 { font-size: 2.5rem; text-align: center; }
    .hero p { font-size: 1rem; text-align: center; }
    .hero-content { text-align: center; margin: 0 auto; }
    .slide { justify-content: center; padding: 0 5%; }
    
    /* Grid Collapsing */
    .grid-2, .grid-3, .grid-4, .grid-6, .about-grid { grid-template-columns: 1fr; gap: 30px; }

    /* Section Stacking */
    .about-text, .founder-text { text-align: center; }
    .practice-row, .practice-row:nth-child(even) { flex-direction: column; text-align: center; }
    .practice-info .feature-list li { justify-content: center; }
    
    /* Home Page Specific Mobile Fixes */
    .glass-badge { position: static; margin-top: 20px; transform: none; width: 100%; }
    .newsletter-form { flex-direction: column; gap: 10px; }
    .test-card { min-width: 100%; }
    
    /* About Page Specific Mobile Fixes */
    .gold-frame { display: none; }
    .timeline { padding-left: 30px; }
    .timeline-dot { left: -38px; }
    
    /* Form Adjustments */
    .modern-form .form-row { flex-direction: column; gap: 0; }
    .contact-form-wrapper { padding: 25px; }
}

/* --- SMALL PHONES (Max-width: 480px) --- */
@media (max-width: 480px) {
    .hero h1, .page-header h1 { font-size: 2.1rem; }
    .btn-gold, .btn-dark, .btn-outline { width: 100%; text-align: center; }
}