/*
Theme Name: GHF Portal
Theme URI: https://gormanfarm.org
Description: Standalone theme for Gorman Heritage Farm camp portal system. Designed for use with Elementor and the GHF Management plugin.
Version: 1.0.0
Author: Gorman Heritage Farm
Author URI: https://gormanfarm.org
Requires at least: 6.4
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghf-portal
*/

/* ── Design tokens (Heritage preset) ── */
:root {
    --ghf-bg: #FFFFFF;
    --ghf-fg: #1B2632;
    --ghf-primary: #2C3B4D;
    --ghf-primary-fg: #FFFFFF;
    --ghf-secondary: #EEE9DF;
    --ghf-muted: #6B6560;
    --ghf-border: #C9C1B1;
    --ghf-destructive: #A35139;
    --ghf-radius: 0.375rem;
    --ghf-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--ghf-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ghf-fg);
    background: var(--ghf-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ghf-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Default header (overridden by Elementor if used) ── */
.ghf-site-header {
    border-bottom: 1px solid var(--ghf-border);
    background: var(--ghf-bg);
}
.ghf-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ghf-header-brand a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ghf-fg);
    text-decoration: none;
}
.ghf-header-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.ghf-header-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ghf-muted);
    transition: color 0.15s;
}
.ghf-header-nav a:hover { color: var(--ghf-primary); text-decoration: none; }

/* ── Default footer (overridden by Elementor if used) ── */
.ghf-site-footer {
    border-top: 1px solid var(--ghf-border);
    background: var(--ghf-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
}
.ghf-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ghf-muted);
}
.ghf-footer-nav { margin-bottom: 1rem; }
.ghf-footer-nav ul { list-style: none; display: flex; justify-content: center; gap: 1.5rem; }
.ghf-footer-nav a { color: var(--ghf-muted); font-size: 0.875rem; }
.ghf-footer-nav a:hover { color: var(--ghf-primary); }

/* ── Main content ── */
.ghf-site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Articles / pages ── */
.ghf-article { margin-bottom: 2.5rem; }
.ghf-article-title a { color: var(--ghf-fg); font-size: 1.5rem; font-weight: 600; }
.ghf-article-title a:hover { color: var(--ghf-primary); text-decoration: none; }
.ghf-article-excerpt { margin-top: 0.5rem; color: var(--ghf-muted); }
.ghf-page-title { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.ghf-page-content { line-height: 1.75; }

/* ── Elementor full-width: strip all spacing ── */
body.elementor-full-width { margin: 0; padding: 0; }

/* ── Pagination ── */
.ghf-pagination { margin-top: 2rem; }
.ghf-pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; }
.ghf-pagination a, .ghf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    border-radius: var(--ghf-radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--ghf-border);
    color: var(--ghf-fg);
    transition: all 0.15s;
}
.ghf-pagination a:hover { background: var(--ghf-secondary); text-decoration: none; }
.ghf-pagination .current { background: var(--ghf-primary); color: var(--ghf-primary-fg); border-color: var(--ghf-primary); }
