@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

/* FIXED: Locked down the HTML root to prevent ANY horizontal scrolling bleeds */
html, body {
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #334155; 
    background-color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
.site-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 0 0 4%; background-color: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000; height: 90px; 
}
.logo-box { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.main-logo { height: 60px; width: auto; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 22px; font-weight: 800; color: #0a2540; letter-spacing: -0.5px; line-height: 1.2; text-transform: uppercase; }

/* New Subtitle Styling */
.logo-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* --- COLORFUL BLOCK NAVIGATION --- */
.color-nav { display: flex; height: 100%; align-items: stretch; }
.nav-item {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0 25px; text-decoration: none; color: white; font-size: 13px; font-weight: 600;
    min-width: 105px; transition: filter 0.2s ease; gap: 8px; border-left: 1px solid rgba(255,255,255,0.2); 
}
.nav-item i { font-size: 26px; }
.nav-item:hover { filter: brightness(0.85); }
.color-home { background-color: #f39c12; }      
.color-about { background-color: #9b59b6; }     
.color-services { background-color: #2980b9; }  
.color-team { background-color: #27ae60; }      
.color-careers { background-color: #c0392b; }   
.color-contact { background-color: #5d4037; }   

/* --- DYNAMIC HERO SLIDER --- */
.hero-slider-section { 
    position: relative; 
    height: 85vh; 
    min-height: 600px; 
    width: 100%;
    overflow: hidden; /* FIXED: Traps any sliding animations from bleeding off-screen */
}

/* FIXED: Prevent Swiper from stacking vertically while the page loads */
.swiper { 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
}
.swiper-wrapper {
    display: flex; /* Forces slides side-by-side even before JS is fully loaded */
}
.swiper-slide { 
    flex-shrink: 0; /* Prevents squishing */
    width: 100%;
    position: relative; 
    background-size: cover; 
    background-position: center; 
    background-color: #050d1a; 
}

.slide-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to right, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 100%); 
    z-index: 1; 
}

/* THE ABSOLUTE CENTERING FIX */
.hero-content { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-55%); 
    left: 0;
    z-index: 2; 
    width: 100%; 
    padding: 0 8%; 
    text-align: left; 
}
.hero-content h1 { 
    max-width: 900px; font-size: 64px; font-weight: 800; line-height: 1.2; 
    letter-spacing: -1px; color: #ffffff; margin-bottom: 20px; 
    text-shadow: 0 2px 15px rgba(0,0,0,0.5); 
}
.hero-content p { 
    max-width: 700px; font-size: 22px; color: #e2e8f0; font-weight: 400; 
    margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* BUTTONS */
.btn-primary { background-color: #f59e0b; color: #ffffff; padding: 18px 40px; text-decoration: none; font-weight: 600; border-radius: 4px; display: inline-block; transition: 0.3s; }
.btn-primary:hover { background-color: #d97706; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: #ffffff; padding: 18px 40px; text-decoration: none; font-weight: 600; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.4); display: inline-block; margin-left: 15px; transition: 0.3s; }
.btn-secondary:hover { background-color: rgba(255,255,255,0.1); border-color: #ffffff; }

/* --- OVERLAPPING STATS --- */
.stats-wrapper { padding: 0 8%; margin-top: -80px; position: relative; z-index: 10; }
.stats-bar { display: flex; justify-content: space-between; align-items: center; background: #ffffff; padding: 40px 50px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border: 1px solid #f1f5f9; }
.stat-item { text-align: center; flex: 1; }
.stat-item h3 { font-size: 42px; color: #0a192f; font-weight: 800; line-height: 1; margin-bottom: 8px;}
.stat-item p { font-size: 13px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;}
.stat-divider { width: 1px; height: 50px; background-color: #e2e8f0;}

/* --- ABOUT SECTION --- */
.about-section { padding: 120px 8% 80px 8%; display: flex; align-items: center; gap: 60px; }
.about-image { flex: 1; position: relative; }
.about-image img { width: 100%; max-width: 500px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: block; }
.about-image::after { content: ''; position: absolute; bottom: -20px; right: -20px; width: 100%; max-width: 500px; height: 100%; border: 4px solid #f59e0b; border-radius: 8px; z-index: -1; }
.about-text { flex: 1.2; }
.about-text h2 { font-size: 36px; color: #0a192f; font-weight: 800; margin-bottom: 20px; }
.about-text p { font-size: 17px; color: #475569; line-height: 1.8; margin-bottom: 20px; }

/* --- PRACTICE AREAS --- */
.practice-areas { padding: 80px 8% 100px 8%; background-color: #f8fafc; }
.section-title { text-align: center; font-size: 36px; color: #0a192f; font-weight: 800; margin-bottom: 50px; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.practice-card { background: #ffffff; border-top: 4px solid #0a192f; padding: 40px 30px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all 0.3s ease; }
.practice-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-5px); border-top-color: #f59e0b; }
.practice-icon { font-size: 36px; margin-bottom: 20px; }
.practice-title { font-size: 22px; color: #0a192f; font-weight: 800; margin-bottom: 15px; }
.practice-intro { font-size: 14px; color: #f59e0b; font-weight: 700; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
.practice-list { list-style: none; padding: 0; margin: 0; }
.practice-list li { font-size: 15px; color: #475569; margin-bottom: 12px; padding-left: 20px; position: relative; line-height: 1.5; }
.practice-list li::before { content: '→'; position: absolute; left: 0; top: 0; color: #94a3b8; font-weight: bold; }

/* --- WHY CHOOSE US --- */
.why-choose-section { padding: 100px 8%; background-color: #ffffff; }
.why-header { text-align: center; margin-bottom: 60px; }
.why-header h2 { font-size: 36px; color: #0a192f; font-weight: 800; }
.why-header p { font-size: 16px; color: #f59e0b; font-weight: 700; margin-top: 15px; text-transform: uppercase; letter-spacing: 1px;}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.why-card { text-align: center; padding: 40px 25px; border: 1px solid #f1f5f9; border-radius: 8px; transition: all 0.3s ease; background: #f8fafc; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: #2980b9; background: #ffffff;}
.why-icon { font-size: 40px; color: #2980b9; margin-bottom: 20px; }
.why-card h4 { font-size: 18px; color: #0a192f; margin-bottom: 15px; font-weight: 800; }
.why-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* --- BUSINESS ADVISORY --- */
.advisory-section { padding: 100px 8%; background-color: #0a192f; color: #ffffff; }
.advisory-container { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.advisory-text { flex: 1; min-width: 300px; }
.advisory-text h2 { font-size: 40px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; color: #ffffff;}
.advisory-text h2 span { color: #f59e0b; }
.advisory-text p { font-size: 18px; color: #94a3b8; margin-bottom: 30px; line-height: 1.6; }
.advisory-stats { background: rgba(255,255,255,0.05); padding: 25px; border-left: 4px solid #f59e0b; border-radius: 4px; font-weight: 600; font-size: 16px; color: #e2e8f0; }
.advisory-grid { flex: 1.2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 300px; }
.advisory-box { background: #112240; padding: 30px; border-radius: 8px; position: relative; overflow: hidden; z-index: 1; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; }
.advisory-box:hover { background: #1e3a8a; border-color: #3b82f6; transform: translateY(-5px); }
.advisory-number { font-size: 60px; font-weight: 800; color: rgba(255,255,255,0.05); position: absolute; top: 5px; right: 15px; z-index: -1; }
.advisory-box h4 { font-size: 18px; color: #ffffff; margin-bottom: 12px; font-weight: 700; }
.advisory-box p { font-size: 14px; color: #94a3b8; line-height: 1.6; }

/* --- LOCATION & MAP SECTION --- */
.location-section {
    padding: 100px 8%;
    background-color: #ffffff;
}
.location-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1300px;
    margin: 0 auto;
}
.location-text {
    flex: 1;
}
.location-text h2 {
    font-size: 36px;
    color: #0a192f;
    font-weight: 800;
    margin-bottom: 15px;
}
.location-text > p {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}
.location-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.loc-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.loc-item i {
    font-size: 24px;
    color: #f59e0b;
    margin-top: 5px;
}
.loc-item h4 {
    font-size: 18px;
    color: #0a192f;
    margin-bottom: 5px;
    font-weight: 700;
}
.loc-item p {
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}
.location-map {
    flex: 1.2;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 4px solid #f8fafc;
}
.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- WORLD-CLASS MEGA FOOTER --- */
.site-footer { background-color: #050d1a; color: #94a3b8; margin-top: auto; }
.footer-top { padding: 80px 8% 60px 8%; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 50px; }
.footer-col h4 { color: #ffffff; font-size: 18px; font-weight: 700; margin-top: 0; margin-bottom: 25px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background-color: #f59e0b; }
.footer-logo { font-size: 24px; color: #ffffff; font-weight: 800; margin-top: 0; margin-bottom: 15px; }
.footer-logo span { color: #f59e0b; font-weight: 300; }
.footer-desc { line-height: 1.8; margin-bottom: 25px; font-size: 15px; }
.social-links { display: flex; flex-direction: row; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background-color: rgba(255, 255, 255, 0.05); color: #ffffff; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { background-color: #f59e0b; transform: translateY(-3px); }
.footer-links { list-style: none !important; padding-left: 0; margin: 0; }
.footer-links li { list-style-type: none !important; margin-bottom: 15px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 15px; transition: all 0.3s ease; display: flex; align-items: flex-start; gap: 10px; }
.footer-links a i { font-size: 12px; color: #f59e0b; transition: transform 0.3s ease; margin-top: 5px; }
.footer-links a:hover { color: #ffffff; }
.footer-links a:hover i { transform: translateX(5px); }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contact-item i { color: #f59e0b; font-size: 18px; margin-top: 3px; min-width: 20px; }
.contact-item p { margin: 0; font-size: 15px; line-height: 1.6; }
.contact-item a { color: #94a3b8; text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: #f59e0b; }
.footer-bottom { background-color: #020617; padding: 20px 8%; }
.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #64748b; }
.dev-credit { color: #f59e0b; font-weight: 600; }

/* ==========================================
   MOBILE RESPONSIVENESS & MEDIA QUERIES
   ========================================== */

/* Tablet & Smaller Laptops */
/* Mobile Toggle Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 30px;
    color: #0a2540;
    cursor: pointer;
    padding-right: 5%;
}

/* --- VIRTUAL VIDEO TOUR SECTION --- */
.video-tour-section {
    padding: 100px 8%;
    background-color: #0a192f; /* Premium dark background */
    color: #ffffff;
    border-top: 2px solid rgba(255,255,255,0.05);
}
.video-container {
    max-width: 1000px; /* Keeps the video from getting too massive on huge monitors */
    margin: 0 auto;
}
.video-header {
    text-align: center;
    margin-bottom: 50px;
}
.video-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}
.video-header p {
    font-size: 18px;
    color: #94a3b8;
}
.video-container {
    max-width: 1200px; /* Made slightly wider to fit both items nicely */
    margin: 0 auto;
}

.video-split {
    display: flex;
    align-items: stretch; /* Makes both boxes the exact same height */
    gap: 40px;
}

.video-wrapper, .desk-image-wrapper {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); 
    border: 4px solid rgba(255, 255, 255, 0.05); 
    background: #000000;
}

.desk-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box without stretching */
    display: block;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
}

/* --- OFFICE GALLERY SECTION --- */
.office-gallery-section {
    padding: 100px 8%;
    background-color: #f8fafc; /* Soft gray to separate it from the dark section above */
}
.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}
.gallery-header h2 {
    font-size: 36px;
    color: #0a192f;
    font-weight: 800;
}
.gallery-header p {
    font-size: 16px;
    color: #64748b;
    margin-top: 10px;
}
.gallery-grid {
    display: grid;
    /* Automatically creates columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}
.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Ensures images fill the box perfectly without stretching */
    display: block;
    transition: transform 0.5s ease; /* Smooth hover transition */
}
.gallery-item:hover img {
    transform: scale(1.08); /* Slight zoom effect on mouse hover */
}

/* ==========================================
   FLOATING STICKY CONTACT BUTTONS
   ========================================== */
.floating-contact {
    position: fixed;
    right: 0;
    top: 50%; /* Centers vertically on the screen */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999; /* Ensures it stays on top of everything */
}

.float-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50px; /* Starts as just a square icon */
    height: 50px;
    border-radius: 8px 0 0 8px; /* Flat edge on the right side */
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
    box-shadow: -2px 4px 10px rgba(0,0,0,0.15);
}

.float-btn i {
    width: 50px;
    text-align: center;
    flex-shrink: 0; /* Prevents icon from squishing */
}

.float-text {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover Effect - Drawer slides out to the left */
.float-btn:hover {
    width: 165px; 
}

.float-btn:hover .float-text {
    opacity: 1;
}

/* Brand Colors */
.whatsapp-btn { background-color: #25d366; }
.whatsapp-btn:hover { background-color: #128c7e; }

.email-btn { background-color: #f59e0b; /* Matches your firm's orange theme */ }
.email-btn:hover { background-color: #d97706; }

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 50px; }
    .stats-bar { gap: 20px; padding: 30px; }
}

/* Tablets & Mobile Landscape */
@media (max-width: 900px) {
    /* HEADER: Hamburger Layout */
    .location-container { flex-direction: column; text-align: center; }
    .location-details { align-items: center; text-align: left; }
    .location-map { width: 100%; height: 300px; }

    .site-header {
        flex-wrap: wrap; 
        height: auto;
        padding: 15px 0 0 0;
        justify-content: space-between; /* This forces Logo Left, Menu Right */
    }
    .logo-box { padding: 0 0 0 5%; 
        margin-bottom: 15px; 
        max-width: 80%; /* Prevents the logo from taking up the whole row */ }
    .logo-name {
        font-size: 18px; /* Shrinks the text slightly so the icon fits next to it! */
    }
    .menu-toggle { display: block; 
        margin-bottom: 15px; 
        padding-right: 5%; } /* Show Hamburger */

    /* Hide menu by default and make it a vertical dropdown */
    .color-nav {
       display: none; 
        width: 100%; /* This drops the menu strictly below the logo/icon row */
        flex-direction: column;
        height: auto;
    }
    /* Show menu when the 'active' class is added by JS */
    .color-nav.active {
        display: flex;
    }
    
    /* Change the square blocks into full-width list items */
    .nav-item {
        padding: 18px 8%;
        min-width: auto;
        border-left: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        flex-direction: row; /* Align icon and text horizontally */
        justify-content: flex-start;
        gap: 20px;
        font-size: 15px;
    }
    .nav-item i { width: 30px; text-align: center; }

    /* HERO adjustments */
    .hero-slider-section { min-height: 500px; height: 75vh; }
    .hero-content { top: 40%; transform: translateY(-50%); text-align: center; padding: 0 5%; }
    .hero-content h1 { font-size: 42px; margin-bottom: 15px; }
    .hero-content p { font-size: 18px; max-width: 100%; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    
    /* STATS wrapping */
    .stats-wrapper { margin-top: -40px; }
    .stats-bar { flex-wrap: wrap; justify-content: center; gap: 30px; padding: 30px 20px; }
    .stat-item { flex: 1 1 40%; } /* Two items per row */
    .stat-divider { display: none; } /* Hide the vertical lines on mobile */

    /* Universal Padding Reduction for smaller screens */
    .about-section, .practice-areas, .why-choose-section, .advisory-section, .footer-top {
        padding: 60px 5%;
    }

    /* Stack Sections Vertically */
    .about-section { flex-direction: column; text-align: center; }
    .about-image { margin-bottom: 30px; }
    .about-image::after { right: 0; bottom: -15px; left: 15px; width: calc(100% - 15px); }

    .advisory-container { flex-direction: column; text-align: center; }
    .advisory-grid { grid-template-columns: 1fr; width: 100%; }

    /* Footer Adjustments */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom-content { flex-direction: column; text-align: center; gap: 10px; }
}

/* Mobile Phones (Portrait) */
@media (max-width: 600px) {
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; margin-bottom: 25px; }
    .btn-primary, .btn-secondary { display: block; width: 100%; text-align: center; margin: 0 0 15px 0; }
    
    .stat-item { flex: 1 1 100%; } /* Stack stats totally vertically */
    
    /* Ensure grids become single columns */
    .practice-grid, .why-grid { grid-template-columns: 1fr; }
    
    /* Footer stacking and centering */
    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); } 
    .social-links { justify-content: center; }
    .footer-links a { justify-content: center; }
    .contact-item { flex-direction: column; align-items: center; text-align: center; }
    .contact-item i { margin-bottom: 5px; }
    
    /* Mobile adjustments for Sticky Buttons */
    .floating-contact {
        top: auto;
        bottom: 25px; /* Moves to bottom corner on phones */
        right: 20px;
        flex-direction: row; /* Places them side-by-side */
        transform: none;
        gap: 15px;
    }
    .float-btn {
        border-radius: 50%; /* Turns them into circles */
        width: 55px;
        height: 55px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
    .float-btn i {
        width: 55px;
        font-size: 28px;
    }
    .float-btn:hover {
        width: 55px; /* Disables the sliding drawer text effect on mobile */
    }
    .float-text { display: none; }
}