/* ============================================================
   GLOBAL STYLES — District & Sessions Court Larkana
   Shared across all pages
   ============================================================ */

:root {
    --primary: #0b3c5d;
    --secondary: #1f5f8b;
    --accent: #d4af37;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --header-height: 85px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- CONTACT STRIP --- */
.contact-strip {
    background: #072a42;
    color: white;
    font-size: 0.7rem;
    padding: 8px 5%;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- STICKY HEADER --- */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--accent);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.emblem img { height: 60px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

/* --- TWO-LINE SITE TITLE --- */
.site-title { display: flex; flex-direction: column; }
.line-1 {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}
.line-2 {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.9;
}

/* --- DESKTOP NAVIGATION --- */
nav.desktop-nav { background: var(--secondary); }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: center; }
.nav-links { display: flex; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}
.nav-links li.active a { background: rgba(255,255,255,0.1); color: var(--accent); }
.nav-links a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* --- MOBILE MENU BUTTON --- */
.menu-btn {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
    font-size: 1.5rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: 0.3s;
}

/* --- MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--primary);
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-drawer.active { right: 0; }
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2500;
    display: none;
    backdrop-filter: blur(4px);
}
.drawer-overlay.active { display: block; }
.mobile-drawer a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: uppercase;
}
.close-drawer { align-self: flex-end; color: white; font-size: 2rem; cursor: pointer; margin-bottom: 20px; }

/* --- FOOTER --- */
/*footer {*/
/*    background: #072a42;*/
/*    color: white;*/
/*    padding: 50px 5%;*/
/*    text-align: center;*/
/*    border-top: 5px solid var(--accent);*/
/*}*/
/*.footer-branch {*/
/*    opacity: 0.6;*/
/*    font-size: 0.8rem;*/
/*    margin-top: 10px;*/
/*    letter-spacing: 1px;*/
/*}*/
/* ==========================================================================
   MODERN FOOTER STYLES
   ========================================================================== */
.site-footer {
    background: #072a42; /* Deep blue to match contact strip */
    color: #e2e8f0;
    border-top: 5px solid var(--accent);
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

/* Brand Column */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-title {
    display: flex;
    flex-direction: column;
}

.f-line-1 {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.f-line-2 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 400px;
}

/* Headings */
.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two columns for links */
    gap: 12px 20px;
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-links li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Contact Info */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-contact-info li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--accent);
}

/* Bottom Bar */
.footer-bottom {
    background: #041d2f; /* Slightly darker shade for the absolute bottom */
    padding: 25px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.footer-branch strong {
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 800;
}

/* Responsive Footer */
/*@media (max-width: 992px) {*/
/*    .footer-container {*/
/*        padding: 50px 5%;*/
/*    }*/
    
/*    .footer-grid {*/
/*        grid-template-columns: 1fr;*/
/*        gap: 45px;*/
/*    }*/
    
    /*.footer-links {*/
        /*grid-template-columns: 1fr; /* Switch to single column on mobile 
    }

/*    .bottom-container {*/
/*        flex-direction: column;*/
/*        text-align: center;*/
/*        justify-content: center;*/
/*    }*/
    
/*    .menu-btn { display: block; }*/
/*    .line-1 { font-size: 0.65rem; letter-spacing: 1.5px; }*/
/*    .line-2 { font-size: 1.4rem; }*/
/*    .emblem img { height: 50px; }*/
/*}*/


/* ==========================================================================
   MODERN FOOTER STYLES
   ========================================================================== */
.site-footer {
    background: #072a42; /* Deep blue to match contact strip */
    color: #e2e8f0;
    border-top: 5px solid var(--accent);
    font-family: 'Inter', sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 70px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
}

/* Brand Column */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.footer-title {
    display: flex;
    flex-direction: column;
}

.f-line-1 {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.f-line-2 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 400px;
}

/* Headings */
.footer-heading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Quick Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two columns for links */
    gap: 12px 20px;
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-links li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Contact Info */
.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-contact-info li svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--accent);
}

/* Bottom Bar */
.footer-bottom {
    background: #041d2f; /* Slightly darker shade for the absolute bottom */
    padding: 25px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.footer-branch strong {
    color: var(--accent);
    letter-spacing: 1px;
    font-weight: 800;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        padding: 50px 5%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .footer-links {
        grid-template-columns: 1fr; /* Switch to single column on mobile */
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}






/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    nav.desktop-nav { display: none; }
    .menu-btn { display: block; }
    .line-1 { font-size: 0.65rem; letter-spacing: 1.5px; }
    .line-2 { font-size: 1.4rem; }
    .emblem img { height: 50px; }
}
