/* =========================================================
   County Court Records - hybrid template
   (Oakland hero + sidebar, Nevada top disclaimer + tables,
    Dallas address-card grids)
   ========================================================= */

:root {
    --primary: #1d4570;
    --primary-dark: #133050;
    --primary-light: #2f6aaa;
    --accent: #c7a14a;
    --accent-light: #f4ecd6;
    --link: #1d4570;
    --link-hover: #b8231c;
    --text: #1f2937;
    --text-soft: #4b5563;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;
    --bg-panel: #eef2f7;
    --bg-warn: #fff8e1;
    --border: #d6dde6;
    --border-soft: #e6ebf1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 2px 10px rgba(0,0,0,.06);
    --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

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

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

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

/* =========================================================
   TOP DISCLAIMER BAR (Nevada-style)
   ========================================================= */
.top-disclaimer {
    background: var(--bg-warn);
    border-bottom: 1px solid #e8d68a;
    font-size: 13px;
    color: #5a4500;
    padding: 8px 0;
}

.top-disclaimer .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-disclaimer svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: #b08400;
}

.top-disclaimer a {
    color: #5a4500;
    text-decoration: underline;
}

/* =========================================================
   HEADER (Dallas + Oakland clean style)
   ========================================================= */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 14px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo img { height: 52px; width: auto; }

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .2px;
    line-height: 1.15;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav a {
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background .15s, color .15s;
}

.nav a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    border-radius: 4px 4px 0 0;
}

/* =========================================================
   HERO BANNER - Oakland courthouse photo style
   (only on index; inner pages use .page-banner instead)
   ========================================================= */
.hero {
    position: relative;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: relative;
    min-height: 360px;
    background-color: #1d4570;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,32,56,.30) 0%, rgba(15,32,56,.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 0;
}

.hero-overlay .container { color: #fff; }

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hero-address {
    font-size: 16px;
    color: #e4ecf5;
    font-weight: 400;
}

.hero-address strong { color: #fff; }

/* Inner-page banner (slim, no photo) */
.page-banner {
    background: var(--primary);
    color: #fff;
    padding: 36px 0 28px;
    border-bottom: 4px solid var(--accent);
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.page-banner .breadcrumbs-inline {
    color: #b8c7da;
    font-size: 13px;
    margin-bottom: 8px;
}

.page-banner .breadcrumbs-inline a {
    color: #d9e2ee;
    text-decoration: none;
}

.page-banner .breadcrumbs-inline a:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   SEARCH STRIP - full-width band right under hero
   ========================================================= */
.intro-band {
    background: #fff;
    padding: 28px 0 16px;
}

.intro-band p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.search-strip {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 22px 0;
}

.search-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-strip h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.search-strip .search-form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* =========================================================
   MAIN CONTENT - article + sidebar layout
   ========================================================= */
.main {
    padding: 36px 0 48px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

/* Single-column layout (for about/privacy/terms etc) */
.content-layout.single { grid-template-columns: minmax(0, 1fr); }

.content-body {
    min-width: 0;
}

.content-body > section { margin-bottom: 24px; }

/* Content images: keep them inside the column and cap the displayed size so a
   large source screenshot can never render oversized (overrides any width/height
   attributes set in the HTML; aspect ratio is preserved). */
.content-body img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    margin: 18px 0;
    border-radius: 6px;
}

.content-body h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin: 8px 0 14px;
}

.content-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 18px 0 10px;
}

.content-body p {
    margin-bottom: 14px;
    color: var(--text-soft);
}

.content-body ul,
.content-body ol {
    margin: 12px 0 18px 22px;
    color: var(--text-soft);
}

.content-body li { margin-bottom: 6px; }

.content-body ol li { padding-left: 4px; }

.content-body .intro {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 24px;
}

/* Section dividers - Oakland's "* * *" idea */
.section-divider {
    border: 0;
    height: 0;
    border-top: 1px solid var(--border-soft);
    margin: 28px 0;
    position: relative;
    text-align: center;
}

.section-divider::after {
    content: "\2756 \2756 \2756";
    color: var(--accent);
    background: #fff;
    padding: 0 14px;
    position: relative;
    top: -10px;
    font-size: 10px;
    letter-spacing: 6px;
}

/* =========================================================
   SIDEBAR (Oakland-style right column)
   ========================================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 16px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.sidebar-card ul {
    list-style: none;
    margin: 0;
}

.sidebar-card li {
    border-bottom: 1px solid var(--border-soft);
    padding: 6px 0;
    font-size: 14px;
}

.sidebar-card li:last-child { border-bottom: 0; }

.sidebar-card li a {
    text-decoration: none;
    color: var(--text);
    display: block;
}

.sidebar-card li a::before {
    content: "\203A  ";
    color: var(--accent);
    font-weight: 700;
}

.sidebar-card li a:hover { color: var(--primary); }

.sidebar-card img {
    border-radius: 3px;
    margin-bottom: 12px;
}

.sidebar-card .mini-address {
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.55;
}

.sidebar-card .mini-address strong {
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

/* Sidebar search variation */
.sidebar-search .search-widget .search-form {
    grid-template-columns: 1fr;
    gap: 8px;
}

.sidebar-search .search-form-note {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}

/* =========================================================
   COURTHOUSE / CONTACT ADDRESS CARDS (Dallas-style)
   ========================================================= */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 18px 0 24px;
}

.address-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 3px;
    padding: 16px 18px;
}

.address-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.address-card p {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 4px;
    line-height: 1.5;
}

.address-card .phone { color: var(--text); font-weight: 600; }

.address-card a { color: var(--link); }

/* =========================================================
   DATA / INFO TABLES (Nevada-style stats)
   ========================================================= */
.data-table,
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 15px;
}

.data-table th,
.data-table td,
.info-table th,
.info-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
}

.data-table thead th,
.info-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid var(--primary-dark);
}

.data-table th,
.info-table th {
    background: var(--bg-soft);
    color: var(--text);
    font-weight: 600;
    width: 38%;
}

.info-table thead th { background: var(--primary); color: #fff; width: auto; }

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

.data-table tbody tr:nth-child(even) td,
.info-table tbody tr:nth-child(even) td {
    background: var(--bg-soft);
}

/* =========================================================
   CALLOUTS / NOTICE BOXES
   ========================================================= */
.notice {
    padding: 14px 16px;
    border-radius: 3px;
    margin: 18px 0;
    font-size: 15px;
    line-height: 1.55;
    border-left: 4px solid var(--primary);
    background: var(--bg-soft);
    color: var(--text);
}

.notice strong { color: var(--text); }

.notice-info { border-left-color: var(--primary-light); background: #ecf3fb; color: #133050; }
.notice-warning { border-left-color: var(--accent); background: var(--accent-light); color: #6b4f00; }
.notice-important { border-left-color: #b8231c; background: #fdecea; color: #6b1a1a; }

/* =========================================================
   QUICK STATS BAR (small numbers row, optional under hero)
   ========================================================= */
.quick-stats {
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 0;
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    text-align: center;
}

.quick-stats .stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.quick-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover { background: var(--bg-soft); }

/* =========================================================
   SEARCH WIDGET (markup from search.js - DO NOT change names)
   ========================================================= */
.search-widget { width: 100%; }

.search-widget .search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.search-widget .search-input,
.search-widget .search-select,
.search-widget .search-button {
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
}

.search-widget .search-button {
    background: var(--accent);
    color: #2c2000;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 12px 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.search-widget .search-button:hover { background: #b48f3a; }

/* =========================================================
   DIRECTIONS BAND + EMBEDDED MAP (index page footer area)
   ========================================================= */
.directions {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 36px 0 32px;
}

.directions h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px;
}

.directions > .container > p {
    color: var(--text-soft);
    margin-bottom: 22px;
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 6px;
}

.directions-grid h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent);
}

.directions-grid p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-soft);
    margin: 0;
}

.map-embed {
    line-height: 0;
}

.map-embed iframe {
    display: block;
    width: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .directions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .directions-grid { grid-template-columns: 1fr; }
    .map-embed iframe { height: 220px; }
}

.search-widget .search-input:focus,
.search-widget .search-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(29,69,112,.18);
}

/* =========================================================
   FOOTER (Nevada/Dallas multi-column with prominent legal)
   ========================================================= */
.footer {
    background: #1a2433;
    color: #c2cad6;
    margin-top: 40px;
}

.footer-legal {
    background: #131b27;
    border-bottom: 1px solid #2a3344;
    padding: 18px 0;
    font-size: 13px;
    color: #98a3b3;
    line-height: 1.6;
}

.footer-legal strong { color: #fff; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 0;
}

.footer-cols h5 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 7px; font-size: 14px; }
.footer-cols a { color: #c2cad6; text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }

.footer-brand p { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }

.footer-bottom {
    background: #0e1622;
    border-top: 1px solid #2a3344;
    padding: 14px 0;
    text-align: center;
    font-size: 12px;
    color: #7a8597;
}

.footer-bottom a { color: #98a3b3; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 30px; }
    .hero-image { min-height: 260px; }
}

@media (max-width: 700px) {
    .nav a { padding: 6px 10px; font-size: 13px; }
    .search-widget .search-form { grid-template-columns: 1fr; }
    .search-widget .search-button { padding: 14px; }
    .content-body h2 { font-size: 22px; }
    .hero h1 { font-size: 24px; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .page-banner { padding: 24px 0 20px; }
    .page-banner h1 { font-size: 24px; }
}
