/* =============================================================
   TFA Theme — Main Stylesheet
   The Florida Assembly | Land & Soil Jurisdiction
   ============================================================= */

/* ── Variables ── */
:root {
    --tfa-navy:       #1e3a5f;
    --tfa-navy-dark:  #152d4a;
    --tfa-navy-light: #2a5080;
    --tfa-gold:       #c8a951;
    --tfa-gold-light: #e8d9a0;
    --tfa-gold-dark:  #a87030;
    --tfa-white:      #ffffff;
    --tfa-off-white:  #f8f6f1;
    --tfa-gray:       #6b7280;
    --tfa-gray-light: #f3f4f6;
    --tfa-border:     #dde3ec;
    --tfa-text:       #1f2937;
    --tfa-text-light: #4b5563;
    --tfa-radius:     8px;
    --tfa-shadow:     0 2px 12px rgba(0,0,0,0.08);
    --tfa-shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
    --tfa-header-h:   68px;
    --tfa-font:       'Georgia', 'Times New Roman', serif;
    --tfa-font-ui:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tfa-transition: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--tfa-font-ui);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tfa-text);
    background: var(--tfa-white);
    padding-top: var(--tfa-header-h);
}

.admin-bar body,
.admin-bar .tfa-site-header { top: 32px; }
@media screen and (max-width: 782px) {
    .admin-bar .tfa-site-header { top: 46px; }
}

a { color: var(--tfa-navy); text-decoration: none; transition: color var(--tfa-transition); }
a:hover { color: var(--tfa-gold-dark); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tfa-font);
    color: var(--tfa-navy);
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* ── Layout ── */
.tfa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.tfa-content-wrap {
    padding: 48px 0 80px;
}

/* ── Buttons ── */
.tfa-btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: var(--tfa-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--tfa-transition);
    text-decoration: none;
    line-height: 1.4;
    font-family: var(--tfa-font-ui);
}
.tfa-btn-primary {
    background: var(--tfa-navy);
    color: var(--tfa-gold);
    border-color: var(--tfa-navy);
}
.tfa-btn-primary:hover {
    background: var(--tfa-gold);
    color: var(--tfa-navy);
    border-color: var(--tfa-gold);
}
.tfa-btn-gold {
    background: var(--tfa-gold);
    color: var(--tfa-navy);
    border-color: var(--tfa-gold);
}
.tfa-btn-gold:hover {
    background: var(--tfa-navy);
    color: var(--tfa-gold);
    border-color: var(--tfa-navy);
}
.tfa-btn-outline {
    background: transparent;
    color: var(--tfa-white);
    border-color: var(--tfa-white);
}
.tfa-btn-outline:hover {
    background: var(--tfa-white);
    color: var(--tfa-navy);
}
.tfa-btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.tfa-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--tfa-header-h);
    background: var(--tfa-navy);
    border-bottom: 2px solid var(--tfa-gold);
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.tfa-header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 32px;
}

/* Logo */
.tfa-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.tfa-header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.tfa-header-logo-name {
    font-family: var(--tfa-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tfa-white);
    white-space: nowrap;
}
.tfa-header-logo-sub {
    font-size: 0.65rem;
    color: var(--tfa-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Nav */
.tfa-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.tfa-nav-item {
    position: relative;
}

.tfa-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: var(--tfa-gold-light);
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--tfa-transition);
    white-space: nowrap;
    font-family: var(--tfa-font-ui);
}
.tfa-nav-link:hover,
.tfa-nav-item:hover .tfa-nav-link {
    background: rgba(200,169,81,0.15);
    color: var(--tfa-gold);
}

/* Dropdowns */
.tfa-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: var(--tfa-navy-dark);
    border: 1px solid var(--tfa-gold);
    border-radius: var(--tfa-radius);
    box-shadow: var(--tfa-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.18s ease;
    z-index: 100;
}
.tfa-nav-item:hover .tfa-dropdown,
.tfa-nav-item:focus-within .tfa-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tfa-dropdown-inner {
    padding: 8px;
}

.tfa-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--tfa-gold-light);
    text-decoration: none;
    transition: background var(--tfa-transition);
}
.tfa-dropdown-item:hover {
    background: rgba(200,169,81,0.15);
    color: var(--tfa-gold);
}
.tfa-dropdown-icon {
    color: var(--tfa-gold);
    font-size: 0.6rem;
    margin-top: 5px;
    flex-shrink: 0;
}
.tfa-dropdown-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: inherit;
}
.tfa-dropdown-item em {
    display: block;
    font-size: 0.75rem;
    color: #8fa8c8;
    font-style: normal;
    margin-top: 1px;
}
.tfa-dropdown-item:hover em { color: #c8a95180; }

.tfa-dropdown-divider {
    height: 1px;
    background: rgba(200,169,81,0.2);
    margin: 6px 8px;
}

.tfa-dropdown-highlight strong { color: var(--tfa-gold) !important; }

/* Account / Login */
.tfa-header-right { margin-left: auto; flex-shrink: 0; }

.tfa-header-login {
    display: inline-block;
    padding: 8px 20px;
    background: var(--tfa-gold);
    color: var(--tfa-navy);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--tfa-transition);
}
.tfa-header-login:hover {
    background: var(--tfa-white);
    color: var(--tfa-navy);
}

.tfa-header-account { position: relative; }

.tfa-header-member-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(200,169,81,0.3);
    text-decoration: none;
    transition: all var(--tfa-transition);
    cursor: pointer;
}
.tfa-header-member-btn:hover,
.tfa-header-account:hover .tfa-header-member-btn {
    background: rgba(200,169,81,0.15);
    border-color: var(--tfa-gold);
}

.tfa-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--tfa-white);
    flex-shrink: 0;
}
.tfa-header-member-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.tfa-header-member-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tfa-white);
}
.tfa-header-tier-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.tfa-header-chevron {
    color: var(--tfa-gold);
    transition: transform var(--tfa-transition);
}
.tfa-header-account:hover .tfa-header-chevron {
    transform: rotate(180deg);
}

.tfa-header-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--tfa-navy-dark);
    border: 1px solid var(--tfa-gold);
    border-radius: var(--tfa-radius);
    box-shadow: var(--tfa-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.18s ease;
    z-index: 100;
    padding: 8px;
}
.tfa-header-account:hover .tfa-header-account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tfa-header-account-dropdown a {
    display: block;
    padding: 9px 14px;
    color: var(--tfa-gold-light);
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--tfa-transition);
}
.tfa-header-account-dropdown a:hover {
    background: rgba(200,169,81,0.15);
    color: var(--tfa-gold);
}
.tfa-header-logout { color: #f87171 !important; }
.tfa-header-logout:hover { background: rgba(248,113,113,0.1) !important; }

/* Hamburger */
.tfa-header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.tfa-header-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tfa-gold);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile nav */
.tfa-mobile-nav {
    display: none;
    position: fixed;
    top: var(--tfa-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tfa-navy-dark);
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
    border-top: 2px solid var(--tfa-gold);
}
.tfa-mobile-nav.open { display: block; }

.tfa-mobile-section { margin-bottom: 24px; }
.tfa-mobile-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tfa-gold);
    padding: 0 0 8px;
    border-bottom: 1px solid rgba(200,169,81,0.2);
    margin-bottom: 8px;
}
.tfa-mobile-nav a {
    display: block;
    padding: 10px 0;
    color: var(--tfa-gold-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
}
.tfa-mobile-nav a:hover { color: var(--tfa-gold); }

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.tfa-hero {
    background: linear-gradient(135deg, var(--tfa-navy) 0%, var(--tfa-navy-light) 60%, #1a4a7a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}
.tfa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200,169,81,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200,169,81,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.tfa-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.tfa-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tfa-gold);
    margin-bottom: 16px;
    padding: 4px 12px;
    border: 1px solid rgba(200,169,81,0.3);
    border-radius: 20px;
}
.tfa-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--tfa-white);
    margin-bottom: 20px;
    line-height: 1.2;
}
.tfa-hero h1 span { color: var(--tfa-gold); }
.tfa-hero-sub {
    font-size: 1.1rem;
    color: var(--tfa-gold-light);
    margin-bottom: 32px;
    line-height: 1.7;
    opacity: 0.9;
}
.tfa-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tfa-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tfa-hero-emblem {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(200,169,81,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.tfa-hero-emblem::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,81,0.15);
}
.tfa-hero-flag {
    width: 200px;
}

/* Hero stats bar */
.tfa-hero-stats {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(200,169,81,0.2);
    margin-top: 60px;
    padding: 28px 0;
    position: relative;
    z-index: 1;
}
.tfa-hero-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}
.tfa-hero-stat {
    text-align: center;
    color: var(--tfa-white);
}
.tfa-hero-stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tfa-gold);
    font-family: var(--tfa-font);
}
.tfa-hero-stat-label {
    font-size: 0.8rem;
    color: var(--tfa-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════
   PAGE CONTENT
   ═══════════════════════════════════════════ */
.tfa-page-header {
    background: var(--tfa-off-white);
    border-bottom: 2px solid var(--tfa-border);
    padding: 40px 0;
    margin-bottom: 48px;
}
.tfa-page-header h1 {
    margin: 0;
}
.tfa-page-header .tfa-breadcrumb {
    font-size: 0.8rem;
    color: var(--tfa-gray);
    margin-bottom: 8px;
}
.tfa-page-header .tfa-breadcrumb a {
    color: var(--tfa-navy);
}
.tfa-page-header .tfa-breadcrumb a:hover {
    color: var(--tfa-gold-dark);
}

.tfa-entry-content {
    max-width: 800px;
}
.tfa-entry-content p,
.tfa-entry-content ul,
.tfa-entry-content ol {
    margin-bottom: 1.25rem;
    color: var(--tfa-text-light);
}
.tfa-entry-content h2,
.tfa-entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.tfa-entry-content a {
    color: var(--tfa-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.tfa-entry-content a:hover { color: var(--tfa-gold-dark); }

/* ═══════════════════════════════════════════
   BLOG / POSTS
   ═══════════════════════════════════════════ */
.tfa-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}
.tfa-post-card {
    background: var(--tfa-white);
    border: 1px solid var(--tfa-border);
    border-radius: var(--tfa-radius);
    overflow: hidden;
    box-shadow: var(--tfa-shadow);
    transition: box-shadow var(--tfa-transition), transform var(--tfa-transition);
}
.tfa-post-card:hover {
    box-shadow: var(--tfa-shadow-lg);
    transform: translateY(-2px);
}
.tfa-post-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--tfa-gray-light);
}
.tfa-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tfa-post-card:hover .tfa-post-card-thumb img { transform: scale(1.04); }
.tfa-post-card-body { padding: 20px; }
.tfa-post-card-meta {
    font-size: 0.75rem;
    color: var(--tfa-gray);
    margin-bottom: 8px;
}
.tfa-post-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}
.tfa-post-card-title a { color: var(--tfa-navy); }
.tfa-post-card-title a:hover { color: var(--tfa-gold-dark); }
.tfa-post-card-excerpt {
    font-size: 0.875rem;
    color: var(--tfa-text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}
.tfa-post-card-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tfa-navy);
    text-decoration: none;
}
.tfa-post-card-read-more:hover { color: var(--tfa-gold-dark); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.tfa-site-footer {
    background: var(--tfa-navy);
    color: var(--tfa-gold-light);
    padding: 64px 0 0;
    border-top: 3px solid var(--tfa-gold);
}
.tfa-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.tfa-footer-brand {}
.tfa-footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-decoration: none;
}
.tfa-footer-logo-text {}
.tfa-footer-logo-name {
    display: block;
    font-family: var(--tfa-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tfa-white);
}
.tfa-footer-logo-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--tfa-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.tfa-footer-tagline {
    font-size: 0.875rem;
    color: #8fa8c8;
    line-height: 1.7;
    margin-bottom: 20px;
}
.tfa-footer-maxim {
    font-style: italic;
    font-size: 0.8rem;
    color: var(--tfa-gold);
    border-left: 2px solid var(--tfa-gold);
    padding-left: 12px;
}

.tfa-footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tfa-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(200,169,81,0.2);
}
.tfa-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tfa-footer-col li { margin-bottom: 8px; }
.tfa-footer-col a {
    font-size: 0.875rem;
    color: #8fa8c8;
    text-decoration: none;
    transition: color var(--tfa-transition);
}
.tfa-footer-col a:hover { color: var(--tfa-gold); }

.tfa-footer-bottom {
    border-top: 1px solid rgba(200,169,81,0.15);
    padding: 20px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b84a0;
    flex-wrap: wrap;
    gap: 8px;
}
.tfa-footer-bottom a { color: #6b84a0; }
.tfa-footer-bottom a:hover { color: var(--tfa-gold); }

/* ═══════════════════════════════════════════
   NOTICES & UTILITIES
   ═══════════════════════════════════════════ */
.tfa-notice {
    background: var(--tfa-off-white);
    border: 1px solid var(--tfa-border);
    border-left: 4px solid var(--tfa-navy);
    border-radius: var(--tfa-radius);
    padding: 16px 20px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.tfa-404 {
    text-align: center;
    padding: 80px 24px;
}
.tfa-404-num {
    font-size: clamp(6rem, 20vw, 12rem);
    font-family: var(--tfa-font);
    color: var(--tfa-navy);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -20px;
}

/* Hide default theme header/footer */
header.site-header,
.site-header,
#site-header,
.wp-block-template-part[data-slug="header"],
header.wp-block-template-part,
.site-footer:not(.tfa-site-footer),
footer.wp-block-template-part {
    display: none !important;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tfa-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .tfa-header-nav { display: none; }
    .tfa-header-hamburger { display: flex; }
    .tfa-header-right { display: none; }

    .tfa-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .tfa-hero-visual { display: none; }
    .tfa-hero-actions { justify-content: center; }
}

@media (max-width: 600px) {
    .tfa-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .tfa-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .tfa-hero-stats-inner {
        gap: 28px;
    }
}
