/* ==========================================================================
   Adaure's Hope — main stylesheet
   Colours, fonts and sizes come from theme.json presets (--wp--preset--*).
   ========================================================================== */

:root {
	--ah-red: var(--wp--preset--color--primary, #E2020B);
	--ah-red-dark: var(--wp--preset--color--primary-dark, #A80008);
	--ah-ink: var(--wp--preset--color--ink, #1C1F23);
	--ah-body: var(--wp--preset--color--body, #4B5056);
	--ah-muted: var(--wp--preset--color--muted, #7A8087);
	--ah-cream: var(--wp--preset--color--cream, #FBF6F1);
	--ah-sand: var(--wp--preset--color--sand, #F2E7DC);
	--ah-sun: var(--wp--preset--color--sun, #FFC845);
	--ah-line: var(--wp--preset--color--line, #E9E1D8);
	--ah-radius: var(--wp--custom--radius, 18px);
	--ah-radius-sm: var(--wp--custom--radius-sm, 10px);
	--ah-shadow: var(--wp--custom--shadow, 0 18px 40px -18px rgba(28,31,35,.28));
	--ah-head: var(--wp--preset--font-family--heading, Poppins, sans-serif);
	--ah-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--ah-header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ah-header-h) + 1rem); }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ah-sun); outline-offset: 3px; border-radius: 4px; }

.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 !important; width: 1px; word-wrap: normal !important; }
.ah-skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ah-ink); color: #fff; padding: .75rem 1rem; border-radius: var(--ah-radius-sm); }
.ah-skip:focus { top: 1rem; }

.ah-container { width: 100%; max-width: calc(1200px + var(--ah-gutter) * 2); margin-inline: auto; padding-inline: var(--ah-gutter); }
.ah-container--narrow { max-width: calc(760px + var(--ah-gutter) * 2); }
.ah-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.ah-section--cream { background: var(--ah-cream); }
.ah-section__title { text-align: center; margin: 0 0 2.5rem; }
.ah-center { text-align: center; }
.ah-mt { margin-top: 2.5rem; }
.ah-empty { text-align: center; color: var(--ah-muted); font-size: 1.1rem; }

.ah-icon { flex: none; }

/* ---------- Buttons ---------- */
.ah-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--ah-head); font-weight: 600; font-size: .95rem; line-height: 1.2;
	padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.ah-btn:hover { transform: translateY(-1px); }
.ah-btn--primary { background: var(--ah-red); color: #fff; }
.ah-btn--primary:hover { background: var(--ah-red-dark); color: #fff; }
.ah-btn--white { background: #fff; color: var(--ah-red); }
.ah-btn--white:hover { background: var(--ah-ink); color: #fff; }
.ah-btn--ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.ah-btn--ghost-light:hover { background: #fff; color: var(--ah-ink); }
.ah-btn .ah-icon { width: 1.05em; height: 1.05em; }

.wp-block-button__link { transition: background .2s, color .2s, transform .2s, border-color .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--ah-red); padding: calc(.85em - 2px) calc(1.6em - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ah-red); border-color: var(--ah-red); color: #fff; }
.wp-block-button.is-style-ah-light > .wp-block-button__link { background: transparent; border: 2px solid rgba(255,255,255,.65); color: #fff; padding: calc(.85em - 2px) calc(1.6em - 2px); }
.wp-block-button.is-style-ah-light > .wp-block-button__link:hover { background: #fff; color: var(--ah-ink); }

/* ---------- Top bar ---------- */
.ah-topbar { background: var(--ah-ink); color: rgba(255,255,255,.82); font-size: .85rem; }
.ah-topbar a { color: inherit; text-decoration: none; }
.ah-topbar a:hover { color: #fff; }
.ah-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.ah-topbar__contact { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.ah-topbar__contact a, .ah-topbar__address { display: inline-flex; align-items: center; gap: .45rem; }
.ah-topbar .ah-icon { width: 15px; height: 15px; color: var(--ah-red); }
.ah-topbar__right { display: flex; align-items: center; gap: 1.25rem; }
.ah-social { display: flex; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ah-social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; transition: background .2s, color .2s; }
.ah-social--top a .ah-icon { color: rgba(255,255,255,.82); }
.ah-social--top a:hover { background: var(--ah-red); }
.ah-social--top a:hover .ah-icon { color: #fff; }

/* ---------- Header ---------- */
.ah-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.admin-bar .ah-header { top: 32px; }
.ah-header.is-scrolled { box-shadow: 0 8px 28px -18px rgba(0,0,0,.35); border-color: var(--ah-line); }
.ah-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--ah-header-h); }
.ah-logo { display: inline-flex; align-items: center; flex: none; }
.ah-logo img { width: auto; height: 50px; max-width: 210px; object-fit: contain; }
.ah-logo--text { font-family: var(--ah-head); font-weight: 700; color: var(--ah-ink); text-decoration: none; font-size: 1.25rem; }

.ah-nav { display: flex; align-items: center; gap: 1.5rem; }
.ah-nav .menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.ah-nav .menu > li { position: relative; }
.ah-nav .menu a { display: flex; align-items: center; gap: .3rem; padding: .6rem .8rem; font-family: var(--ah-head); font-weight: 500; font-size: .95rem; color: var(--ah-ink); text-decoration: none; border-radius: 8px; }
.ah-nav .menu > li > a:hover, .ah-nav .menu > li:focus-within > a { color: var(--ah-red); }
.ah-nav .menu > .current-menu-item > a, .ah-nav .menu > .current-menu-ancestor > a, .ah-nav .menu > .current_page_item > a { color: var(--ah-red); }
.ah-nav .menu-item-has-children > a::after { content: ""; width: .42em; height: .42em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: .25rem; opacity: .7; }
.ah-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px -20px rgba(28,31,35,.35), 0 0 0 1px rgba(28,31,35,.05); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 10; }
.ah-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.ah-nav .menu > li:hover > .sub-menu, .ah-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ah-nav .sub-menu a { font-weight: 500; font-size: .92rem; padding: .6rem .8rem; color: var(--ah-body); }
.ah-nav .sub-menu a:hover { background: var(--ah-cream); color: var(--ah-red); }
.ah-header__cta { padding: .75em 1.35em; }
.ah-submenu-toggle { display: none; }

.ah-nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ah-cream); cursor: pointer; position: relative; }
.ah-nav-toggle__bars, .ah-nav-toggle__bars::before, .ah-nav-toggle__bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ah-ink); border-radius: 2px; transition: transform .25s, opacity .2s; content: ""; }
.ah-nav-toggle__bars { top: 22px; }
.ah-nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.ah-nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bars { background: transparent; }
.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.ah-nav-toggle[aria-expanded="true"] .ah-nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.ah-topbar__address { display: none; }
	.ah-nav-toggle { display: block; }
	.ah-nav {
		position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); z-index: 200; flex-direction: column; align-items: stretch; gap: 1.25rem;
		background: #fff; padding: 5.5rem 1.5rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; box-shadow: -20px 0 60px -30px rgba(0,0,0,.5);
	}
	.ah-nav.is-open { transform: none; }
	.ah-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ah-nav .menu > li { border-bottom: 1px solid var(--ah-line); display: flex; flex-wrap: wrap; align-items: center; }
	.ah-nav .menu > li > a { flex: 1; padding: .95rem .25rem; font-size: 1.05rem; }
	.ah-nav .menu-item-has-children > a::after { display: none; }
	.ah-submenu-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: var(--ah-cream); border-radius: 10px; cursor: pointer; }
	.ah-submenu-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ah-ink); border-bottom: 2px solid var(--ah-ink); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.ah-submenu-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
	.ah-nav .sub-menu { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 .75rem .75rem; display: none; min-width: 0; }
	.ah-nav .sub-menu.is-open { display: block; }
	.ah-nav .menu > li:hover > .sub-menu { display: none; }
	.ah-nav .menu > li:hover > .sub-menu.is-open { display: block; }
	.ah-header__cta { justify-content: center; }
	.ah-nav-toggle { z-index: 210; }
	body.ah-nav-open { overflow: hidden; }
	body.ah-nav-open .ah-header { z-index: 300; }
	body.ah-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(20,22,25,.45); z-index: 150; }
}
@media (max-width: 640px) {
	.ah-topbar__contact li:nth-child(2) { display: none; }
	.ah-social--top { display: none; }
	:root { --ah-header-h: 72px; }
	.ah-logo img { height: 42px; }
}
@media (max-width: 782px) { .admin-bar .ah-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ah-header { top: 0; } }

/* ---------- Title band (inner pages) ---------- */
.ah-hero-band { position: relative; background: var(--ah-cream); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; isolation: isolate; }
.ah-hero-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(226,2,11,.12), rgba(226,2,11,0) 70%); z-index: -1; }
.ah-hero-band__title { font-size: clamp(2rem, 5vw, 3.4rem); margin: .25rem 0 0; max-width: 22ch; }
.ah-hero-band__intro { max-width: 60ch; margin-top: 1rem; font-size: var(--wp--preset--font-size--lead); }
.ah-hero-band__intro p { margin: 0 0 1rem; }
.ah-hero-band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 1.25rem 0 0; color: var(--ah-muted); font-weight: 500; }
.ah-hero-band__meta .ah-icon { color: var(--ah-red); margin-right: .35rem; vertical-align: -3px; }
.ah-hero-band__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; fill: #fff; }
.ah-hero-band.has-image { background: var(--ah-ink) var(--ah-hero-img) center/cover no-repeat; color: rgba(255,255,255,.9); }
.ah-hero-band.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,22,25,.88), rgba(20,22,25,.5)); z-index: -1; }
.ah-hero-band.has-image::before { display: none; }
.ah-hero-band.has-image .ah-hero-band__title, .ah-hero-band.has-image .ah-eyebrow, .ah-hero-band.has-image .ah-eyebrow a { color: #fff; }
.ah-hero-band.has-image .ah-hero-band__meta { color: rgba(255,255,255,.8); }

.ah-eyebrow, .is-style-ah-eyebrow {
	font-family: var(--ah-head); font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .16em !important; text-transform: uppercase;
	color: var(--ah-red); margin: 0 0 .5rem; display: inline-flex; align-items: center; gap: .6rem; line-height: 1.4 !important;
}
.ah-eyebrow::before, .is-style-ah-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.has-text-align-center.is-style-ah-eyebrow { display: flex; justify-content: center; }
.ah-eyebrow a { color: inherit; text-decoration: none; }
.has-white-color.is-style-ah-eyebrow, .has-sun-color.is-style-ah-eyebrow { color: inherit; }

/* ---------- Content area ---------- */
.ah-content { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.ah-content--landing { padding-top: 0; padding-bottom: 0; }
.ah-content > :first-child { margin-top: 0; }
.ah-content--landing > .alignfull:first-child { margin-top: 0 !important; }
.ah-content--landing > .alignfull:last-child { margin-bottom: 0 !important; }
.entry-content p, .entry-content li { text-wrap: pretty; }
.entry-content h2, .entry-content h3 { text-wrap: balance; }
.entry-content > * + h2 { margin-top: 2.5rem; }
.entry-content figure { margin-block: 2rem; }
.entry-content .wp-block-image img { border-radius: inherit; }
.ah-content > .alignfull + .alignfull { margin-top: 0; }

/* Groups used as page sections */
.wp-block-group.alignfull.has-background { margin-block: 0; }
.wp-block-cover.alignfull { margin-block: 0; }

/* Hero cover */
.ah-hero.wp-block-cover { min-height: clamp(560px, 78vh, 760px) !important; align-items: center; padding-block: clamp(4rem, 9vw, 7rem) clamp(7rem, 12vw, 9rem) !important; }
.ah-hero .wp-block-cover__inner-container { width: 100%; }
.ah-hero__text { max-width: 1200px; }
.ah-hero__text > * { margin-left: 0 !important; }
.ah-hero h1 { color: #fff; max-width: 17ch; margin-block: .25rem 1.25rem; text-wrap: balance; }
.ah-hero h1 em { font-style: normal; color: var(--ah-sun); }
.ah-hero p { max-width: 54ch; }
.ah-hero .wp-block-buttons { margin-top: 2rem; }

/* Cards that overlap the section above */
.is-style-ah-card, .is-style-ah-lift {
	background: #fff; border-radius: var(--ah-radius); padding: clamp(1.75rem, 3vw, 2.5rem) !important; box-shadow: var(--ah-shadow);
	border: 1px solid rgba(28,31,35,.05); height: 100%;
}
.is-style-ah-card > :first-child, .is-style-ah-lift > :first-child { margin-top: 0; }
.is-style-ah-card > :last-child, .is-style-ah-lift > :last-child { margin-bottom: 0; }
.ah-lift-row { position: relative; z-index: 2; margin-top: clamp(-7rem, -9vw, -5rem) !important; }
.wp-block-columns.ah-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.ah-equal > .wp-block-column > * { flex: 1; }
.ah-icon-badge { width: 56px; height: 56px; border-radius: 16px; display: grid !important; place-items: center; background: rgba(226,2,11,.09); color: var(--ah-red); margin: 0 0 1.1rem !important; font-size: 1.5rem; line-height: 1; }
.ah-icon-badge img { width: 28px; height: 28px; }

/* Check list */
.is-style-ah-checks { list-style: none; padding-left: 0 !important; display: grid; gap: .85rem; }
.is-style-ah-checks li { position: relative; padding-left: 2.25rem; }
.is-style-ah-checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ah-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.has-primary-background-color .is-style-ah-checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E2020B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.is-style-ah-checks strong { display: block; color: inherit; font-family: var(--ah-head); font-weight: 600; }

/* Organic image */
.is-style-ah-blob img { border-radius: 42% 58% 46% 54% / 48% 40% 60% 52% !important; aspect-ratio: 1; object-fit: cover; }
.wp-block-image.ah-photo-stack { position: relative; }
.ah-photo-frame img { border-radius: var(--ah-radius) !important; box-shadow: var(--ah-shadow); }
.ah-stat { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem !important; background: var(--ah-cream); border-radius: var(--ah-radius-sm); border-left: 4px solid var(--ah-red); }
.ah-stat .ah-stat__num { font-family: var(--ah-head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ah-red); margin: 0; }
.ah-stat p { margin: 0; }

/* Wave edge on sections */
.is-style-ah-wave { position: relative; }
.is-style-ah-wave::before { content: ""; position: absolute; left: 0; right: 0; top: -43px; height: 44px; background: inherit; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V28L360 6l340 34 300-30 440 22v28z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V28L360 6l340 34 300-30 440 22v28z'/%3E%3C/svg%3E") center/100% 100% no-repeat; pointer-events: none; }

/* Cause cards */
.ah-cause { display: flex; flex-direction: column; background: #fff; border-radius: var(--ah-radius); overflow: hidden; box-shadow: var(--ah-shadow); height: 100%; gap: 0 !important; }
.ah-cause > .wp-block-image { margin: 0 !important; }
.ah-cause > .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: 0 !important; }
.ah-cause > .wp-block-group { padding: 1.6rem 1.6rem 1.75rem !important; display: flex; flex-direction: column; flex: 1; gap: .9rem; }
.ah-cause h3 { font-size: 1.25rem; margin: 0; }
.ah-cause p { margin: 0; font-size: .98rem; }
.ah-cause .wp-block-buttons { margin-top: auto !important; padding-top: .5rem; }
.ah-cause .wp-block-button__link { font-size: .85rem; }
.ah-cause details { font-size: .98rem; }
.ah-cause details summary { cursor: pointer; color: var(--ah-red); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }

/* Gallery */
.wp-block-gallery .wp-block-image img { border-radius: var(--ah-radius-sm); }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { border-radius: 0 0 var(--ah-radius-sm) var(--ah-radius-sm); }
/* Mosaic style: square tiles, every 7th tile large */
.wp-block-gallery.has-nested-images.is-style-ah-mosaic {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 18vw, 230px); grid-auto-flow: dense; gap: .75rem !important;
}
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image { width: auto !important; height: 100%; margin: 0 !important; align-self: stretch; }
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image img,
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image .wp-lightbox-container,
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image > a { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image img { border-radius: var(--ah-radius-sm) !important; transition: transform .4s, filter .3s; }
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image { overflow: hidden; border-radius: var(--ah-radius-sm); }
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure.wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.has-nested-images.is-style-ah-mosaic > figure:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px) { .wp-block-gallery.has-nested-images.is-style-ah-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; } }

/* Volunteer quote band */
.ah-quote-band blockquote { border: 0; padding: 0; margin: 0; }

/* ---------- Dynamic sections (plugin shortcodes) ---------- */
.ah-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.ah-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--ah-radius); overflow: hidden; box-shadow: 0 1px 0 rgba(28,31,35,.06), 0 14px 34px -22px rgba(28,31,35,.35); transition: transform .25s, box-shadow .25s; }
.ah-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(28,31,35,.06), 0 26px 50px -24px rgba(28,31,35,.45); }
.ah-card__media { display: block; overflow: hidden; aspect-ratio: 3/2; background: var(--ah-sand); }
.ah-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ah-card:hover .ah-card__img { transform: scale(1.04); }
.ah-card__img--placeholder { background: var(--ah-sand) url("../img/mark.svg") center/64px no-repeat; }
.ah-card__body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.ah-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin: 0; font-size: .82rem; color: var(--ah-muted); }
.ah-card__cat { font-family: var(--ah-head); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-red); background: rgba(226,2,11,.08); padding: .25rem .6rem; border-radius: 999px; }
.ah-card__title { font-size: 1.12rem !important; line-height: 1.35 !important; margin: 0 !important; letter-spacing: -.01em; }
.ah-card__title a { color: var(--ah-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat; transition: background-size .3s; }
.ah-card__title a:hover { background-size: 100% 1px; color: var(--ah-ink); }
.ah-card__excerpt { margin: 0; font-size: .95rem; color: var(--ah-body); }

.ah-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.ah-team__link { display: block; text-decoration: none; text-align: center; }
.ah-team__photo { aspect-ratio: 1; border-radius: var(--ah-radius); overflow: hidden; background: var(--ah-sand); margin-bottom: 1rem; position: relative; }
.ah-team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s; display: block; }
.ah-team__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--ah-red); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.ah-team__link:hover .ah-team__photo img { transform: scale(1.05); }
.ah-team__link:hover .ah-team__photo::after { transform: scaleX(1); }
.ah-team__initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ah-head); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); letter-spacing: .04em; color: var(--ah-red); background: linear-gradient(145deg, var(--ah-cream), var(--ah-sand)); }
.ah-team__initials--large { position: relative; aspect-ratio: 1; border-radius: var(--ah-radius); font-size: clamp(3.5rem, 8vw, 6rem); box-shadow: var(--ah-shadow); }
.ah-team__name { font-size: 1.08rem !important; margin: 0 0 .2rem !important; color: var(--ah-ink); }
.ah-team__role { margin: 0; font-size: .9rem; color: var(--ah-red); font-weight: 500; }

.ah-faqs { display: grid; gap: .75rem; }
.ah-faq, .wp-block-details { background: #fff; border: 1px solid var(--ah-line); border-radius: 14px; padding: 0; transition: border-color .2s, box-shadow .2s; }
.ah-faq[open], .wp-block-details[open] { border-color: transparent; box-shadow: var(--ah-shadow); }
.ah-faq summary, .wp-block-details summary { cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.35rem; font-family: var(--ah-head); font-weight: 600; color: var(--ah-ink); position: relative; line-height: 1.4; }
.ah-faq summary::-webkit-details-marker, .wp-block-details summary::-webkit-details-marker { display: none; }
.ah-faq summary::after, .wp-block-details summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--ah-cream); color: var(--ah-red); display: grid; place-items: center; font-size: 1.2rem; font-weight: 500; transition: transform .2s, background .2s, color .2s; }
.ah-faq[open] summary::after, .wp-block-details[open] summary::after { content: "–"; background: var(--ah-red); color: #fff; }
.ah-faq__answer, .wp-block-details > :not(summary) { padding: 0 1.35rem 1.25rem; margin: 0; }
.ah-faq__answer p { margin: 0 0 .75rem; }
.ah-faq__answer p:last-child { margin: 0; }

.ah-outreach { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.ah-outreach__item a { display: flex; gap: 1.1rem; align-items: center; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; text-decoration: none; height: 100%; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ah-outreach__item a:hover { border-color: transparent; box-shadow: var(--ah-shadow); transform: translateY(-2px); }
.ah-outreach__date { flex: none; width: 66px; height: 70px; border-radius: 12px; background: var(--ah-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-family: var(--ah-head); }
.ah-outreach__date .d { font-size: 1.55rem; font-weight: 700; }
.ah-outreach__date .m { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; margin-top: 3px; }
.ah-outreach__body { min-width: 0; }
.ah-outreach__region { margin: 0 0 .15rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-red); font-weight: 700; display: inline-block; }
.ah-outreach__status { display: inline-block; margin-left: .5rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 999px; background: var(--ah-sun); color: var(--ah-ink); }
.ah-outreach__title { font-size: 1rem !important; line-height: 1.35 !important; margin: 0 !important; color: var(--ah-ink); letter-spacing: -.005em; }
.ah-outreach__loc { margin: .15rem 0 0; font-size: .85rem; color: var(--ah-muted); }

.ah-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.ah-filter a { padding: .5rem 1rem; border-radius: 999px; background: var(--ah-cream); color: var(--ah-ink); text-decoration: none; font-weight: 500; font-size: .9rem; }
.ah-filter a:hover { background: var(--ah-sand); }
.ah-filter a[aria-current] { background: var(--ah-red); color: #fff; }

/* ---------- Single post / member ---------- */
.ah-single__feature { margin: clamp(2rem, 5vw, 3.5rem) auto 0; }
.ah-single__feature img { border-radius: var(--ah-radius); width: 100%; max-height: 520px; object-fit: cover; }
.ah-single .ah-content { padding-top: clamp(2rem, 5vw, 3rem); }
.ah-single__footer { padding-bottom: clamp(3rem, 7vw, 5rem); }
.ah-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--ah-line); padding-top: 1.75rem; }
.ah-post-nav a { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ah-ink); font-family: var(--ah-head); font-weight: 600; line-height: 1.35; }
.ah-post-nav a span { font-family: inherit; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ah-red); }
.ah-post-nav .next { text-align: right; grid-column: 2; }
.ah-press { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem 1.75rem !important; background: var(--ah-cream); border-radius: var(--ah-radius); border-left: 4px solid var(--ah-red); }
.ah-press p { margin: 0; }

.ah-member { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-block: clamp(3rem, 7vw, 5.5rem); }
.ah-member__photo img { width: 100%; border-radius: var(--ah-radius); aspect-ratio: 1; object-fit: cover; object-position: center 25%; box-shadow: var(--ah-shadow); }
.ah-member__name { font-size: clamp(2rem, 4vw, 2.8rem); margin: .25rem 0 .35rem; }
.ah-member__role { font-family: var(--ah-head); font-weight: 500; color: var(--ah-red); font-size: 1.1rem; margin: 0 0 1.75rem; }
@media (max-width: 760px) { .ah-member { grid-template-columns: 1fr; } .ah-member__photo { max-width: 360px; } }

/* ---------- Forms (Contact Form 7 + search) ---------- */
.wpcf7 form { display: block; }
.wpcf7 label { display: block; margin: 0 0 1.1rem; font-weight: 500; font-size: .92rem; color: var(--ah-ink); }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: .4rem; font-weight: 400; }
.wpcf7 .mb-3 { margin-bottom: .9rem; }
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 select, .wpcf7 textarea, .ah-search input {
	width: 100%; font: inherit; color: var(--ah-ink); background: #fff; border: 1.5px solid var(--ah-line); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus, .ah-search input:focus { outline: none; border-color: var(--ah-red); box-shadow: 0 0 0 4px rgba(226,2,11,.12); }
.wpcf7 input[type="submit"], .wpcf7 .btn { font-family: var(--ah-head); font-weight: 600; font-size: .95rem; background: var(--ah-red); color: #fff; border: 0; border-radius: 999px; padding: .95em 2em; cursor: pointer; transition: background .2s; justify-self: start; }
.wpcf7 input[type="submit"]:hover { background: var(--ah-red-dark); }
.wpcf7-not-valid-tip { font-size: .85rem; color: var(--ah-red); margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; border-radius: 12px; padding: .9rem 1.1rem; }
.wpcf7 .wpcf7-spinner { margin: .75rem; }
.wpcf7 .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.ah-form-card { background: #fff; border-radius: var(--ah-radius); padding: clamp(1.75rem, 4vw, 2.75rem) !important; box-shadow: var(--ah-shadow); }
.has-ink-background-color .ah-form-card, .has-primary-background-color .ah-form-card { color: var(--ah-body); }
.ah-search { display: flex; max-width: 520px; position: relative; margin-top: 1.25rem; }
.ah-search input { padding-right: 3.5rem; border-radius: 999px; }
.ah-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ah-red); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* Tables */
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm); overflow: hidden; font-size: .97rem; }
.wp-block-table th { background: var(--ah-ink); color: #fff; font-family: var(--ah-head); font-weight: 600; text-align: left; font-size: .85rem; letter-spacing: .02em; }
.wp-block-table th, .wp-block-table td { padding: .9rem 1.1rem; border: 0; border-bottom: 1px solid var(--ah-line); vertical-align: top; }
.wp-block-table tbody tr:nth-child(even) td { background: var(--ah-cream); }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table td:first-child { font-weight: 600; color: var(--ah-ink); }
@media (max-width: 640px) { .wp-block-table { overflow-x: auto; } .wp-block-table table { min-width: 560px; } }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 .6rem; border-radius: 12px; background: var(--ah-cream); color: var(--ah-ink); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ah-red); color: #fff; }

/* ---------- Footer ---------- */
.ah-footer { background: var(--ah-ink); color: rgba(255,255,255,.72); font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.ah-main + .ah-footer { border-top: 1px solid rgba(255,255,255,.04); }
.ah-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.ah-footer a:hover { color: #fff; text-decoration: underline; }
.ah-footer-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem);
	background: var(--ah-red); color: rgba(255,255,255,.9); border-radius: calc(var(--ah-radius) + 6px); padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4.5vw, 3.5rem);
	box-shadow: 0 30px 60px -30px rgba(168,0,8,.6); position: relative; overflow: hidden; isolation: isolate;
}
.ah-footer-cta::before { content: ""; position: absolute; right: -60px; top: -90px; width: 280px; height: 280px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); z-index: -1; }
.ah-footer-cta__title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .35rem; max-width: 24ch; }
.ah-footer-cta p { margin: 0; max-width: 56ch; }
.ah-footer-cta__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.ah-footer-cta a:hover { text-decoration: none; }
.ah-footer .ah-btn--white { color: var(--ah-red); }
.ah-footer .ah-btn--white:hover { background: var(--ah-ink); color: #fff; }
.ah-footer__grid { display: grid; grid-template-columns: 1.35fr 1.2fr 1.1fr .8fr; gap: clamp(2rem, 4vw, 3.5rem); padding-block: 1rem 3.5rem; }
.ah-footer__brand p { margin: 1.25rem 0 1.4rem; max-width: 36ch; }
.ah-logo--footer img { height: 54px; filter: brightness(0) invert(1); }
.ah-footer__heading { color: #fff; font-size: 1rem !important; letter-spacing: .02em; margin: .4rem 0 1.25rem; }
.ah-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ah-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; word-break: break-word; }
.ah-footer__contact .ah-icon { color: var(--ah-red); margin-top: .2rem; width: 17px; height: 17px; }
.ah-footer__offices details { border-bottom: 1px solid rgba(255,255,255,.1); }
.ah-footer__offices summary { cursor: pointer; list-style: none; padding: .6rem 1.5rem .6rem 0; color: rgba(255,255,255,.88); font-weight: 500; position: relative; }
.ah-footer__offices summary::-webkit-details-marker { display: none; }
.ah-footer__offices summary::after { content: "+"; position: absolute; right: 0; color: var(--ah-red); font-weight: 700; }
.ah-footer__offices details[open] summary::after { content: "–"; }
.ah-footer__offices p { margin: 0 0 .9rem; font-size: .88rem; line-height: 1.6; }
.ah-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ah-social--footer a { background: rgba(255,255,255,.08); }
.ah-social--footer a:hover { background: var(--ah-red); text-decoration: none; }
.ah-social--footer .ah-icon { color: #fff; }
.ah-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.ah-footer__bottom .ah-container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.ah-footer__bottom p { margin: 0; }
@media (max-width: 1000px) { .ah-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ah-footer__grid { grid-template-columns: 1fr; } }

.ah-wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); transition: transform .2s; }
.ah-wa-float:hover { transform: scale(1.06); color: #fff; }
.ah-wa-float .ah-icon { width: 30px; height: 30px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ah-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
	.ah-reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive columns tweaks ---------- */
@media (max-width: 781px) {
	.ah-lift-row { margin-top: -4rem !important; }
	.wp-block-columns.ah-stack-reverse { flex-direction: column-reverse; }
}
