/* =============================================================
   Elevate CA 2026 — custom styles (static HTML frames)
   Font: Geist | Brand colours below
   ============================================================= */

:root {
	--el-dark:     #101E25;  /* header / nav / dark sections */
	--el-dark-2:   #0b161c;  /* deeper shade for gradients */
	--el-orange:   #F58022;  /* accent */
	--el-orange-2: #dd6f14;  /* accent hover */
	--el-ink:      #101E25;  /* headings / body text */
	--el-body:     #4a5560;  /* muted body copy */
}

body {
	font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--el-ink);
	font-size: 1rem;
	line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Geist', sans-serif;
	color: var(--el-ink);
	font-weight: 700;
}

a { text-decoration: none; }

/* Brand colour helpers */
.text-dark-brand { color: var(--el-dark)   !important; }
.text-orange     { color: var(--el-orange) !important; }
.bg-dark-brand   { background-color: var(--el-dark)   !important; }
.bg-orange       { background-color: var(--el-orange) !important; }

/* Orange pill button */
.btn-orange {
	background-color: var(--el-orange);
	color: #fff;
	border: 0;
	border-radius: 50rem;
	font-weight: 500;
	padding: 0.75rem 2.25rem;
	transition: background-color .2s ease;
}
.btn-orange:hover,
.btn-orange:focus { background-color: var(--el-orange-2); color: #fff; }

/* =============================================================
   LAYOUT — container max-widths (override Bootstrap)
   ============================================================= */
@media (min-width: 1600px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl { max-width: 1440px; }
}
@media (min-width: 2020px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl { max-width: 1820px; }
}
/* More breathing room at the screen edges on small devices */
@media (max-width: 767.98px) {
	.container,
	.container-sm,
	.container-md,
	.container-lg,
	.container-xl,
	.container-xxl,
	.container-fluid {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

/* =============================================================
   MASTER HEAD / NAV
   ============================================================= */
.site-header {
	background: var(--el-dark);
	border-bottom: 2px solid #fff;
	padding: 0.75rem 0;
}
.site-header .navbar-brand img { height: 64px; width: auto; }

/* Custom hamburger (three white bars) */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active {
	border: 0;
	outline: 0;
	box-shadow: none;
	padding: 0.25rem;
}
.toggler-bars { display: inline-block; width: 30px; }
.toggler-bars span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	margin-left: auto;
}
.toggler-bars span:nth-child(1) { width: 30px; }
.toggler-bars span:nth-child(2) { width: 22px; margin-top: 6px; }
.toggler-bars span:nth-child(3) { width: 15px; margin-top: 6px; }

.main-nav .nav-link {
	color: #fff;
	font-weight: 400;
	font-size: 1.05rem;
	padding: 0.25rem 0;
	position: relative;
	white-space: nowrap;
	transition: color .15s ease;
}
.main-nav .nav-item + .nav-item { margin-left: 1.5rem; }

.main-nav .nav-link.active { color: var(--el-orange); font-weight: 500; }
.main-nav .nav-link:hover { color: var(--el-orange); }

@media (max-width: 1399.98px) and (min-width: 1200px) {
	.main-nav .nav-item + .nav-item { margin-left: 1.15rem; }
	.main-nav .nav-link { font-size: 1rem; }
}

@media (max-width: 1199.98px) {
	/* Collapsed dropdown panel */
	#mainNav {
		margin-top: 1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	.main-nav { margin-top: 0 !important; width: 100%; }
	.main-nav .nav-item + .nav-item { margin-left: 0; }

	/* Stacked links with light dividers + comfortable tap targets */
	.main-nav .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
	.main-nav .nav-link {
		padding: 0.6rem 0.25rem 0.6rem 0.9rem;
		font-size: 1.1rem;
		border-radius: 0 6px 6px 0;
		transition: color .15s ease, background-color .15s ease, border-color .15s ease;
	}
	.main-nav .nav-link:hover,
	.main-nav .nav-link:focus {
		color: var(--el-orange);
		background: rgba(255, 255, 255, 0.04);
	}
	.main-nav .nav-link.active {
		color: var(--el-orange);
		font-weight: 600;
		background: rgba(255, 255, 255, 0.04);
	}

	/* Contact Us — full-width button below the links */
	.main-nav .nav-item:last-child { border-bottom: 0; }
	.main-nav .nav-item:last-child .btn-orange {
		display: block;
		width: 100%;
		text-align: center;
		margin-top: 0.75rem;
	}
}

/* Sticky header on larger screens (>=992px) */
@media (min-width: 992px) {
	.site-header {
		position: sticky;
		top: 0;
		z-index: 1030;
		transition: box-shadow .25s ease;
	}
	.site-header.is-stuck {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	}
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
	position: relative;
	background-color: var(--el-dark);
	overflow: hidden;
}
.hero-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 860px;
	object-fit: cover;
	object-position: center;
}
.hero-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding-bottom: 7vh;
}
.hero-overlay .container { width: 100%; }
/* Warm dark wash rising from the base for legibility (orange hard-light look) */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to top, rgba(16, 30, 37, 0.92) 0%, rgba(16, 30, 37, 0) 55%),
		linear-gradient(to top, rgba(245, 128, 34, 0.38) 0%, rgba(245, 128, 34, 0) 42%);
}

.hero-inner { position: relative; z-index: 2; max-width: 1200px; }
.hero-eyebrow {
	color: var(--el-orange);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: clamp(0.95rem, 1.1vw, 1.2rem);
	margin-bottom: 1rem;
}

.hero-title {
	color: #fff;
	font-weight: 700;
	line-height: 1.1;
	font-size: clamp(2.25rem, 3.6vw, 5rem);
	margin-bottom: 1.5rem;
}
.hero-title .orange { color: var(--el-orange); }

.hero-lead {
	color: rgba(255, 255, 255, 0.92);
	max-width: 900px;
	margin: 0 auto;
	font-size: clamp(1.05rem, 1.3vw, 1.5rem);
	font-weight: 500;
	line-height: 1.5;
}

.hero .btn-hero {
	margin-top: 2rem;
	font-size: 1.25rem;
	padding: 1rem 3rem;
}

@media (max-width: 991.98px) {
	.hero-img { height: auto; max-height: none; }
	.hero-overlay {
		position: static;
		display: block;
		padding: 2.5rem 0;
		background: var(--el-dark);
	}
	.hero::after { display: none; }
}

/* =============================================================
   SHARED — section eyebrow / title / CTA / rounded media
   ============================================================= */
.eyebrow {
	display: inline-block;
	font-weight: 300;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 1px;
	letter-spacing: 0.01em;
	font-size: clamp(0.95rem, 1.05vw, 1.2rem);
	color: var(--el-ink);
	margin-bottom: 1.5rem;
}
.section-title {
	color: var(--el-ink);
	font-weight: 600;
	line-height: 1.1;
	font-size: clamp(2rem, 4vw, 3.5rem);
}
.section-title .orange,
.orange { color: var(--el-orange); }

/* Heading highlight: bold/strong text inside a heading becomes the orange accent */
.hero-title :is(strong, b),
.section-title :is(strong, b),
.cta-title :is(strong, b) { color: var(--el-orange); font-weight: inherit; }

/* =============================================================
   COMBINED CONTENT BLOCKS (single WYSIWYG: heading + text)
   Bold inside a heading = orange; bold inside a paragraph = ink.
   ============================================================= */
.hero-content > :first-child,
.about-content > :first-child,
.whatwedo-content > :first-child,
.team-content > :first-child { margin-top: 0; }

.hero-content :is(h1, h2),
.about-content :is(h1, h2),
.whatwedo-content :is(h1, h2),
.team-content :is(h1, h2) { line-height: 1.1; }

.hero-content :is(h1, h2) :is(strong, b),
.about-content :is(h1, h2) :is(strong, b),
.whatwedo-content :is(h1, h2) :is(strong, b),
.team-content :is(h1, h2) :is(strong, b) { color: var(--el-orange); font-weight: inherit; }

/* Hero — white title + lead */
.hero-content :is(h1, h2) {
	color: #fff;
	font-weight: 700;
	font-size: clamp(2.25rem, 3.6vw, 5rem);
	margin-bottom: 1.5rem;
}
.hero-content p {
	color: rgba(255, 255, 255, 0.92);
	font-weight: 500;
	line-height: 1.5;
	font-size: clamp(1.05rem, 1.2vw, 1.5rem);
	max-width: 900px;
	margin: 0 auto 1rem;
}
.hero-content p:last-child { margin-bottom: 0; }

/* About — dark title + body copy (bold lead-in stays dark) */
.about-content :is(h1, h2) {
	color: var(--el-ink);
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 3.5rem);
	margin-bottom: 1.5rem;
}
.about-content p { color: #3f3f3f; font-size: 1.15rem; margin-bottom: 1.25rem; }
.about-content p :is(strong, b) { color: var(--el-ink); font-weight: 600; }
.about-content > :last-child { margin-bottom: 0; }

/* What We Do — white title + muted intro (centred head) */
.whatwedo-content :is(h1, h2) {
	color: #fff;
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 3.5rem);
	margin: 0;
}
.whatwedo-content p {
	color: #c8c8c8;
	font-weight: 500;
	font-size: clamp(1.05rem, 1.2vw, 1.35rem);
	margin: 1rem auto 0;
	max-width: 820px;
}

/* Meet the Team — dark title + muted intro (centred head) */
.team-content :is(h1, h2) {
	color: var(--el-ink);
	font-weight: 600;
	font-size: clamp(2rem, 3vw, 3.5rem);
	margin: 0;
}
.team-content p {
	color: #797979;
	font-weight: 500;
	font-size: clamp(1.05rem, 1.2vw, 1.35rem);
	margin: 1rem auto 0;
}

/* Large pill CTA used across the page sections */
.btn-cta {
	font-size: clamp(1.1rem, 1.25vw, 1.35rem);
	padding: 1rem 2.75rem;
}

.rounded-media {
	border-radius: 2.5rem;
	overflow: hidden;
}
.rounded-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =============================================================
   ABOUT US (text / skill bars / stat image)
   ============================================================= */
.section-about {
	position: relative;
	background: #fff;
	overflow: hidden;
}
.section-about::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 70%;
	background: linear-gradient(to bottom, rgba(245, 128, 34, 0.16), rgba(245, 128, 34, 0));
	pointer-events: none;
}
.section-about .container { position: relative; z-index: 1; }

/* Skill bars */
.skill + .skill { margin-top: 2rem; }
.skill-head {
	display: flex;
	justify-content: space-between;
	font-weight: 300;
	font-size: 1.05rem;
	color: var(--el-ink);
	margin-bottom: 0.7rem;
}
.skill-track {
	position: relative;
	height: 7px;
	background: #d9d9d9;
	border-radius: 100px;
}
.skill-fill {
	position: absolute;
	left: 0; top: 0;
	height: 100%;
	background: var(--el-orange);
	border-radius: 100px;
	display: block;
}

/* Stat image card */
.about-media {
	position: relative;
	border-radius: 2rem;
	overflow: hidden;
}
.about-media img {
	width: 100%;
	aspect-ratio: 1 / 1.08;
	object-fit: cover;
	object-position: center;
	display: block;
}
.about-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 45%);
}
.about-stat {
	position: absolute;
	left: 1.75rem;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 2;
	color: #fff;
}
.about-stat .stat-num {
	font-family: 'Geist', sans-serif;
	font-weight: 700;
	font-size: clamp(2.5rem, 3.2vw, 3.5rem);
	line-height: 1;
	margin: 0 0 0.35rem;
}
.about-stat .stat-label {
	font-size: clamp(1rem, 1.25vw, 1.35rem);
	line-height: 1.3;
	margin: 0;
}

/* =============================================================
   WHAT WE DO (dark rounded panel, 5 service cards)
   ============================================================= */
.section-whatwedo { background: #fff; }
.whatwedo-panel {
	position: relative;
	background: var(--el-dark);
	border-radius: 3rem;
	overflow: hidden;
	padding: clamp(3rem, 5vw, 5.5rem) clamp(1.5rem, 4vw, 5rem);
}
.whatwedo-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wwd-bg, url("../images/whatwedo-bg.webp")) center / cover no-repeat;
	opacity: 0.07;
	pointer-events: none;
}
.whatwedo-panel > * { position: relative; z-index: 1; }
.whatwedo-panel .eyebrow,
.whatwedo-panel .section-title { color: #fff; }
.wcard-head { max-width: 820px; margin-bottom: clamp(2.25rem, 3.5vw, 3.5rem); }
.whatwedo-intro {
	color: #c8c8c8;
	font-weight: 500;
	font-size: clamp(1.05rem, 1.3vw, 1.35rem);
	margin: 1rem auto 0;
}

.wcard {
	display: block;
	position: relative;
	background: #fff;
	border-radius: 1.75rem;
	padding: 2.25rem 2.25rem 2.5rem;
	height: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.wcard:hover,
.wcard:focus-visible {
	box-shadow: 0 14px 34px rgba(16, 30, 37, 0.14);
	transform: translateY(-4px);
}
.wcard-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #fff2e7;
	margin-bottom: 1.5rem;
}
.wcard-ico img { width: 44px; height: 44px; object-fit: contain; }
.wcard h3 {
	font-weight: 600;
	font-size: 1.4rem;
	color: var(--el-ink);
	margin-bottom: 0.75rem;
}
.wcard p { color: #3f3f3f; font-size: 1.05rem; line-height: 1.35; margin: 0; }

/* Orange corner — quarter-circle by default, grows into a circle with an
   arrow on hover (the "Business Advice" active look from the Figma). */
.wcard-corner {
	position: absolute;
	right: 0; bottom: 0;
	width: 72px; height: 72px;
	background: var(--el-orange);
	border-radius: 100% 0 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: width .28s ease, height .28s ease, right .28s ease, bottom .28s ease, border-radius .28s ease;
}
.wcard-corner i {
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	opacity: 0;
	transform: scale(0.5);
	transition: opacity .2s ease .05s, transform .25s ease .05s;
}
.wcard:hover .wcard-corner,
.wcard:focus-visible .wcard-corner {
	width: 100px;
	height: 100px;
	right: -10px;
	bottom: -10px;
	border-radius: 50%;
}
.wcard:hover .wcard-corner i,
.wcard:focus-visible .wcard-corner i {
	opacity: 1;
	transform: scale(1);
}

/* =============================================================
   WHY BUSINESSES CHOOSE ELEVATE CA (checklist + image)
   ============================================================= */
.section-whychoose {
	position: relative;
	background: #fff;
	overflow: hidden;
}
.section-whychoose::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 60%;
	background: linear-gradient(to top, rgba(254, 248, 243, 1), rgba(255, 255, 255, 1));
	pointer-events: none;
}
.section-whychoose .container { position: relative; z-index: 1; }

.checklist { margin-top: 2rem; }
.check-item {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 50px;
	padding: 1.15rem 1.85rem;
}
.check-item + .check-item { margin-top: 0.9rem; }
.check-ico {
	flex-shrink: 0;
	width: 40px; height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.check-ico img { width: 100%; height: 100%; object-fit: contain; }
.check-item p {
	margin: 0;
	font-weight: 600;
	color: #2d2d2d;
	font-size: 1.1rem;
	line-height: 1.35;
}
.whychoose-media { border: 1px solid #d3d3d3; }
.whychoose-media img { aspect-ratio: 5 / 4; }

/* =============================================================
   MEET THE TEAM (white rounded panel, portrait grid)
   ============================================================= */
.section-team { background: #fef8f3; }
.team-panel {
	background: #fff;
	border-radius: 3rem;
	box-shadow: 3px -6px 42px rgba(0, 0, 0, 0.08);
	padding: clamp(3rem, 5vw, 5.5rem) clamp(1.25rem, 4vw, 4rem);
}
.team-row + .team-row { margin-top: clamp(3rem, 5vw, 5rem); }
.team-head { max-width: 860px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.team-intro {
	color: #797979;
	font-weight: 500;
	font-size: clamp(1.05rem, 1.3vw, 1.35rem);
	margin: 1rem auto 0;
}

.team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem 1.75rem;
}
.team-member { flex: 0 0 calc(25% - 1.32rem); }
/* Linked team member (post permalink) */
a.team-member { color: inherit; text-decoration: none; transition: transform .2s ease; }
a.team-member:hover { transform: translateY(-4px); }
a.team-member:hover .t-name { color: var(--el-orange); }
.team-photo {
	position: relative;
	z-index: 2;
	border-radius: 50%;
	overflow: hidden;
}
.team-photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}
.team-meta {
	position: relative;
	z-index: 1;
	background: #f7f7f7;
	border-radius: 0 0 2rem 2rem;
	margin-top: -50%;
	padding: calc(50% + 1.25rem) 0.75rem 1.5rem;
	text-align: center;
}
.team-meta .t-name {
	font-weight: 600;
	color: var(--el-dark);
	font-size: 1.2rem;
	margin: 0 0 0.35rem;
}
.team-meta .t-role {
	color: var(--el-orange);
	font-size: 1.05rem;
	margin: 0;
}

@media (max-width: 1199.98px) {
	.team-member { flex-basis: calc(33.333% - 1.17rem); }
}
@media (max-width: 767.98px) {
	.team-member { flex-basis: calc(50% - 0.875rem); }
}
@media (max-width: 575.98px) {
	.team-member { flex-basis: 100%; max-width: 320px; }
}

/* =============================================================
   CTA BAND (dark, photo, white card + contact chip)
   ============================================================= */
.section-cta {
	position: relative;
	background: var(--el-dark);
	overflow: hidden;
}
.cta-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}
.section-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(to right, var(--el-dark) 0%, rgba(16, 30, 37, 0.9) 30%, rgba(16, 30, 37, 0.4) 65%, rgba(16, 30, 37, 0.2) 100%),
		linear-gradient(to top, rgba(245, 128, 34, 0.16), rgba(245, 128, 34, 0) 45%);
}
.cta-overlay { position: relative; z-index: 2; }
.cta-overlay .container {
	padding-top: clamp(3rem, 6vw, 6.5rem);
	padding-bottom: clamp(3rem, 6vw, 6.5rem);
}
.cta-card {
	background: #fff;
	border-radius: 2.5rem;
	padding: clamp(2rem, 3vw, 3rem) clamp(2rem, 3.5vw, 3.5rem);
	max-width: 640px;
}
.cta-card .eyebrow { margin-bottom: 1.25rem; }
.cta-title {
	color: var(--el-ink);
	font-weight: 600;
	line-height: 1.1;
	font-size: clamp(1.9rem, 2.9vw, 3.5rem);
	margin: 0;
}
.cta-lead {
	color: #fff;
	font-weight: 500;
	line-height: 1.4;
	font-size: clamp(1.1rem, 1.2vw, 1.6rem);
	max-width: 640px;
	margin-top: 2rem;
}
.cta-contact {
	display: inline-block;
	background: #fff;
	border-radius: 1.25rem;
	padding: 1.5rem 2rem;
	max-width: 480px;
}
.cta-contact p {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--el-ink);
	font-weight: 500;
	font-size: clamp(1.05rem, 1.2vw, 1.35rem);
}
.cta-contact p + p { margin-top: 0.75rem; }
.cta-contact i { color: var(--el-orange); font-size: 1.1em; }
.cta-contact a { color: inherit; }
.cta-contact a:hover { color: var(--el-orange); }

@media (max-width: 991.98px) {
	.cta-contact { display: block; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
	position: relative;
	background: #fff;
	overflow: hidden;
}
.site-footer::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 55%;
	background: linear-gradient(to bottom, rgba(254, 248, 243, 1), rgba(255, 255, 255, 1));
	pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-main { padding: clamp(3rem, 5vw, 5rem) 0 2rem; }

.footer-links h4 {
	font-weight: 700;
	color: var(--el-ink);
	font-size: 1.25rem;
	margin-bottom: 1.35rem;
}
.footer-links li + li { margin-top: 0.9rem; }
.footer-links a {
	color: #041e2b;
	font-size: 1.05rem;
	transition: color .15s ease;
}
.footer-links a:hover { color: var(--el-orange); }

.footer-social a {color: var(--el-orange) !important;}
.footer-social a:hover { color: #041e2b !important; }

.footer-brand .footer-logo {
	height: 92px;
	width: auto;
	border-radius: 16px;
}
.footer-tagline {
	color: var(--el-ink);
	font-size: 1.05rem;
	line-height: 1.5;
	max-width: 440px;
	margin-top: 1.5rem;
}
@media (min-width: 992px) {
	.footer-brand .footer-tagline { margin-left: auto; }
}
.footer-tagline .orange { color: var(--el-orange); }
.fw-semibold { font-weight: 600; }

.footer-divider {
	border: 0;
	border-top: 1px solid #d9d9d9;
	opacity: 1;
	margin: 1.5rem 0;
}

.footer-social { color: rgba(12, 12, 13, 0.7); font-size: 1.05rem; }
.footer-social a { color: var(--el-dark); font-size: 1.5rem; line-height: 1; }
.footer-social a:hover { color: var(--el-orange); }

.footer-contact p {
	margin: 0;
	color: var(--el-ink);
	font-weight: 500;
	font-size: 1.05rem;
}
.footer-contact p + p { margin-top: 0.45rem; }
.footer-contact i { color: var(--el-orange); margin-right: 0.6rem; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--el-orange); }

.footer-bar { background: #041e2b; color: #fff; }
.footer-bar .copyright { font-size: 0.95rem; opacity: 0.9; }
.footer-bar .energise-credit img { display: block; }

/* =============================================================
   THEME — generic layout modules (ACF flexible content)
   ============================================================= */

/* Background helpers for modules */
.bg-tint  { background: #fef8f3; }
.bg-cream { background: #fef8f3; }
.is-light { background: #f7f7f7; }
.is-dark  { background: var(--el-dark); }

/* Normal page / rich-text wrapper */
.normal-page { font-size: 1.05rem; }

.rte > :first-child { margin-top: 0; }
.rte > :last-child  { margin-bottom: 0; }
.rte :is(h1,h2,h3,h4,h5,h6) { color: var(--el-ink); font-weight: 600; line-height: 1.15; }
.rte :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
.rte :is(h1,h2,h3,h4,h5,h6) .orange { color: var(--el-orange); font-weight: 700; }
.rte h1 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.rte h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 1rem; }
.rte h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.rte p, .rte ul, .rte ol { color: #3f3f3f; font-size: 1.05rem; margin-bottom: 1rem; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte a:not(.btn) { color: var(--el-orange); text-decoration: underline; }
.rte .btn { margin-top: 0.5rem; }
.rte img { max-width: 100%; height: auto;}
.rte img.align-left, .rte img.align-right { border-radius: 0.75rem; }
.rte figure { margin: 0 0 1rem; }
.rte figcaption, .rte .wp-caption-text { font-size: 0.9rem; color: #6b7680; margin-top: 0.4rem; }
.rte::after { content: ""; display: table; clear: both; }

/* Inverted rich text (on dark / image backgrounds) */
.rte-invert :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.rte-invert :is(h1,h2,h3,h4,h5,h6) :is(strong,b),
.rte-invert :is(h1,h2,h3,h4,h5,h6) .orange { color: var(--el-orange); }
.rte-invert p, .rte-invert ul, .rte-invert ol { color: rgba(255, 255, 255, 0.92); }
.rte-invert a:not(.btn) { color: #fff; }

/* WordPress media alignment */
.alignnone   { max-width: 100%; height: auto; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0.5rem auto 1.25rem; max-width: 100%; height: auto; }
.alignright, .alignleft { max-width: 100%; height: auto; }
.wp-caption  { max-width: 100%; }
@media (min-width: 768px) {
	.alignright, .wp-caption.alignright { float: right; margin: 0.5rem 0 1rem 1.75rem; max-width: 48%; }
	.alignleft,  .wp-caption.alignleft  { float: left;  margin: 0.5rem 1.75rem 1rem 0; max-width: 48%; }
}
@media (max-width: 767.98px) {
	.alignright, .alignleft, .wp-caption.alignright, .wp-caption.alignleft {
		float: none; display: block; margin: 0.5rem auto 1.25rem; max-width: 100%;
	}
}

/* Multi-column text */
.section-text-columns .tc-row + .tc-row { margin-top: 2rem; }
.section-text-columns.bg-tint  { background: #fef8f3; }
.section-text-columns.is-light { background: #f7f7f7; }
.section-text-columns.is-dark  { background: var(--el-dark); }
.section-text-columns.is-dark .rte :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
.section-text-columns.is-dark .rte p,
.section-text-columns.is-dark .rte ul,
.section-text-columns.is-dark .rte ol { color: rgba(255, 255, 255, 0.9); }
.section-text-columns.is-dark .rte a:not(.btn) { color: #fff; }

/* Text over background image */
.section-text-image {
	position: relative;
	background: var(--el-dark) center / cover no-repeat;
	color: #fff;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.section-text-image .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.section-text-image.h-small  { min-height: 340px; }
.section-text-image.h-medium { min-height: 480px; }
.section-text-image.h-large  { min-height: 620px; }
.section-text-image.text-right .rte { margin-left: auto; }
.ti-overlay { position: absolute; inset: 0; background: rgba(16, 30, 37, 0.6); }
.ov-none   .ti-overlay { display: none; }
.ov-light  .ti-overlay { background: rgba(16, 30, 37, 0.35); }
.ov-medium .ti-overlay { background: rgba(16, 30, 37, 0.6); }
.ov-dark   .ti-overlay { background: rgba(16, 30, 37, 0.82); }

/* Horizontal line module */
.hr-module.hr-none   { margin: 0; }
.hr-module.hr-small  { margin: 1rem 0; }
.hr-module.hr-medium { margin: 2rem 0; }
.hr-module.hr-large  { margin: 3.5rem 0; }

/* Spacing module */
.spacer { width: 100%; }
.spacer-small  { height: 1.5rem; }
.spacer-medium { height: 3rem; }
.spacer-large  { height: 5rem; }
.spacer-xlarge { height: 7rem; }
@media (max-width: 767.98px) {
	.spacer-large  { height: 3.5rem; }
	.spacer-xlarge { height: 4.5rem; }
}

/* HTML widget */
.html-widget { margin: 0; }

/* =============================================================
   FAQs (accordion)
   ============================================================= */
.section-faqs.bg-tint  { background: #fef8f3; }
.section-faqs.is-light { background: #f7f7f7; }
.faq-head { max-width: 860px; margin: 0 auto clamp(2rem, 3.5vw, 3rem); }

.faq-accordion {
	--bs-accordion-border-color: #e6e0d9;
	--bs-accordion-color: #3f3f3f;
	--bs-accordion-btn-color: var(--el-ink);
	--bs-accordion-active-color: var(--el-ink);
	--bs-accordion-active-bg: #fef8f3;
	--bs-accordion-btn-focus-box-shadow: none;
	--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23101e25'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
	--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23F58022'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-item {
	border: 1px solid var(--bs-accordion-border-color);
	border-radius: 1rem;
	margin-bottom: 1rem;
	overflow: hidden;
	background: #fff;
}
.faq-accordion .accordion-button {
	font-weight: 600;
	font-size: 1.1rem;
	padding: 1.15rem 1.5rem;
}
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: none; }
.faq-accordion .accordion-body { padding: 0 1.5rem 1.4rem; }
.faq-accordion .accordion-body.rte > :last-child { margin-bottom: 0; }

/* =============================================================
   CATEGORY ARCHIVE (post grid) + pagination
   ============================================================= */
.section-post-archive { background: #fff; }
.section-post-archive .section-head {
	max-width: 820px;
	margin: 0 auto clamp(2rem, 4vw, 3.5rem);
}
.section-post-archive .archive-desc { color: #3f3f3f; font-size: 1.1rem; margin-top: 1rem; }

.post-card {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 1.5rem;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow .25s ease, transform .25s ease;
}
.post-card:hover,
.post-card:focus-visible {
	box-shadow: 0 14px 34px rgba(16, 30, 37, 0.12);
	transform: translateY(-4px);
}
.post-card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.post-card-body h3 { font-weight: 600; font-size: 1.3rem; color: var(--el-ink); margin: 0 0 0.6rem; }
.post-card-body p { color: #3f3f3f; font-size: 1rem; margin: 0 0 1rem; line-height: 1.4; }
.post-card-more { color: var(--el-orange); font-weight: 600; }

/* Pagination (the_posts_pagination) */
.section-post-archive .pagination,
.team-panel .pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	border-radius: 50rem;
	border: 1px solid #e2e2e2;
	color: var(--el-ink);
	text-decoration: none;
}
.pagination .page-numbers.current { background: var(--el-orange); border-color: var(--el-orange); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--el-orange); color: var(--el-orange); }
