/* ========================================
   CSS VARIABLES - Louisiana Government Style
   Modeled after lamd.uscourts.gov / USWDS
   ======================================== */
:root {
    --primary: #1a4480;
    --primary-dark: #162e51;
    --primary-light: #2b6cb0;
    --accent: #005ea2;
    --link-color: #005ea2;
    --link-hover: #1a4480;
    --text-dark: #1b1b1b;
    --text-body: #333333;
    --text-light: #71767a;
    --text-muted: #a0a0a0;
    --bg-light: #f0f0f0;
    --bg-white: #ffffff;
    --bg-banner: #f0f0f0;
    --bg-section: #fafbfd;
    --border: #dfe1e2;
    --border-light: #e6e6e6;
    --border-accent: #1a4480;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 4px rgba(0,0,0,0.07);
    --radius: 3px;
    --max-width: 1100px;
    --content-width: 840px;
    --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    margin: 0 0 16px 24px;
}

li {
    margin-bottom: 6px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TRUST BANNER - Top Slim Bar
   Like the .gov "official website" banner
   ======================================== */
.trust-banner {
    background-color: #f0f0f0;
    border-bottom: 1px solid #dfe1e2;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

.trust-banner .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-banner-icon {
    font-size: 15px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ========================================
   HEADER - Two-Level Government Style
   Top row: logo/site name
   Bottom row: navigation bar
   ======================================== */
.header {
    background-color: var(--primary-dark);
    padding: 0;
}

/* Top row with logo */
.header-top {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Fallback single-row header (backwards compat) */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

/* ========================================
   NAVIGATION - Own Row Below Header
   Like court site horizontal nav bar
   ======================================== */
.nav-bar {
    background-color: var(--primary);
}

.nav-bar .container {
    display: flex;
    align-items: stretch;
}

.nav-bar .nav {
    display: flex;
    gap: 0;
}

.nav-bar .nav a {
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
}

.nav-bar .nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.nav-bar .nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom-color: #ffffff;
}

/* Inline nav fallback (for single-row header) */
.header-inner .nav {
    display: flex;
    gap: 0;
}

.header-inner .nav a {
    padding: 20px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.header-inner .nav a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.header-inner .nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #ffffff;
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

/* When breadcrumbs are inside .container directly */
.container > .breadcrumbs {
    background-color: transparent;
}

.breadcrumbs a {
    color: var(--link-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 8px;
    color: #c0c0c0;
    font-size: 11px;
}

/* ========================================
   MAIN CONTENT
   Body has light gray bg; main content
   sits in a white panel (like court sites)
   ======================================== */
.main {
    padding: 0 0 40px;
    background-color: var(--bg-light);
}

/* White content panel that holds all sections */
.main > .container {
    background-color: var(--bg-white);
    padding: 32px 40px 40px;
    border: 1px solid var(--border);
    border-top: none;
}

/* ========================================
   CONTENT SECTIONS
   No heavy borders - just heading hierarchy
   and whitespace, like a government page
   ======================================== */
.content-section {
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.content-section + .content-section {
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.content-section h1 {
    font-family: var(--font-serif);
    font-size: 1.9em;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
}

.content-section h2 {
    font-family: var(--font-serif);
    font-size: 1.4em;
    font-weight: 400;
    color: var(--text-dark);
    margin: 28px 0 14px;
    line-height: 1.35;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section h3 {
    font-family: var(--font-serif);
    font-size: 1.15em;
    font-weight: 400;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-body);
    line-height: 1.7;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section img {
    display: block;
    max-width: 80%;
    margin: 20px auto;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.content-section ul,
.content-section ol {
    margin: 0 0 16px 28px;
    line-height: 1.7;
}

.content-section li {
    margin-bottom: 6px;
    color: var(--text-body);
}

/* ========================================
   STATS BOX - Info Panel
   Left accent border like court info blocks
   ======================================== */
.stats-box {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 26px;
    margin: 24px 0;
}

.stats-box h3 {
    font-family: var(--font-serif);
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.stat-item {
    text-align: center;
    padding: 16px 10px;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.7em;
    font-weight: 400;
    color: var(--primary);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   INFO TABLE - Court Info Style
   Clean rows like court contact blocks
   ======================================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    border: 1px solid var(--border);
}

.info-table th,
.info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    line-height: 1.6;
    vertical-align: top;
}

.info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
    width: 30%;
}

.info-table td {
    color: var(--text-body);
    background-color: var(--bg-white);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* ========================================
   LINK GRID (Parishes, Cities)
   ======================================== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.link-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    text-align: left;
    text-decoration: none;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-card::before {
    content: "\203A";
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.link-card:hover {
    text-decoration: none;
    background-color: #f8f9fa;
    border-color: var(--primary);
}

.link-card-title {
    font-weight: 600;
    color: var(--link-color);
    font-size: 14px;
}

.link-card:hover .link-card-title {
    color: var(--primary);
    text-decoration: underline;
}

/* Compact grid for large lists */
.link-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.link-grid-compact .link-card {
    padding: 10px 14px;
}

.link-grid-compact .link-card-title {
    font-size: 13px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   FOOTER - Government Multi-Section Style
   ======================================== */
.footer {
    background-color: var(--primary-dark);
    padding: 32px 0 0;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-disclaimer {
    max-width: 480px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   SEARCH FORM COMPONENT (Original)
   ======================================== */
.search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-form-row.stacked {
    flex-direction: column;
}

.search-form input[type="text"],
.search-form select {
    flex: 1;
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-white);
    color: var(--text-body);
}

.search-form input[type="text"]:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 94, 162, 0.2);
}

.search-form button {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans);
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.15s;
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

/* ========================================
   SEARCH WIDGET (JS Generated)
   ======================================== */
.search-widget {
    width: 100%;
}

.search-widget .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.search-widget .search-input,
.search-widget .search-select,
.search-widget .search-button {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-white);
    box-sizing: border-box;
    color: var(--text-body);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 94, 162, 0.2);
}

.search-widget .search-button {
    background-color: var(--accent);
    color: var(--bg-white);
    border: 1px solid var(--accent);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
    padding-left: 24px;
    padding-right: 24px;
}

.search-widget .search-button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Search Embed Box */
.search-embed {
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 60px;
    margin: 0;
    position: relative;
}

.search-embed h3 {
    font-family: var(--font-serif);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.15em;
    font-weight: 400;
    color: var(--text-dark);
}

/* Sponsored Results note */
.search-embed p.search-form-note {
    position: absolute;
    left: 24px;
    bottom: 12px;
    font-size: 12px;
    color: #c0c0c0;
    margin: 0;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-light);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 768px) {
    .main > .container {
        padding: 24px 20px 32px;
    }

    .header-top {
        padding: 12px 0;
    }

    .header-top .container {
        justify-content: center;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-bar .nav,
    .header-inner .nav {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-bar .nav a,
    .header-inner .nav a {
        padding: 10px 14px;
        font-size: 13px;
    }

    .content-section h1 {
        font-size: 1.5em;
    }

    .content-section h2 {
        font-size: 1.2em;
    }

    .content-section img {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-disclaimer {
        text-align: center;
    }

    .link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-banner .container {
        justify-content: center;
        font-size: 12px;
    }
}

/* Search Widget Stacks on Mobile */
@media (max-width: 700px) {
    .search-widget .search-form {
        grid-template-columns: 1fr;
    }

    .search-embed {
        padding: 22px 18px 50px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    .main > .container {
        padding: 18px 16px 28px;
        border-left: none;
        border-right: none;
    }

    .logo img {
        height: 30px;
    }

    .content-section h1 {
        font-size: 1.3em;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .link-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-table th,
    .info-table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .info-table th {
        width: 38%;
    }

    .stats-box {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-number {
        font-size: 1.4em;
    }
}
