/*
Theme Name: ODSS BC
Theme URI: https://odssbc.ca
Author: Olivia Douglas Support Services BC
Description: A disability-aware, WCAG 2.2 AA theme for Olivia Douglas Support Services BC. Services sit in a grid on the front page; blue and orange swoops frame every page; contact details and social links live in the Customizer and appear in the same place on every page. Includes self-hosted Open Sans type with an OpenDyslexic option, visible focus, large touch targets, a text-size and high-contrast switcher, and reduced-motion support.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 7.1
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: odssbc
Tags: accessibility-ready, custom-logo, custom-menu, featured-images, footer-widgets, one-column, two-columns, grid-layout, editor-style, translation-ready, blog
*/

/* ==========================================================================
   1. Tokens. Text pairings (contrast vs. their background):
      white on --c-blue 8.8:1 · white on --c-deep 11.4:1 · --c-ink on white 15.7:1
      --c-muted on white 7.6:1 · --c-orange-text on white 5.4:1
      near-black on --c-orange 7.6:1 · --c-deep on --c-pale-blue 10:1
      --c-orange and --c-light-blue are decorative only (never text on white).
   ========================================================================== */
:root {
	--c-blue: #0b4a8f;
	--c-deep: #083a70;
	--c-deeper: #062b54;
	--c-orange: #f7931e;
	--c-orange-soft: #ffb46a;
	--c-orange-text: #b44a00;
	--c-light-blue: #4f8fd6;
	--c-ink: #1b2430;
	--c-heading: #083a70;
	--c-muted: #4a5563;
	--c-bg: #ffffff;
	--c-surface: #ffffff;
	--c-pale-blue: #eaf2fb;
	--c-pale-orange: #fff4e8;
	--c-border: #c9d7e8;
	--c-link: #0b4a8f;
	--c-link-hover: #b44a00;
	--c-on-dark: #ffffff;
	--c-on-dark-accent: #ffd9b0;
	--c-focus: #1b2430;
	--c-focus-on-dark: #ffb46a;
	--c-btn-dark-text: #1a1a1a;

	--font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 72rem;
	--wrap-narrow: 46rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--space: clamp(3rem, 7vw, 5rem);
	--shadow: 0 1px 2px rgba(8, 58, 112, .08), 0 8px 24px rgba(8, 58, 112, .10);
	--target: 2.75rem; /* 44px minimum touch target */
}

/* Dyslexia-friendly font (Display options, or the site default in the Customizer).
   OpenDyslexic sets wide and tall, so it gets a little extra line and word spacing. */
html[data-font="dyslexic"] {
	--font-body: "OpenDyslexic", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html[data-font="dyslexic"] body { line-height: 1.75; word-spacing: .08em; }
html[data-font="dyslexic"] h1,
html[data-font="dyslexic"] h2,
html[data-font="dyslexic"] h3,
html[data-font="dyslexic"] h4 { line-height: 1.3; }

/* Text-size switcher (Display options). Scales everything set in rem. */
html[data-text-size="1"] { font-size: 112.5%; }
html[data-text-size="2"] { font-size: 125%; }
html[data-text-size="3"] { font-size: 150%; }

/* High-contrast mode (Display options). */
html[data-contrast="high"] {
	--c-blue: #000;
	--c-deep: #000;
	--c-deeper: #000;
	--c-orange: #ffeb3b;
	--c-orange-soft: #ffeb3b;
	--c-orange-text: #ffeb3b;
	--c-light-blue: #ffffff;
	--c-ink: #ffffff;
	--c-heading: #ffffff;
	--c-muted: #ffffff;
	--c-bg: #000;
	--c-surface: #000;
	--c-pale-blue: #000;
	--c-pale-orange: #000;
	--c-border: #ffffff;
	--c-link: #ffeb3b;
	--c-link-hover: #ffffff;
	--c-on-dark: #ffffff;
	--c-on-dark-accent: #ffeb3b;
	--c-focus: #00e5ff;
	--c-focus-on-dark: #00e5ff;
	--shadow: none;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 1.1875rem; /* 19px */
	line-height: 1.6;
	overflow-wrap: break-word;
}

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

h1, h2, h3, h4, h5, h6 {
	color: var(--c-heading);
	line-height: 1.2;
	margin: 1.6em 0 .5em;
	font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p, ul, ol, dl, blockquote, figure, table { margin: 0 0 1.1em; }

a {
	color: var(--c-link);
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}
a:hover { color: var(--c-link-hover); text-decoration-thickness: .14em; }

/* Visible, consistent focus everywhere (WCAG 2.4.7 / 2.4.11 / 2.4.13). */
:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
	border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

hr { border: 0; border-top: 2px solid var(--c-border); margin: 2.5rem 0; }

::selection { background: var(--c-orange-soft); color: #000; }

.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;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 1000;
	padding: .85rem 1.25rem;
	background: var(--c-orange);
	color: var(--c-btn-dark-text);
	font-weight: 700;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	text-decoration: none;
}
.skip-link:focus { top: 0; outline-color: var(--c-ink); }

#main:focus, .section:focus { outline: none; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.button,
button,
input[type="submit"],
input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	max-width: 100%;
	min-height: var(--target);
	padding: .65rem 1.4rem;
	text-align: center;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.button--orange { background: var(--c-orange); color: var(--c-btn-dark-text); border-color: var(--c-orange); }
.button--orange:hover { background: var(--c-orange-soft); color: var(--c-btn-dark-text); border-color: var(--c-orange-soft); }
.button--blue,
button[type="submit"],
input[type="submit"] { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.button--blue:hover,
button[type="submit"]:hover,
input[type="submit"]:hover { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }
.button--outline { background: transparent; color: var(--c-blue); border-color: var(--c-blue); }
.button--outline:hover { background: var(--c-pale-blue); color: var(--c-deep); }
.button--outline-light { background: transparent; color: #fff; border-color: #fff; }
.button--outline-light:hover { background: #fff; color: var(--c-deep); }

html[data-contrast="high"] .button,
html[data-contrast="high"] button,
html[data-contrast="high"] input[type="submit"] { border-color: #fff; }
html[data-contrast="high"] .button--orange { color: #000; }

/* ==========================================================================
   4. Masthead: display options, header, navigation, hero/banner, top swoop
   ========================================================================== */
.masthead {
	--c-focus: var(--c-focus-on-dark);
	position: relative;
	background:
		radial-gradient(ellipse 60% 80% at 100% 0%, rgba(79, 143, 214, .35), transparent 70%),
		linear-gradient(140deg, var(--c-deep) 0%, var(--c-blue) 70%);
	color: var(--c-on-dark);
}
.masthead a { color: var(--c-on-dark); }
.masthead a:hover { color: var(--c-on-dark-accent); }
.masthead .button--orange,
.masthead .button--orange:hover { color: var(--c-btn-dark-text); }
.masthead .button--outline-light:hover { color: var(--c-deep); }
html[data-contrast="high"] .masthead { background: #000; border-bottom: 0; }
html[data-contrast="high"] .masthead .button--orange,
html[data-contrast="high"] .masthead .button--orange:hover { color: #000; }
html[data-contrast="high"] .masthead .button--outline-light:hover { color: #000; }

.display-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: .4rem;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: .5rem var(--gutter) 0;
	font-size: .9rem;
}
.display-options__label { display: inline-flex; align-items: center; gap: .3rem; margin-right: .25rem; }
.display-options__btn {
	min-height: 2.25rem;
	min-width: 2.75rem;
	padding: .3rem .8rem;
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, .75);
	font-size: .9rem;
}
.display-options__btn:hover { background: rgba(255, 255, 255, .15); }
.display-options__btn[aria-pressed="true"] { background: #fff; color: var(--c-deep); }
html[data-contrast="high"] .display-options__btn[aria-pressed="true"] { background: #ffeb3b; color: #000; }

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding-block: 1rem;
}
.site-branding { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.brand { margin: 0; }
.brand__link {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .85rem;
	max-width: 100%;
	text-decoration: none;
	border-radius: var(--radius-sm);
}
.brand__link:hover .brand__name { text-decoration: underline; }
.brand__logo { display: block; flex-shrink: 0; line-height: 0; }
.brand__logo-img {
	display: block;
	height: var(--logo-h, 80px);
	width: auto;
	max-width: min(22rem, 70vw);
	object-fit: contain;
}
.brand__logo--tile {
	background: #fff;
	padding: .5rem .75rem;
	border-radius: var(--radius-sm);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
html[data-contrast="high"] .brand__logo--tile { border: 2px solid #fff; }
.brand__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	height: var(--logo-h, 80px);
	min-width: 10rem;
	padding: 0 1rem;
	border: 3px dashed var(--c-on-dark-accent);
	border-radius: var(--radius-sm);
	color: var(--c-on-dark-accent);
	font-size: .95rem;
	font-weight: 700;
}
.site-title { margin: 0; font-size: clamp(1.2rem, 1rem + .6vw, 1.4rem); font-weight: 700; line-height: 1.2; }
.brand__name { max-width: 20ch; min-width: 0; overflow-wrap: anywhere; }
.brand--logo-only .brand__link { gap: 0; }
@media (max-width: 40rem) {
	.brand__logo-img { height: min(var(--logo-h, 80px), 3.75rem); }
	.brand__placeholder { height: min(var(--logo-h, 80px), 3.75rem); min-width: 8rem; }
	.brand__link { gap: .75rem; }
}
.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__logo-img { height: min(var(--logo-h, 80px), 4.5rem); }
.brand--footer .brand__name { font-size: 1.25rem; font-weight: 700; }
.site-description { margin: .15rem 0 0; font-size: 1rem; color: var(--c-on-dark-accent); }

/* Navigation */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { display: flex; flex-wrap: wrap; gap: .25rem; }
.main-navigation .menu > li { position: relative; display: flex; align-items: center; }
.main-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: var(--target);
	padding: .5rem .7rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.main-navigation a:hover { background: rgba(255, 255, 255, .12); text-decoration: underline; color: #fff; }
.main-navigation a[aria-current="page"],
.main-navigation .current-menu-item > a {
	text-decoration: underline;
	text-decoration-color: var(--c-orange);
	text-decoration-thickness: 4px;
	text-underline-offset: .4em;
}

.submenu-toggle {
	min-height: var(--target);
	min-width: var(--target);
	padding: 0;
	background: transparent;
	color: #fff;
	border-radius: 999px;
}
.submenu-toggle:hover { background: rgba(255, 255, 255, .12); }
.submenu-toggle .dashicons { transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .dashicons { transform: rotate(180deg); }

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 15rem;
	padding: .5rem;
	background: var(--c-surface);
	border: 2px solid var(--c-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}
.main-navigation .sub-menu.is-open { display: block; }
.main-navigation .sub-menu a { display: flex; color: var(--c-link); border-radius: 6px; }
.main-navigation .sub-menu a:hover { background: var(--c-pale-blue); color: var(--c-deep); }
.main-navigation .sub-menu { --c-focus: var(--c-ink); }
html[data-contrast="high"] .main-navigation .sub-menu { --c-focus: #00e5ff; }

.menu-toggle {
	display: none;
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 1.25rem;
	height: 3px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Small screens: JS adds .js to <html>; without JS the menu just stays visible. */
@media (max-width: 52rem) {
	.js .menu-toggle { display: inline-flex; }
	.js .main-navigation .menu { display: none; }
	.js .main-navigation.is-open .menu { display: flex; }
	.main-navigation { width: 100%; }
	.site-header__inner > .main-navigation { flex-basis: 100%; }
	.js .site-header__inner { position: relative; }
	.js .main-navigation { display: flex; flex-direction: column; align-items: flex-end; }
	.main-navigation .menu {
		flex-direction: column;
		width: 100%;
		margin-top: .75rem;
		padding: .5rem;
		background: rgba(0, 0, 0, .18);
		border-radius: var(--radius-sm);
	}
	.main-navigation .menu > li { flex-wrap: wrap; }
	.main-navigation .menu > li > a { flex: 1; }
	.main-navigation .sub-menu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}
	.main-navigation .sub-menu a { color: #fff; }
	.main-navigation .sub-menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
	.main-navigation .sub-menu { --c-focus: var(--c-focus-on-dark); }
	.no-js .main-navigation .sub-menu { display: block; }
}

/* Hero (front page) */
.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(.5rem, 2vw, 1.5rem); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero--has-image .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hero__eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .3rem .9rem;
	background: var(--c-orange);
	color: var(--c-btn-dark-text);
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
}
.hero__heading { margin: 0 0 1rem; color: #fff; max-width: 18ch; }
.hero__intro { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); max-width: 40ch; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 0; }
.hero__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 28px 28px 28px 120px;
	border: 6px solid var(--c-orange);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
@media (max-width: 52rem) {
	.hero--has-image .hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__media { max-width: 30rem; }
}

/* Slideshow (front-page banner) */
.slideshow { margin: 0; }
.slideshow__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 6px solid var(--c-orange);
	border-radius: 28px 28px 28px 120px;
	background: var(--c-deeper);
	box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.slideshow__slides,
.slideshow__slide { margin: 0; height: 100%; }
.slideshow__slide[hidden] { display: none; }
.slideshow__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.slideshow__caption {
	margin-top: .75rem;
	font-size: 1rem;
	color: var(--c-on-dark);
}
.slideshow__slide .slideshow__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 2.5rem 1.25rem .9rem 6rem;
	background: linear-gradient(transparent, rgba(4, 28, 56, .92) 55%);
	color: #fff;
	text-align: right;
}
html[data-contrast="high"] .slideshow__slide .slideshow__caption { background: #000; padding-top: .9rem; }
@media (prefers-reduced-motion: no-preference) {
	.slideshow.is-enhanced .slideshow__slide.is-active { animation: odssbc-fade .7s ease; }
}
@keyframes odssbc-fade { from { opacity: 0; } to { opacity: 1; } }

.slideshow__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin-top: 1rem;
}
.slideshow__controls[hidden] { display: none; }
.slideshow__nav { display: flex; align-items: center; gap: .25rem; min-width: 0; }
.slideshow__nav .slideshow__dots { flex: 0 1 auto; }
.slideshow__btn {
	min-height: var(--target);
	padding: .45rem 1rem;
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
	font-size: 1rem;
}
.slideshow__btn:hover { background: #fff; color: var(--c-deep); }
.slideshow__btn--icon { width: var(--target); padding: 0; }
.slideshow__btn[hidden] { display: none; }
.slideshow__btn .dashicons { width: 1.25rem; height: 1.25rem; font-size: 1.25rem; }
html[data-contrast="high"] .slideshow__btn:hover { color: #000; }
.slideshow__dots { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.slideshow__dot {
	/* 44px target around a small visible dot */
	position: relative;
	width: var(--target);
	min-height: var(--target);
	padding: 0;
	background: transparent;
	border: 0;
}
.slideshow__dot::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 14px;
	height: 14px;
	transform: translate(-50%, -50%);
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
}
.slideshow__dot:hover::before { background: rgba(255, 255, 255, .5); }
.slideshow__dot[aria-current="true"]::before {
	width: 28px;
	border-radius: 7px;
	background: var(--c-orange);
	border-color: var(--c-orange);
}
html[data-contrast="high"] .slideshow__dot[aria-current="true"]::before { background: #ffeb3b; border-color: #ffeb3b; }
@media (max-width: 52rem) {
	.slideshow__frame { border-radius: 22px 22px 22px 70px; }
}

/* Banner (inner pages) */
.page-banner { padding: clamp(1rem, 4vw, 2.5rem) 0 .5rem; }
.page-banner__title { margin: 0; color: #fff; max-width: 30ch; }
.page-banner__eyebrow { margin: 0 0 .5rem; color: var(--c-on-dark-accent); font-weight: 700; }
.page-banner__eyebrow .entry-meta { margin: 0; color: inherit; }
.page-banner__intro { max-width: 50ch; margin: 1rem 0 0; font-size: 1.2rem; }

/* Swoops (decorative) */
.swoop {
	display: block;
	width: 100%;
	height: clamp(56px, 9vw, 130px);
	pointer-events: none;
}
.swoop--top { margin-top: clamp(1rem, 3vw, 2rem); margin-bottom: -1px; }
.swoop--bottom { margin-top: var(--space); margin-bottom: -2px; }
.swoop__orange { fill: var(--c-orange); }
.swoop__light { fill: var(--c-light-blue); }
.swoop__bg { fill: var(--c-bg); }
.swoop__deep { fill: var(--c-deep); }
html[data-contrast="high"] .swoop__light { fill: #000; }
@media (forced-colors: active) { .swoop { display: none; } }

/* ==========================================================================
   5. Sections
   ========================================================================== */
.site-main { display: block; }
.section { padding-block: var(--space); }
.section__header { max-width: 46rem; margin-bottom: 2.25rem; }
.section__title { margin: 0 0 .6rem; position: relative; padding-bottom: .6rem; }
.section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4rem;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--c-orange) 0 55%, var(--c-blue) 55% 100%);
}
html[data-contrast="high"] .section__title::after { background: #ffeb3b; }
.section__intro { font-size: 1.2rem; color: var(--c-muted); margin: 0; }
.section__footer-link { margin: 2.25rem 0 0; }

.section--services { padding-top: clamp(1rem, 3vw, 2rem); }
.section--about { background: var(--c-pale-orange); }
.section--contact { background: var(--c-pale-blue); }
.section--page-content { padding-top: 0; }

/* Services grid */
.services-grid,
.post-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
	border: 2px solid var(--c-border);
	border-top: 8px solid var(--c-orange);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:nth-child(even) { border-top-color: var(--c-blue); }
html[data-contrast="high"] .service-card:nth-child(even) { border-top-color: #ffeb3b; }
.service-card:hover { transform: translateY(-4px); border-color: var(--c-blue); box-shadow: 0 12px 32px rgba(8, 58, 112, .18); }
.service-card:nth-child(odd):hover { border-top-color: var(--c-orange); }
.service-card:focus-within { outline: 3px solid var(--c-focus); outline-offset: 4px; }
.service-card__link:focus-visible { outline: none; }

.service-card__media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 1.5rem 1.5rem 0;
	border-radius: 50%;
	background: var(--c-pale-blue);
	color: var(--c-blue);
}
.service-card:nth-child(even) .service-card__icon { background: var(--c-pale-orange); color: var(--c-orange-text); }
html[data-contrast="high"] .service-card__icon { border: 2px solid #fff; }
.service-card__icon .dashicons { width: 2.4rem; height: 2.4rem; font-size: 2.4rem; }

.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.service-card__title { margin: 0 0 .75rem; font-size: 1.4rem; }
.service-card__link { color: var(--c-heading); text-decoration: none; }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card:hover .service-card__link { text-decoration: underline; text-decoration-color: var(--c-orange); text-decoration-thickness: 3px; }

.service-card__meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.service-card__meta li {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .2rem .7rem .2rem .5rem;
	background: var(--c-pale-blue);
	color: var(--c-deep);
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 700;
}
html[data-contrast="high"] .service-card__meta li { color: #fff; border: 1px solid #fff; }
.service-card__meta .dashicons { font-size: 1.1rem; width: 1.1rem; height: 1.1rem; }
.service-card__excerpt p { margin: 0 0 1rem; }
.service-card__more { margin: auto 0 0; font-weight: 700; color: var(--c-orange-text); }
.service-card__more span { display: inline-block; transition: transform .2s; }
.service-card:hover .service-card__more span { transform: translateX(4px); }

.notice-editor { padding: 1rem 1.25rem; background: var(--c-pale-orange); border-left: 6px solid var(--c-orange); }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.about__media img { border-radius: var(--radius); display: block; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.values__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1rem;
	align-items: start;
	padding: 1.25rem;
	background: var(--c-surface);
	border: 2px solid var(--c-border);
	border-left: 8px solid var(--c-blue);
	border-radius: var(--radius-sm);
}
.values__item:nth-child(2) { border-left-color: var(--c-orange); }
.values__item .dashicons { grid-row: span 2; font-size: 2rem; width: 2rem; height: 2rem; color: var(--c-blue); }
.values__item strong { color: var(--c-heading); font-size: 1.2rem; }
@media (max-width: 52rem) { .about { grid-template-columns: minmax(0, 1fr); } }

/* News */
.post-card {
	padding: 1.5rem;
	background: var(--c-surface);
	border: 2px solid var(--c-border);
	border-radius: var(--radius);
}
.post-card__title { margin: 0 0 .35rem; font-size: 1.3rem; }
.entry-meta { color: var(--c-muted); font-size: 1rem; margin: 0 0 .75rem; }

.read-more { font-weight: 700; }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
@media (max-width: 52rem) { .contact { grid-template-columns: minmax(0, 1fr); } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.contact-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1rem;
	align-items: center;
}
.contact-list .dashicons {
	grid-row: span 2;
	width: 3rem;
	height: 3rem;
	font-size: 1.5rem;
	line-height: 3rem;
	text-align: center;
	border-radius: 50%;
	background: var(--c-blue);
	color: #fff;
}
.contact-list li:nth-child(even) .dashicons { background: var(--c-orange); color: var(--c-btn-dark-text); }
html[data-contrast="high"] .contact-list .dashicons { border: 2px solid #fff; }
.contact-list__label { font-weight: 700; font-size: .95rem; color: var(--c-muted); }
.contact-list a { font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact-list li > span:last-child { min-width: 0; }
.contact-list--section li {
	padding: 1rem 1.25rem;
	background: var(--c-surface);
	border: 2px solid var(--c-border);
	border-radius: var(--radius-sm);
}

/* Social links */
.social-links__heading { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.social-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social-links__link {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	min-height: var(--target);
	padding: .45rem 1rem .45rem .75rem;
	border: 2px solid currentColor;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.social-links__link:hover { text-decoration: underline; }
.social-links--contact .social-links__link { color: var(--c-blue); background: var(--c-surface); }
.social-links--contact .social-links__link:hover { color: var(--c-deep); }

/* ==========================================================================
   6. Content (pages, posts, single service)
   ========================================================================== */
.entry-content > * { max-width: 70ch; }
.entry-content > .alignwide { max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.entry-content > .alignfull { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
	margin-left: 0;
	padding: 1rem 1.5rem;
	border-left: 6px solid var(--c-orange);
	background: var(--c-pale-orange);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.15rem;
}
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th,
.entry-content td { border: 2px solid var(--c-border); padding: .6rem .8rem; text-align: left; }
.entry-content th { background: var(--c-pale-blue); }
.entry-content img { border-radius: var(--radius-sm); }

.featured-image { margin-bottom: 2rem; }
.featured-image img { display: block; width: 100%; border-radius: var(--radius); }
.entry-footer { margin-top: 2rem; color: var(--c-muted); font-size: 1rem; }

.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
.wp-caption-text,
figcaption { font-size: 1rem; color: var(--c-muted); margin-top: .5rem; }
.has-blue-color { color: var(--c-blue); }
.has-deep-blue-color { color: var(--c-deep); }
.has-burnt-orange-color { color: var(--c-orange-text); }
.has-ink-color { color: var(--c-ink); }
.has-white-color { color: #fff; }
.has-blue-background-color { background-color: var(--c-blue); }
.has-deep-blue-background-color { background-color: var(--c-deep); }
.has-orange-background-color { background-color: var(--c-orange); }
.has-pale-blue-background-color { background-color: var(--c-pale-blue); }
.has-pale-orange-background-color { background-color: var(--c-pale-orange); }
.has-white-background-color { background-color: #fff; }

.service-single { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); align-items: start; }
.service-single__aside {
	padding: 1.5rem;
	background: var(--c-pale-blue);
	border-top: 8px solid var(--c-orange);
	border-radius: var(--radius);
}
.service-single__aside-title { margin-top: 0; font-size: 1.4rem; }
.service-single__aside-subtitle { font-size: 1.15rem; }
.facts { margin: 0 0 1.5rem; }
.facts dt { font-weight: 700; color: var(--c-heading); }
.facts dd { margin: 0 0 .75rem; }
@media (max-width: 52rem) { .service-single { grid-template-columns: minmax(0, 1fr); } }

/* Post list */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.post-list__item {
	display: grid;
	grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
	gap: 1.5rem;
	padding: 1.5rem;
	border: 2px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-surface);
}
.post-list__item:not(:has(.post-list__media)) { grid-template-columns: minmax(0, 1fr); }
.post-list__media img { display: block; border-radius: var(--radius-sm); aspect-ratio: 3 / 2; object-fit: cover; }
.post-list__title { margin: 0 0 .3rem; font-size: 1.45rem; }
@media (max-width: 40rem) { .post-list__item { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; } }

/* Pagination & post navigation */
.pagination .nav-links,
.post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--target);
	min-height: var(--target);
	padding: .3rem .8rem;
	border: 2px solid var(--c-border);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}
.page-numbers.current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; padding: 1rem 1.25rem; border: 2px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; }
.post-navigation .nav-subtitle { display: block; font-size: .95rem; color: var(--c-muted); }
.post-navigation .nav-title { font-weight: 700; text-decoration: underline; }

/* ==========================================================================
   7. Forms
   ========================================================================== */
label { font-weight: 700; display: inline-block; margin-bottom: .3rem; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: var(--target);
	padding: .55rem .8rem;
	font: inherit;
	color: var(--c-ink);
	background: var(--c-surface);
	border: 2px solid var(--c-muted);
	border-radius: var(--radius-sm);
}
textarea { min-height: 9rem; }
input[type="checkbox"],
input[type="radio"] { width: 1.5rem; height: 1.5rem; margin: 0 .5rem 0 0; vertical-align: middle; accent-color: var(--c-blue); }
input:focus-visible,
textarea:focus-visible,
select:focus-visible { border-color: var(--c-blue); }
.search-form__label { display: block; }
.search-form__row { display: flex; gap: .5rem; }
.search-form__row input { flex: 1; }
.comment-form p { margin-bottom: 1.25rem; }
.required { color: var(--c-orange-text); }
.comment-list { padding-left: 1.25rem; }
.comment-body { padding: 1rem 0; border-bottom: 2px solid var(--c-border); }

/* ==========================================================================
   8. Footer and bottom swoop
   ========================================================================== */
.site-footer {
	--c-focus: var(--c-focus-on-dark);
	background: var(--c-deep);
	color: var(--c-on-dark);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-on-dark-accent); }
.site-footer__grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	padding-block: 1.5rem 3rem;
}
.site-footer__name { font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.site-footer__name a { text-decoration: none; }
.site-footer__heading,
.site-footer .widget-title,
.site-footer .social-links__heading { color: #fff; font-size: 1.15rem; margin: 0 0 1rem; }
.site-footer .social-links__heading { margin-top: 1.5rem; }
.site-footer .contact-list .dashicons { width: 2.5rem; height: 2.5rem; line-height: 2.5rem; font-size: 1.25rem; background: rgba(255, 255, 255, .14); color: #fff; }
.site-footer .contact-list li:nth-child(even) .dashicons { background: var(--c-orange); color: var(--c-btn-dark-text); }
.site-footer .contact-list__label { color: var(--c-on-dark-accent); }
.site-footer .contact-list a { font-size: 1.05rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu a { display: inline-flex; align-items: center; min-height: 2.25rem; }
.site-footer__bottom {
	background: var(--c-deeper);
	border-top: 6px solid var(--c-orange);
	padding-block: 1.25rem;
	font-size: 1rem;
}
.site-footer__bottom p { margin: .25rem 0; }
.land-ack { max-width: 70ch; font-style: italic; }
html[data-contrast="high"] .site-footer { border-top: 2px solid #fff; }

.site-footer h2,
.site-footer h3 { color: #fff; font-size: 1.15rem; margin: 0 0 1rem; }
.site-footer__widgets ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.site-footer__widgets li { margin-bottom: .4rem; }
.site-footer__widgets .widget { margin-bottom: 1.5rem; }

/* Front page ends on the contact band, so the bottom swoop continues it with no white gap. */
.home .swoop--bottom { margin-top: 0; background: var(--c-pale-blue); }

/* High contrast: anything drawn in blue as a foreground becomes yellow. */
html[data-contrast="high"] .service-card__icon,
html[data-contrast="high"] .service-card:nth-child(even) .service-card__icon,
html[data-contrast="high"] .values__item .dashicons,
html[data-contrast="high"] .social-links--contact .social-links__link,
html[data-contrast="high"] .service-card__link { color: #ffeb3b; }
html[data-contrast="high"] .button--outline { color: #fff; border-color: #fff; }
html[data-contrast="high"] .button--outline:hover { background: #fff; color: #000; }
html[data-contrast="high"] .values__item { border-left-color: #fff; }
html[data-contrast="high"] .contact-list li:nth-child(even) .dashicons { background: #ffeb3b; color: #000; }

/* ==========================================================================
   9. Motion, print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.service-card:hover { transform: none; }
}

@media print {
	.display-options,
	.main-navigation,
	.swoop,
	.skip-link,
	.hero__actions,
	.slideshow__controls { display: none !important; }
	.masthead, .site-footer, .site-footer__bottom { background: none !important; color: #000 !important; }
	.masthead a, .site-footer a, .hero__heading, .page-banner__title { color: #000 !important; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
