/* ==========================================================================
   Harami Foundation — header, footer and page layout
   ========================================================================== */
body {
	--hf-forest: var(--wp--preset--color--forest, #133B30);
	--hf-forest-dark: var(--wp--preset--color--forest-dark, #0E2C24);
	--hf-gold: var(--wp--preset--color--gold, #C8A04A);
	--hf-cream: var(--wp--preset--color--cream, #F8F4EC);
	--hf-sand: var(--wp--preset--color--sand, #EFE7D6);
	--hf-ink: var(--wp--preset--color--ink, #1F2A26);
	--hf-mist: var(--wp--preset--color--mist, #C9D6CF);
	--hf-serif: var(--wp--preset--font-family--serif, Georgia, serif);
	--hf-sans: var(--wp--preset--font-family--sans, Arial, sans-serif);
}
body { margin: 0; background: var(--hf-cream); color: var(--hf-ink); font-family: var(--hf-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hf-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--hf-forest); color: #fff; padding: 10px 16px; border-radius: 8px; }
.hf-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 2px; }
.hf-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

/* Buttons */
.hf-btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px;
	background: var(--hf-gold); color: var(--hf-forest-dark); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
	border: 2px solid var(--hf-gold); transition: background .2s, color .2s, transform .2s;
}
.hf-btn:hover { background: var(--hf-forest); border-color: var(--hf-forest); color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.hf-site-header { position: sticky; top: 0; z-index: 100; background: var(--hf-cream); transition: box-shadow .3s; }
.admin-bar .hf-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hf-site-header { top: 46px; } }
.hf-site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(14, 44, 36, .55); }
.hf-topbar { background: var(--hf-forest-dark); color: var(--hf-mist); font-size: 13px; }
.hf-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.hf-topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.hf-topbar a { color: var(--hf-mist); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.hf-topbar a:hover { color: var(--hf-gold); }
.hf-topbar .hf-socials a { width: 26px; height: 26px; }
.hf-header__inner { display: flex; align-items: center; gap: 28px; min-height: 82px; border-bottom: 1px solid rgba(19, 59, 48, .08); }
.hf-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hf-forest); flex: none; }
.hf-brand svg, .hf-brand__logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; }
.hf-brand__name { font-family: var(--hf-serif); font-weight: 600; font-size: 21px; line-height: 1.05; max-width: 170px; }
.hf-brand__name small { display: block; font-family: var(--hf-sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A6B26; margin-top: 4px; }
.hf-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.hf-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.hf-menu li { position: relative; }
.hf-menu a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--hf-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.hf-menu a:hover, .hf-menu .current-menu-item > a, .hf-menu .current_page_item > a { background: var(--hf-sand); color: var(--hf-forest); }
.hf-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(14, 44, 36, .4); }
.hf-menu li:hover > .sub-menu, .hf-menu li:focus-within > .sub-menu { display: block; }
.hf-nav__donate { display: none; }
.hf-burger { display: none; width: 46px; height: 46px; border: 0; background: var(--hf-sand); border-radius: 12px; cursor: pointer; position: relative; flex: none; }
.hf-burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--hf-forest); transition: .3s; }
.hf-burger i:nth-of-type(1) { top: 16px; } .hf-burger i:nth-of-type(2) { top: 22px; } .hf-burger i:nth-of-type(3) { top: 28px; }
.hf-nav-open .hf-burger i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.hf-nav-open .hf-burger i:nth-of-type(2) { opacity: 0; }
.hf-nav-open .hf-burger i:nth-of-type(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
	.hf-burger { display: block; }
	.hf-header__donate { margin-left: auto; padding: 10px 18px; font-size: 14px; }
	.hf-nav {
		position: fixed; left: 0; right: 0; top: var(--hf-header-h, 120px); bottom: 0; background: var(--hf-cream);
		flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 24px 40px; overflow-y: auto;
		transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .25s;
	}
	.hf-nav-open .hf-nav { transform: none; opacity: 1; pointer-events: auto; }
	.hf-menu { flex-direction: column; gap: 0; }
	.hf-menu a { padding: 16px 6px; border-radius: 0; border-bottom: 1px solid var(--hf-sand); font-size: 17px; }
	.hf-menu .sub-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
	.hf-nav__donate { display: inline-flex; }
}
@media (max-width: 520px) {
	.hf-topbar__contact a:first-child { display: none; }
	.hf-brand__name { font-size: 17px; max-width: 120px; }
	.hf-brand svg, .hf-brand__logo { width: 40px; height: 40px; }
	.hf-header__inner { gap: 12px; min-height: 72px; }
	.hf-header__donate { padding: 9px 14px; font-size: 13px; }
}

/* Social icons */
.hf-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-socials a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: inherit; background: rgba(255, 255, 255, .08); text-decoration: none; transition: background .2s, color .2s; }
.hf-socials a:hover { background: var(--hf-gold); color: var(--hf-forest-dark); }
.hf-details .hf-socials a { background: var(--hf-forest); color: #fff; }

/* ---------- Page content ---------- */
.hf-main { display: block; }
.hf-content { margin: 0; }
.hf-entry--full .hf-content > :first-child { margin-top: 0; }
.hf-content--narrow { padding: 56px 24px 90px; max-width: 828px; margin: 0 auto; box-sizing: border-box; }
.hf-content--narrow > * + * { margin-top: 1.2em; }
.hf-page-head { background: var(--hf-forest) url("../img/dots.svg"); color: #fff; padding: clamp(48px, 7vw, 90px) 0; }
.hf-page-head h1 { margin: 0; font-family: var(--hf-serif); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; color: #fff; }
.hf-page-head__meta { color: var(--hf-gold); font-weight: 700; margin: 0 0 10px; }
.hf-page-head--center { text-align: center; }
.hf-thumb { border-radius: 16px; margin-bottom: 24px; }

/* Inner page banners (block) */
.hf-banner { position: relative; overflow: hidden; }
.hf-banner::after { content: ""; position: absolute; right: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 160, 74, .28), rgba(200, 160, 74, 0) 70%); pointer-events: none; }
.hf-banner > * { position: relative; z-index: 1; }
.hf-banner-text { max-width: 680px; }
.hf-banner h1 { margin-top: .2em; }

/* CTA band */
.hf-cta-btns { justify-content: flex-end; }
.hf-cta .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--hf-cream); border-color: rgba(248, 244, 236, .5); }
.hf-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--hf-cream); color: var(--hf-forest); }
@media (max-width: 781px) { .hf-cta-btns { justify-content: flex-start; } }

/* Programme rows */
.hf-icon--big img { width: 200px !important; }
.hf-prog-icon { text-align: center; }
.hf-prog-icon .wp-block-image { display: flex; justify-content: center; }
@media (min-width: 782px) { .wp-block-columns.hf-flip { flex-direction: row-reverse; } }

/* Facts row, dark box, FAQ, legal */
.hf-facts .wp-block-column { border-top: 3px solid var(--hf-gold); padding-top: 20px; }
.hf-dark-box { border-radius: 16px; }
.hf-dark-box .hf-progress { background: transparent; border: 0; padding: 0; }
.hf-faq-wrap .wp-block-details { background: #fff; border: 1px solid #E3DCCB; border-radius: 14px; padding: 18px 22px; margin-top: 12px !important; }
.hf-faq-wrap .wp-block-details summary { font-weight: 700; font-size: 17px; cursor: pointer; color: var(--hf-forest); }
.hf-faq-wrap .wp-block-details[open] summary { margin-bottom: 10px; }
.hf-legal h2 { margin-top: 1.6em; }
.hf-legal ul { padding-left: 1.2em; }
.hf-quick + .hf-dark-box, .hf-dark-box + .hf-quick, .hf-quick + .hf-quick { margin-top: 20px; }
.hf-admin-note a { font-size: 13px; color: #8A6B26 !important; }
.hf-details p { margin: 0 0 16px; }
.hf-details a { color: var(--hf-forest); font-weight: 600; }

/* ---------- Footer ---------- */
.hf-site-footer { background: var(--hf-forest-dark); color: var(--hf-mist); font-size: 15px; }
.hf-kente { height: 8px; background: repeating-linear-gradient(90deg, #C8A04A 0 28px, #133B30 28px 40px, #B8573A 40px 52px, #133B30 52px 64px); }
.hf-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.hf-site-footer a { color: var(--hf-cream); text-decoration: none; }
.hf-site-footer a:hover { color: var(--hf-gold); }
.hf-brand--light { color: var(--hf-cream); margin-bottom: 18px; }
.hf-brand--light svg, .hf-brand--light .hf-brand__logo { box-shadow: 0 0 0 2px var(--hf-gold); }
.hf-footer__about p { line-height: 1.7; margin: 0 0 18px; }
.hf-footer__title { font-family: var(--hf-sans); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hf-gold); margin: 6px 0 18px; }
.hf-footer__links, .hf-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hf-footer__links a { padding: 0; background: none !important; border-radius: 0; font-weight: 500; font-size: 15px; color: var(--hf-cream); }
.hf-footer__give p { margin: 0 0 16px; }
.hf-footer__bottom { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #2A5246; font-size: 13px; }
.hf-footer__bottom p { margin: 0; }
.hf-legal-links { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
@media (max-width: 960px) { .hf-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hf-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- News ---------- */
.hf-archive { padding-top: 56px; padding-bottom: 90px; }
.hf-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.hf-post-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px -32px rgba(14, 44, 36, .5); }
.hf-post-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.hf-post-card__body { padding: 22px 24px 26px; }
.hf-post-card__date { font-size: 13px; color: #8A6B26; font-weight: 700; margin: 0 0 6px; }
.hf-post-card h2 { font-family: var(--hf-serif); font-size: 22px; margin: 0 0 10px; line-height: 1.25; }
.hf-post-card h2 a { color: var(--hf-forest); text-decoration: none; }
.hf-post-donate { margin-top: 40px !important; }

/* Contact & volunteer forms [harami_contact] */
.hf-cform .hf-fields { margin-top: 0; }
.hf-cform select { width: 100%; padding: 13px 14px; border: 1.5px solid #DCD3C0; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.hf-cform .hf-submit { margin-top: 12px; }
.hf-dark-box .hf-progress__nums strong { color: #fff !important; }
.hf-quote { font-family: var(--hf-serif); }
.hf-quick > * + * { margin-top: 12px; }
.hf-quick h3 { margin: 0; }
