/*
Theme Name: Known World Ag & Forestry Minimalist
Theme URI: https://kwagforest.atlantia.sca.org/
Description: A hand-crafted, high-performance archival theme built for the Known World Agriculture & Forestry Symposium.
Version: 0.1.0
Author: SCA Webministry
Text Domain: kw-agforest
*/

/* --- 1. Global Reset & Variables --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ag-forest-green: #1b3b22;  /* Deep Evergreen */
    --ag-earth-brown: #5c4033;   /* Rich Soil / Timber Brown */
    --ag-harvest-gold: #c29b38;  /* Wheat / Amber Accent */
    --text-dark: #2b2b2b;
    --bg-parchment: #F4EEDD;     /* Warm Vellum Parchment */
    --border-color: #dfd5c3;
}

/* Clickable Header Banner Link */
a.header-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #122216; /* Fallback deep forest canopy */
    background-image: url('https://kwagforest.atlantia.sca.org/wp-content/uploads/2026/08/backround-scaled.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.7;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility Skip Link styling */
.skip-link:focus {
    background-color: var(--ag-harvest-gold);
    color: var(--ag-forest-green);
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    left: 10px;
    top: 10px;
    padding: 10px 15px;
    position: absolute !important;
    width: auto !important;
    z-index: 100000;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--ag-forest-green);
}

/* --- 2. Structural Layout Containers --- */
.container {
    width: 100%;
    max-width: 1510px;
    margin: 0 auto;
    padding: 0;
}

/* --- 3. Header Styling --- */
.site-header {
    width: 100%;
    background: transparent;
    margin-bottom: 0;
}

.site-header .container {
    background-image: url('https://kwagforest.atlantia.sca.org/wp-content/uploads/2019/02/header-1300-x-500.jpg');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    height: 500px;
    border-bottom: 4px solid var(--ag-harvest-gold);
}

.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;
}

/* --- 4. Navigation Styling & Multi-Level Dropdowns --- */
.navigation-wrap {
    background: transparent;
    margin-bottom: 0;
}

.navigation-wrap .container {
    background-color: var(--ag-forest-green);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.main-navigation a {
    color: #ffffff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: var(--ag-harvest-gold);
}

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

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #122817;
    min-width: 240px;
    z-index: 9999;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.35);
}

.main-navigation ul ul ul {
    top: 0 !important;
    left: 100% !important;
    margin-left: 1px;
}

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

.main-navigation ul ul li a {
    color: #f7f2dd !important;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.main-navigation ul ul li a:hover {
    background-color: #264e30;
    color: #ffffff !important;
}

.main-navigation ul ul li:has(ul) > a::after {
    content: " ›";
    font-size: 1.1rem;
    margin-left: 12px;
    color: var(--ag-harvest-gold);
}

/* --- 5. Main Content Area --- */
.site-main {
    background-color: var(--bg-parchment);
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.entry-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

body.home .entry-header {
    display: none !important;
}

.entry-title {
    font-size: 2.2rem;
    color: var(--ag-forest-green);
    font-weight: normal;
}

.entry-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.entry-content > * {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.entry-content a {
    color: var(--ag-forest-green);
    text-decoration: underline;
    text-decoration-color: var(--ag-harvest-gold);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover {
    color: var(--ag-harvest-gold);
    text-decoration-color: var(--ag-forest-green);
}

/* Callout Box / Scroll Cards */
.callout-card {
    background-color: #ede5d0 !important;
    border: 1px solid var(--border-color) !important;
    border-left: 5px solid var(--ag-forest-green) !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

.wp-block-button__link {
    background-color: var(--ag-forest-green) !important;
    color: #ffffff !important;
    border: 1px solid var(--ag-harvest-gold) !important;
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.5rem;
    border-radius: 25px !important;
    transition: all 0.2s ease !important;
}

.wp-block-button__link:hover {
    background-color: var(--ag-harvest-gold) !important;
    color: var(--ag-forest-green) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* --- 6. Footer Styling --- */
.site-footer {
    max-width: 1510px;
    margin: 3rem auto 0 auto;
    background-color: rgba(15, 20, 16, 0.9);
    border-top: 2px solid var(--ag-harvest-gold);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 2.5rem 3rem 5rem 3rem;
    color: #e0dacb;
}

.site-footer .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 2-Column Footer Layout */
.footer-grid-2col {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 3rem;
    padding: 0;
    align-items: start;
}

.footer-col {
    width: 100%;
}

.footer-heading {
    color: var(--ag-harvest-gold);
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #e0dacb;
}

.footer-col a {
    color: var(--ag-harvest-gold);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.sca-disclaimer {
    color: #ccc5b5;
    font-size: 0.85rem;
}

.webminister-credit {
    margin-top: 1rem;
    font-style: italic;
    color: #ccc5b5;
}

.footer-col .policy-notice {
    font-size: 0.82rem;
    font-style: italic;
    color: #b8b0a0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.copyright-line {
    margin-top: 1rem;
    color: #b8b0a0;
    font-size: 0.8rem;
}

.back-to-top {
    font-weight: bold;
    color: var(--ag-harvest-gold) !important;
    text-decoration: none !important;
}

.back-to-top:hover {
    text-decoration: underline !important;
}

.footer-badge {
    max-width: 150px;
    height: auto;
    display: block;
    margin-top: 1.25rem;
    margin-bottom: 0;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

/* --- 7. Mobile Responsiveness --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
}

.hamburger-icon {
    font-size: 1.8rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .site-header .container {
        height: 220px;
        background-size: cover;
    }

    .site-main {
        padding: 1.5rem;
        margin-top: 1rem;
    }

    .navigation-wrap .container {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .main-navigation {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul#primary-menu {
        display: none !important;
        flex-direction: column;
        width: 100%;
        background-color: var(--ag-forest-green);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 9999;
    }

    .main-navigation ul#primary-menu.active {
        display: flex !important;
    }

    .main-navigation ul#primary-menu li {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation ul ul {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        box-shadow: none !important;
        background-color: rgba(0,0,0,0.1) !important;
        padding-left: 1rem !important;
    }

    .footer-grid-2col {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
}