/*
Theme Name: HNBA OnePress Association
Theme URI: https://hnb.buzznbees.com/
Description: A self-contained, OnePress-inspired association website with pre-populated HNBA content.
Author: Haldimand Norfolk Beekeepers Association
Version: 1.5.0
Text Domain: hnba-onepress
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --honey: #f2b632;
  --honey-dark: #c9860c;
  --ink: #20261f;
  --green: #35563a;
  --green-dark: #1f3b29;
  --cream: #fbf8ef;
  --paper: #fff;
  --muted: #667065;
  --line: #e4e5dc;
  --shadow: 0 18px 45px rgba(24, 39, 28, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hnba-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hnba-section { padding: 92px 0; }
.hnba-section--soft { background: var(--cream); }
.hnba-kicker { margin: 0 0 10px; color: var(--honey-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hnba-title { margin: 0 0 18px; color: var(--green-dark); font: 800 clamp(2rem, 4vw, 3.3rem)/1.08 Georgia, serif; }
.hnba-lead { max-width: 760px; color: var(--muted); font-size: 1.12rem; }
.hnba-grid { display: grid; gap: 28px; }
.hnba-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hnba-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hnba-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24,39,28,.06); }
.hnba-card h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 1.35rem/1.25 Georgia, serif; }
.hnba-card p:last-child { margin-bottom: 0; }
.hnba-icon { display: inline-grid; width: 48px; height: 48px; margin-bottom: 16px; place-items: center; color: var(--green-dark); background: #f8df9d; border-radius: 14px; font-size: 1.45rem; }

.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(53,86,58,.14); backdrop-filter: blur(12px); }
.hnba-nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hnba-brand { display: flex; align-items: center; gap: 12px; color: var(--green-dark); text-decoration: none; }
.hnba-brand img { width: 50px; height: 50px; }
.hnba-brand strong { display: block; font: 800 1.05rem/1.05 Georgia, serif; }
.hnba-brand span { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hnba-menu { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.hnba-menu a { color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.hnba-menu a:hover, .hnba-menu a:focus { color: var(--honey-dark); }
.hnba-menu .hnba-menu-cta, .hnba-menu .hnba-menu-cta-item > a { padding: 10px 16px; color: #fff; background: var(--green); border-radius: 999px; }
.hnba-menu .hnba-menu-register > a { padding: 10px 17px; color: #17261c; background: var(--honey); border-radius: 999px; box-shadow: 0 5px 14px rgba(201,134,12,.22); }
.hnba-menu .hnba-menu-register > a:hover, .hnba-menu .hnba-menu-register > a:focus { color: #17261c; background: #ffd568; }
.hnba-menu .menu-item-has-children { position: relative; }
.hnba-menu > .menu-item-has-children > a::after { margin-left: 5px; content: "▾"; font-size: .7em; }
.hnba-menu .sub-menu { position: absolute; z-index: 50; top: 100%; left: 0; display: none; min-width: 210px; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); list-style: none; }
.hnba-menu .menu-item-has-children:hover > .sub-menu, .hnba-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.hnba-menu .sub-menu a { display: block; padding: 8px 10px; }
.hnba-menu-toggle { display: none; padding: 10px; color: var(--green-dark); background: transparent; border: 0; font-size: 1.6rem; }

.hnba-hero { position: relative; min-height: 680px; display: grid; align-items: center; color: #fff; background: #17261c url('assets/images/hnba-hero.webp') center/cover no-repeat; isolation: isolate; }
.hnba-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,22,14,.9) 0%, rgba(10,22,14,.68) 44%, rgba(10,22,14,.12) 76%); }
.hnba-hero__content { max-width: 690px; padding: 90px 0; }
.hnba-hero .hnba-kicker { color: #ffd978; }
.hnba-hero h1 { margin: 0 0 24px; font: 800 clamp(2.8rem, 6vw, 5.1rem)/.98 Georgia, serif; letter-spacing: -.03em; }
.hnba-hero p { max-width: 650px; margin: 0 0 32px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hnba-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hnba-button { display: inline-flex; min-height: 48px; padding: 12px 20px; align-items: center; justify-content: center; color: #17261c; background: var(--honey); border: 2px solid var(--honey); border-radius: 999px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.hnba-button:hover, .hnba-button:focus { color: #17261c; background: #ffd568; border-color: #ffd568; transform: translateY(-1px); }
.hnba-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.7); }
.hnba-button--ghost:hover, .hnba-button--ghost:focus { color: var(--green-dark); background: #fff; border-color: #fff; }

.hnba-meeting-strip { position: relative; z-index: 2; margin-top: -45px; }
.hnba-meeting-card { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 28px; padding: 28px 32px; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.hnba-date { padding-right: 26px; border-right: 1px solid var(--line); }
.hnba-date strong { display: block; color: var(--green-dark); font: 800 1.5rem/1.2 Georgia, serif; }
.hnba-date span { color: var(--muted); font-size: .9rem; }
.hnba-meeting-card h2 { margin: 0 0 5px; color: var(--green-dark); font: 800 1.45rem/1.2 Georgia, serif; }
.hnba-meeting-card p { margin: 0; color: var(--muted); }
.hnba-meeting-actions { display: grid; gap: 8px; justify-items: center; }
.hnba-text-link { color: var(--green); font-weight: 800; text-decoration: none; }
.hnba-text-link:hover, .hnba-text-link:focus { color: var(--honey-dark); text-decoration: underline; }
.hnba-meeting-actions .hnba-text-link { font-size: .82rem; white-space: nowrap; }

.hnba-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hnba-photo { width: 100%; min-height: 390px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hnba-checks { margin: 24px 0 0; padding: 0; list-style: none; }
.hnba-checks li { position: relative; margin: 12px 0; padding-left: 30px; }
.hnba-checks li::before { position: absolute; left: 0; color: var(--honey-dark); content: "✓"; font-weight: 900; }
.hnba-notice { margin-top: 25px; padding: 18px 20px; background: #fff4d7; border-left: 4px solid var(--honey); border-radius: 8px; }
.hnba-notice strong { color: var(--green-dark); }

.hnba-event-list { display: grid; gap: 14px; margin-top: 28px; }
.hnba-event { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hnba-event time { color: var(--honey-dark); font-weight: 900; text-transform: uppercase; }
.hnba-event strong { display: block; color: var(--green-dark); }
.hnba-event span { color: var(--muted); font-size: .94rem; }
.hnba-fees { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.hnba-fee { min-width: 130px; padding: 18px; text-align: center; background: var(--cream); border-radius: 14px; }
.hnba-fee strong { display: block; color: var(--green-dark); font: 800 1.6rem Georgia, serif; }
.hnba-fee span { color: var(--muted); font-size: .85rem; }

.hnba-resources a { display: flex; height: 100%; padding: 24px; gap: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.hnba-resources a:hover, .hnba-resources a:focus { border-color: var(--honey); box-shadow: 0 10px 24px rgba(24,39,28,.08); }
.hnba-resources strong { display: block; color: var(--green-dark); }
.hnba-resources span { color: var(--muted); font-size: .9rem; }

.hnba-contact { color: #fff; background: var(--green-dark); }
.hnba-contact .hnba-title { color: #fff; }
.hnba-contact .hnba-lead { color: rgba(255,255,255,.72); }
.hnba-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.hnba-contact-list { margin: 28px 0 0; padding: 0; list-style: none; }
.hnba-contact-list li { margin: 15px 0; }
.hnba-contact-list a { color: #ffd978; }
.hnba-form { padding: 30px; color: var(--ink); background: #fff; border-radius: var(--radius); }
.hnba-form label { display: block; margin-bottom: 6px; font-weight: 800; }
.hnba-form input, .hnba-form textarea { width: 100%; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #cdd2ca; border-radius: 9px; font: inherit; }
.hnba-form textarea { min-height: 130px; resize: vertical; }
.hnba-form .hnba-button { cursor: pointer; }
.hnba-alert { margin-bottom: 18px; padding: 12px 15px; border-radius: 8px; }
.hnba-alert--success { color: #1f512d; background: #e3f5e7; }
.hnba-alert--error { color: #782828; background: #fae4e4; }
.hnba-hp { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 34px 0; color: rgba(255,255,255,.7); background: #13251a; }
.hnba-footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.hnba-footer a { color: #ffd978; }
.hnba-page { min-height: 60vh; padding: 80px 0; }
.hnba-page-header { padding: 74px 0; color: #fff; background: var(--green-dark); }
.hnba-page-header h1 { max-width: 850px; margin: 0; font: 800 clamp(2.4rem, 5vw, 4.2rem)/1.03 Georgia, serif; }
.hnba-page-header .hnba-kicker { color: #ffd978; }
.hnba-page-intro { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.hnba-prose { max-width: 850px; }
.hnba-prose h2, .hnba-prose h3 { color: var(--green-dark); font-family: Georgia, serif; }
.hnba-prose h2 { margin-top: 2.2em; font-size: 2rem; }
.hnba-prose a { font-weight: 700; }
.hnba-executive { margin-top: 34px; }
.hnba-executive .hnba-card { border-top: 4px solid var(--honey); }
.hnba-fair { color: #fff; background: linear-gradient(rgba(18,37,26,.84), rgba(18,37,26,.92)), url('assets/images/fair-education.webp') center/cover no-repeat; }
.hnba-fair .hnba-title, .hnba-fair .hnba-card h3 { color: #fff; }
.hnba-fair .hnba-lead { color: rgba(255,255,255,.8); }
.hnba-fair .hnba-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: none; }
.hnba-fair .hnba-card p { color: rgba(255,255,255,.84); }
.hnba-fair .hnba-card strong { color: #ffd978; }
.hnba-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hnba-hub-card { min-height: 390px; display: flex; padding: 36px; justify-content: flex-end; flex-direction: column; color: #fff; background-position: center; background-size: cover; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .2s ease; }
.hnba-hub-card:hover, .hnba-hub-card:focus { color: #fff; transform: translateY(-3px); }
.hnba-hub-card .hnba-kicker { color: #ffd978; }
.hnba-hub-card strong { margin: 3px 0 10px; font: 800 clamp(1.8rem,3vw,2.6rem)/1.05 Georgia,serif; }
.hnba-hub-card span:not(.hnba-kicker) { max-width: 470px; color: rgba(255,255,255,.82); }
.hnba-hub-card b { margin-top: 18px; color: #ffd978; }
.hnba-latest-heading { display: flex; margin: 76px 0 26px; align-items: end; justify-content: space-between; gap: 25px; }
.hnba-latest-heading .hnba-title { margin-bottom: 0; }
.hnba-latest-heading > a { font-weight: 800; }
.hnba-post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(24,39,28,.06); }
.hnba-post-card__image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.hnba-post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hnba-post-card__image:hover img { transform: scale(1.025); }
.hnba-post-card__body { padding: 26px; }
.hnba-post-card h2, .hnba-post-card h3 { margin: 0 0 10px; color: var(--green-dark); font: 800 1.45rem/1.2 Georgia,serif; }
.hnba-post-card h2 a, .hnba-post-card h3 a { color: inherit; text-decoration: none; }
.hnba-post-card p { color: var(--muted); }
.hnba-single-image { margin: -35px 0 42px; }
.hnba-single-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.navigation.pagination { margin-top: 42px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { min-width: 42px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.nav-links .current { color: #fff; background: var(--green); border-color: var(--green); }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .hnba-menu-toggle { display: block; }
  .hnba-menu { position: absolute; top: 78px; right: 20px; left: 20px; display: none; padding: 18px; align-items: stretch; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .hnba-menu.is-open { display: flex; }
  .hnba-menu a { display: block; padding: 9px 10px; }
  .hnba-menu .sub-menu { position: static; display: block; min-width: 0; margin: 4px 0 0 16px; padding: 0; border: 0; box-shadow: none; }
  .hnba-grid--3 { grid-template-columns: 1fr 1fr; }
	.hnba-hub-grid { grid-template-columns: 1fr; }
  .hnba-meeting-card { grid-template-columns: 1fr; }
  .hnba-date { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .hnba-split, .hnba-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hnba-wrap { width: min(100% - 28px, 1160px); }
  .hnba-section { padding: 68px 0; }
  .hnba-grid--2, .hnba-grid--3 { grid-template-columns: 1fr; }
  .hnba-hero { min-height: 620px; background-position: 62% center; }
  .hnba-hero::before { background: linear-gradient(90deg, rgba(10,22,14,.92), rgba(10,22,14,.55)); }
  .hnba-meeting-strip { margin-top: -28px; }
  .hnba-meeting-card { padding: 24px; }
  .hnba-brand strong { font-size: .9rem; }
  .hnba-brand span { font-size: .62rem; }
  .hnba-event { grid-template-columns: 1fr; }
  .hnba-footer { align-items: flex-start; flex-direction: column; }
	.hnba-latest-heading { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
