/*
Theme Name: Atakumosa East
Theme URI: https://atakumosa-east.example.com/
Author: Atakumosa East LG
Author URI: https://atakumosa-east.example.com/
Description: A clean, accessible, SEO-friendly, Gutenberg-ready WordPress theme for Atakumosa East Local Government. Fully responsive, WCAG-conscious, WooCommerce-ready, and optimized for rural connectivity.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atakumosa-east
Domain Path: /languages
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, accessibility-ready, block-patterns, e-commerce
*/

/* -------------------------------------------------------------
   CSS Variables (match React preview design tokens)
------------------------------------------------------------- */
:root {
    --ae-primary: #0b6b3a;
    --ae-primary-dark: #084d2a;
    --ae-secondary: #0b3d24;
    --ae-accent: #f4b400;
    --ae-fg: #1a1a1a;
    --ae-bg: #ffffff;
    --ae-muted: #f2f7f4;
    --ae-border: #e5e7eb;
    --ae-radius: 8px;
    --ae-font-heading: "Playfair Display", Georgia, serif;
    --ae-font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--ae-font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ae-fg);
    background: var(--ae-bg);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--ae-font-heading); line-height: 1.2; margin: 0 0 .5em; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ae-primary); text-decoration: underline; }
a:hover, a:focus { color: var(--ae-primary-dark); }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .75rem 1rem; background: var(--ae-primary); color: #fff; z-index: 9999; text-decoration: none; border-radius: var(--ae-radius); }
:focus-visible { outline: 3px solid var(--ae-accent); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important; }

/* Layout */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--ae-border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; gap: 1rem; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: .75rem; }
.site-title { font-size: 1.25rem; margin: 0; }
.site-title a { color: var(--ae-primary); text-decoration: none; }
.site-description { margin: 0; font-size: .875rem; color: #555; }

/* Navigation */
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.main-navigation a { display: inline-block; padding: .5rem .9rem; text-decoration: none; color: var(--ae-fg); font-weight: 700; border-radius: 6px; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { background: var(--ae-muted); color: var(--ae-primary); }

/* Mobile menu toggle */
.menu-toggle { display: none; background: var(--ae-primary); color: #fff; border: 0; padding: .6rem 1rem; border-radius: 6px; font-weight: 700; cursor: pointer; }

/* Main */
.site-main { padding: 2rem 0; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--ae-secondary), var(--ae-primary)); color: #fff; padding: 4rem 0; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.25rem); }
.hero p { font-size: 1.125rem; max-width: 720px; margin: 0 auto 1.5rem; }
.hero .button { background: var(--ae-accent); color: var(--ae-secondary) !important; }
.hero .button:hover { background: #e0a500; }

/* Buttons */
.button, .wp-block-button__link {
    display: inline-block; padding: .75rem 1.5rem; background: var(--ae-primary); color: #fff !important;
    border-radius: var(--ae-radius); text-decoration: none; font-weight: 700; border: 0; cursor: pointer;
    transition: background .2s ease;
}
.button:hover, .wp-block-button__link:hover { background: var(--ae-primary-dark); }
.button.button-accent { background: var(--ae-accent); color: var(--ae-secondary) !important; }

/* Footer */
.site-footer { background: var(--ae-secondary); color: #f0f0f0; padding: 3rem 0 1rem; margin-top: 3rem; }
.site-footer a { color: var(--ae-accent); }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.site-info { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; font-size: .875rem; text-align: center; }

/* Cards / archive grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.post-card { border: 1px solid var(--ae-border); border-radius: var(--ae-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.post-card .post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-card .post-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.post-card h2 a { color: var(--ae-secondary); text-decoration: none; }
.post-card h2 a:hover { color: var(--ae-primary); }
.post-card .post-meta { font-size: .85rem; color: #666; margin-bottom: .5rem; }

/* Post/Page */
.entry-title { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; margin: 0 0 .5rem; }
.entry-meta { color: #666; font-size: .875rem; margin-bottom: 1rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { font-size: 1.75rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.5rem; }
.entry-thumbnail { margin-bottom: 1.5rem; border-radius: var(--ae-radius); overflow: hidden; }

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: #666; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ae-primary); text-decoration: none; }
.breadcrumbs .sep { margin: 0 .35rem; color: #999; }

/* Pagination */
.pagination { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { padding: .5rem .85rem; border: 1px solid var(--ae-border); border-radius: 6px; text-decoration: none; color: var(--ae-fg); }
.pagination .current { background: var(--ae-primary); color: #fff; border-color: var(--ae-primary); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
    width: 100%; padding: .7rem .85rem; border: 1px solid #ccc; border-radius: 6px; font: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--ae-primary); outline: 0; box-shadow: 0 0 0 3px rgba(11,107,58,.15); }

/* Sidebar */
.widget-area { margin-top: 2rem; }
.widget { margin-bottom: 1.5rem; padding: 1rem; background: var(--ae-muted); border-radius: var(--ae-radius); }
.widget-title { font-size: 1.125rem; margin: 0 0 .75rem; color: var(--ae-secondary); }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 1rem; border: 1px solid var(--ae-border); border-radius: 6px; margin-bottom: 1rem; background: #fff; }

/* WooCommerce tweaks */
.woocommerce ul.products li.product .price { color: var(--ae-primary); font-weight: 700; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: var(--ae-primary); color: #fff; border-radius: 6px; padding: .7rem 1.25rem; font-weight: 700;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--ae-primary-dark); color: #fff; }
.woocommerce span.onsale { background: var(--ae-accent); color: var(--ae-secondary); }

/* Alignments */
.alignwide  { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Responsive */
@media (max-width: 782px) {
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .menu-toggle { display: inline-block; }
    .main-navigation { width: 100%; }
    .main-navigation ul { display: none; flex-direction: column; width: 100%; gap: 0; }
    .main-navigation.toggled ul { display: flex; }
    .main-navigation a { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--ae-border); border-radius: 0; }
    .hero { padding: 3rem 0; }
    .entry-title { font-size: 1.5rem; }
}

/* Print */
@media print {
    .site-header, .site-footer, .main-navigation, .no-print { display: none !important; }
    body { color: #000; background: #fff; }
}
