/* ==========================================================================
   HWCF Theme — design system
   Concept: "The Centre Circle"
   Palette: deep ink, Caribbean teal, bright tide, St. Lucian gold, warm sand
   Display: Fraunces (used with restraint) · Body: Raleway
   ========================================================================== */

/* ---- Tokens ---- */
:root {
	--hwcf-ink: #0A223A;
	--hwcf-ink-2: #183A5A;
	--hwcf-carib: #20B2AA;
	--hwcf-carib-dark: #183A5A;
	--hwcf-tide: #20B2AA;
	--hwcf-sun: #20B2AA;
	--hwcf-sand: #F7F8F9;
	--hwcf-white: #FFFFFF;
	--hwcf-text: #333333;
	--hwcf-muted: #4A4E57;
	--hwcf-line: rgba(24, 58, 90, 0.12);

	--font-display: "Playfair Display", Georgia, serif;
	--font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--font-button: var(--font-body);

	--radius: 14px;
	--shadow-soft: 0 10px 30px rgba(11, 31, 51, 0.08);
	--container: 1180px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.7;
	color: var(--hwcf-text);
	background: var(--hwcf-sand);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--hwcf-carib);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--hwcf-carib-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	color: var(--hwcf-ink-2);
	letter-spacing: normal;
}

/* Visible keyboard focus everywhere. */
:focus-visible {
	outline: 3px solid var(--hwcf-sun);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---- Layout ---- */
.container {
	width: min(100% - 3rem, var(--container));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 10000;
	padding: 0.75rem 1.25rem;
	background: var(--hwcf-sun);
	color: var(--hwcf-ink);
	font-weight: 600;
	border-radius: 0 0 8px 8px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	color: var(--hwcf-ink);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--hwcf-ink);
	color: #fff;
	border-bottom: 3px solid var(--hwcf-sun);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__topbar {
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.85rem;
}

.site-header__topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.5rem;
}

.site-header__socials {
	display: flex;
	gap: 0.4rem;
}

.site-header__socials .social-link {
	width: 30px;
	height: 30px;
	font-size: 0.85rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #cfe3ec;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.site-header__socials .social-link:hover {
	background: var(--hwcf-tide);
	color: #fff;
	transform: translateY(-2px);
}

.site-header__search .search-form {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	overflow: hidden;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	color: #fff;
	padding: 0.4rem 0.9rem;
	font-family: var(--font-body);
	font-size: 0.9rem;
	width: 150px;
}

.search-form__input::placeholder {
	color: #9fb6c4;
}

.search-form__btn {
	background: var(--hwcf-sun);
	border: none;
	color: var(--hwcf-ink);
	padding: 0.45rem 0.75rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

.search-form__btn:hover {
	background: var(--hwcf-tide);
	color: #fff;
}

.site-header__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	text-decoration: none;
}

.site-brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--hwcf-carib);
	border: 2px solid var(--hwcf-sun);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.site-brand__name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.2;
	color: #fff;
}

/* ---- Navigation ---- */
.main-nav .nav-links {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.nav-links li {
	position: relative;
}

.nav-links a {
	display: block;
	color: #dbe8ef;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.5rem 0.8rem;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
	color: var(--hwcf-sun);
}

.nav-links a:hover {
	background: rgba(255, 255, 255, 0.06);
}

/* Dropdown (About → Leadership). */
.nav-links .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--hwcf-ink-2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-top: 3px solid var(--hwcf-sun);
	border-radius: 0 0 8px 8px;
	padding: 0.4rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-links .sub-menu a {
	font-size: 0.78rem;
	padding: 0.6rem 0.8rem;
	border-radius: 6px;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 0.6rem 0.7rem;
	cursor: pointer;
}

.menu-toggle__bar {
	width: 22px;
	height: 2px;
	background: #fff;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 1rem 1.9rem;
	font-family: var(--font-button);
	font-weight: 600;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 3px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn--primary {
	background: var(--hwcf-carib);
	color: #fff;
}

.btn--primary:hover {
	background: var(--hwcf-ink-2);
	color: #fff;
}

.btn--secondary {
	background: var(--hwcf-ink-2);
	color: #fff;
}

.btn--secondary:hover {
	background: var(--hwcf-carib);
	color: #fff;
}

.btn--ghost {
	background: transparent;
	color: var(--hwcf-ink);
	border-color: var(--hwcf-carib);
}

.btn--ghost:hover {
	background: var(--hwcf-carib);
	color: #fff;
	transform: translateY(-2px);
}

/* ==========================================================================
   Section heading — the centre-circle signature motif
   ========================================================================== */
.hwcf-heading {
	text-align: center;
	max-width: 760px;
	margin-inline: auto;
	margin-bottom: 2.5rem;
}

.hwcf-heading__rule {
	position: relative;
	height: 2px;
	width: 160px;
	max-width: 70%;
	margin: 0 auto 1.1rem;
	background: linear-gradient(90deg, transparent, var(--hwcf-sun), transparent);
}

.hwcf-heading__centre {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--hwcf-sun);
	border: 2px solid var(--hwcf-ink);
	transform: translate(-50%, -50%);
}

.hwcf-heading__title {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	margin-bottom: 0.75rem;
}

.hwcf-heading__subtitle {
	color: var(--hwcf-muted);
	font-size: 1.08rem;
	max-width: 620px;
	margin-inline: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	background: linear-gradient(135deg, var(--hwcf-ink) 0%, var(--hwcf-ink-2) 100%);
	color: #fff;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	right: -160px;
	top: 50%;
	width: 540px;
	height: 540px;
	border: 2px solid rgba(245, 179, 1, 0.28);
	border-radius: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.hero::after {
	content: "";
	position: absolute;
	right: 110px;
	top: 50%;
	width: 360px;
	height: 360px;
	border: 1px solid rgba(56, 178, 172, 0.25);
	border-radius: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
	gap: 3rem;
	padding-block: clamp(3.5rem, 9vw, 7rem);
	position: relative;
	z-index: 1;
}

.hero__eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hwcf-tide);
	margin-bottom: 1.25rem;
}

.hero__quote {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.2rem, 5.5vw, 3.8rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin-bottom: 1.25rem;
	color: #fff;
}

.hero__subtext {
	color: #c8dbe5;
	font-size: 1.15rem;
	max-width: 34rem;
	margin-bottom: 2rem;
}

.hero__media {
	position: relative;
	display: flex;
	justify-content: center;
}

.hero__portrait {
	width: min(100%, 360px);
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--hwcf-sun);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
	padding-block: clamp(3rem, 7vw, 5rem);
}

.section--sand {
	background: var(--hwcf-sand);
}

.section--white {
	background: var(--hwcf-white);
}

.section--ink {
	background: var(--hwcf-ink);
	color: #fff;
}

.section--ink .hwcf-heading__title {
	color: #fff;
}

.lead {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
	font-size: 1.12rem;
	color: var(--hwcf-text);
}

/* ==========================================================================
   Quick links ("Explore the Foundation")
   ========================================================================== */
.quick-links {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}

.quick-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 2rem 1rem;
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-top: 3px solid var(--hwcf-tide);
	border-radius: var(--radius);
	color: var(--hwcf-ink);
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-link:hover {
	transform: translateY(-4px);
	border-top-color: var(--hwcf-sun);
	box-shadow: var(--shadow-soft);
	color: var(--hwcf-ink);
}

.quick-link i {
	font-size: 1.6rem;
	color: var(--hwcf-carib);
}

/* ==========================================================================
   Featured (video + text)
   ========================================================================== */
.featured {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.featured__media {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--hwcf-ink);
}

.featured__media .wp-block-embed,
.featured__media iframe {
	width: 100%;
	display: block;
}

.featured__content h3 {
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

.featured__content p {
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Card grids
   ========================================================================== */
.card-grid {
	display: grid;
	gap: 1.5rem;
}

.card-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}

.card {
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-radius: 0 40px;
	overflow: hidden;
	transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-soft);
	border-color: var(--hwcf-tide);
}

.card__media img {
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.card__body {
	padding: 1.4rem;
}

.card__title {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.card__text {
	color: var(--hwcf-muted);
	font-size: 0.98rem;
}

/* ==========================================================================
   People — the "matchday team sheet"
   ========================================================================== */
.people-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.person {
	position: relative;
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.person:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-soft);
	border-color: var(--hwcf-sun);
}

.person__number {
	position: absolute;
	top: 0.5rem;
	left: 0.75rem;
	z-index: 2;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.person__media {
	position: relative;
}

.person__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 31, 51, 0.55), transparent 45%);
}

.person__media img {
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.person__body {
	padding: 1.1rem 1.2rem 1.3rem;
	text-align: center;
}

.person__name {
	font-size: 1.15rem;
	margin-bottom: 0.15rem;
}

.person__position {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hwcf-carib);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.testimonial {
	position: relative;
	flex: 1 1 300px;
	max-width: 360px;
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-left: 4px solid var(--hwcf-sun);
	border-radius: var(--radius);
	padding: 1.75rem 1.6rem 1.6rem;
	display: flex;
	flex-direction: column;
}

.testimonial__quote {
	font-size: 1.05rem;
	color: var(--hwcf-text);
	margin-bottom: 1.25rem;
	flex-grow: 1;
}

.testimonial__quote::before {
	content: "\201C";
	display: block;
	font-family: var(--font-display);
	font-size: 2.6rem;
	line-height: 0.6;
	color: var(--hwcf-sun);
	margin-bottom: 0.6rem;
}

.testimonial__author {
	font-weight: 700;
	color: var(--hwcf-carib);
	font-size: 0.92rem;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
	position: relative;
	max-width: 820px;
	margin: 2.5rem auto 0;
	padding-left: 2rem;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 4px;
	bottom: 4px;
	width: 2px;
	background: linear-gradient(180deg, var(--hwcf-tide), var(--hwcf-carib));
}

.timeline__item {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 1.75rem;
}

.timeline__item::before {
	content: "";
	position: absolute;
	left: -2rem;
	top: 6px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--hwcf-sand);
	border: 3px solid var(--hwcf-carib);
}

.timeline__year {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--hwcf-carib);
	margin-bottom: 0.25rem;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.gallery-grid img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	border-radius: var(--radius);
	border: 1px solid var(--hwcf-line);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-grid img:hover {
	transform: scale(1.03);
	border-color: var(--hwcf-sun);
}

/* ==========================================================================
   Forms (Contact Form 7)
   ========================================================================== */
.wpcf7-form p {
	margin-bottom: 1rem;
}

.wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 0.35rem;
	color: var(--hwcf-ink);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--hwcf-line);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 1rem;
	background: var(--hwcf-white);
	color: var(--hwcf-text);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--hwcf-carib);
	box-shadow: 0 0 0 3px rgba(0, 117, 140, 0.18);
}

.wpcf7-form input[type="submit"] {
	background: var(--hwcf-sun);
	color: var(--hwcf-ink);
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 0.8rem 1.8rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.wpcf7-form input[type="submit"]:hover {
	background: #ffc62e;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(245, 179, 1, 0.35);
}

.wpcf7-not-valid-tip {
	color: #c0392b;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.wpcf7-response-output {
	border-radius: 8px;
	padding: 0.75rem 1rem;
	margin: 1rem 0 0;
	font-size: 0.95rem;
}

/* ==========================================================================
   News cards
   ========================================================================== */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.news-card {
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-soft);
	border-color: var(--hwcf-tide);
}

.news-card__media img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.news-card__body {
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-grow: 1;
}

.news-card__title {
	font-size: 1.15rem;
}

.news-card__title a {
	color: var(--hwcf-ink);
	text-decoration: none;
}

.news-card__title a:hover {
	color: var(--hwcf-carib);
}

.news-card__excerpt {
	color: var(--hwcf-muted);
	font-size: 0.96rem;
	flex-grow: 1;
}

.news-card__excerpt p {
	margin: 0;
}

/* ==========================================================================
   Page heading + entry content
   ========================================================================== */
.page-heading {
	padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.page-heading--center {
	text-align: center;
}

.page-heading .hwcf-heading__title {
	text-align: center;
}

.entry-content {
	max-width: 800px;
	margin-inline: auto;
	padding-bottom: 3rem;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--hwcf-ink);
	color: #dbe8ef;
	border-top: 4px solid var(--hwcf-sun);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.3fr;
	gap: 2.5rem;
	padding-block: 3.5rem 2.5rem;
}

.site-footer__name {
	color: #fff;
	font-size: 1.3rem;
	margin-bottom: 1rem;
}

.site-footer__heading {
	color: var(--hwcf-sun);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.site-footer__tagline {
	color: #b9ccd8;
	margin-bottom: 1.25rem;
	font-size: 0.98rem;
}

.site-footer__newsletter-blurb {
	color: #b9ccd8;
	font-size: 0.98rem;
	margin-bottom: 1rem;
}

.footer-links {
	list-style: none;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-links a {
	color: #b9ccd8;
	text-decoration: none;
	font-size: 0.98rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--hwcf-sun);
}

.social-links {
	display: flex;
	gap: 0.65rem;
}

.social-links .social-link {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #dbe8ef;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05rem;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links .social-link:hover {
	background: var(--hwcf-sun);
	color: var(--hwcf-ink);
	transform: translateY(-3px);
}

.social-links--center {
	justify-content: center;
}

.details-list {
	list-style: none;
	margin: 0 0 1.5rem;
}

.details-list li {
	margin-bottom: 0.5rem;
}

.featured__media iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

.featured__media .wp-embedded-video {
	width: 100%;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.25rem;
}

.site-footer__bottom-inner {
	text-align: center;
	font-size: 0.9rem;
	color: #8fa6b5;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.people-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.quick-links {
		grid-template-columns: repeat(3, 1fr);
	}

	.news-grid,
	.testimonial-grid,
	.gallery-grid,
	.card-grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.card-grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 860px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
		text-align: center;
	}

	.hero__subtext {
		margin-inline: auto;
	}

	.hero__media {
		order: -1;
	}

	.hero__portrait {
		width: min(70%, 280px);
	}

	.featured {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* Mobile navigation. */
	.menu-toggle {
		display: flex;
	}

	.main-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--hwcf-ink-2);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		padding: 1rem 1.5rem 1.5rem;
		display: none;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav .nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.nav-links a {
		padding: 0.85rem 0.5rem;
		font-size: 0.95rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.nav-links .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		border: none;
		padding: 0 0 0 1rem;
	}

	.nav-links .sub-menu a {
		font-size: 0.85rem;
	}
}

@media (max-width: 600px) {
	.site-header__topbar-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.site-header__search .search-form {
		width: 100%;
	}

	.search-form__input {
		width: 100%;
	}

	.people-grid,
	.quick-links,
	.news-grid,
	.testimonial-grid,
	.gallery-grid,
	.card-grid--3,
	.card-grid--4 {
		grid-template-columns: 1fr;
	}

	.hero__quote {
		font-size: clamp(1.9rem, 9vw, 2.6rem);
	}

	.btn {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Forms, contact, single templates
   ========================================================================== */
.form-container {
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-radius: var(--radius);
	padding: 2rem;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 2rem;
	align-items: start;
}

.contact-info {
	background: var(--hwcf-white);
	border: 1px solid var(--hwcf-line);
	border-top: 3px solid var(--hwcf-sun);
	border-radius: var(--radius);
	padding: 1.75rem;
}

.contact-info__item {
	padding: 1rem 0;
	border-bottom: 1px solid var(--hwcf-line);
}

.contact-info__item:last-child {
	border-bottom: 0;
}

.contact-info__item i {
	color: var(--hwcf-carib);
	font-size: 1.4rem;
	margin-bottom: 0.5rem;
}

.contact-info__item h4 {
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hwcf-ink);
	margin-bottom: 0.3rem;
}

.contact-info__item p,
.contact-info__item span,
.contact-info__item a {
	font-size: 0.95rem;
	color: var(--hwcf-muted);
}

.featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

.news-card__meta {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--hwcf-carib);
}

.single-post__media img {
	width: 100%;
	border-radius: var(--radius);
	margin-bottom: 2rem;
}

.single-person,
.single-initiative {
	padding-block: clamp(2.5rem, 6vw, 4rem);
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Flexible-content sections
   ========================================================================== */

/* Responsive video wrapper — keeps any embed at a clean 16:9 on all widths. */
.video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--hwcf-ink);
}

.video-embed iframe,
.video-embed .wp-block-embed,
.video-embed embed,
.video-embed object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.featured__media .video-embed {
	border-radius: 0;
}

/* Call-to-action band. */
.section--cta .cta-band {
	max-width: 760px;
	margin-inline: auto;
	text-align: center;
}

.cta-band__title {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	margin-bottom: 1rem;
}

.section--cta.section--ink .cta-band__title {
	color: #fff;
}

.cta-band__text {
	margin-bottom: 1.75rem;
}

.section--cta.section--ink .cta-band__text {
	color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Block-pattern fidelity — keep core-block markup matching the theme sections
   ========================================================================== */

/* Neutralise the block editor's default group margins inside our bands. */
.section > .wp-block-group,
.hero > .wp-block-group {
	margin-block: 0;
}

/* Group blocks used as layout wrappers shouldn't add their own max-width. */
.hero__inner.wp-block-group,
.container.wp-block-group {
	max-width: var(--container);
}

.hero__content.wp-block-group,
.hero__media.wp-block-group,
.card.wp-block-group,
.card__body.wp-block-group,
.testimonial.wp-block-group {
	max-width: none;
}

/* Buttons rendered as core blocks: strip the block chrome, let .btn show. */
.wp-block-button.btn .wp-block-button__link {
	background: transparent;
	padding: 0;
}

.hero .wp-block-buttons,
.section--cta .wp-block-buttons {
	margin-top: 1.5rem;
}

/* Image blocks used as card media fill their frame like the PHP version. */
.card__media.wp-block-image {
	margin: 0;
}

.card__media.wp-block-image img {
	width: 100%;
	display: block;
}

/* Hero portrait as a block image: the <figure> is just a wrapper; the
   circular gold-ringed frame belongs on the <img> inside it. */
.hero__portrait.wp-block-image {
	width: min(100%, 360px);
	margin-inline: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	aspect-ratio: auto;
}

.hero__portrait.wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--hwcf-sun);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Text + image: let the block image fill the media frame. */
.featured__media.wp-block-group .wp-block-image,
.featured__media.wp-block-group .wp-block-image img {
	width: 100%;
	margin: 0;
}

/* Narrower container variant for FAQ / video sections. */
.container--narrow {
	max-width: 820px;
}

/* Pull quote. */
.hwcf-pullquote {
	text-align: center;
}

.hwcf-pullquote__text {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3.5vw, 2.2rem);
	line-height: 1.35;
	color: var(--hwcf-ink);
	max-width: 900px;
	margin-inline: auto;
}

.hwcf-pullquote__cite {
	margin-top: 1rem;
	font-weight: 600;
	color: var(--hwcf-carib);
}

/* Stats. */
.stats-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
}

.stat {
	flex: 1 1 180px;
	max-width: 240px;
	text-align: center;
}

.stat__num {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	line-height: 1;
	color: var(--hwcf-sun);
	margin: 0;
}

.section--ink .stat__num {
	color: var(--hwcf-sun);
}

.stat__label {
	margin-top: 0.5rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Logos / partners strip. */
.logo-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
}

.logo-strip__item {
	flex: 0 0 auto;
	max-width: 160px;
	margin: 0;
}

.logo-strip__item img {
	max-height: 70px;
	width: auto;
}

/* Accordion (core Details block). */
.wp-block-details {
	border-bottom: 1px solid var(--hwcf-line);
	padding: 1rem 0;
}

.wp-block-details summary {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--hwcf-ink);
	cursor: pointer;
}

.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
}

/* Get Involved card icon. */
.card__icon {
	font-size: 1.8rem;
	color: var(--hwcf-carib);
	margin-bottom: 0.75rem;
}

/* ==========================================================================
   Design-language retrofit — demo-inspired flat, asymmetric cards
   ========================================================================== */
.card:hover {
	box-shadow: none;
	transform: translateY(-3px);
	border-color: var(--hwcf-carib);
}

.testimonial {
	background: var(--hwcf-sand);
	border: 0;
	border-left: 3px solid var(--hwcf-carib);
	border-radius: 0 40px;
}

/* Softer, elegant heading weight for Playfair Display. */
.hwcf-heading__title,
.hero__quote {
	font-weight: 700;
	letter-spacing: normal;
}

/* ==========================================================================
   Light header — lets the navy logo read, matches the elegant blend
   ========================================================================== */
.site-header {
	background: #fff;
	color: var(--hwcf-ink);
	border-bottom: 1px solid var(--hwcf-line);
}

.site-header__topbar {
	background: var(--hwcf-sand);
	border-bottom: 1px solid var(--hwcf-line);
}

.site-header__socials .social-link {
	color: var(--hwcf-ink-2);
	background: rgba(24, 58, 90, 0.06);
}

.site-header__socials .social-link:hover {
	background: var(--hwcf-carib);
	color: #fff;
}

.site-header__search .search-form {
	background: #fff;
	border-color: var(--hwcf-line);
}

.search-form__input {
	color: var(--hwcf-ink);
}

.search-form__input::placeholder {
	color: var(--hwcf-muted);
}

.search-form__btn {
	background: var(--hwcf-carib);
	color: #fff;
}

.search-form__btn:hover {
	background: var(--hwcf-ink-2);
}

.nav-links a {
	color: var(--hwcf-ink-2);
}

.nav-links a:hover {
	background: var(--hwcf-sand);
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
	color: var(--hwcf-carib);
}

.nav-links .sub-menu {
	background: #fff;
	border-color: var(--hwcf-line);
	border-top-color: var(--hwcf-carib);
}

.nav-links .sub-menu a {
	color: var(--hwcf-ink-2);
}

.menu-toggle {
	border-color: var(--hwcf-line);
}

.menu-toggle__bar {
	background: var(--hwcf-ink);
}

.custom-logo {
	max-width: 200px;
	max-height: none;
	width: auto;
	height: auto;
}

.site-header__main {
	padding-block: 0.6rem;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

@media (max-width: 1024px) {
	.main-nav {
		background: #fff;
		border-top: 1px solid var(--hwcf-line);
	}
}

/* Footer logo (white version). */
.site-footer__logo {
	display: inline-block;
	margin-bottom: 1rem;
}

.site-footer__logo img {
	max-width: 200px;
	height: auto;
}

/* ==========================================================================
   Motion & interaction layer (energy without louder colour)
   ========================================================================== */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Buttons lift gently on hover. */
.btn {
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(24, 58, 90, 0.18);
}

/* Modern nav underline micro-animation. */
.nav-links > li > a::after {
	content: "";
	position: absolute;
	left: 0.8rem;
	right: 0.8rem;
	bottom: 0.28rem;
	height: 2px;
	background: var(--hwcf-carib);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current_page_item > a::after {
	transform: scaleX(1);
}

/* ==========================================================================
   Hero redesign — framed portrait, bolder type, curved divider, motion
   ========================================================================== */
.hero {
	display: flex;
	align-items: center;
	min-height: 78vh;
	background: radial-gradient(130% 120% at 78% 18%, var(--hwcf-ink-2) 0%, var(--hwcf-ink) 62%);
}

.hero__inner {
	width: min(100% - 3rem, var(--container));
	margin-inline: auto;
	padding-block: clamp(3rem, 8vw, 6rem);
}

/* Single refined decorative ring (was gold). */
.hero::before {
	border-color: rgba(32, 178, 170, 0.22);
	width: 640px;
	height: 640px;
	right: -220px;
}

/* Curved divider bleeding into the white section below. */
.hero::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	top: auto;
	bottom: -1px;
	width: 110%;
	height: 80px;
	background: var(--hwcf-white);
	border: 0;
	border-radius: 50% / 100% 100% 0 0;
	transform: none;
	pointer-events: none;
	z-index: 2;
}

/* Bolder quote. */
.hero__quote {
	font-size: clamp(2.6rem, 6.5vw, 4.6rem);
	line-height: 1.04;
}

/* Larger, deeper framed portrait with a gentle float. */
.hero__portrait {
	width: min(100%, 400px);
}

.hero__portrait.wp-block-image img {
	border-width: 8px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
	animation: hwcf-float 6s ease-in-out infinite;
}

@keyframes hwcf-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
	.hero__portrait.wp-block-image img {
		animation: none;
	}
}

/* ==========================================================================
   Single initiative — feature-article layout
   ========================================================================== */
.single-initiative {
	padding-block: clamp(2rem, 5vw, 3.5rem);
}

.initiative-lead {
	max-width: 960px;
	margin: 0 auto 2.5rem;
}

.initiative-lead img {
	width: 100%;
	display: block;
	border-radius: 0 40px;
}

.initiative-article {
	max-width: 800px;
	margin-inline: auto;
}

.initiative-article h2 {
	margin-top: 2.25rem;
	margin-bottom: 0.75rem;
}

.initiative-article h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.6rem;
}

.initiative-article p,
.initiative-article ul {
	margin-bottom: 1.1rem;
}

.initiative-article .wp-block-image {
	margin: 2rem 0;
}

.initiative-article .wp-block-image img {
	border-radius: 0 40px;
	width: 100%;
}

.initiative-article figcaption {
	text-align: center;
	color: var(--hwcf-muted);
	font-size: 0.9rem;
	margin-top: 0.6rem;
}

.initiative-back {
	margin-top: 2.5rem;
}
