/*
Theme Name: Class Action Settlement Theme
Theme URI: https://example.com/settlement-theme
Author: Strategic Claims
Author URI: https://example.com
Description: A professional WordPress theme designed for class action settlement administration websites. Built for WordPress Multisite with customizable case details, document management, and claim filing functionality.
Version: 2.7.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: settlement-theme
Tags: class-action, legal, settlement, multisite, custom-menu, custom-logo

This theme is designed for class action settlement websites and is fully compatible with WordPress Multisite installations.
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (for easy customization)
   ============================================ */
:root {
    --primary-color: #5c6847;
    --accent-color: #c9a86c;
    --accent-hover: #b08d55;
    --text-dark: #1f2937;
    --text-medium: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #faf8f5;
    --bg-white: #fff;
    --bg-gray: #f9fafb;
    --bg-table: #f3f4f6;
    --border-light: #eee;
    --border-medium: #e5e7eb;
    --border-dark: #d1d5db;
    --border-accent: #ebe5dd;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1100px;
}

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

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: -0.1px;
}

/* Strong emphasis - make bold more visible */
strong, b {
    font-weight: 700;
    color: #1f2937;
}

/* Italic emphasis - make it stand out more */
em, i {
    font-style: italic;
    font-weight: 500;
}

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

/* ============================================
   LAYOUT
   ============================================ */
.site-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-accent);
    border-right: 1px solid var(--border-accent);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-white);
    padding: 50px 60px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.site-header h1,
.site-title {
    margin: 0;
    font-size: 34px;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

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

.site-title a:hover {
    color: var(--accent-color);
}

/* Site Tagline/Description */
.site-description {
    margin: 10px 0 0 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

/* Custom Logo */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
    font-family: var(--font-family);
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.language-current:hover {
    background: var(--bg-gray);
    border-color: var(--border-dark);
}

.language-current .lang-flag {
    font-size: 18px;
}

.language-current .lang-arrow {
    font-size: 10px;
    color: var(--text-light);
    margin-left: 4px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    display: none;
    min-width: 160px;
    overflow: hidden;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

.language-option:hover {
    background: var(--bg-light);
}

.language-option .lang-flag {
    font-size: 18px;
}

/* Mobile language switcher */
@media (max-width: 768px) {
    .language-switcher {
        position: static;
        margin: 10px auto;
        text-align: center;
    }
    
    .language-current {
        display: inline-flex;
        justify-content: center;
    }
    
    .language-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    background: var(--bg-white);
    padding: 0 60px;
    border-bottom: 1px solid var(--border-light);
}

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

.main-navigation ul ul {
    display: none;
    position: absolute;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

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

.main-navigation a {
    display: block;
    padding: 24px 0;
    color: var(--menu-color, var(--text-light));
    text-decoration: none;
    font-weight: var(--menu-font-weight, 500);
    font-size: var(--menu-font-size, 13px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation ul ul a {
    padding: 10px 20px;
    border-bottom: none;
}

.main-navigation a:hover {
    color: var(--menu-active-color, var(--accent-color));
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a.active {
    color: var(--menu-active-color, var(--text-dark));
    border-bottom: 2px solid var(--menu-active-color, var(--accent-color));
}

.main-navigation ul ul .current-menu-item > a,
.main-navigation ul ul .current_page_item > a {
    border-bottom: none;
    color: var(--menu-active-color, var(--accent-color));
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-dark);
}

/* ============================================
   CONTENT AREA
   ============================================ */
.site-content {
    padding: 60px;
    flex: 1;
}

.content-area {
    max-width: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
}

h1 { font-size: 32px; margin-top: 0; }
h2 { font-size: 26px; margin-top: 2.5rem; }
h3 { font-size: 22px; margin-top: 2rem; }
h4 { font-size: 18px; margin-top: 1.5rem; }

.entry-title {
    margin-top: 0;
}

p {
    margin-bottom: 1.6rem;
    color: var(--text-medium);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* ============================================
   TABLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
    font-size: 14px;
}

th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--bg-table);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--bg-table);
    color: #4b5563;
}

tr:hover td {
    background: var(--bg-table);
}

/* Important Dates Table - 3 Column */
.important-dates-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2.5rem;
}

.important-dates-table th {
    text-align: left;
    padding: 16px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--bg-table);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.important-dates-table th:first-child {
    width: 30%;
}

.important-dates-table th:nth-child(2) {
    width: 25%;
}

.important-dates-table th:nth-child(3) {
    width: 45%;
}

.important-dates-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    vertical-align: top;
}

.important-dates-table tr:hover td {
    background: var(--bg-table);
}

/* Strong emphasis in tables */
.important-dates-table strong,
.important-dates-table b {
    font-weight: 700;
    color: #1f2937;
}

.important-dates-table em,
.important-dates-table i {
    font-style: italic;
    font-weight: 600;
    color: #1f2937;
}

/* ============================================
   LEGAL RIGHTS TABLE (Special Styled Table)
   ============================================ */
.settlement-additional-content {
    margin-top: 2.5rem;
}

.legal-rights-table,
.rights-options-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 14px;
    border: 2px solid #5c6847;
}

.legal-rights-table thead th,
.rights-options-table thead th {
    background: #5c6847;
    color: white;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.legal-rights-table tbody tr,
.rights-options-table tbody tr {
    border-bottom: 1px solid #ccc;
}

.legal-rights-table tbody tr:nth-child(odd),
.rights-options-table tbody tr:nth-child(odd) {
    background: #e8e8e8;
}

.legal-rights-table tbody tr:nth-child(even),
.rights-options-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

.legal-rights-table tbody td,
.rights-options-table tbody td {
    padding: 16px;
    vertical-align: top;
    border: none;
    border-right: 1px solid #ccc;
}

.legal-rights-table tbody td:last-child,
.rights-options-table tbody td:last-child {
    border-right: none;
}

.legal-rights-table tbody td:first-child,
.rights-options-table tbody td:first-child {
    font-weight: 600;
    width: 35%;
    background: rgba(0,0,0,0.03);
}

.legal-rights-table tbody tr:nth-child(odd) td:first-child,
.rights-options-table tbody tr:nth-child(odd) td:first-child {
    background: #ddd;
}

.legal-rights-table tbody tr:nth-child(even) td:first-child,
.rights-options-table tbody tr:nth-child(even) td:first-child {
    background: #e8e8e8;
}

/* ============================================
   LISTS
   ============================================ */
ul, ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

ul {
    list-style-type: disc;
}

li {
    margin-bottom: 10px;
}

/* ============================================
   NOTICE BOX (Highlighted Content)
   ============================================ */
.notice-box,
.settlement-notice {
    background-color: var(--bg-white);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.notice-box p,
.settlement-notice p {
    margin: 0;
    font-weight: bold;
    color: var(--primary-color);
}

/* Plain notice style (no shading/border) */
.settlement-notice-plain {
    padding: 1rem 0;
    margin-bottom: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.settlement-notice-plain p {
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   SEPARATOR LINE
   ============================================ */
.settlement-separator {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 2rem auto;
    max-width: var(--max-width);
}

/* ============================================
   HERO / INTRO SECTION
   ============================================ */
.settlement-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.settlement-hero h1,
.settlement-hero .notice-heading {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.settlement-hero .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.settlement-hero .additional-notice {
    font-size: 15px;
    color: var(--primary-color);
    margin: 0 0 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    line-height: 1.6;
}

.settlement-hero .disclaimer {
    font-style: italic;
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/* ============================================
   IMPORTANT DATES SECTION
   ============================================ */
.important-dates-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.important-dates-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.important-dates-intro {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.important-dates-intro p {
    margin-bottom: 0.75rem;
}

.important-dates-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SETTLEMENT SUMMARY SECTION
   ============================================ */
.settlement-summary {
    margin: 2rem 0;
    padding: 0;
}

.settlement-summary-content {
    line-height: 1.7;
}

.settlement-summary-content p {
    margin-bottom: 1.5rem;
}

.settlement-summary-content li {
    margin-bottom: 1.5rem;
    list-style-position: outside;
    margin-left: 1.5rem;
}

.settlement-summary-content ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.settlement-summary-content ol > li {
    counter-increment: item;
    margin-left: 0;
    padding-left: 2rem;
    position: relative;
}

.settlement-summary-content ol > li:before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.settlement-summary-content b,
.settlement-summary-content strong {
    font-weight: 600;
}

.settlement-summary-content u {
    text-decoration: underline;
}

/* ============================================
   FILE A CLAIM PAGE
   ============================================ */
.claim-intro {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.claim-form-container {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.claim-button-container {
    margin: 2rem 0;
    text-align: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.claim-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    line-height: 1.7;
}

/* ============================================
   JQUERY UI DATEPICKER STYLING
   ============================================ */
.ui-datepicker {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    padding: 10px !important;
    z-index: 99999 !important;
    font-family: var(--font-family) !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 320px !important;
    position: absolute !important;
    display: none;
}

/* Ensure datepicker displays as popup, not inline */
.ui-datepicker:not(.ui-datepicker-inline) {
    position: absolute !important;
}

/* Fix for Gravity Forms datepicker that might display inline */
.gfield .ui-datepicker,
.gform_wrapper .ui-datepicker,
.gfield_list .ui-datepicker {
    position: absolute !important;
    width: auto !important;
    max-width: 320px !important;
    min-width: 280px !important;
}

/* Hide any inline datepicker containers GF might create */
.gfield_list_cell .ui-datepicker-inline,
.gfield .ui-datepicker-inline {
    display: none !important;
}

.ui-datepicker-header {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px 4px 0 0 !important;
    padding: 10px !important;
    margin: -10px -10px 10px -10px !important;
}

.ui-datepicker-title {
    color: #fff !important;
    font-weight: 600 !important;
}

.ui-datepicker-title select {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    padding: 2px 5px !important;
    margin: 0 3px !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer !important;
    top: 10px !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    background: none !important;
    text-indent: 0 !important;
    color: #fff !important;
}

.ui-datepicker-prev:before {
    content: '◀' !important;
    color: #fff !important;
}

.ui-datepicker-next:before {
    content: '▶' !important;
    color: #fff !important;
}

.ui-datepicker-prev span,
.ui-datepicker-next span {
    display: none !important;
}

.ui-datepicker-calendar {
    width: 100% !important;
    border-collapse: collapse !important;
}

.ui-datepicker-calendar th {
    background: #f5f5f5 !important;
    color: #666 !important;
    font-weight: 600 !important;
    padding: 8px 5px !important;
    text-align: center !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
}

.ui-datepicker-calendar td {
    padding: 2px !important;
    text-align: center !important;
}

.ui-datepicker-calendar td a,
.ui-datepicker-calendar td span {
    display: block !important;
    padding: 8px !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    color: #333 !important;
    background: transparent !important;
    border: none !important;
}

.ui-datepicker-calendar td a:hover {
    background: var(--accent-color) !important;
    color: #fff !important;
}

.ui-datepicker-calendar .ui-state-active {
    background: var(--primary-color) !important;
    color: #fff !important;
}

.ui-datepicker-calendar .ui-state-disabled span {
    color: #ccc !important;
}

.ui-datepicker-calendar .ui-datepicker-today a {
    background: #f0f0f0 !important;
    font-weight: 600 !important;
}

.ui-widget-overlay {
    z-index: 9998 !important;
}

/* ============================================
   DOCUMENT SECTIONS
   ============================================ */
.doc-section {
    margin-bottom: 50px;
}

.doc-section h3 {
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 15px;
    color: var(--primary-color);
    margin-top: 0;
    font-weight: 400;
}

.doc-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Document Layout Options */
.doc-list.doc-layout-full {
    grid-template-columns: 1fr;
}

.doc-list.doc-layout-half {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .doc-list.doc-layout-half {
        grid-template-columns: 1fr;
    }
}

.doc-list li {
    margin: 0;
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-top: 3px solid transparent;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.doc-list li:hover {
    border-color: var(--border-dark);
    border-top-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.doc-list a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 6px;
}

.doc-list a:hover {
    color: #3f4a32;
}

.doc-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-style: normal;
}

/* ============================================
   NOMINEES / REPRESENTATIVE FILERS TABLE
   ============================================ */
.nominees-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.nominees-section:last-of-type {
    border-bottom: none;
}

.nominees-section-content {
    margin-bottom: 1.5rem;
}

.nominees-section-content p {
    margin-bottom: 0.75rem;
}

.nominees-documents {
    margin: 1.5rem 0;
}

.nominees-documents h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nominees-notes {
    margin-top: 2rem;
}

.nominees-doc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nominees-doc-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.nominees-doc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
}

.nominees-doc-table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

.nominees-doc-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.nominees-doc-table tbody tr:hover {
    background: #f0f4e8;
}

.nominees-doc-table .doc-download-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.nominees-doc-table .doc-download-btn:hover {
    background: var(--primary-hover);
    color: white;
}

@media (max-width: 768px) {
    .nominees-doc-table {
        font-size: 0.9em;
    }
    
    .nominees-doc-table th,
    .nominees-doc-table td {
        padding: 10px 8px;
    }
    
    .nominees-doc-table th:nth-child(2),
    .nominees-doc-table td:nth-child(2) {
        display: none; /* Hide description on mobile */
    }
}

/* ============================================
   CONTACT CARDS
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border: 1px solid var(--border-medium);
    border-top: 3px solid var(--primary-color);
}

.contact-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 8px;
    margin-bottom: var(--contact-heading-spacing, 15px);
}

.contact-card .contact-item {
    padding-left: var(--contact-content-indent, 15px);
    margin-bottom: var(--contact-item-spacing, 20px);
}

.contact-card .contact-item:last-child {
    margin-bottom: 0;
}

.contact-card .contact-item-label {
    display: inline;
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 8px;
}

.contact-card .contact-item-value {
    display: inline;
    color: var(--text-medium);
}

.contact-card .contact-item-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-card .contact-item-value a:hover {
    text-decoration: underline;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.button,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--accent-hover);
    color: white;
}

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

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

/* ============================================
   FORMS
   ============================================ */
.site-form {
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-medium);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-white);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.form-check input {
    margin-right: 10px;
}

.form-check label {
    margin-bottom: 0;
    font-weight: 400;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-gray);
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    font-size: 13px;
    border-top: 1px solid var(--border-light);
    font-weight: 300;
}

.site-footer p {
    margin: 0;
    color: var(--text-muted);
}

.site-footer a {
    color: var(--text-muted);
}

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

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
/* Alignment Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.alignwide {
    margin-left: -30px;
    margin-right: -30px;
    max-width: calc(100% + 60px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

/* WordPress Captions */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    padding-top: 0.5rem;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    margin: 0;
}

/* Screen Reader Text */
.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: var(--bg-table);
    clip: auto !important;
    clip-path: none;
    color: var(--text-dark);
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Admin Bar Adjustment */
body.admin-bar .site-wrapper {
    margin-top: 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.nav-links a,
.pagination span,
.nav-links span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-medium);
    text-decoration: none;
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.pagination .current,
.nav-links .current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 14px;
    color: var(--text-light);
}

.comment-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-wrapper {
        margin: 0;
        border: none;
    }

    .site-header {
        padding: 30px;
    }

    .site-header h1,
    .site-title {
        font-size: 24px;
    }

    .site-description {
        font-size: 12px;
        margin-top: 8px;
    }

    .main-navigation {
        padding: 0 30px;
        overflow-x: auto;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .main-navigation a {
        padding: 18px 0;
        font-size: 12px;
    }

    .site-content {
        padding: 30px;
    }

    .doc-list {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .alignwide {
        margin-left: -15px;
        margin-right: -15px;
        max-width: calc(100% + 30px);
    }
}

@media (max-width: 480px) {
    .site-header,
    .main-navigation,
    .site-content,
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .main-navigation li:last-child a {
        border-bottom: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-wrapper {
        box-shadow: none;
        border: none;
    }

    .main-navigation,
    .site-footer {
        display: none;
    }

    .site-content {
        padding: 0;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}

/* ============================================
   FOOTNOTES SECTION
   ============================================ */
.settlement-footnotes {
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 30px 20px;
    border-top: 1px solid var(--border-light);
}

.settlement-footnotes .footnotes-content {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

.settlement-footnotes .footnotes-content p {
    margin-bottom: 0.75em;
}

.settlement-footnotes .footnotes-content sup {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 4px;
}

/* Footnote target highlight when linked to */
.settlement-footnotes .footnote-item:target {
    background-color: #fef3c7;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 4px;
}

/* Superscript links in content */
.settlement-hero sup a,
.settlement-summary-content sup a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.settlement-hero sup a:hover,
.settlement-summary-content sup a:hover {
    text-decoration: underline;
}
