/*!
Theme Name: medical_page
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: medical_page
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

medical_page is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
# Medielite Brand — Variables
--------------------------------------------------------------*/
:root {
	/* Colors */
	--color-primary:       #DAA14C;
	--color-primary-hover: #E7B161;
	--color-secondary:     #30373E;
	--color-text:          #535353;
	/* Muted text. Split 2026-08-09: one token was used on BOTH light and dark
	   backgrounds, so no single value could pass AA in both places. */
	--color-text-light:         #717171;   /* on light backgrounds */
	--color-text-light-on-dark: #9E9E9E;   /* on the dark bands */
	--color-primary-ink:        #97671F;   /* gold TEXT on light; fills keep --color-primary */
	--color-dark:          #202020;
	--color-highlight:     #E56D6D;
	--color-border:        #E8E8E8;
	--color-base:          #FFFFFF;
	--color-surface:       #F7F7F7;

	/* Fonts */
	--font-primary: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;
	--font-display: 'Playfair Display', Georgia, serif;
	--font-accent:  'Montserrat', 'Helvetica Neue', sans-serif;

	/* Font Sizes */
	--font-size-xs:   0.75rem;
	--font-size-sm:   0.875rem;
	--font-size-base: 1rem;
	--font-size-md:   1.125rem;
	--font-size-lg:   1.25rem;
	--font-size-xl:   1.5rem;
	--font-size-2xl:  2rem;
	--font-size-3xl:  2.5rem;
	--font-size-4xl:  3.5rem;

	/* Line Heights */
	--line-height-tight: 1.2;
	--line-height-base:  1.6;
	--line-height-loose: 1.8;

	/* Letter Spacing */
	--letter-spacing-tight:  -0.02em;
	--letter-spacing-wide:    0.05em;
	--letter-spacing-wider:   0.1em;

	/* Transitions */
	--transition-base: all 0.5s ease;
	--transition-fast: all 0.2s ease;
}

/*--------------------------------------------------------------
# Medielite Brand — Base Typography
--------------------------------------------------------------*/
body {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	color: var(--color-text);
	line-height: var(--line-height-base);
	background: var(--color-base);
}

h1, h2 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--line-height-tight);
	color: var(--color-dark);
	letter-spacing: var(--letter-spacing-tight);
}

h3, h4, h5 {
	font-family: var(--font-primary);
	font-weight: 700;
	line-height: var(--line-height-tight);
	color: var(--color-dark);
}

h6 {
	font-family: var(--font-accent);
	font-weight: 800;
	letter-spacing: var(--letter-spacing-wider);
	text-transform: uppercase;
	color: var(--color-dark);
}

h1 { font-size: clamp(2rem, 5vw, var(--font-size-4xl)); }
h2 { font-size: clamp(1.5rem, 3.5vw, var(--font-size-3xl)); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-xs); }

a { color: var(--color-primary); transition: var(--transition-base); }
a:hover { color: var(--color-secondary); }
a:visited { color: var(--color-primary); }

.label-text {
	font-family: var(--font-accent);
	font-size: var(--font-size-xs);
	font-weight: 800;
	letter-spacing: var(--letter-spacing-wider);
	text-transform: uppercase;
	/* Gold at fill strength fails AA as small text on light backgrounds. */
	color: var(--color-primary-ink);
	display: block;
}


/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* ==========================================================================
   Medielite — Global Layout Utilities
   ========================================================================== */
.container {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 40px;
}

.section-header {
	text-align: center;
	margin-bottom: 60px;
}

.section-header h2 {
	margin-top: 12px;
}

.section-subtext {
	font-size: var(--font-size-md);
	color: var(--color-text-light);
	max-width: 560px;
	margin: 16px auto 0;
}

/* ── Services section header — left-aligned, medielite style ── */
.services-section .section-header {
	text-align: left;
}
.services-section .section-header .label-text {
	font-style: italic;
	text-transform: none;
	letter-spacing: 3.4px;
	font-size: 16px;
	font-weight: 400;
	color: var(--color-primary-ink);
}
.services-section .section-header h2 {
	font-size: 50px;
	font-weight: 700;
	color: var(--color-secondary);
	letter-spacing: 1px;
	line-height: 1.3;
	margin-top: 8px;
}
.services-section .section-subtext {
	display: none; /* matches medielite layout — no subtext under services heading */
}

.accent-line {
	width: 50px;
	height: 3px;
	background: var(--color-primary);
	margin: 24px 0;
}

/* Buttons */
.btn-primary {
	display: inline-block;
	background: var(--color-secondary);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 0.875em 2.5em;
	font-size: var(--font-size-xs);
	font-weight: 800;
	font-family: var(--font-accent);
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition-base);
}

.btn-primary:hover,
.btn-primary:visited {
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

.btn-outline {
	display: inline-block;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255,255,255,0.7);
	border-radius: 50px;
	padding: calc(0.875em - 2px) calc(2.5em - 2px);
	font-size: var(--font-size-xs);
	font-weight: 800;
	font-family: var(--font-accent);
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	text-decoration: none;
	transition: var(--transition-base);
}

/* Same guard as .btn-primary/.btn-secondary: keep the label white after visit. */
.btn-outline:visited {
	color: #fff;
}

.btn-outline:hover {
	background: rgba(255,255,255,0.15);
	border-color: #fff;
	color: #fff;
	text-decoration: none;
}

.btn-secondary {
	display: inline-block;
	background: var(--color-secondary);
	color: #fff;
	border-radius: 50px;
	padding: 0.875em 2.5em;
	font-size: var(--font-size-xs);
	font-weight: 800;
	font-family: var(--font-accent);
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	text-decoration: none;
	transition: var(--transition-base);
}

.btn-secondary:hover,
.btn-secondary:visited {
	background: #fff;
	color: var(--color-secondary);
	text-decoration: none;
}

/* ==========================================================================
   Step 3 — Header
   ========================================================================== */
.site-header { border: none; background: transparent; }

/* ── Top Bar ─────────────────────────────────────────────────────────────── */
.site-header-top {
	background: var(--color-secondary);
	padding: var(--header-topbar-pad, 8px) 0;
}

.header-top-inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-top-contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-top-contact a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 500;
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	transition: color 0.2s;
}

.header-top-contact a:hover { color: var(--color-primary); }
.header-top-contact svg { flex-shrink: 0; opacity: 0.8; }

.header-top-social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header-top-social a {
	display: flex;
	align-items: center;
	color: rgba(255,255,255,0.75);
	transition: color 0.2s;
}

.header-top-social a:hover { color: var(--color-primary); }

/* ── Main Nav ────────────────────────────────────────────────────────────── */
.site-header-main {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.07);
	box-shadow: none;
	transition: box-shadow 0.3s ease;
}

.site-header-main.is-scrolled {
	box-shadow: 0 2px 20px rgba(0,0,0,0.10);
	border-bottom-color: transparent;
}

.header-main-inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	min-height: var(--header-nav-height, 80px);
	gap: 24px;
}

/* Logo */
.header-logo { flex-shrink: 0; }

.header-logo a { display: block; text-decoration: none; }

.header-logo img,
.header-logo .custom-logo {
	display: block;
	max-height: var(--header-logo-height, 80px);
	width: auto;
}

.site-name-text {
	font-family: var(--font-display);
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-dark);
	text-decoration: none;
}

/* Nav */
.header-nav {
	flex: 1;
	background: transparent;
	border: none;
	padding: 0;
	min-height: 0;
}

.header-nav .menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--color-secondary);
}

.header-nav #primary-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
}

.header-nav #primary-menu > li { position: relative; }

.header-nav #primary-menu > li > a {
	display: block;
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 600;
	color: var(--color-dark);
	text-decoration: none;
	padding: var(--header-navitem-pad, 14px) 16px;
	transition: color 0.2s;
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wide);
	white-space: nowrap;
}

.header-nav #primary-menu > li > a:hover,
.header-nav #primary-menu > .current-menu-item > a { color: var(--color-primary); }

/* Dropdown */
.header-nav #primary-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border-top: 2px solid var(--color-primary);
	box-shadow: 0 8px 30px rgba(0,0,0,0.10);
	min-width: 200px;
	list-style: none;
	padding: 0;
	margin: 0;
	z-index: 300;
}

.header-nav #primary-menu > li:hover > .sub-menu,
.header-nav #primary-menu > li.focus > .sub-menu { display: block; }

.header-nav #primary-menu .sub-menu a {
	display: block;
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 500;
	color: var(--color-dark);
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	padding: 10px 20px;
	border-bottom: 1px solid var(--color-border);
	transition: color 0.2s;
}

.header-nav #primary-menu .sub-menu a:hover { color: var(--color-primary); }

/* Sub-menu toggle button (mobile only — hidden on desktop) */
.sub-menu-toggle {
	display: none;
}

/* Book Appointment CTA button */
.header-cta { flex-shrink: 0; }

.btn-book {
	display: inline-block;
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--color-secondary);
	border: 2px solid var(--color-secondary);
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-book:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
	.site-header-top { display: none; }
	.header-cta { display: none; }
	.header-nav .menu-toggle { display: flex; align-items: center; }

	.header-nav #primary-menu {
		display: none;
		flex-direction: column;
		justify-content: flex-start;
		position: absolute;
		top: var(--header-nav-height, 80px);
		left: 0;
		right: 0;
		background: var(--color-secondary);
		padding: 20px 0;
		gap: 0;
		z-index: 300;
	}

	.header-nav #primary-menu.toggled { display: flex; }

	.header-nav #primary-menu > li > a {
		color: #fff;
		padding: 14px 30px;
		font-size: var(--font-size-md);
	}

	.header-nav #primary-menu > li > a:hover { color: var(--color-primary); }

	/* Sub-menu toggle button */
	.sub-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		cursor: pointer;
		color: rgba(255,255,255,0.7);
		padding: 4px 12px 4px 4px;
		vertical-align: middle;
		transition: transform 0.2s;
	}

	.sub-menu-toggle[aria-expanded="true"] {
		transform: rotate(180deg);
		color: var(--color-primary);
	}

	/* Mobile sub-menus */
	.header-nav #primary-menu .sub-menu {
		display: none;
		position: static;
		background: rgba(0,0,0,0.2);
		border-top: none;
		box-shadow: none;
		min-width: 0;
		padding: 0;
	}

	.header-nav #primary-menu li.sub-open > .sub-menu { display: block; }

	.header-nav #primary-menu .sub-menu a {
		color: rgba(255,255,255,0.85);
		padding: 11px 30px 11px 44px;
		border-bottom: 1px solid rgba(255,255,255,0.07);
		font-size: 13px;
		text-transform: none;
		letter-spacing: 0;
	}

	.header-nav #primary-menu .sub-menu a:hover { color: var(--color-primary); }

	.header-main-inner { padding: 0 20px; }
}

/* ==========================================================================
   Service Page Template
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.service-hero {
	position: relative;
	background: var(--color-secondary);
	background-size: cover;
	background-position: center;
	padding: 80px 0 70px;
	overflow: hidden;
}

.service-hero--has-image .service-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(48,55,62,0.82);
}

.service-hero__inner {
	position: relative;
	z-index: 1;
}

.service-hero .page-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255,255,255,0.6);
	margin-bottom: 20px;
}

.service-hero .page-breadcrumb a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	transition: color 0.2s;
}

.service-hero .page-breadcrumb a:hover { color: var(--color-primary); }
.service-hero .breadcrumb-sep { color: rgba(255,255,255,0.3); }
.service-hero .breadcrumb-current { color: var(--color-primary); }

.service-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.15;
}

.service-hero__subtitle {
	font-size: var(--font-size-lg);
	color: rgba(255,255,255,0.8);
	max-width: 680px;
	margin: 0;
	line-height: 1.6;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
.service-page-body { padding: 72px 0; }

.service-content-wrap { max-width: 860px; }

/* Gutenberg content styling */
.service-content h2 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 700;
	color: var(--color-secondary);
	margin: 2.5rem 0 1rem;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-primary);
	display: inline-block;
}

.service-content h3 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-secondary);
	margin: 2rem 0 0.75rem;
}

.service-content h4 {
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 1.5rem 0 0.5rem;
}

.service-content p {
	font-size: var(--font-size-md);
	line-height: 1.8;
	color: var(--color-text);
	margin-bottom: 1.25rem;
}

.service-content ul,
.service-content ol {
	padding-left: 0;
	margin-bottom: 1.5rem;
	list-style: none;
}

.service-content ul li,
.service-content ol li {
	font-size: var(--font-size-md);
	line-height: 1.7;
	color: var(--color-text);
	padding: 6px 0 6px 28px;
	position: relative;
	border-bottom: 1px solid var(--color-border);
}

.service-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	background: var(--color-primary);
	border-radius: 50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: 10px;
	background-repeat: no-repeat;
	background-position: center;
}

.service-content ol { counter-reset: service-counter; }
.service-content ol li { counter-increment: service-counter; }
.service-content ol li::before {
	content: counter(service-counter);
	position: absolute;
	left: 0;
	top: 6px;
	width: 20px;
	height: 20px;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Highlight box — wp:group with has-light-background */
.service-content .wp-block-group {
	background: var(--color-surface);
	border-left: 4px solid var(--color-primary);
	padding: 24px 28px;
	border-radius: 0 6px 6px 0;
	margin: 2rem 0;
}

.service-content .wp-block-group p { margin-bottom: 0; }

/* Two-column layout for process steps */
.service-content .wp-block-columns { gap: 32px; margin: 2rem 0; }

.service-content .wp-block-column {
	background: var(--color-surface);
	border-radius: 8px;
	padding: 28px;
	border-top: 3px solid var(--color-primary);
}

/* Separator */
.service-content hr.wp-block-separator {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 2.5rem 0;
}

/* Schedule / CTA inline button */
.service-content .wp-block-buttons { margin: 2rem 0; }

.service-content .wp-block-button__link {
	background: var(--color-secondary);
	color: #fff;
	font-family: var(--font-primary);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 12px 28px;
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s;
}

.service-content .wp-block-button__link:hover {
	background: var(--color-primary);
}

@media (max-width: 768px) {
	.service-hero { padding: 60px 0 50px; }
	.service-page-body { padding: 48px 0; }
}

/* ==========================================================================
   Step 4 — Footer
   ========================================================================== */
.site-footer { margin-top: 0; }

.site-footer-content {
	background: var(--color-base);
	border-top: 1px solid var(--color-border);
	padding: 80px 0 60px;
}

.footer-inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
	gap: 50px;
}

.footer-col-heading {
	font-family: var(--font-accent);
	font-size: var(--font-size-xs);
	font-weight: 800;
	letter-spacing: var(--letter-spacing-wider);
	text-transform: uppercase;
	color: var(--color-dark);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--color-primary);
	display: inline-block;
}

.footer-site-name {
	font-family: var(--font-display);
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-dark);
	text-decoration: none;
	display: block;
	margin-bottom: 16px;
}

.footer-col-brand img { max-height: 50px; width: auto; margin-bottom: 16px; display: block; }

.footer-tagline {
	font-size: var(--font-size-sm);
	color: var(--color-text-light);
	line-height: var(--line-height-loose);
	margin-bottom: 24px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social-link {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-light);
	text-decoration: none;
	transition: var(--transition-base);
}

.footer-social-link:hover,
.footer-social-link:visited {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: 10px; }

.footer-nav-list a {
	font-size: var(--font-size-sm);
	color: var(--color-text-light);
	text-decoration: none;
	transition: var(--transition-base);
}

.footer-nav-list a:hover,
.footer-nav-list a:visited { color: var(--color-primary); text-decoration: none; }

.footer-contact-list { display: flex; flex-direction: column; gap: 14px; }

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--font-size-sm);
	color: var(--color-text-light);
	line-height: var(--line-height-base);
}

.footer-contact-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }

.footer-contact-item a {
	color: var(--color-text-light);
	text-decoration: none;
	transition: var(--transition-base);
}

.footer-contact-item a:hover { color: var(--color-primary); }

.site-footer-copyright {
	background: var(--color-dark);
	padding: 20px 0;
}

.footer-copyright-inner {
	max-width: 1260px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-copyright-text {
	color: var(--color-text-light-on-dark);
	font-size: var(--font-size-xs);
	margin: 0;
}

.footer-copyright-text a {
	color: var(--color-text-light-on-dark);
	text-decoration: none;
	transition: var(--transition-base);
}

.footer-copyright-text a:hover { color: var(--color-primary); }

@media (max-width: 1023px) {
	.footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 767px) {
	.footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 0 20px; }
	.site-footer-content { padding: 50px 0 40px; }
	.footer-copyright-inner { flex-direction: column; text-align: center; padding: 0 20px; }
}

/* ==========================================================================
   Step 5 — Landing Page
   ========================================================================== */

/* Hero Carousel */
.hero-section {
	position: relative;
	height: 90vh;
	min-height: 580px;
	overflow: hidden;
	background: var(--color-secondary);
}

.hero-track {
	display: flex;
	height: 100%;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
	min-width: 100%;
	height: 100%;
	position: relative;
	background: var(--color-secondary) no-repeat center center / cover;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: var(--color-overlay);
}

.hero-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
	padding: 80px 40px;
}

/* White, not gold: this sits on hero photography where gold measured 2.48:1.
   Specificity (0,2,0) — matches any `.hero-section .label-text` rule, so keep
   the colour here rather than adding a competing rule elsewhere. */
.hero-inner .label-text { color: #fff; margin-bottom: 20px; }

.hero-heading {
	color: #fff;
	margin-bottom: 24px;
	text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
	color: rgba(255,255,255,0.85);
	font-size: var(--font-size-md);
	margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Carousel prev/next arrows */
.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255,255,255,0.12);
	border: 2px solid rgba(255,255,255,0.35);
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	transition: var(--transition-base);
	backdrop-filter: blur(4px);
}
.carousel-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
}
.carousel-btn-prev { left: 28px; }
.carousel-btn-next { right: 28px; }

/* Carousel dot indicators */
.carousel-dots {
	position: absolute;
	bottom: 36px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}
.carousel-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.4);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: var(--transition-base);
}
.carousel-dot.is-active,
.carousel-dot:hover {
	background: var(--color-primary);
	transform: scale(1.35);
}

/* Services */
.services-section {
	background: var(--color-surface);
	padding: 100px 0;
}

/* The hero's "Our Services" button targets #services on the same page. The
   header is position:sticky, so without this offset the section heading lands
   underneath it. */
.services-section {
	scroll-margin-top: calc(var(--header-nav-height, 80px) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: start; /* prevent stretch from overriding aspect-ratio */
}

/* Column count follows the number of cards (class set in sections/services.php)
   so the final row is never left with a single orphaned card. 3, 5 and 6 cards
   keep the 3-column default, which already fills evenly enough (3 / 3+2 / 3+3).
   These must stay ABOVE the responsive overrides below — equal specificity
   means the later media queries win at narrower widths, which is what we want. */
.services-grid--1 {
	grid-template-columns: minmax(0, 420px);
	justify-content: center;
}
.services-grid--2 { grid-template-columns: repeat(2, 1fr); }
.services-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Image card — full image visible */
.service-card {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0,0,0,0.13);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: var(--color-secondary);
}
.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 50px rgba(0,0,0,0.22);
}

/* Full image — no cropping */
.service-card__img {
	display: block;
	width: 100%;
	height: auto;
	/* Card height used to follow each image's intrinsic ratio, so a single
	   landscape source collapsed its card to half the height of its neighbours
	   and broke the row. Lock the card proportion the design assumes (430x560)
	   and crop instead. */
	aspect-ratio: 430 / 560;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s ease;
}
.service-card:hover .service-card__img { transform: scale(1.03); }

/* No-image fallback */
.service-card--no-image {
	min-height: 280px;
}

/* Gradient overlay — full card, semi-transparent so any text position reads clearly */
.service-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0,0,0,0.82) 0%,
		rgba(0,0,0,0.38) 50%,
		rgba(0,0,0,0.12) 100%
	);
}

/* Content wrapper — fills the entire card, children position independently */
.service-card__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

/* Each element is independently positioned via inline styles from PHP */
.service-card__title,
.service-card__desc,
.service-card__link {
	position: absolute;
	pointer-events: auto;
}

.service-card__title {
	font-family: var(--font-display);
	font-size: 32px; /* overridden per-card via inline style */
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.25;
	max-width: calc(100% - 24px); /* prevent overflow past card edges */
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.service-card__desc {
	font-size: 16px;
	color: rgba(255,255,255,0.9);
	line-height: var(--line-height-loose);
	margin: 0;
	max-width: calc(100% - 48px);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.4s ease, opacity 0.3s ease;
	text-shadow: 0 1px 3px rgba(0,0,0,0.4);
	text-align: left; /* block is positioned by inline style; text stays left */
}
.service-card:hover .service-card__desc {
	max-height: calc(100% - 160px); /* 80px clearance at top for title + 80px at bottom for button */
	overflow-y: auto;
	opacity: 1;
}

/* "Learn More" — gold pill, fixed at bottom-left by default */
.service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-accent);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
	padding: 7px 18px;
	border-radius: 40px;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}
/* Without this, any `a:visited` rule (0,1,1) outranks the single-class rule
   above (0,1,0) and recolours the button once the page has been visited. */
.service-card__link:visited {
	color: var(--color-primary);
}
.service-card__link:hover {
	background: var(--color-primary);
	color: #fff;
	text-decoration: none;
}

/* About */
.about-section { padding: 100px 0; background: var(--color-base); }

.about-columns { display: flex; gap: 60px; align-items: center; }

.about-image-col { flex: 0 0 50%; }

.about-image-col img,
.about-image-placeholder {
	width: 100%;
	height: 540px;
	object-fit: cover;
	border-radius: 4px;
	display: block;
	background: var(--color-surface);
}

.about-text-col { flex: 1; }
.about-text-col .label-text { margin-bottom: 16px; }
.about-text-col h2 { margin-bottom: 0; }
.about-text-col p { font-size: var(--font-size-md); color: var(--color-text); line-height: var(--line-height-loose); margin-bottom: 16px; }

/* Stats */
.stats-section { background: var(--color-secondary); padding: 80px 0; }

.stats-columns { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat-item { text-align: center; padding: 20px 30px; position: relative; }

.stat-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0; top: 20%; height: 60%;
	width: 1px;
	background: rgba(255,255,255,0.1);
}

.stat-number { font-family: var(--font-display); font-size: clamp(2rem, 4vw, var(--font-size-4xl)); font-weight: 700; color: var(--color-primary); line-height: 1; margin-bottom: 10px; }
.stat-label { font-size: var(--font-size-sm); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: var(--letter-spacing-wide); margin-bottom: 8px; }
.stat-desc { font-size: var(--font-size-xs); color: var(--color-text-light-on-dark); line-height: var(--line-height-base); max-width: 180px; margin: 0 auto; }

/* Testimonials */
.testimonials-section { padding: 100px 0; background: var(--color-base); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.testimonial-card { border: 1px solid var(--color-border); padding: 40px; border-radius: 4px; transition: var(--transition-base); }
.testimonial-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.06); transform: translateY(-3px); }
.testimonial-stars { color: var(--color-primary); font-size: var(--font-size-md); letter-spacing: 3px; margin-bottom: 20px; }
.testimonial-text { font-style: italic; color: var(--color-text); font-size: var(--font-size-md); line-height: var(--line-height-loose); margin-bottom: 24px; }
.testimonial-author { font-weight: 700; color: var(--color-dark); font-size: var(--font-size-sm); margin-bottom: 4px; }
.testimonial-role { font-size: var(--font-size-xs); color: var(--color-primary); font-family: var(--font-accent); font-weight: 600; letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; }

/* CTA Banner */
.cta-banner { background: var(--color-primary); padding: 100px 0; text-align: center; }
.cta-banner .container { display: flex; flex-direction: column; align-items: center; }
.cta-banner h2 { color: var(--color-dark); margin-bottom: 16px; }
/* Was an inline style="color:rgba(255,255,255,.7)" on the span in both
   sections/cta.php and template-service.php — no stylesheet rule could
   override it, and it measured 2.14:1 on the gold band. */
/* 95%: at 85-88% this composited too light over the darker gold of the
   alternate palette and dropped below 4.5:1. 91% is the minimum that passes
   both; 95% leaves headroom. */
.cta-banner__eyebrow { color: color-mix(in srgb, var(--color-dark) 95%, transparent); }
.cta-sub { color: color-mix(in srgb, var(--color-dark) 95%, transparent); font-size: var(--font-size-md); max-width: 560px; margin: 0 0 36px; }

/* Landing responsive */
@media (max-width: 1200px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	/* No hover on touch, so the description is shown permanently. It must also
	   clear the `overflow: hidden` inherited from the base rule — capping the
	   height without it silently cut the text off mid-sentence (the desktop
	   hover rule avoids this by pairing its cap with `overflow-y: auto`). */
	.service-card__desc { max-height: none; opacity: 1; }
}

@media (max-width: 1023px) {
	.services-section, .about-section, .testimonials-section, .cta-banner { padding: 70px 0; }
	.stats-section { padding: 60px 0; }
	.about-columns { flex-direction: column; gap: 40px; }
	.about-image-col { flex: none; width: 100%; }
	.about-image-col img, .about-image-placeholder { height: 320px; }
	.stats-columns { grid-template-columns: repeat(2, 1fr); }
	.stat-item:not(:last-child)::after { display: none; }
}

@media (max-width: 767px) {
	.hero-inner { padding: 60px 20px; }
	.carousel-btn { display: none; }
	.carousel-dots { bottom: 20px; }
	.services-grid { grid-template-columns: 1fr; }
	/* See the note at the 1200px breakpoint — uncapped so nothing is clipped. */
	.service-card__desc { max-height: none; opacity: 1; }
	.testimonials-grid { grid-template-columns: 1fr; }
	.stats-columns { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Step 6 — Blog Post
   ========================================================================== */

/* Post hero */
.post-hero { background: var(--color-secondary); padding: 70px 0 60px; }

.post-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: var(--font-size-sm); color: var(--color-text-light-on-dark); list-style: none; padding: 0; }
.post-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--color-text-light-on-dark); opacity: 0.5; }
.breadcrumb-current { color: var(--color-text-light-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.post-category-badges { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-category-badge { display: inline-block; background: var(--color-primary); color: #fff; font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; padding: 4px 14px; border-radius: 50px; text-decoration: none; }

.post-hero-title { color: #fff; max-width: 800px; margin-bottom: 24px; }

.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.post-author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-meta-author, .post-meta-date, .post-meta-read-time { font-size: var(--font-size-sm); color: var(--color-text-light-on-dark); }
.post-meta-sep { color: var(--color-text-light-on-dark); opacity: 0.4; }

/* Post body */
.post-body { padding: 0 0 60px; }
.post-body .container { max-width: 960px; }

.post-featured-image-wrap { margin-bottom: 0; }
.post-featured-image { width: 100%; height: auto; display: block; border-radius: 0 0 4px 4px; }

.post-content-wrap { padding: 60px 0 0; }
.post-content p { font-size: var(--font-size-md); line-height: var(--line-height-loose); color: var(--color-text); margin-bottom: 24px; }
.post-content h2 { font-size: var(--font-size-2xl); margin: 48px 0 20px; padding-top: 16px; border-top: 3px solid var(--color-primary); }
.post-content h3 { font-size: var(--font-size-xl); margin: 36px 0 16px; }
.post-content blockquote { border-left: 4px solid var(--color-primary); margin: 40px 0; padding: 20px 30px; background: var(--color-surface); font-style: italic; font-size: var(--font-size-lg); color: var(--color-secondary); border-radius: 0 4px 4px 0; }
.post-content a { color: var(--color-primary); }
.post-content a:hover { color: var(--color-secondary); }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 32px 0; }

/* Tags */
.post-tags-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--color-border); padding-top: 30px; margin-top: 30px; }
.post-tags-label { font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-text-light); }
.post-tags a { display: inline-block; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); font-size: var(--font-size-xs); padding: 4px 12px; border-radius: 50px; text-decoration: none; transition: var(--transition-base); }
.post-tags a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Author bio */
.post-author-bio { display: flex; gap: 24px; border: 1px solid var(--color-border); padding: 30px; border-radius: 4px; margin-top: 40px; align-items: flex-start; }
.author-bio-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-bio-name { font-size: var(--font-size-lg); font-weight: 700; color: var(--color-dark); margin: 0 0 4px; }
.author-bio-role { font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-primary); margin-bottom: 12px; }
.author-bio-text { font-size: var(--font-size-sm); color: var(--color-text); line-height: var(--line-height-loose); margin: 0; }

/* Post nav */
.post-nav-wrap { margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 40px; }
.post-nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-nav-links .nav-previous, .post-nav-links .nav-next { flex: 1; }
.post-nav-links .nav-next { text-align: right; }
.post-nav-label { display: block; font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-primary); margin-bottom: 6px; }
.post-nav-title { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-dark); }
.post-nav-links a { text-decoration: none; transition: var(--transition-base); }
.post-nav-links a:hover .post-nav-title { color: var(--color-primary); }

/* Comments */
.post-comments-wrap { margin-top: 40px; }
.comments-area .comments-title { font-size: var(--font-size-2xl); margin-bottom: 40px; padding-bottom: 16px; border-bottom: 2px solid var(--color-border); }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 24px 0; border-bottom: 1px solid var(--color-border); }
.comment-list .comment-author { font-weight: 700; font-size: var(--font-size-sm); color: var(--color-dark); }
.comment-list .comment-metadata { font-size: var(--font-size-xs); color: var(--color-text-light); }
.comment-list .comment-metadata a { color: var(--color-text-light); text-decoration: none; }
.comment-list .comment-body p { font-size: var(--font-size-sm); color: var(--color-text); line-height: var(--line-height-loose); margin: 10px 0; }
.comment-list .reply a { font-size: var(--font-size-xs); font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: var(--letter-spacing-wide); text-decoration: none; }

.comment-form label { font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-dark); display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { border: 1px solid var(--color-border); border-radius: 4px; padding: 12px 16px; font-family: var(--font-primary); font-size: var(--font-size-sm); width: 100%; transition: var(--transition-fast); box-sizing: border-box; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary); outline: none; }
.comment-form input[type="submit"] { background: var(--color-secondary); color: #fff; border: none; border-radius: 50px; padding: 0.875em 2.5em; font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; cursor: pointer; transition: var(--transition-base); }
.comment-form input[type="submit"]:hover { background: var(--color-primary); }

/* Related posts */
.related-posts { background: var(--color-surface); padding: 80px 0; }
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { background: var(--color-base); border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; transition: var(--transition-base); }
.post-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.post-card-image-link { display: block; overflow: hidden; }
.post-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.5s ease; }
.post-card:hover .post-card-image { transform: scale(1.04); }
.post-card-body { padding: 24px; }
.post-card-category { font-size: var(--font-size-xs); font-weight: 800; font-family: var(--font-accent); letter-spacing: var(--letter-spacing-wide); text-transform: uppercase; color: var(--color-primary); text-decoration: none; display: block; margin-bottom: 8px; }
.post-card-title { font-size: var(--font-size-lg); color: var(--color-dark); margin: 0 0 10px; line-height: var(--line-height-tight); }
.post-card-title a { color: var(--color-dark); text-decoration: none; transition: var(--transition-base); }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-date { font-size: var(--font-size-xs); color: var(--color-text-light); }

@media (max-width: 1023px) {
	.post-hero { padding: 50px 0 40px; }
	.related-posts { padding: 60px 0; }
	.related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.post-author-bio { flex-direction: column; }
	.post-nav-links { flex-direction: column; }
	.post-nav-links .nav-next { text-align: left; }
	.related-posts-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Step 7 — Page Template
   ========================================================================== */
.page-hero { background: var(--color-secondary); padding: 70px 0 60px; text-align: center; }

.page-breadcrumb { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: var(--font-size-sm); color: var(--color-text-light-on-dark); padding: 0; list-style: none; }
.page-breadcrumb a { color: var(--color-primary); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }

.page-hero-title { color: #fff; margin: 0 auto; max-width: 800px; }

.page-body { padding-bottom: 0; }

.page-content-wrapper { max-width: 1260px; margin: 0 auto; padding: 80px 40px; }

.page-content { font-family: var(--font-primary); color: var(--color-text); line-height: var(--line-height-base); }

@media (max-width: 1023px) {
	.page-hero { padding: 50px 0 40px; }
	.page-content-wrapper { padding: 60px 20px; }
}

@media (max-width: 767px) {
	.page-hero { padding: 40px 0; }
	.page-content-wrapper { padding: 40px 20px; }
}

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	/* `font-size: 2em` removed 2026-08-09: it overrode the brand's
	   `h1 { font-size: clamp(2rem, 5vw, var(--font-size-4xl)); }`, capping every
	   h1 on the site at 32px instead of scaling up to 56px. None of the h1
	   components (.hero-heading, .post-hero-title, .page-hero-title) set their
	   own size, so all of them were affected. Margin is left as-is. */
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
/* Retargeted onto the brand tokens 2026-08-09. This block is Underscores
   starter markup sitting ~1700 lines after `body { ... }` in the brand section,
   so at equal specificity it was winning: body copy rendered in the OS system
   font while Plus Jakarta Sans was downloaded and never used, and body colour
   was #404040 instead of --color-text. The selector list is still useful — form
   controls do not inherit font from body — so it is kept, pointed at the
   tokens instead of hardcoded starter values. */
body,
button,
input,
select,
optgroup,
textarea {
	color: var(--color-text);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
/* Tokenised 2026-08-09. This is Underscores starter markup and it sits ~1770
   lines AFTER the brand rule `body { background: var(--color-base); }`, so at
   equal specificity it won — the hardcoded #fff was silently overriding the
   palette at every viewport. Harmless while --color-base is #FFFFFF, but it
   would have killed the cream background across the whole rebrand. */
body {
	background: var(--color-base);
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
/* Link COLOURS are defined once in the brand palette near the top of this file
   (a / a:hover / a:visited, all using --color-primary).
   The Underscores starter colours that used to live here — #4169e1, #800080
   visited, #191970 hover — sat LATER in the file and silently overrode it:
   `a:visited` scores (0,1,1), which beats a single-class rule like
   `.service-card__link` at (0,1,0). The result was that once you had visited a
   service page, that card's gold "Learn More" button turned purple, and any
   link not carrying its own class rendered royal blue. Only the focus/outline
   rules are kept here. Do not reintroduce colour declarations in this block. */

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

/* Scoped to <article> 2026-08-09. WordPress body_class() puts `post`/`page` on
   the <body> element too, so the unscoped selector matched body at (0,1,0),
   beating `body` at (0,0,1) and leaving a 24px dead gap under the footer on
   every page. All three post_class() calls in this theme are on <article>. */
article.post,
article.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
