/*
Theme Name: Rotary Club of Bweyogerere Central
Theme URI: https://github.com/kmosesisaac/rcbweyogererecentral
Author: Rotary Club of Bweyogerere Central
Description: A custom WordPress theme for the Rotary Club of Bweyogerere Central. Charity-style layout (hero slider, areas of focus, projects with fundraising progress, events, leadership, news) in a light Rotary blue and gold palette.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rcb
Tags: charity, nonprofit, rotary, custom-logo, custom-menu, featured-images
*/

/* ------------------------------------------------------------------
   1. Design tokens
   Rotary Azure is used as the main blue (lighter than Royal Blue, per
   the brief: "rotary blue can work but don't darken it a lot").
------------------------------------------------------------------- */
:root {
	--rcb-blue: #0067c8;        /* Rotary Azure – primary */
	--rcb-blue-dark: #0057a8;   /* hover state, only slightly darker */
	--rcb-sky: #00a2e0;         /* Rotary Sky Blue – accents */
	--rcb-royal: #17458f;       /* Rotary Royal Blue – used sparingly */
	--rcb-deep: #003a70;        /* deepest tone, hero overlay only */
	--rcb-gold: #f7a81b;        /* Rotary Gold – CTAs, highlights */
	--rcb-gold-dark: #e09612;
	--rcb-ink: #1c2b39;         /* headings */
	--rcb-text: #4f5d6b;        /* body copy */
	--rcb-muted: #8693a0;
	--rcb-line: #e3eaf2;
	--rcb-soft: #f3f8fd;        /* light section background */
	--rcb-white: #ffffff;
	--rcb-footer: #0b2f57;

	--rcb-radius: 10px;
	--rcb-radius-lg: 18px;
	--rcb-shadow: 0 10px 30px rgba(16, 52, 94, .08);
	--rcb-shadow-lg: 0 18px 50px rgba(16, 52, 94, .14);
	--rcb-container: 1200px;

	--rcb-font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--rcb-font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--rcb-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--rcb-text);
	background: var(--rcb-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rcb-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rcb-blue-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--rcb-font-head);
	color: var(--rcb-ink);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
}
p { margin: 0 0 1.2em; }
ul { padding-left: 1.2em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	background: var(--rcb-gold); color: var(--rcb-ink);
	padding: 10px 16px; border-radius: 6px;
}

.container {
	width: 100%;
	max-width: var(--rcb-container);
	margin: 0 auto;
	padding: 0 20px;
}
.section { padding: 100px 0; }
.section--soft { background: var(--rcb-soft); }
.section--blue { background: var(--rcb-blue); color: rgba(255,255,255,.9); }
.section--blue h2, .section--blue h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--rcb-font-head);
	font-size: 14px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: var(--rcb-gold-dark);
	margin-bottom: 12px;
}
.eyebrow::before {
	content: ""; width: 28px; height: 2px; background: var(--rcb-gold);
}
.section-title { font-size: clamp(28px, 4vw, 42px); }
.section--blue .eyebrow { color: var(--rcb-gold); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--rcb-font-head); font-weight: 700; font-size: 15px;
	padding: 14px 30px; border-radius: 50px; border: 2px solid transparent;
	cursor: pointer; transition: all .25s ease; line-height: 1.2;
}
.btn--primary { background: var(--rcb-blue); color: #fff; }
.btn--primary:hover { background: var(--rcb-blue-dark); color: #fff; transform: translateY(-2px); }
.btn--gold { background: var(--rcb-gold); color: var(--rcb-ink); }
.btn--gold:hover { background: var(--rcb-gold-dark); color: var(--rcb-ink); transform: translateY(-2px); }
.btn--outline { border-color: #fff; color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--rcb-blue); }
.btn--ghost { border-color: var(--rcb-blue); color: var(--rcb-blue); background: transparent; }
.btn--ghost:hover { background: var(--rcb-blue); color: #fff; }
.btn--sm { padding: 10px 22px; font-size: 14px; }

/* Image placeholder: shown until a real photo is set in WordPress */
.rcb-ph {
	position: relative;
	background: linear-gradient(135deg, var(--rcb-sky) 0%, var(--rcb-blue) 55%, var(--rcb-royal) 100%);
	background-size: cover; background-position: center;
	overflow: hidden;
}
/* Illustration shown on placeholders until a real photo is uploaded.
   Modifier classes pick the artwork: .rcb-ph--water, --health, etc. */
.rcb-ph:not([style*="url"])::after {
	content: ""; position: absolute; inset: 8% 10% 0;
	background: var(--ph-art, url("assets/images/placeholders/people.svg")) center bottom / contain no-repeat;
	opacity: var(--ph-opacity, .28);
	pointer-events: none;
}
.rcb-ph--people      { --ph-art: url("assets/images/placeholders/people.svg"); }
.rcb-ph--water       { --ph-art: url("assets/images/placeholders/water.svg"); }
.rcb-ph--disease,
.rcb-ph--mothers,
.rcb-ph--health      { --ph-art: url("assets/images/placeholders/health.svg"); }
.rcb-ph--education   { --ph-art: url("assets/images/placeholders/education.svg"); }
.rcb-ph--environment,
.rcb-ph--nature      { --ph-art: url("assets/images/placeholders/nature.svg"); }
.rcb-ph--economy     { --ph-art: url("assets/images/placeholders/economy.svg"); }
.rcb-ph--peace       { --ph-art: url("assets/images/placeholders/peace.svg"); }
.rcb-ph--person      { --ph-art: url("assets/images/placeholders/person.svg"); --ph-opacity: .4; }
.rcb-ph--person:not([style*="url"])::after { inset: 14% 14% 0; }
.rcb-ph--wheel       { --ph-art: url("assets/images/rotary-wheel-white.svg"); --ph-opacity: .14; }
.rcb-ph--wheel:not([style*="url"])::after { inset: 15%; background-position: center; }
/* Big hero art sits on the right so it doesn't fight the headline. */
.hero__bg.rcb-ph:not([style*="url"])::after { inset: 18% 6% 0 52%; --ph-opacity: .22; }

/* ------------------------------------------------------------------
   3. Top bar + header
------------------------------------------------------------------- */
.topbar {
	background: var(--rcb-blue);
	color: rgba(255,255,255,.9);
	font-size: 14px;
}
.topbar .container {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; min-height: 46px; flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--rcb-gold); }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: var(--rcb-gold); flex: none; }

.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a {
	width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.12); color: #fff; font-size: 12px; font-weight: 700;
}
.social a:hover { background: var(--rcb-gold); color: var(--rcb-ink); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	box-shadow: 0 2px 14px rgba(16,52,94,.06);
	transition: box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: var(--rcb-shadow); }
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 86px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--rcb-ink); }
.brand:hover { color: var(--rcb-ink); }
.brand img, .custom-logo { max-height: 62px; width: auto; }
.brand__mark { width: 50px; height: 50px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--rcb-font-head); font-weight: 800; font-size: 20px; color: var(--rcb-blue); }
/* Official club logo */
.brand--logo img { height: 58px; width: auto; max-height: none; }
.footer-brand .brand--logo img { height: 64px; }
.campaign-badge { display: inline-block; margin-top: 4px; }
.campaign-badge img { width: 200px; height: auto; }
.about__campaign {
	display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
	background: var(--rcb-soft); border-radius: var(--rcb-radius); padding: 16px 20px; margin: 0 0 30px;
}
.about__campaign img { width: 170px; height: auto; }
.about__campaign p { margin: 0; font-size: 15px; flex: 1; min-width: 180px; }
.footer-badge { background: #fff; border-radius: var(--rcb-radius); padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer-badge img { width: 170px; height: auto; }
.brand__tag { font-size: 12px; color: var(--rcb-muted); letter-spacing: .04em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 10px 11px; white-space: nowrap;
	font-family: var(--rcb-font-head); font-weight: 600; font-size: 14.5px;
	color: var(--rcb-ink);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--rcb-blue); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	flex-direction: column; gap: 0; padding: 10px 0;
	background: #fff; border-top: 3px solid var(--rcb-gold);
	box-shadow: var(--rcb-shadow-lg); border-radius: 0 0 var(--rcb-radius) var(--rcb-radius);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 20px; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 8px;
	border: 1px solid var(--rcb-line); background: #fff; cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--rcb-ink); transition: .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   4. Hero slider
------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--rcb-royal); }
.hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 1s ease, visibility 1s;
	display: flex; align-items: center;
}
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; transform: scale(1.08); transition: transform 7s ease; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__bg::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--rcb-deep) 82%, transparent) 0%, color-mix(in srgb, var(--rcb-blue) 55%, transparent) 55%, color-mix(in srgb, var(--rcb-blue) 15%, transparent) 100%);
}
.hero__content {
	position: relative; z-index: 2;
	padding: 150px 0 170px; max-width: 680px; color: #fff;
}
.hero__content > * { opacity: 0; transform: translateY(30px); transition: all .8s ease; }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .15s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .3s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .45s; }
.hero__kicker {
	display: inline-block; padding: 6px 16px; border-radius: 30px;
	background: var(--rcb-gold); color: var(--rcb-ink);
	font-family: var(--rcb-font-head); font-size: 13px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1, .hero h2.hero__title { color: #fff; font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero__text { font-size: 18px; color: rgba(255,255,255,.9); max-width: 560px; margin-bottom: 34px; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__nav {
	position: absolute; z-index: 3; bottom: 110px; right: max(20px, calc((100vw - var(--rcb-container)) / 2 + 20px));
	display: flex; gap: 10px;
}
.hero__arrow {
	width: 52px; height: 52px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff;
	cursor: pointer; font-size: 20px; transition: .2s;
}
.hero__arrow:hover { background: var(--rcb-gold); border-color: var(--rcb-gold); color: var(--rcb-ink); }
.hero__dots {
	position: absolute; z-index: 3; bottom: 128px; left: max(20px, calc((100vw - var(--rcb-container)) / 2 + 20px));
	display: flex; gap: 8px;
}
.hero__dot {
	width: 12px; height: 12px; border-radius: 12px; border: 0; padding: 0;
	background: rgba(255,255,255,.45); cursor: pointer; transition: .3s;
}
.hero__dot.is-active { width: 34px; background: var(--rcb-gold); }

/* Feature strip that overlaps the bottom of the hero */
.features { position: relative; z-index: 5; margin-top: -80px; }
.features__grid {
	display: grid; grid-template-columns: repeat(3, 1fr);
	background: #fff; border-radius: var(--rcb-radius-lg);
	box-shadow: var(--rcb-shadow-lg); overflow: hidden;
}
.feature { display: flex; gap: 18px; padding: 34px 32px; border-right: 1px solid var(--rcb-line); transition: background .25s; }
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--rcb-soft); }
.feature__icon {
	flex: none; width: 60px; height: 60px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--rcb-blue) 10%, transparent); color: var(--rcb-blue);
}
.feature__icon svg { width: 28px; height: 28px; fill: currentColor; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; }

/* ------------------------------------------------------------------
   5. About
------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__media { position: relative; padding: 0 40px 40px 0; }
.about__img { border-radius: var(--rcb-radius-lg); aspect-ratio: 4 / 4.4; }
.about__img--small {
	position: absolute; right: 0; bottom: 0; width: 48%;
	aspect-ratio: 1; border: 8px solid #fff; border-radius: var(--rcb-radius-lg);
	box-shadow: var(--rcb-shadow-lg);
}
.about__badge {
	position: absolute; left: -20px; top: 40px;
	background: var(--rcb-gold); color: var(--rcb-ink);
	padding: 22px 26px; border-radius: var(--rcb-radius);
	box-shadow: var(--rcb-shadow-lg); text-align: center;
	font-family: var(--rcb-font-head);
}
.about__badge strong { display: block; font-size: 38px; line-height: 1; font-weight: 800; }
.about__badge span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.checklist { list-style: none; padding: 0; margin: 24px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; color: var(--rcb-ink); }
.checklist li::before {
	content: "✓"; position: absolute; left: 0; top: 2px;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--rcb-blue); color: #fff; font-size: 12px;
	display: flex; align-items: center; justify-content: center;
}
.about__quote {
	border-left: 4px solid var(--rcb-gold); padding: 6px 0 6px 20px; margin: 0 0 30px;
	font-family: var(--rcb-font-head); font-weight: 600; font-style: italic; color: var(--rcb-blue);
}

/* ------------------------------------------------------------------
   6. Areas of focus
------------------------------------------------------------------- */
.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.focus-card {
	position: relative; background: #fff; border-radius: var(--rcb-radius-lg);
	padding: 36px 28px; box-shadow: var(--rcb-shadow);
	transition: transform .3s, box-shadow .3s; overflow: hidden;
	border-bottom: 4px solid transparent;
}
.focus-card:hover { transform: translateY(-8px); box-shadow: var(--rcb-shadow-lg); border-bottom-color: var(--focus-color, var(--rcb-gold)); }
.focus-card__icon {
	width: 70px; height: 70px; border-radius: 18px; margin-bottom: 22px;
	display: flex; align-items: center; justify-content: center;
	background: var(--focus-color, var(--rcb-blue)); color: #fff;
}
.focus-card__icon svg { width: 34px; height: 34px; fill: currentColor; }
.focus-card h3 { font-size: 19px; }
.focus-card p { font-size: 15px; margin: 0; }
.focus-card--cta {
	background: var(--rcb-blue); color: rgba(255,255,255,.9);
	display: flex; flex-direction: column; justify-content: center;
}
.focus-card--cta h3 { color: #fff; }
.focus-card--cta .btn { margin-top: 22px; align-self: flex-start; }

/* ------------------------------------------------------------------
   7. Stats counter band
------------------------------------------------------------------- */
.stats {
	position: relative; padding: 90px 0;
	background: linear-gradient(120deg, var(--rcb-blue) 0%, var(--rcb-sky) 100%);
	color: #fff; overflow: hidden;
}
.stats::after {
	content: ""; position: absolute; right: -120px; top: 50%; width: 460px; height: 460px;
	transform: translateY(-50%);
	background: url("assets/images/rotary-wheel-white.svg") center / contain no-repeat;
	opacity: .08;
}
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat__num {
	font-family: var(--rcb-font-head); font-size: clamp(38px, 5vw, 54px); font-weight: 800;
	line-height: 1; margin-bottom: 10px; color: #fff;
}
.stat__num .suffix { color: var(--rcb-gold); }
.stat__label { font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.9); }

/* ------------------------------------------------------------------
   8. Cards (projects, events, news)
------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
	background: #fff; border-radius: var(--rcb-radius-lg); overflow: hidden;
	box-shadow: var(--rcb-shadow); transition: transform .3s, box-shadow .3s;
	display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--rcb-shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 11; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__tag {
	position: absolute; left: 20px; top: 20px; z-index: 2;
	background: var(--rcb-gold); color: var(--rcb-ink);
	font-family: var(--rcb-font-head); font-size: 12px; font-weight: 700;
	padding: 5px 14px; border-radius: 30px; text-transform: uppercase; letter-spacing: .05em;
}
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--rcb-muted); margin-bottom: 10px; }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta svg { width: 14px; height: 14px; fill: var(--rcb-blue); }
.card__title { font-size: 21px; margin-bottom: 12px; }
.card__title a { color: var(--rcb-ink); }
.card__title a:hover { color: var(--rcb-blue); }
.card__excerpt { font-size: 15px; flex: 1; }
.card__link {
	font-family: var(--rcb-font-head); font-weight: 700; font-size: 14px;
	display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
}
.card__link::after { content: "→"; transition: transform .2s; }
.card__link:hover::after { transform: translateX(4px); }

/* Fundraising progress */
.progress { margin: 6px 0 20px; }
.progress__bar { height: 8px; background: var(--rcb-line); border-radius: 8px; overflow: hidden; }
.progress__fill {
	height: 100%; width: 0; border-radius: 8px;
	background: linear-gradient(90deg, var(--rcb-blue), var(--rcb-sky));
	transition: width 1.6s ease;
}
.progress__fill.is-visible { width: var(--pct); }
.progress__nums { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; }
.progress__nums strong { color: var(--rcb-ink); font-family: var(--rcb-font-head); }
.progress__pct { color: var(--rcb-blue); font-weight: 700; }
.card__actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rcb-line); padding-top: 18px; }

/* Event card date badge */
.event-date {
	position: absolute; right: 20px; bottom: -28px; z-index: 2;
	width: 70px; text-align: center; border-radius: var(--rcb-radius);
	background: var(--rcb-blue); color: #fff; padding: 10px 0;
	font-family: var(--rcb-font-head); box-shadow: var(--rcb-shadow);
}
.event-date strong { display: block; font-size: 26px; line-height: 1; font-weight: 800; }
.event-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.section-foot { text-align: center; margin-top: 50px; }

/* ------------------------------------------------------------------
   9. Call to action band
------------------------------------------------------------------- */
.cta {
	position: relative; padding: 110px 0; color: #fff; text-align: center;
	background-size: cover; background-position: center;
}
.cta::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--rcb-blue-dark) 85%, transparent); }
.cta .container { position: relative; z-index: 1; max-width: 820px; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); }
.cta p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 34px; }
.cta__buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   10. Leadership / team
------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { text-align: center; }
.member__photo {
	display: block;
	aspect-ratio: 1 / 1.1; border-radius: var(--rcb-radius-lg); margin-bottom: 20px;
	position: relative; overflow: hidden;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.member:hover .member__photo img { transform: scale(1.06); }
.member__name { font-size: 19px; margin-bottom: 2px; }
.member__role { color: var(--rcb-blue); font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------------
   11. Testimonials
------------------------------------------------------------------- */
.testimonials { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.testimonial { display: none; }
.testimonial.is-active { display: block; animation: rcbFade .6s ease; }
.testimonial__quote-mark { font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--rcb-gold); display: block; margin-bottom: 20px; }
.testimonial blockquote {
	margin: 0 0 28px; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.6;
	font-family: var(--rcb-font-head); font-weight: 500; color: #fff;
}
.testimonial cite { font-style: normal; font-weight: 700; color: var(--rcb-gold); font-family: var(--rcb-font-head); }
.testimonial cite span { display: block; font-weight: 500; color: rgba(255,255,255,.75); font-size: 14px; }
.testimonials__dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
@keyframes rcbFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
   12. Gallery
------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid > *:nth-child(4) { grid-row: span 2; }
.gallery-item { border-radius: var(--rcb-radius); overflow: hidden; position: relative; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
	content: "+"; position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 40px; color: #fff; background: color-mix(in srgb, var(--rcb-blue) 55%, transparent);
	opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item--ph::after { display: none; }

/* ------------------------------------------------------------------
   13. Four-Way Test strip
------------------------------------------------------------------- */
.fourway { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: fw; }
.fourway li {
	list-style: none; counter-increment: fw;
	background: #fff; border-radius: var(--rcb-radius); padding: 26px 24px;
	box-shadow: var(--rcb-shadow); font-family: var(--rcb-font-head); font-weight: 600; color: var(--rcb-ink);
}
.fourway li::before {
	content: counter(fw); display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px;
	background: var(--rcb-gold); color: var(--rcb-ink); font-weight: 800;
}
.fourway { padding: 0; margin: 0; }

/* ------------------------------------------------------------------
   14. Inner pages
------------------------------------------------------------------- */
.page-hero {
	position: relative; padding: 110px 0 100px; text-align: center; color: #fff;
	background: linear-gradient(120deg, var(--rcb-blue), var(--rcb-sky));
	background-size: cover; background-position: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--rcb-blue-dark) 60%, transparent); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); margin-bottom: 10px; }
.breadcrumbs { font-size: 15px; color: rgba(255,255,255,.85); }
.breadcrumbs a { color: var(--rcb-gold); }

.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; }
.content-wrap--full { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin: 0 auto; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--rcb-radius); }
.entry-content blockquote {
	margin: 1.6em 0; padding: 24px 28px; background: var(--rcb-soft);
	border-left: 4px solid var(--rcb-gold); border-radius: 0 var(--rcb-radius) var(--rcb-radius) 0;
	font-style: italic; color: var(--rcb-ink);
}
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.entry-thumb { border-radius: var(--rcb-radius-lg); overflow: hidden; margin-bottom: 30px; }
.entry-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--rcb-muted); margin-bottom: 16px; }
.event-details {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px;
	background: var(--rcb-soft); border-radius: var(--rcb-radius); padding: 24px; margin-bottom: 30px;
}
.event-details strong { display: block; font-family: var(--rcb-font-head); color: var(--rcb-ink); }

.sidebar .widget {
	background: var(--rcb-soft); border-radius: var(--rcb-radius-lg);
	padding: 30px; margin-bottom: 30px;
}
.widget-title {
	font-size: 20px; padding-bottom: 12px; margin-bottom: 18px;
	border-bottom: 2px solid var(--rcb-line); position: relative;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 50px; height: 2px; background: var(--rcb-gold); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--rcb-line); }
.sidebar li:last-child { border-bottom: 0; }

.search-form { display: flex; gap: 8px; }
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], textarea, select {
	width: 100%; padding: 13px 16px; border: 1px solid var(--rcb-line); border-radius: 8px;
	font: inherit; color: var(--rcb-ink); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--rcb-sky); outline-offset: 1px; border-color: transparent; }
.search-form button, input[type="submit"], button[type="submit"] {
	padding: 13px 22px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--rcb-blue); color: #fff; font-family: var(--rcb-font-head); font-weight: 700;
}

.pagination { margin-top: 50px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 46px; height: 46px; padding: 0 12px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--rcb-soft); color: var(--rcb-ink); font-weight: 700;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--rcb-blue); color: #fff; }

.comments-area { margin-top: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--rcb-soft); border-radius: var(--rcb-radius); padding: 20px; margin-bottom: 16px; }

/* ------------------------------------------------------------------
   15. Footer
------------------------------------------------------------------- */
.site-footer { background: var(--rcb-footer); color: rgba(255,255,255,.75); font-size: 15px; }
.newsletter {
	background: var(--rcb-gold); border-radius: var(--rcb-radius-lg);
	padding: 40px 50px; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.newsletter h3 { margin: 0; font-size: 26px; color: var(--rcb-ink); }
.newsletter p { margin: 4px 0 0; color: var(--rcb-ink); }
.newsletter .btn { background: var(--rcb-blue); color: #fff; }
.newsletter .btn:hover { background: var(--rcb-blue-dark); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 10px 0 60px; }
.site-footer h4 { color: #fff; font-size: 19px; margin-bottom: 22px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--rcb-gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: rgba(255,255,255,.6); }
.footer-brand p { margin: 20px 0; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 16px; height: 16px; fill: var(--rcb-gold); flex: none; margin-top: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; font-size: 14px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .container { align-items: center; }
.site-credit { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.site-credit:hover { opacity: 1; }
.site-credit__logo { display: inline-flex; background: #fff; border-radius: 3px; padding: 2px 5px; }
.site-credit__logo img { display: block; height: 16px; width: auto; }
.site-footer.no-newsletter .footer-top { padding-top: 80px; }

.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90;
	width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--rcb-gold); color: var(--rcb-ink); font-size: 20px; font-weight: 800;
	box-shadow: var(--rcb-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(20px); transition: .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--rcb-muted); text-align: center; margin-top: 8px; }
.sticky .card__title::before { content: "★ "; color: var(--rcb-gold); }
.bypostauthor { display: block; }

/* ------------------------------------------------------------------
   16. Responsive
------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.focus-grid, .team-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.fourway { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile menu: switch earlier than the layout so 8 menu items never wrap. */
@media (max-width: 1180px) {
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; box-shadow: var(--rcb-shadow-lg);
		max-height: 0; overflow: hidden; transition: max-height .35s ease;
	}
	.nav-open .main-nav { max-height: 80vh; overflow-y: auto; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 20px; }
	.main-nav a { padding: 12px 0; border-bottom: 1px solid var(--rcb-line); }
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0;
	}
	.header-actions .btn { display: none; }
}
@media (max-width: 991px) {
	.section { padding: 80px 0; }
	.about, .content-wrap { grid-template-columns: 1fr; }
	.about { gap: 50px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.features__grid { grid-template-columns: 1fr; }
	.feature { border-right: 0; border-bottom: 1px solid var(--rcb-line); }
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid > *:nth-child(4) { grid-row: auto; }
	.hero__nav { display: none; }
	.hero__dots { bottom: 110px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 680px) {
	.topbar__info span:nth-child(n+2) { display: none; }
	.focus-grid, .team-grid, .grid-3, .footer-top { grid-template-columns: 1fr; }
	.team-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.checklist, .fourway { grid-template-columns: 1fr; }
	.hero__content { padding: 100px 0 150px; }
	.hero__text { font-size: 16px; }
	.about__media { padding: 0 20px 20px 0; }
	.about__badge { left: 0; }
	.newsletter { padding: 30px; transform: translateY(-30%); }
	.brand__name { font-size: 17px; }
	.brand__tag { display: none; }
	.brand--logo img { height: 46px; }
	.gallery-grid { grid-auto-rows: 160px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

/* ==========================================================================
   Legal links, cookie consent, consent fields
   ========================================================================== */
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; }
.legal-links a, .legal-links__btn { color: rgba(255,255,255,.75); }
.legal-links__btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.legal-links__btn:hover { color: var(--rcb-gold); }

.cc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 18px; border-radius: 999px; border: 2px solid transparent;
	font: 700 14px/1.2 var(--rcb-font-head); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.cc-btn--primary { background: var(--rcb-blue); color: #fff; }
.cc-btn--primary:hover { background: var(--rcb-blue-dark); }
.cc-btn--outline { background: #fff; color: var(--rcb-blue); border-color: var(--rcb-blue); }
.cc-btn--outline:hover { background: var(--rcb-soft); }
.cc-btn--ghost { background: none; color: var(--rcb-ink); text-decoration: underline; text-underline-offset: 3px; padding-left: 6px; padding-right: 6px; }
.cc-btn:focus-visible, .cc-modal__close:focus-visible, .legal-links__btn:focus-visible { outline: 3px solid var(--rcb-gold); outline-offset: 2px; }

.cc-banner {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
	max-width: 1100px; margin: 0 auto; background: #fff; color: var(--rcb-text);
	border-radius: var(--rcb-radius-lg); box-shadow: 0 20px 60px rgba(11,47,87,.28);
	border-top: 4px solid var(--rcb-gold); animation: cc-up .35s ease-out;
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
.cc-banner__inner { display: flex; align-items: center; gap: 24px; padding: 20px 24px; }
.cc-banner__title { font-size: 17px; margin: 0 0 4px; color: var(--rcb-ink); }
.cc-banner__text p { margin: 0; font-size: 14px; line-height: 1.55; }
.cc-banner__text a { color: var(--rcb-blue); font-weight: 600; }
.cc-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
body.has-cc-banner .back-to-top { bottom: 150px; }
@keyframes cc-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.cc-modal { position: fixed; inset: 0; z-index: 1001; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(11,47,87,.55); }
.cc-modal__panel {
	position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: var(--rcb-radius-lg); box-shadow: var(--rcb-shadow-lg); padding: 26px;
}
.cc-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cc-modal__head h2 { font-size: 21px; margin: 0; color: var(--rcb-ink); }
.cc-modal__close { background: var(--rcb-soft); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--rcb-ink); }
.cc-modal__intro { font-size: 14px; margin: 10px 0 18px; }
.cc-cat { border: 1px solid var(--rcb-line); border-radius: var(--rcb-radius); padding: 14px 16px; margin-bottom: 10px; }
.cc-cat p { margin: 6px 0 0 54px; font-size: 13px; line-height: 1.55; }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat__title { font: 700 15px var(--rcb-font-head); color: var(--rcb-ink); }
.cc-cat__always { font-size: 12px; font-weight: 700; color: #2f8a4c; white-space: nowrap; }
.cc-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
html.cc-locked { overflow: hidden; }

.cc-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch__track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #c5d0db; transition: background .2s; flex-shrink: 0; }
.cc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cc-switch input:checked + .cc-switch__track { background: var(--rcb-blue); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(18px); }
.cc-switch input:disabled + .cc-switch__track { background: #7fb3e3; cursor: not-allowed; }
.cc-switch input:focus-visible + .cc-switch__track { outline: 3px solid var(--rcb-gold); outline-offset: 2px; }

.cc-embed { position: relative; }
.cc-embed__notice {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
	min-height: 220px; padding: 24px; border-radius: var(--rcb-radius); background: var(--rcb-soft); border: 1px dashed #b9cbe0;
}
.cc-embed__notice p { margin: 0; font-size: 14px; }
.cc-embed:not(.is-loaded) iframe { display: none; }
.cc-embed.is-loaded .cc-embed__notice { display: none; }

.comment-form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.comment-form-privacy input { margin-top: 4px; }

@media (max-width: 860px) {
	.cc-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
	.cc-banner__actions { justify-content: stretch; }
	.cc-banner__actions .cc-btn { flex: 1 1 auto; }
	.cc-cat p { margin-left: 0; }
	body.has-cc-banner .back-to-top { bottom: 260px; }
}
@media (prefers-reduced-motion: reduce) {
	.cc-banner { animation: none; }
}
