/*
Theme Name: Ohio County Circuit Clerk
Theme URI: http://circuitclerk.ohiocountywv.org/
Author: Ohio County Circuit Clerk
Author URI: http://circuitclerk.ohiocountywv.org/
Description: A WordPress theme that mimics the look and feel of the Ohio County Circuit Clerk website (http://circuitclerk.ohiocountywv.org/). Features the dark header with clerk photo and WV state logo, image-button navigation bar, two-column layout with main content and sidebar, and footer with quick links.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohio-circuit-clerk
Tags: government, legal, two-columns, custom-header, custom-menu, footer-widgets
*/

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

html {
    font-size: 14px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.5;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #004499;
}

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

/* ============================================================
   SITE WRAPPER
   ============================================================ */
#page {
    width: 100%;
    max-width: 1125px;
    margin: 0 auto;
    background: #ffffff;
}

/* ============================================================
   SITE HEADER
   ============================================================ */
#masthead {
    background-color: #000055;
    color: #ffffff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    border-bottom: 3px solid #444;
}

.site-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.site-header-photo {
    flex-shrink: 0;
}

.site-header-photo img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid #555;
    display: block;
}

.site-header-title-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #cccccc;
    text-decoration: none;
}

.site-header-logo {
    flex-shrink: 0;
}

.site-header-logo img {
    height: 45px;
    width: auto;
}

/* Clerk name below header */
.clerk-name-bar {
    background-color: #000055;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    padding: 6px 15px;
    border-bottom: 2px solid #444;
}

/* ============================================================
   NAVIGATION BAR (Image Buttons)
   ============================================================ */
#nav-image-buttons {
    background-color: #000055;
    padding: 4px 4px;
    border-bottom: 2px solid #555;
}

#nav-image-buttons .nav-buttons-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-start;
}

#nav-image-buttons a {
    display: inline-block;
    line-height: 0;
}

#nav-image-buttons a img {
    display: block;
    border: 1px solid #666;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

#nav-image-buttons a:hover img {
    opacity: 0.85;
    border-color: #ffcc00;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#content {
    display: flex;
    gap: 0;
    padding: 15px;
    align-items: flex-start;
}

/* Primary content column */
#primary {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 15px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
#secondary {
    flex: 0 0 280px;
    width: 280px;
    min-width: 240px;
}

/* Additional Court Information sidebar box */
.sidebar-court-info {
    background-color: #ffffcc;
    border: 2px solid #cccc00;
    padding: 12px 14px;
    font-size: 0.9em;
    line-height: 1.6;
}

.sidebar-court-info h2,
.sidebar-court-info .sidebar-heading {
    background-color: #003366;
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    padding: 6px 8px;
    margin: -12px -14px 10px -14px;
    letter-spacing: 0.03em;
}

.sidebar-court-info .clerk-name {
    font-weight: bold;
    text-align: center;
    display: block;
    margin-bottom: 2px;
    color: #333;
}

.sidebar-court-info .clerk-title {
    color: #cc0000;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-bottom: 8px;
}

.sidebar-court-info .address-block {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.sidebar-court-info .phone-block {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.sidebar-court-info p {
    margin-bottom: 8px;
    color: #333;
}

.sidebar-court-info a {
    color: #0066cc;
}

.sidebar-court-info .deputies-section {
    margin-top: 10px;
    border-top: 1px solid #cccc00;
    padding-top: 8px;
}

.sidebar-court-info .deputy-label {
    font-weight: bold;
    color: #003366;
}

/* ============================================================
   ENTRY / POST CONTENT
   ============================================================ */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #003366;
    margin-bottom: 10px;
    margin-top: 15px;
}

.entry-content h2 {
    font-size: 1.2em;
    color: #cc6600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
}

.entry-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.entry-content ul,
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.entry-content li {
    margin-bottom: 4px;
}

.entry-content strong {
    color: #003366;
}

.entry-content a {
    color: #0066cc;
    font-weight: bold;
}

.entry-content hr {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 15px 0;
}

/* Page title on sub-pages */
.page-title-bar {
    background-color: #000055;
    color: #ffcc00;
    font-size: 1.1em;
    font-weight: bold;
    padding: 6px 15px;
    margin-bottom: 0;
}

/* Home button on sub-pages */
.home-button-wrap {
    margin: 10px 0;
}

.home-button-wrap a img {
    border: 1px solid #666;
}

.home-button-wrap a:hover img {
    border-color: #ffcc00;
    opacity: 0.85;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background-color: #000055;
    color: #cccccc;
    padding: 8px 15px;
    font-size: 0.85em;
    border-top: 3px solid #444;
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-copyright {
    color: #999999;
    font-size: 0.85em;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    padding: 6px 0;
    border-top: 1px solid #444;
    width: 100%;
}

.footer-links a {
    color: #aaaaaa;
    font-size: 0.85em;
    text-decoration: none;
}

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

/* ============================================================
   WORDPRESS MENU (fallback text nav)
   ============================================================ */
.main-navigation {
    background-color: #333333;
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.9em;
    text-decoration: none;
    border-right: 1px solid #555;
}

.main-navigation ul li a:hover {
    background-color: #555555;
    color: #ffcc00;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333333;
    min-width: 180px;
    z-index: 999;
    border: 1px solid #555;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li a {
    border-right: none;
    border-bottom: 1px solid #555;
}

/* ============================================================
   WIDGETS
   ============================================================ */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1em;
    font-weight: bold;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 768px) {
    #page {
        max-width: 100%;
    }

    #masthead {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .site-header-inner {
        flex-direction: column;
        align-items: center;
    }

    .site-title {
        font-size: 1.4em;
        text-align: center;
    }

    #content {
        flex-direction: column;
        padding: 10px;
    }

    #primary {
        padding-right: 0;
        width: 100%;
    }

    #secondary {
        flex: none;
        width: 100%;
        min-width: unset;
    }

    #nav-image-buttons .nav-buttons-inner {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

@media screen and (max-width: 480px) {
    .site-title {
        font-size: 1.1em;
    }

    #nav-image-buttons a img {
        height: 28px;
        width: auto;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    #masthead,
    #nav-image-buttons,
    #colophon,
    .main-navigation {
        display: none;
    }

    #content {
        flex-direction: column;
    }

    #secondary {
        width: 100%;
    }
}
