/* --- 1. VARIABLES & RESET --- */
:root {
    --primary-dark: #0f172a;   /* Deep Slate/Navy */
    --primary-gold: #d4af37;   /* Metallic Gold */
    --secondary-gold: #f3e5ab; /* Parchment/Cream */
    --text-main: #334155;
    --text-light: #94a3b8;
    --white: #ffffff;
    --black: #000000;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-sub: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #fdfbf7;
    line-height: 1.6; /* Reduced from 1.7 */
    font-size: 15px;  /* Reduced base size */
    overflow-x: hidden;
}

/* --- 2. TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--font-heading); color: var(--primary-dark); font-weight: 700; }
h4, h5 { font-family: var(--font-sub); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* COMPACT SPACING */
.section-padding { padding: 60px 5%; } /* Reduced from 100px */
.container { max-width: 1100px; margin: 0 auto; } /* Slightly narrower container */

/* Headers */
.sub-heading { color: var(--primary-gold); font-size: 0.8rem; margin-bottom: 5px; display: block; }
.heading { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 10px; line-height: 1.2; } /* Smaller Clamp */
.separator-center { width: 60px; height: 3px; background: var(--primary-gold); margin: 0 auto 30px; }
.center { text-align: center; }

/* --- 3. PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-dark); z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.loader-logo { font-family: var(--font-heading); font-size: 3rem; color: var(--primary-gold); margin-bottom: 20px; animation: pulse 2s infinite; }
.loader-line { width: 0; height: 2px; background: var(--primary-gold); animation: loadLine 1.5s ease-in-out forwards; }
@keyframes loadLine { to { width: 150px; } }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* --- 4. NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 10px 0; /* Reduced padding */
    transition: var(--transition);
}
nav.scrolled { padding: 8px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary-dark); text-decoration: none; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo-symbol { color: var(--primary-gold); font-size: 1.5rem; }

.nav-links { list-style: none; display: flex; gap: 25px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-gold); }

.btn-nav {
    padding: 8px 20px; border: 1px solid var(--primary-dark);
    border-radius: 50px; transition: var(--transition); font-size: 0.8rem;
}
.btn-nav:hover { background: var(--primary-dark); color: var(--white) !important; }

/* Mobile Menu */
.menu-toggle { display: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--primary-dark); margin: 5px 0; transition: 0.3s; }

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative; height: 85vh; /* Reduced from 100vh */
    width: 100%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}

.slider-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease;
    transform: scale(1);
}
.slide.active { opacity: 1; animation: kenBurns 15s infinite alternate; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.15); } }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative; z-index: 3; text-align: center; color: var(--white);
    max-width: 900px; padding: 0 20px;
}
.hero-content h4 { color: var(--primary-gold); margin-bottom: 10px; font-size: 0.9rem; }

/* UPDATED: LIGHTER TEXT COLOR FOR HERO */
.hero-content h1 { 
    font-size: clamp(2.2rem, 5vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
    color: #f8fafc; /* Very light gray/white for contrast */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.separator { width: 80px; height: 3px; background: var(--primary-gold); margin: 0 auto 25px; }
.hero-content p { font-size: 1.1rem; margin-bottom: 30px; color: #e2e8f0; max-width: 600px; margin-left: auto; margin-right: auto; }

.hero-btns { margin-top: 10px; }
.btn-primary, .btn-secondary {
    padding: 12px 30px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    text-decoration: none; display: inline-block; margin: 8px; transition: var(--transition);
}
.btn-primary { background: var(--primary-gold); color: var(--primary-dark); border: 2px solid var(--primary-gold); }
.btn-primary:hover { background: transparent; color: var(--primary-gold); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary-dark); }

/* --- 6. TICKER (MARQUEE) --- */
.ticker-wrap {
    background: var(--primary-dark); display: flex; align-items: center; border-bottom: 4px solid var(--primary-gold);
    overflow: hidden; height: 40px; /* Reduced height */
    position: relative; z-index: 5;
}
.ticker-heading {
    background: var(--primary-gold); color: var(--primary-dark); font-weight: 800; padding: 0 15px;
    height: 100%; display: flex; align-items: center; font-family: var(--font-sub); z-index: 10;
    box-shadow: 5px 0 10px rgba(0,0,0,0.3); font-size: 0.75rem;
}
.ticker { display: flex; animation: marquee 25s linear infinite; }
.ticker:hover { animation-play-state: paused; }
.ticker-item { color: var(--white); white-space: nowrap; padding: 0 20px; font-family: var(--font-sub); font-size: 0.8rem; letter-spacing: 1px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- 7. ABOUT SECTION --- */
.about-wrapper { display: flex; align-items: center; gap: 50px; } /* Reduced gap */
.about-img-col { position: relative; flex: 1; min-width: 300px; }
.frame-border {
    position: absolute; top: 20px; left: -20px; width: 100%; height: 100%;
    border: 4px solid var(--primary-gold); z-index: 0;
}
.img-box {
    width: 100%; height: 400px; /* Reduced Height */
    background-size: cover; background-position: center;
    position: relative; z-index: 1; box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    filter: sepia(10%) contrast(1.1);
}
.exp-badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--primary-dark);
    padding: 20px; color: var(--primary-gold); text-align: center; z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.exp-badge .num { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; }
.exp-badge .txt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

.about-txt-col { flex: 1.2; }
.lead-text { font-size: 1.2rem; font-family: var(--font-heading); color: var(--primary-dark); margin-bottom: 20px; font-style: italic; }
.check-list { list-style: none; margin-top: 15px; }
.check-list li { margin-bottom: 10px; font-weight: 600; display: flex; align-items: center; font-size: 0.95rem; }
.check-list i { color: var(--primary-gold); margin-right: 12px; }
.signature { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-top: 20px; color: var(--primary-gold); font-style: italic; }

/* --- 8. PRACTICE AREAS --- */
.bg-dark { background-color: var(--primary-dark); color: var(--white); }
.heading.white { color: var(--white); }
.sub-heading.gold { color: var(--primary-gold); }

.practice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }

.p-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    padding: 30px 20px; transition: var(--transition); position: relative; overflow: hidden;
    text-decoration: none; display: block;
}
.p-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 3px;
    background: var(--primary-gold); transition: var(--transition);
}
.p-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.08); }
.p-card:hover::before { width: 100%; }

.p-card .icon { font-size: 2rem; color: var(--primary-gold); margin-bottom: 15px; }
.p-card h3 { color: var(--white); margin-bottom: 10px; font-family: var(--font-heading); font-size: 1.1rem; }
.p-card p { color: #94a3b8; font-size: 0.9rem; line-height: 1.5; }

/* Practice Detail Frames (Updated for Compactness) */
.practice-frame {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    outline: 1px solid var(--primary-gold);
    outline-offset: -8px; 
    padding: 30px !important; /* Reduced padding */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative;
}
.practice-frame .p-header { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.practice-frame .p-icon { width: 50px; height: 50px; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; background: var(--primary-dark); color: var(--primary-gold); border-radius: 50%; }
.practice-frame h2 { font-size: 1.5rem; margin-bottom: 2px; }
.practice-frame .p-subtitle { font-size: 0.8rem; font-weight: 600; color: var(--primary-gold); text-transform: uppercase; }
.p-list { list-style: none; padding: 20px; background: #f8fafc; border-left: 3px solid var(--primary-gold); }
.p-list li { margin-bottom: 8px; font-size: 0.95rem; }

/* --- 9. TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
.testi-card {
    background: #fff; padding: 25px; border: 1px solid #e2e8f0; border-top: 3px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; transition: var(--transition);
}
.testi-card:hover { transform: translateY(-3px); }
.quote-mark { font-size: 1.5rem; color: var(--primary-gold); opacity: 0.4; margin-bottom: 10px; }
.testi-text { font-style: italic; color: #555; margin-bottom: 15px; font-size: 0.9rem; }
.testi-author { border-top: 1px solid #eee; padding-top: 10px; }
.author-name { display: block; font-family: var(--font-heading); color: var(--primary-dark); font-weight: 700; font-size: 0.95rem; }
.author-role { font-size: 0.75rem; color: #888; }

/* --- 10. LOCATIONS --- */
.loc-wrapper { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 30px; }
.loc-card {
    flex: 1; min-width: 280px; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 4px; overflow: hidden; position: relative; border-top: 3px solid var(--primary-dark);
}
.loc-card.highlight-card { border-top-color: var(--primary-gold); }
.map-bg { height: 120px; background: #eee url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/bd/Google_Maps_Logo_2020.svg/250px-Google_Maps_Logo_2020.svg.png') center/cover; opacity: 0.5; filter: grayscale(100%); }
.loc-content { padding: 20px; text-align: center; }
.loc-content h4 { font-size: 1.3rem; margin-bottom: 5px; color: var(--primary-dark); }
.loc-content .address { margin-bottom: 15px; color: #666; font-style: italic; font-size: 0.9rem; }
.info-row { font-size: 0.85rem; font-weight: 700; color: var(--primary-dark); border-top: 1px solid #eee; padding-top: 10px; }
.warning { color: #b91c1c; }

/* --- 11. COMPACT FOOTER --- */
footer { 
    background: #0b0f19; 
    color: #64748b; 
    padding-top: 40px; /* Reduced from 80px */
    padding-bottom: 20px;
    border-top: 1px solid #1e293b; 
}

.footer-top {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
    border-bottom: 1px solid #1e293b; padding-bottom: 20px; margin-bottom: 30px; /* Spacing reduced */
}
.footer-brand h2 { color: var(--white); margin-bottom: 2px; font-size: 1.4rem; }
.footer-brand p { color: var(--primary-gold); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1.5px; }

.wa-btn {
    background: #25D366; color: #fff; padding: 8px 20px; border-radius: 5px; font-size: 0.9rem;
    text-decoration: none; font-weight: bold; display: inline-flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.wa-btn:hover { background: #1ebc57; transform: translateY(-2px); }

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Tighter columns */
    gap: 30px; 
}

.f-col h5 { color: var(--white); margin-bottom: 15px; font-size: 1rem; }
.f-col ul { list-style: none; }
.f-col ul li { margin-bottom: 8px; line-height: 1.3; }
.f-col ul li a { color: #64748b; text-decoration: none; transition: 0.3s; font-size: 0.85rem; }
.f-col ul li a:hover { color: var(--primary-gold); padding-left: 5px; }

.contact-details li { display: flex; align-items: center; font-size: 0.85rem; }
.contact-details li i { color: var(--primary-gold); margin-right: 10px; width: 15px; }
.contact-details li a { color: #94a3b8; }

.footer-bottom { text-align: center; padding: 20px 0; background: #05080f; margin-top: 30px; font-size: 0.75rem; border-top: 1px solid #1e293b; }
.designer-tag { color: #334155; margin-top: 5px; }

/* Page Header for Practice Areas */
.page-header {
    height: 35vh; /* Reduced height */
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center; margin-top: 50px;
    background-size: cover; background-position: center;
}
.header-content { position: relative; z-index: 2; color: var(--white); }
.header-content h1 { font-size: 2.5rem; color: var(--primary-gold); margin-bottom: 10px; }
.overlay-dark { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); }

/* --- ANIMATION CLASSES --- */
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; } .delay-4 { animation-delay: 0.8s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Scroll Reveal */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 1s ease; }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-active { opacity: 1; transform: translate(0); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .about-wrapper { flex-direction: column; }
    .img-box { height: 300px; }
    .frame-border { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 70%;
        background: var(--white); flex-direction: column; justify-content: center;
        transition: 0.5s ease; box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .heading { font-size: 2rem; }
    .hero-content h1 { font-size: 2.2rem; }
}

/* --- MOBILE RESPONSIVENESS FIXES (Add to bottom of style.css) --- */

@media (max-width: 768px) {
    
    /* 1. Fix Footer Sizing & Alignment */
    footer {
        padding-top: 30px;
        padding-bottom: 60px; /* Extra space at bottom for mobile scrolling */
    }

    .footer-top {
        flex-direction: column; /* Stack Brand and Whatsapp button */
        text-align: center;
        gap: 20px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column; /* Force single column stack */
        gap: 30px;
        text-align: center;
    }

    /* Center the icons and text in contact list */
    .contact-details li {
        justify-content: center;
    }
    
    /* Center the links list */
    .f-col ul li { 
        display: block; 
    }

    /* Prevent long emails from breaking screen width */
    .contact-details li a {
        word-break: break-all; 
    }

    /* 2. Compress Hero Section Height on Mobile */
    .hero-section {
        height: 70vh; /* Shorter height for phones */
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2rem; /* Smaller font for mobile title */
    }
    
    /* 3. Adjust Padding for Mobile */
    .section-padding {
        padding: 40px 20px; /* Less side padding to give text more room */
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* 4. Fix Navigation Menu Width */
    .nav-links {
        width: 85%; /* Slightly wider menu on mobile for better touch targets */
    }
}