/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --navy-dark: #12213b;
    --navy-light: #182b4a; 
    --gold: #cca550;
    --gold-hover: #b89345;
    --text-dark: #222222;
    --text-grey: #666666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy-dark); font-weight: 700; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Buttons */
.btn-gold-solid {
    background-color: var(--gold);
    color: var(--bg-white);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-gold-solid:hover { 
    background-color: var(--gold-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(204, 165, 80, 0.4); 
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    padding: 10px 26px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-outline:hover { 
    background-color: rgba(255,255,255,0.1); 
    transform: translateY(-3px);
}

/* =========================================
   2. NAVBAR
   ========================================= */
.navbar {
    background-color: var(--bg-white);
    padding: 0.8rem 0;
    border-bottom: 1px solid #eaeaea;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    transition: all 0.4s ease;
}
.navbar.scrolled {
    padding: 0.4rem 0; 
    box-shadow: 0 4px 25px rgba(0,0,0,0.08); 
    border-bottom: 1px solid transparent;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
}

.logo-area { display: flex; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { max-height: 100px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-family: var(--font-heading); color: var(--navy-dark); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; }
.brand-subtitle { font-size: 0.7rem; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

.nav-links { display: flex; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--navy-dark);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 2rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--navy-dark);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.mobile-menu-btn:hover { color: var(--gold); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(to right, rgba(18, 33, 59, 0.9), rgba(18, 33, 59, 0.8)), url('../images/law-hero.jpg') center/cover;
    padding: 8rem 5%;
    text-align: center;
    color: var(--bg-white);
}
.hero-content { max-width: 800px; margin: 0 auto; }

@keyframes fadeUpCascade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
    opacity: 0; 
    animation: fadeUpCascade 0.8s ease forwards 0.2s; 
}
.hero h1 { color: var(--bg-white); font-size: 3.5rem; margin-bottom: 1rem; opacity: 0; animation: fadeUpCascade 0.8s ease forwards 0.4s; }
.hero p { font-size: 1.1rem; margin-bottom: 2.5rem; color: #d1d5db; opacity: 0; animation: fadeUpCascade 0.8s ease forwards 0.6s; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; opacity: 0; animation: fadeUpCascade 0.8s ease forwards 0.8s; }

/* =========================================
   4. TRUSTED PARTNERS & STATS
   ========================================= */
.trusted-partners { padding: 5rem 0; background-color: var(--bg-white); }
.split-layout { display: flex; justify-content: space-between; align-items: center; gap: 4rem; }
.align-start { align-items: flex-start; }
.text-side { flex: 1; }
.text-side h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.gold-line { width: 40px; height: 3px; background-color: var(--gold); margin-bottom: 1.5rem; }
.partner-signature { margin-top: 1.5rem; }
.partner-signature strong { color: var(--navy-dark); font-size: 1.1rem; }

.stats-side { flex: 1; display: flex; gap: 20px; }
.stat-box { background-color: #f4f4f4; padding: 2.5rem 1.5rem; text-align: center; flex: 1; }
.stat-gold { display: block; font-family: var(--font-heading); color: var(--gold); font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; }
.stat-sub { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-grey); }

/* =========================================
   5. NOTICE BOARD SECTION
   ========================================= */
.notice-board-section {
    background-color: var(--bg-light);
    padding: 2rem 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.notice-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.notice-header h3 { font-size: 1.2rem; margin: 0; }
.live-pulse {
    width: 10px; height: 10px; background-color: #e74c3c; border-radius: 50%;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}
#notice-board { background: var(--bg-white); padding: 1.5rem; border-left: 4px solid var(--gold); box-shadow: 0 2px 5px rgba(0,0,0,0.03); }

/* =========================================
   6. PRACTICE AREAS (2x2 GRID)
   ========================================= */
.practice-areas { padding: 5rem 0; background-color: var(--bg-light); }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.section-header p { margin-bottom: 3rem; }

.services-grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
    background-color: var(--bg-white); padding: 2.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border-top: 3px solid transparent; transition: all 0.3s ease;
}
.service-card:hover { border-top: 3px solid var(--gold); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.icon-gold { color: var(--gold); font-size: 2rem; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; }

.read-more { display: inline-block; margin-top: 1rem; color: var(--navy-dark); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: color 0.3s ease; }
.read-more i { margin-left: 5px; font-size: 0.8rem; transition: transform 0.3s ease; }
.read-more:hover { color: var(--gold); }
.read-more:hover i { transform: translateX(5px); }

/* =========================================
   7. CONTACT SECTION
   ========================================= */
.contact-section { padding: 6rem 0; background-color: var(--navy-dark); color: var(--bg-white); }
.contact-info h2 { color: var(--bg-white); font-size: 2.5rem; margin-bottom: 1rem; }
.contact-info p { color: #a1aab8; margin-bottom: 2rem; }
.address-block { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }
.address-block .icon-gold { margin-bottom: 0; font-size: 1.2rem; margin-top: 4px; }
.address-block span { color: #a1aab8; }
.address-block strong { font-weight: 500; font-size: 1.1rem; }

.contact-form-card { background-color: var(--bg-white); padding: 2.5rem; border-top: 5px solid var(--gold); width: 100%; }
.contact-form-card h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.contact-form-card input, .contact-form-card select { width: 100%; padding: 12px 15px; margin-bottom: 1rem; border: 1px solid #ddd; font-family: var(--font-body); font-size: 0.95rem; }
.contact-form-card input:focus, .contact-form-card select:focus { outline: none; border-color: var(--gold); }
.full-width { width: 100%; padding: 15px; font-size: 1rem; }

/* =========================================
   8. FOOTER
   ========================================= */
.site-footer { background-color: var(--navy-dark); color: #a1aab8; padding: 5rem 0 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--bg-white); font-size: 1.1rem; margin-bottom: 1.2rem; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #a1aab8; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; padding-top: 1.5rem; font-size: 0.85rem; }

/* =========================================
   9. SCROLL ANIMATIONS
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }
.services-grid-2x2 .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid-2x2 .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid-2x2 .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid-2x2 .service-card:nth-child(4) { transition-delay: 0.45s; }

/* =========================================
   10. INNER PAGES & MAP CARDS
   ========================================= */
.inner-hero { background: var(--navy-dark); padding: 6rem 5% 4rem 5%; color: var(--bg-white); }
.inner-hero h1 { color: var(--bg-white); font-size: 3rem; margin-bottom: 0.5rem; }
.inner-hero p { color: var(--gold); letter-spacing: 1px; font-size: 1.1rem; }

.locations-section { padding: 5rem 0; background-color: var(--bg-light); }
.locations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.location-card { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-bottom: 4px solid var(--gold); transition: transform 0.3s ease; }
.location-card:hover { transform: translateY(-5px); }
.location-details { padding: 2.5rem; }
.location-details h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.address-text { font-size: 1rem; color: var(--text-grey); margin-bottom: 1.5rem; line-height: 1.5; }
.address-text .icon-gold { margin-right: 8px; font-size: 1.1rem; }
.map-contact-link {
    display: flex;
    align-items: center; /* Keeps the icon perfectly centered with the text */
    color: var(--navy-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}
.map-contact-link i {
    color: var(--gold);
    margin-right: 10px;
    min-width: 15px;
    text-align: center;
}
.map-contact-link:hover { color: var(--gold); }

/* =========================================
   11. DETAILED PRACTICE AREAS
   ========================================= */
.practice-row { padding: 6rem 0; }
.practice-row.bg-light { background-color: var(--bg-light); }
.align-center { align-items: center; }
.row-reverse { flex-direction: row-reverse; }
.practice-image { flex: 1; }
.practice-image img { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-bottom: 5px solid var(--gold); }
.practice-content { flex: 1.2; }
.practice-list { list-style: none; margin-top: 1.5rem; margin-bottom: 2rem; }
.practice-list li { margin-bottom: 0.8rem; color: var(--navy-dark); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.practice-list li i { color: var(--gold); font-size: 0.9rem; }

/* =========================================
   12. ABOUT PAGE & CORE VALUES
   ========================================= */
.director-title { color: var(--gold); font-weight: 700; letter-spacing: 2px; font-size: 0.85rem; text-transform: uppercase; }
.director-name { font-size: 2.4rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.about-buttons { display: flex; gap: 15px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card { background: var(--bg-white); padding: 3rem 2rem; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-top: 3px solid var(--gold); transition: transform 0.3s ease; }
.value-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.value-header {
    display: flex;
    flex-direction: column; /* THIS FIXES IT: Stacks the icon on top of the text */
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}
.value-card i {
    font-size: 2.5rem; /* Made the icon slightly bigger to look premium when stacked */
    color: var(--navy-dark);
    margin: 0; 
}
.value-header h3 {
    margin-bottom: 0;
    font-size: 1.15rem;
    white-space: nowrap; /* Forces the text onto 1 line */
}

/* =========================================
   13. MOBILE RESPONSIVE 
   ========================================= */
@media (max-width: 900px) {
    /* MOBILE HAMBURGER MENU */
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--navy-dark); padding: 0; max-height: 0; overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s ease;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }
    .nav-links.active { max-height: 300px; padding: 10px 0; border-top: 2px solid var(--gold); }
    .nav-links a { color: var(--bg-white); margin: 0; padding: 15px 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); display: block; }
    .nav-links a:hover { color: var(--gold); background-color: rgba(255,255,255,0.02); }

    /* HEADER & HERO FIXES */
    .nav-container { padding: 0 10px; gap: 10px; }
    .brand-logo { max-height: 58px; }
    .logo-link { gap: 8px; }
    .brand-title { font-size: 0.85rem; letter-spacing: 0; white-space: nowrap; line-height: 1.1; }
    .brand-subtitle { font-size: 0.55rem; letter-spacing: 1px; }
    .top-btn { display: inline-block; padding: 8px 12px; font-size: 0.75rem; white-space: nowrap; }

    .hero { padding: 0 5%; min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; }
    .force-oneline { white-space: nowrap; font-size: 0.7rem; letter-spacing: 1px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .hero-buttons a { width: 100%; text-align: center; }

    /* LAYOUT & GRID FIXES */
    .split-layout { flex-direction: column; gap: 2.5rem; }
    .stats-side { flex-direction: column; width: 100%; gap: 15px; } 
    
    .about-image { width: 100%; }
    .about-image img { height: auto !important; width: 100%; max-width: 100%; object-fit: cover; }

    .services-grid-2x2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .service-card { padding: 15px 10px; } 
    .icon-gold { font-size: 1.3rem; margin-bottom: 0.5rem; }
    .service-card h3 { font-size: 0.85rem; margin-bottom: 0.5rem; }
    .service-card p { font-size: 0.7rem; line-height: 1.4; }
    .service-card .read-more { font-size: 0.75rem; margin-top: 0.5rem; }

    .contact-form-card { padding: 1.5rem; }
    .address-block { flex-direction: column; gap: 5px; }
    .address-block .icon-gold { margin-bottom: 5px; }

  /* INNER PAGES & MAPS MOBILE FIX */
    .locations-grid { grid-template-columns: 1fr; gap: 2rem; }
    .inner-hero h1 { font-size: 2.2rem; }
    
    /* Shrink the contact links on narrow screens so they fit on 1 line */
    .map-contact-link {
        font-size: 0.75rem; /* Small enough to fit 38 characters */
        white-space: nowrap; /* Strictly forces it to stay on a single line */
    }
    .map-contact-link i {
        font-size: 0.9rem; /* Keeps the icon slightly larger than the text */
        margin-right: 6px;
    }

    /* PRACTICE AREAS DETAILED ROWS MOBILE FIX */
    .practice-row { padding: 4rem 0; }
    .row-reverse { flex-direction: column; }
    .practice-image img { height: 300px; margin-bottom: 2rem; }

    /* ABOUT PAGE MOBILE FIXES */
   /* ABOUT PAGE MOBILE FIXES */
    .director-header { 
        display: flex; 
        flex-direction: column; /* Stacks the title neatly above the name */
        align-items: flex-start; 
        gap: 5px; 
    }
    .director-title { 
        font-size: 0.75rem; 
        white-space: nowrap; 
    }
    .director-name { 
        font-size: 1.45rem; /* Scaled down just a fraction so it perfectly fits */
        margin: 0; 
        white-space: nowrap !important; /* Strictly forces "R." and "Nemadzivhanani" to stay together */
    }
    
    .about-buttons { flex-direction: row; gap: 10px; width: 100%; }
    .about-buttons .btn-gold-solid, .about-buttons .btn-outline { flex: 1; text-align: center; padding: 12px 5px; font-size: 0.8rem; white-space: nowrap; }

    .values-grid { grid-template-columns: 1fr; gap: 20px; }
    .value-card { text-align: left; padding: 2rem; }
    .value-header { justify-content: flex-start; }
}