/*
 * Continuato — shared component styles.
 *
 * Every colour here is a semantic token (--c-*) and every face is
 * --font-heading or --font-body. Both are printed from the active design's
 * data by Continuato_Design::css(); the only literals allowed are the
 * neutral black and white alphas used for shadows and photo overlays. The
 * test suite enforces that, for this file and for every design's stylesheet.
 *
 * Structural tokens (sizes, radius, rhythm) have defaults below. A design's
 * stylesheet may redeclare them in its own :root block; that is its token
 * block.
 */

:root {
	--font-size-base: 1.0625rem;
	--max-width: 1160px;
	--reading-width: 46rem;
	--narrow-width: 40rem;
	--gutter: 1.5rem;
	--radius: 4px;
	/* The radius scale, derived from the design's --radius. */
	--radius-sm: calc(var(--radius) / 2);
	--radius-md: var(--radius);
	--radius-lg: calc(var(--radius) * 2);
	--radius-pill: 999px;
	--section-pad: 4rem;
	--hero-min-height: 520px;
	--hero-heading-size: clamp(2rem, 5vw, 3.2rem);
	--header-pad: 0.85rem;
	--transition: 0.25s ease;
	--button-case: uppercase;
	--button-tracking: 0.05em;
	--page-hero-pattern: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0, rgba(0, 0, 0, 0.035) 1px, transparent 1px, transparent 10px);
}

/* ---------------------------------------------------------
   Reset and base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; }

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

body {
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: 1.7;
	color: var(--c-ink);
	background-color: var(--c-ground);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--c-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

ul, ol { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: var(--heading-weight);
	line-height: 1.25;
	color: var(--c-heading);
	text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex-shrink: 0; vertical-align: -0.2em; }

/* Accessibility --------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--c-surface-raised);
	color: var(--c-link);
	font-weight: 700;
	border: 2px solid var(--c-focus);
	border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
}
.site-header :focus-visible,
.site-footer :focus-visible,
.section--brand :focus-visible { outline-color: var(--c-on-brand-accent); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* A gap the firm has not filled yet: obvious, never mistaken for content. */
.is-missing {
	display: inline-block;
	padding: 0 0.4em;
	border: 1px dashed currentColor;
	border-radius: var(--radius);
	font-style: italic;
	opacity: 0.85;
}

/* JavaScript off: what JS would have hidden or replaced. */
.js .no-js-only { display: none; }

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--reading { max-width: calc(var(--reading-width) + 2 * var(--gutter)); }
.container--narrow { max-width: calc(var(--narrow-width) + 2 * var(--gutter)); }

.section { padding: var(--section-pad) 0; background: var(--c-ground); }
.section--tint { background: var(--c-surface); }
.section--brand { background: var(--c-brand); color: var(--c-on-brand); }
.section--brand .section-title, .section--brand h2, .section--brand h3 { color: var(--c-on-brand); }

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

.section-head { margin-bottom: 2.5rem; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-title { margin-bottom: 0.5rem; }
.section-subtitle { color: var(--c-ink-muted); max-width: var(--reading-width); }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.1rem; color: var(--c-ink-muted); }

.divider { width: 60px; height: 2px; background: var(--c-accent); margin: 1rem 0 1.5rem; }
.divider--center, .text-center .divider { margin-left: auto; margin-right: auto; }

.kicker {
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--c-accent-ink);
	margin-bottom: 0.75rem;
}
.kicker--plain { color: var(--c-heading); }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) {
	.split { grid-template-columns: 1.2fr 1fr; }
	.split--reverse { grid-template-columns: 1fr 1.2fr; }
	.split--solo { grid-template-columns: minmax(0, var(--reading-width)); }
}
.split__photo img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-border); }
.split__text p { font-size: 1.05rem; }

.with-sidebar { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 280px; } }

.page-layout { display: grid; gap: 3rem; }
@media (min-width: 900px) { .page-layout:has(.page-sidebar) { grid-template-columns: minmax(0, 1fr) 280px; } }
.page-content { min-width: 0; max-width: var(--reading-width); }

.entry-content > * + * { margin-top: 1.1rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 0.75rem 1.6rem;
	min-height: 44px;
	border: 2px solid var(--c-brand);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: var(--button-tracking);
	text-transform: var(--button-case);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary, .btn-brand { background: var(--c-brand); color: var(--c-on-brand); }
.btn-primary:hover, .btn-brand:hover { background: var(--c-brand-strong); border-color: var(--c-brand-strong); color: var(--c-on-brand); }
.btn-outline { background: transparent; color: var(--c-link); border-color: var(--c-link); }
.btn-outline:hover { background: var(--c-link); color: var(--c-ground); }
.btn-small { padding: 0.45rem 1rem; min-height: 40px; font-size: 0.82rem; }
.btn-block { display: block; width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.button-row--end { justify-content: flex-end; }
.button-row--center, .text-center .button-row { justify-content: center; }

.text-link { font-weight: 700; }

/* ---------------------------------------------------------
   Header and navigation
   --------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-brand);
	color: var(--c-on-brand);
	transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem 1.5rem;
	padding-top: var(--header-pad);
	padding-bottom: var(--header-pad);
	position: relative;
}

.site-branding { margin-right: auto; }
.site-name-link { display: flex; flex-direction: column; text-decoration: none; color: var(--c-on-brand); }
.site-name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.35rem; line-height: 1.2; }
.site-tagline { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-on-brand-accent); }
.site-logo { max-height: 64px; width: auto; }

.site-header__phone { margin: 0; display: none; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.site-header__phone-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-on-brand-muted); }
.site-header__phone a { color: var(--c-on-brand); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header__phone a:hover { text-decoration: underline; }
.site-header__phone .is-missing { font-size: 0.8rem; }
.site-header__phone > .icon { display: none; width: 16px; height: 16px; }

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--c-on-brand);
}
.nav-toggle__bar { display: block; height: 2px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.no-js .nav-toggle { display: none; }

.primary-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--c-brand);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 0.5rem 0 1rem;
}
.primary-nav.is-open { display: block; }
.no-js .primary-nav { display: block; position: static; flex-basis: 100%; padding: 0; border: 0; }

.primary-nav ul { display: flex; flex-direction: column; padding: 0 var(--gutter); }
.primary-nav a {
	display: block;
	padding: 0.7rem 0;
	color: var(--c-on-brand);
	font-size: 0.92rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav [aria-current="page"] { color: var(--c-on-brand-accent); }
.primary-nav .sub-menu { padding-left: 1rem; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.primary-nav, .no-js .primary-nav { display: block; position: static; background: none; border: 0; padding: 0; flex-basis: auto; }
	.primary-nav ul { flex-direction: row; align-items: center; gap: 0.25rem; padding: 0; }
	.primary-nav li { position: relative; }
	.primary-nav a { padding: 0.45rem 0.7rem; border: 0; border-radius: var(--radius); white-space: nowrap; font-size: 0.85rem; }
	.primary-nav a:hover { background: rgba(255, 255, 255, 0.08); }
	.primary-nav .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		flex-direction: column;
		align-items: stretch;
		padding: 0.5rem 0;
		background: var(--c-brand-strong);
		border-radius: var(--radius);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	}
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }
	.site-header__phone { display: flex; order: 3; }
}

/* ---------------------------------------------------------
   Home: hero
   --------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--hero-min-height);
	background: var(--c-brand) center / cover no-repeat;
	color: var(--c-on-brand);
}
.hero--photo { color: rgba(255, 255, 255, 1); }
.hero__overlay { position: absolute; inset: 0; }
.hero--photo .hero__overlay { background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 100%); }
.hero__content { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 4rem; }
.hero__heading { font-size: var(--hero-heading-size); color: inherit; max-width: 20ch; margin-bottom: 1rem; line-height: 1.15; }
.hero__subheading { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 36rem; margin-bottom: 2rem; opacity: 0.92; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--c-ground); color: var(--c-link); border-color: var(--c-ground); }
.hero .btn-primary:hover { background: var(--c-surface); border-color: var(--c-surface); color: var(--c-link); }
.hero .btn-outline { color: inherit; border-color: currentColor; }
.hero .btn-outline:hover { background: var(--c-ground); color: var(--c-link); border-color: var(--c-ground); }
.hero__phone { margin-top: 1.5rem; font-size: 1.05rem; }
.hero__phone a { color: inherit; font-weight: 700; }

/* ---------------------------------------------------------
   Interior page header
   --------------------------------------------------------- */
.page-hero {
	position: relative;
	isolation: isolate;
	padding: 2.75rem 0;
	text-align: center;
	background-color: var(--c-surface);
	background-image: var(--page-hero-pattern);
	border-bottom: 3px solid var(--c-accent);
}
.page-hero--has-image { background-size: cover; background-position: center; min-height: 260px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 1); }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.45)); }
.page-hero__title { margin-bottom: 0.4rem; }
.page-hero__subtitle { color: var(--c-ink-muted); font-size: 1.05rem; margin: 0 auto; max-width: var(--reading-width); }
.page-hero--has-image .page-hero__title, .page-hero--has-image .page-hero__subtitle { color: inherit; }

/* ---------------------------------------------------------
   Contact bar
   --------------------------------------------------------- */
.contact-bar { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 1.1rem 0; }
.contact-bar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.25rem; }
.contact-bar__item { display: flex; align-items: center; gap: 0.6rem; color: var(--c-heading); }
.contact-bar__item > .icon { width: 24px; height: 24px; color: var(--c-accent); }
.contact-bar__text { display: flex; flex-direction: column; line-height: 1.35; }
.contact-bar__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-muted); }
.contact-bar__value { font-size: 0.95rem; font-weight: 700; color: var(--c-heading); }
.contact-bar a.contact-bar__value { text-decoration: none; }
.contact-bar a.contact-bar__value:hover { text-decoration: underline; }
.contact-bar__action { display: flex; align-items: center; gap: 0.6rem; background: none; border: 0; cursor: pointer; text-align: left; min-height: 44px; color: inherit; }
.contact-bar__action .icon { width: 24px; height: 24px; color: var(--c-accent); }
.contact-bar__action .contact-bar__value { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .contact-bar__inner { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------
   Obituaries: list and grid, one markup
   --------------------------------------------------------- */
.obits { display: grid; gap: 1.25rem; }
.obit__inner { position: relative; height: 100%; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--radius); transition: box-shadow var(--transition); }
.obit__inner:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }
.obit__photo { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--c-surface); color: var(--c-ink-muted); flex-shrink: 0; }
.obit__photo img { width: 100%; height: 100%; object-fit: cover; }
.obit__photo .icon { width: 45%; height: 45%; }
/* The portrait placeholder the 2026 designs draw: head and shoulders, rising from the bottom edge. */
.obit__photo:has(.mark-silhouette) { align-items: flex-end; }
.obit__photo .mark-silhouette { width: 80%; height: auto; color: color-mix(in srgb, var(--c-ink-muted) 35%, var(--c-surface)); }
.obit__name { font-size: 1.2rem; margin-bottom: 0.25rem; }
/* The whole card is the link, for the pointer; the name is the link, for everyone else. */
.obit__link { color: var(--c-heading); text-decoration: none; }
.obit__link::after { content: ""; position: absolute; inset: 0; }
.obit__link:hover { text-decoration: underline; }
.obit__inner:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.obit__link:focus-visible { outline: none; }
.obit__residence, .obit__dates { font-size: 0.9rem; color: var(--c-ink-muted); margin-bottom: 0.4rem; }
.obit__excerpt { font-size: 0.95rem; color: var(--c-ink-muted); margin: 0.5rem 0 0; }

.obits--list { gap: 0; border-top: 1px solid var(--c-border); }
.obits--list .obit__inner { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem 0; background: none; border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; }
.obits--list .obit__inner:hover { box-shadow: none; }
.obits--list .obit__photo { width: 84px; height: 84px; border-radius: 50%; background: var(--c-surface-raised); border: 1px solid var(--c-border); }

.obits--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.obits--grid .obit__inner { display: flex; flex-direction: column; overflow: hidden; }
/* Not the section's own tint: on a tinted band the card would lose its top half. */
.obits--grid .obit__photo { aspect-ratio: 4 / 3; width: 100%; background: color-mix(in srgb, var(--c-border) 55%, var(--c-surface-raised)); border-bottom: 1px solid var(--c-border); }
.obits--grid .obit__body { padding: 1.25rem 1.25rem 1.5rem; }

.empty-state { color: var(--c-ink-muted); font-style: italic; }
.empty-state--panel { font-style: normal; text-align: center; padding: 3rem 1.5rem; background: var(--c-surface); border-radius: var(--radius); }

/* The index's filters */
.obituary-filters { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.obituary-filters__right { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.obituary-search { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 16rem; min-width: 0; max-width: 460px; padding: 0.25rem 0.25rem 0.25rem 0.75rem; background: var(--c-surface-raised); border: 1px solid var(--c-control); border-radius: var(--radius); }
.obituary-search .icon { color: var(--c-ink-muted); }
.obituary-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0.5rem 0; }
.obituary-search input:focus { outline: none; }
.obituary-search:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.obituary-select { display: flex; gap: 0.5rem; }
.obituary-select select, .form select { padding: 0.55rem 0.75rem; min-height: 44px; background: var(--c-surface-raised); border: 1px solid var(--c-control); border-radius: var(--radius); }
.segmented { display: inline-flex; border: 1px solid var(--c-control); border-radius: var(--radius); overflow: hidden; }
.segmented a { padding: 0.55rem 1rem; min-height: 44px; display: flex; align-items: center; font-size: 0.9rem; text-decoration: none; color: var(--c-link); }
.segmented a[aria-current="page"] { background: var(--c-brand); color: var(--c-on-brand); }
.obituary-count { color: var(--c-ink-muted); font-size: 0.95rem; margin-bottom: 1rem; }

.pagination { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--c-border); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }

/* ---------------------------------------------------------
   Services: the index, the veterans band, the days
   --------------------------------------------------------- */
.services-index { padding-bottom: 2.5rem; }
.services-index__cols { display: grid; gap: 2rem 3rem; }
@media (min-width: 720px) { .services-index__cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.services-index__heading { padding-bottom: 0.5rem; margin-bottom: 0.25rem; border-bottom: 2px solid var(--c-accent); }
.services-index__list li { border-bottom: 1px solid var(--c-border); }
.services-index__link { display: block; padding: 0.95rem 0; color: inherit; text-decoration: none; }
.services-index__name { display: block; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; color: var(--c-heading); }
a.services-index__link:hover .services-index__name { text-decoration: underline; }
.services-index__tagline { display: block; font-size: 0.95rem; color: var(--c-ink-muted); margin-top: 0.15rem; }

.served { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 3rem; }
.served__kicker { grid-column: 1 / -1; padding-bottom: 0.5rem; margin-bottom: 0.25rem; border-bottom: 2px solid var(--c-accent); }
.served__name { grid-column: 1; font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; margin: 0.95rem 0 0.15rem; }
.served__name a { color: var(--c-heading); text-decoration: none; }
.served__name a:hover { text-decoration: underline; }
.served__line { grid-column: 1; margin: 0; }
.served__benefits { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0.95rem; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 719px) { .served { grid-template-columns: 1fr; } .served__benefits { grid-column: 1; grid-row: auto; } }

.service-day { padding: 3.25rem 0; }
.service-day__head { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 721px) { .service-day__head--pictured { grid-template-columns: minmax(0, 1fr) 44%; } }
@media (max-width: 720px) { .service-day__photo { order: -1; } }
.service-day__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--c-border); }
.service-day__photo img { width: 100%; height: 100%; object-fit: cover; }
.service-day__words h2 { margin-bottom: 0; }
.service-day__tagline { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; color: var(--c-ink-muted); }
.service-day__words > p { font-size: 1.08rem; max-width: var(--reading-width); }
.service-day__includes { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--c-border); }
.service-day__price { font-family: var(--font-heading); font-size: 1.25rem; color: var(--c-heading); margin: 1.5rem 0 0.35rem; }
.service-day__note { font-size: 0.9rem; color: var(--c-ink-muted); max-width: 46em; }

.dot-list li { position: relative; padding: 0.3rem 0 0.3rem 1.1rem; break-inside: avoid; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.dot-list--columns { columns: 3 14rem; column-gap: 3rem; font-size: 0.97rem; }
.dot-list__quiet { color: var(--c-ink-muted); }

/* Prices at a glance */
.price-glance { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.price-glance__item { padding: 1.25rem 1.25rem 1.4rem; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-top: 3px solid var(--c-accent); border-radius: var(--radius); }
.price-glance__name { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.2rem; margin-bottom: 0.3rem; }
.price-glance__name a { color: var(--c-heading); }
.price-glance__tagline { font-size: 0.95rem; color: var(--c-ink-muted); }
.price-glance__figure { font-size: 1.35rem; font-weight: 700; color: var(--c-heading); margin-top: 0.75rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------
   Cards, panels, lists
   --------------------------------------------------------- */
.plan-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.plan-card { padding: 1.5rem; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--radius); }
.plan-card__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.plan-card__head .icon { color: var(--c-accent); width: 22px; height: 22px; }
.plan-card__title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.15rem; color: var(--c-heading); }
.plan-card__desc { font-size: 0.97rem; color: var(--c-ink-muted); }
.plan-remote__footer { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 1rem; }
.plan-remote__reassure { font-size: 1.05rem; }
.plan-remote__away { font-size: 0.95rem; color: var(--c-ink-muted); }

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 1.25rem; }
.card { padding: 1.25rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.card__title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--c-ink-muted); }

.panel { padding: 1.75rem; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--radius); }
.panel + .panel { margin-top: 1.5rem; }
.panel__title { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-heading); margin-bottom: 1rem; }
.rule-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--c-border); font-size: 0.97rem; }
.rule-list li:last-child { border-bottom: 0; }

.steps { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { position: relative; padding-left: 3rem; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: -0.2rem; width: 2.2rem; text-align: center; font-family: var(--font-heading); font-size: 2.3rem; line-height: 1; color: var(--c-accent-ink); }
.step__title { font-size: 1.1rem; margin-bottom: 0.35rem; }
.step__desc { font-size: 0.97rem; color: var(--c-ink-muted); }

.numbered-list { list-style: decimal; padding-left: 1.5rem; margin: 1rem 0 1.25rem; }
.numbered-list li { padding: 0.35rem 0; }
.callout { padding: 0.9rem 1rem; background: var(--c-surface); border-left: 3px solid var(--c-accent); border-radius: 0 var(--radius) var(--radius) 0; }

.faq { margin-top: 1.25rem; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__item summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; min-height: 44px; font-weight: 700; color: var(--c-heading); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--c-accent-ink); font-size: 1.2rem; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding-bottom: 1rem; color: var(--c-ink-muted); }

.resource-group { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--c-border); scroll-margin-top: 110px; }
.resource-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.resource-group__title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.4rem; margin-bottom: 1rem; }
.resource-group__title .icon { color: var(--c-accent); }

.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2rem 0; }
.stat { display: flex; flex-direction: column-reverse; }
.stat__number { font-family: var(--font-heading); font-size: 2.3rem; line-height: 1; color: var(--c-accent-ink); }
.stat__label { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--c-ink-muted); margin-top: 0.3rem; }

.commitment__inner { display: grid; gap: 3rem; }
@media (min-width: 768px) { .commitment__inner { grid-template-columns: 1.4fr 1fr; align-items: start; } .commitment__inner--solo { grid-template-columns: minmax(0, var(--reading-width)); } }

.staff-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.staff-card { overflow: hidden; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-radius: var(--radius); }
.staff-card__photo { height: 240px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c-border) 55%, var(--c-surface-raised)); border-bottom: 1px solid var(--c-border); color: var(--c-ink-muted); }
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card__photo .icon { width: 64px; height: 64px; }
.staff-card__info { padding: 1.5rem; }
.staff-card__info h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.staff-card__info p:not(.kicker) { font-size: 0.95rem; color: var(--c-ink-muted); }

.testimonials { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.testimonial { height: 100%; padding: 1.75rem; background: var(--c-surface-raised); color: var(--c-ink); border: 1px solid var(--c-border); border-radius: var(--radius); }
.testimonial .icon { width: 28px; height: 28px; color: var(--c-accent); margin-bottom: 0.75rem; }
.testimonial blockquote p { font-style: italic; }
.testimonial figcaption { margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--c-accent-ink); }

/* ---------------------------------------------------------
   Calls to action
   --------------------------------------------------------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.cta--inline { align-items: flex-start; }
.cta-phone { font-size: 1.05rem; color: var(--c-ink-muted); margin: 0; }
.cta-phone a { font-weight: 700; color: var(--c-link); }
.cta-phone--only { font-size: 1.25rem; color: var(--c-ink); }
.closing-cta { border-top: 1px solid var(--c-border); }
.closing-cta__more { margin-top: 1.25rem; }

.call-band { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 1rem 0; }
.call-band__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.5rem; }
.call-band p { margin: 0; font-weight: 700; color: var(--c-heading); }

.notice-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 0.9rem 0; }
.notice-bar p { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 46em; font-size: 0.9rem; color: var(--c-ink-muted); margin: 0; }
.notice-bar .icon { color: var(--c-accent); margin-top: 0.2em; }

/* ---------------------------------------------------------
   Price list
   --------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); margin: 1.5rem 0 1rem; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.price-table th, .price-table td { padding: 0.75rem 1.25rem; text-align: left; border-bottom: 1px solid var(--c-border); }
.price-table thead th { background: var(--c-brand); color: var(--c-on-brand); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table tbody th { font-weight: 400; }
.price-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table thead th:last-child { text-align: right; }
.price-table__group th { background: var(--c-surface); color: var(--c-heading); font-weight: 700 !important; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.price-table__desc { display: block; font-size: 0.88rem; color: var(--c-ink-muted); }
.pricing-withheld { margin: 2rem 0; }
.pricing-benefits { margin-top: 1.5rem; }
.fine-print { font-size: 0.9rem; color: var(--c-ink-muted); font-style: italic; }

/* ---------------------------------------------------------
   Contact and forms
   --------------------------------------------------------- */
.contact-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.6fr; } }
.detail-list > div { padding: 1rem 0; border-bottom: 1px solid var(--c-border); }
.detail-list dt { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-muted); }
.detail-list dt .icon { color: var(--c-accent); }
.detail-list dd { margin-top: 0.2rem; }
.detail-list + p { margin-top: 1.5rem; }
.contact-map iframe { width: 100%; min-height: 360px; border: 1px solid var(--c-border); border-radius: var(--radius); }
/* No map, no map box: the details take the row, two columns where there is room, so nothing sits empty beside them. */
@media (min-width: 768px) {
	.contact-grid--no-map { grid-template-columns: 1fr; }
	.contact-grid--no-map .detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form__row--2 { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.form label { font-size: 0.92rem; font-weight: 700; color: var(--c-heading); }
.form__req { font-weight: 400; color: var(--c-ink-muted); }
.form input, .form textarea, .form select {
	width: 100%;
	min-height: 44px;
	padding: 0.65rem 0.9rem;
	background: var(--c-surface-raised);
	color: var(--c-ink);
	border: 1px solid var(--c-control);
	border-radius: var(--radius);
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible, .form select:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.form-notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--c-surface-raised); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius); }
.form-notice--error { border-left-color: var(--c-brand); }

/* ---------------------------------------------------------
   Blog and 404
   --------------------------------------------------------- */
.post-summary { padding: 1.5rem 0; border-bottom: 1px solid var(--c-border); }
.post-summary__title a { color: var(--c-heading); }
.post-summary__meta { font-size: 0.9rem; color: var(--c-ink-muted); }
.not-found__code { font-family: var(--font-heading); font-size: 5rem; line-height: 1; color: var(--c-accent-ink); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--c-brand-strong); color: var(--c-on-brand-muted); }
.site-footer a { color: var(--c-on-brand); }
.footer-widgets { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-widgets__grid { display: grid; gap: 2.5rem; }
@media (min-width: 600px) { .footer-widgets__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-widgets__grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col__title, .site-footer .widget-title { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-on-brand-accent); margin-bottom: 1rem; }
.footer-brand .site-name-link { color: var(--c-on-brand); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.95rem; }
.footer-nav li, .site-footer .menu li { margin-bottom: 0.35rem; }
.site-footer .menu a, .footer-nav a { text-decoration: none; }
.site-footer .menu a:hover, .footer-nav a:hover { text-decoration: underline; }
.footer-contact { font-style: normal; }
.footer-contact p { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; margin-bottom: 0.75rem; }
.footer-contact .icon { color: var(--c-on-brand-accent); margin-top: 0.2em; }
.footer-bottom { padding: 1.25rem 0; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-copyright, .footer-affiliations { font-size: 0.85rem; margin: 0; }
