/*
Theme Name: TGL — The Gentlemen's Lounge
Theme URI: https://bedfordandco.net
Author: Bedford+Co
Author URI: https://bedfordandco.net
Description: Custom WordPress theme for The Gentlemen's Lounge Barbershop. Cinematic, monochrome, fashion-led. Built on the Bedford+Co visual-first design theme with a black-and-white palette and an Oswald / Red Hat Display type system. No page builder, no jQuery, no custom field plugins.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tgl
Tags: custom-theme, barbershop, monochrome, visual-first
*/

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
	/* Colour — monochrome by design. See DESIGN.md > COLOR — TGL OVERRIDE */
	--color-primary: #000000;
	--color-accent: #b8b0a4;
	--color-text: #111111;
	--color-text-soft: #5c5c5c;
	--color-bg: #ffffff;
	--color-bg-off: #f4f3f1;
	--color-muted: #f4f3f1;
	--color-white: #ffffff;
	--color-line: #e4e2de;
	--color-line-dark: rgba(255, 255, 255, 0.22);

	/* Type */
	--font-display: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--fs-h1: clamp(2.625rem, 12.5vw, 8.25rem);
	/* Hero statement, measured in Oswald 600 at 0.01em tracking: "A PROPER GENTLEMEN'S
	   HAIRCUT" sets 13.646em wide, so 100cqw / 13.646 would fill the hero inside the gutters
	   on one line. It runs 44% above that (two 20% steps) and wraps to balanced lines instead.
	   Re-measure if the wording changes. */
	--hero-statement-measure: 13.646;
	--hero-statement-scale: 1.44;
	/* The H1 above the facts rule: small, tracked wide in pixels. */
	--fs-hero-h1: clamp(0.875rem, 1.1vw, 1.0625rem);
	--ls-hero-h1: 4px;

	/* Sitting the ink exactly on a boundary still leaves a seam: the bottom row of each
	   glyph is antialiased against the dark behind it, which reads as a hairline. Pushing
	   the ink this far past the edge means the last visible row is fully opaque white,
	   clipped by the section's overflow, so the letters fuse with the white below. */
	--type-bleed: max(2px, 0.016em);

	/* Wordmark band. Each line is sized to fill the measure on its own, so the two lines
	   carry different font-sizes: that size jump between them is the point, and is what
	   magazine mastheads do when a stack is justified to a column. Ink ratios measured in
	   Oswald 600 at 0.01em tracking:
	     "THE GENTLEMEN'S" = 7.0556em wide -> 100/7.0556 = 14.173vw
	     "LOUNGE"          = 3.1074em wide -> 100/3.1074 = 32.181vw
	   Bearings differ per line because the leading glyph differs (T vs L).             */
	--fs-wordmark-lead: 14.4381vw;
	--fs-wordmark-last: 32.6893vw;
	--wordmark-bearing-lead: -0.01186em;
	--wordmark-bearing-last: -0.06064em;
	/* Leading inside a line box at line-height 1: dead space above the caps and below the
	   baseline. Trimmed away so the stack reads as one mass. */
	--wordmark-cap-trim: -0.14125em;
	--wordmark-base-trim: -0.03700em;
	--fs-h2: clamp(1.875rem, 4.4vw, 3.25rem);
	--fs-h3: clamp(1.3125rem, 2.2vw, 1.875rem);
	--fs-h4: clamp(1.125rem, 1.4vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-lead: clamp(1.125rem, 1.6vw, 1.375rem);
	--fs-hero-sub: clamp(0.9375rem, 1.3vw, 1.125rem);
	--fs-small: 0.875rem;
	--fs-eyebrow: 0.75rem;
	--fs-nav: 0.875rem;

	--ls-eyebrow: 0.22em;
	--ls-nav: 0.16em;
	--ls-tight: -0.02em;

	/* Spacing — 8px base scale */
	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2rem;
	--sp-5: 3rem;
	--sp-6: 4rem;
	--sp-7: 5rem;
	--sp-8: 6rem;
	--sp-9: 7.5rem;

	/* Section rhythm — mobile first, raised in the media queries */
	--section-pad: 4rem;
	--section-pad-lg: 4.5rem;
	--gutter: 1.5rem;
	--wrap: 1200px;
	--wrap-narrow: 780px;

	--header-h: 112px;
	/* The fixed Call / Book bar under 1024px. The hero ends above it so the corner H1 isn't
	   hidden behind it. */
	--sticky-bar-h: 56px;
	--header-cta-pad-y: 0.875rem;
	--header-nav-pad-y: 0.375rem;
	--transition: 0.2s ease;
	--transition-slow: 0.5s ease-out;

	/* Motion. One curve for everything: a slow ease-in-out, so nothing snaps into place.
	   Text rises a little, images a little more and take longer, and the photograph inside
	   an image frame settles from slightly large, like a print laid down on the page. */
	--ease-editorial: cubic-bezier(0.65, 0, 0.35, 1);
	--motion-text: 0.7s;
	--motion-image: 1s;
	--motion-settle: 1.3s;
	--rise-text: 20px;
	--rise-image: 40px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.tgl-nav-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	cursor: pointer;
}

figure {
	margin: 0;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--gutter);
	z-index: 999;
	background: var(--color-primary);
	color: var(--color-white);
	padding: var(--sp-2) var(--sp-3);
	font-family: var(--font-display);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
}

.skip-link:focus {
	top: var(--sp-2);
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4 {
	margin: 0;
}

h1,
.h1 {
	font-family: var(--font-display);
	font-size: var(--fs-h1);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

h2,
.h2 {
	font-family: var(--font-body);
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: var(--ls-tight);
}

h3,
.h3 {
	font-family: var(--font-body);
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* Even out the lines when a heading wraps, so its last word never sits alone on a line. */
h2,
h3 {
	text-wrap: balance;
}

h4,
.h4 {
	font-family: var(--font-body);
	font-size: var(--fs-h4);
	font-weight: 600;
	line-height: 1.35;
}

p {
	margin: 0 0 var(--sp-3);
}

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

.lead {
	font-size: var(--fs-lead);
	line-height: 1.6;
	font-weight: 400;
}

.eyebrow {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 var(--sp-3);
}

.eyebrow--dark {
	color: var(--color-text-soft);
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

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

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

/* Edge to edge with the header: same gutter, no max-width. */
.wrap--full {
	max-width: none;
}

/* Text sections (town pages, About, Services): room between the heading and the copy. */
.wrap--narrow > h2 {
	margin-bottom: var(--sp-3);
}

.section {
	padding-block: var(--section-pad);
}

.section--lg {
	padding-block: var(--section-pad-lg);
}

.section--flush {
	padding-block: 0;
}

.section--dark {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.section--off {
	background-color: var(--color-bg-off);
}

.section__head {
	max-width: 720px;
	margin-bottom: var(--sp-5);
}

.section__head--center {
	margin-inline: auto;
	text-align: center;
}

.section__head p {
	margin-top: var(--sp-3);
	color: var(--color-text-soft);
}

.section--dark .section__head p {
	color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   5. BUTTONS & LINKS
   ========================================================================== */

.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-size: var(--fs-nav);
	font-weight: 500;
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	padding: 1.125rem 2.25rem;
	border: 1px solid var(--color-primary);
	background-color: var(--color-primary);
	color: var(--color-white);
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover,
.btn:focus-visible {
	background-color: transparent;
	color: var(--color-primary);
}

/* On photography and on black: outlined white, fills white on hover. Never a filled colour button. */
.btn--ghost {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	background-color: var(--color-white);
	color: var(--color-primary);
}

.btn--invert {
	background-color: var(--color-white);
	border-color: var(--color-white);
	color: var(--color-primary);
}

.btn--invert:hover,
.btn--invert:focus-visible {
	background-color: transparent;
	color: var(--color-white);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	font-family: var(--font-display);
	font-size: var(--fs-nav);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	padding-bottom: 0.375rem;
	border-bottom: 1px solid var(--color-accent);
	transition: gap var(--transition), border-color var(--transition);
}

.link-arrow:hover,
.link-arrow:focus-visible {
	gap: 1.125rem;
	border-bottom-color: currentColor;
}

/* ==========================================================================
   6. HEADER — transparent, overlaying the hero
   ========================================================================== */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background-color: transparent;
	color: var(--color-white);
	transition: background-color 0.3s ease;
}

/* Scrim behind the nav so white links stay legible on a bright photograph. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0 0 -70px 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.22) 60%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.site-header.is-stuck {
	position: fixed;
	background-color: var(--color-primary);
}

.site-header.is-stuck::before {
	opacity: 0;
}

/*
 * Three columns, not a flex row. `space-between` across three unequal items puts the middle one
 * wherever the leftover space lands, which is not the centre of the page; a 1fr/auto/1fr grid
 * gives the menu a true centre axis regardless of how wide the logo or the button are.
 *
 * Full width rather than the 1200px wrap, so the logo sits hard left and the button hard right
 * at the page gutter.
 *
 * Top-aligned: with a 153px logo, centring pushed the nav links 77px down the page.
 */
.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	column-gap: var(--sp-4);
	width: 100%;
	min-height: var(--header-h);
	padding-top: var(--sp-3);
	padding-inline: var(--gutter);
	position: relative;
	z-index: 1;
}

.site-header__brand {
	grid-column: 1;
	justify-self: start;
}

.site-header__cta,
.site-header__toggle {
	grid-column: 3;
	justify-self: end;
}

.site-header__brand {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

/*
 * 69px, not 153px. The old lockup sat on a 2000x2000 canvas whose ink filled only 40% of the
 * height; the cropped file's ink fills 88.4%. 153 x (0.40 / 0.8841) = 69, which renders the
 * visible mark at exactly the size it was before. Raise this number to make the mark bigger
 * now that there is no dead space padding it out.
 */
.site-header__brand img {
	width: auto;
	height: 69px;
}

.site-header__brand-text {
	font-family: var(--font-display);
	font-size: 1.25rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--color-white);
}

/*
 * Both the nav and the Book button start at 24px, but the button carries more internal padding
 * than a nav link, so their text would sit out of line. Offset the nav by exactly the
 * difference (button padding + its border, less the link's own padding) so the two read as one
 * row. Derived from the values below rather than eyeballed, so it survives a padding change.
 */
.site-nav {
	display: none;
	grid-column: 2;
	justify-self: center;
	margin-top: calc(var(--header-cta-pad-y) + 1px - var(--header-nav-pad-y));
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: inline-block;
	font-family: var(--font-display);
	font-size: var(--fs-nav);
	font-weight: 400;
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	color: var(--color-white);
	padding-block: var(--header-nav-pad-y);
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition), color var(--transition);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
	border-bottom-color: var(--color-accent);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	color: var(--color-accent);
}

.site-header__cta {
	display: none;
	padding: var(--header-cta-pad-y) 1.75rem;
}

.site-header__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
}

.site-header__toggle span {
	display: block;
	width: 100%;
	height: 1px;
	background-color: var(--color-white);
	transition: transform var(--transition), opacity var(--transition);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.site-header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 99;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: calc(var(--header-h) + var(--sp-5)) var(--gutter) var(--sp-6);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.35s ease, visibility 0.35s ease;
}

.mobile-nav.is-open {
	transform: translateY(0);
	visibility: visible;
}

.mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-nav__list a {
	display: block;
	font-family: var(--font-display);
	font-size: 1.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding-block: var(--sp-2);
	border-bottom: 1px solid var(--color-line-dark);
}

.mobile-nav__foot {
	margin-top: var(--sp-5);
}

.mobile-nav__foot .btn {
	width: 100%;
	text-align: center;
}


/* Pages with no photographic hero: header sits in flow and sticks. No overlay, no jump. */
body.has-solid-header .site-header {
	position: sticky;
	top: 0;
	background-color: var(--color-primary);
}

body.has-solid-header .site-header::before {
	opacity: 0;
}

body.has-solid-header .site-header.is-stuck {
	position: sticky;
}

/* Admin bar must not push the fixed header off the top of the viewport. */
.admin-bar .site-header.is-stuck {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header.is-stuck {
		top: 46px;
	}
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

/* Exactly one screen tall. Under 1024px it stops above the fixed Call / Book bar. */
.hero {
	position: relative;
	height: calc(100vh - var(--sticky-bar-h));
	display: grid;
	grid-template-columns: 1fr;
	background-color: var(--color-primary);
	overflow: hidden;
}

.hero__media {
	position: absolute;
	inset: 0;
}

/* Bottom-up gradient — preserves the top of the photograph, anchors the text. */
.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.62) 0%,
			rgba(0, 0, 0, 0.5) 25%,
			rgba(0, 0, 0, 0.42) 45%,
			rgba(0, 0, 0, 0.12) 60%,
			rgba(0, 0, 0, 0) 70%
		),
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.78) 0%,
			rgba(0, 0, 0, 0.45) 26%,
			rgba(0, 0, 0, 0) 52%
		);
}

.hero__top,
.hero__foot {
	position: relative;
	z-index: 2;
	grid-column: 1;
	grid-row: 1;
	width: 100%;
	color: var(--color-white);
}

.hero__top {
	align-self: center;
	/* Symmetric padding clears the header above and the H1 and facts rule below while keeping
	   the copy dead centre in the hero. */
	padding-block: calc(var(--header-h) + var(--sp-4));
	padding-inline: var(--gutter);
}

.hero__foot {
	align-self: end;
}

/* Widths below are measured against these boxes as containers, not 100vw, so a desktop
   scrollbar can't push type off the edge. */
.hero__content {
	container-type: inline-size;
	text-align: center;
}

/* The statement: set well above a one-line fit (see --hero-statement-scale), so it breaks
   onto balanced lines. On phones it wraps at a size that still reads as the headline. */
.hero__statement {
	margin: 0;
	font-family: var(--font-display);
	font-size: calc(11cqw * var(--hero-statement-scale));
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--color-white);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

@media (min-width: 600px) {
	.hero__statement {
		font-size: calc(100cqw / var(--hero-statement-measure) * var(--hero-statement-scale));
	}
}

/* The H1 sits right above the facts rule, aligned to its right end. Small and tracked wide;
   the trailing letter-space after the final 4 is pulled back so the ink, not the spacing,
   lines up with the rule. Below 860px there is no rule, so it keeps a gap off the bottom. */
.hero__headline {
	margin-inline: var(--gutter);
	padding-bottom: var(--sp-3);
}

.hero h1 {
	font-size: var(--fs-hero-h1);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: var(--ls-hero-h1);
	text-align: right;
	margin-right: calc(-1 * var(--ls-hero-h1));
	color: var(--color-white);
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

@media (min-width: 860px) {
	.hero__headline {
		padding-bottom: var(--sp-2);
	}
}

/* The supporting line under the statement: small, tracked-out Oswald, like the nav. */
.hero__sub {
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
	margin: var(--sp-3) auto 0;
	font-family: var(--font-display);
	font-size: var(--fs-hero-sub);
	font-weight: 400;
	/* Uppercase per DESIGN.md: Oswald is never set in sentence case in this theme. */
	text-transform: uppercase;
	line-height: 1.4;
	letter-spacing: var(--ls-nav);
	color: var(--color-white);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}

.hero__actions .btn,
.hero__actions .link-arrow {
	font-weight: 700;
}

.hero__meta {
	display: none;
	border-top: 1px solid var(--color-line-dark);
	margin-inline: var(--gutter);
	padding-block: var(--sp-3) var(--sp-2);
	color: rgba(255, 255, 255, 0.86);
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.hero__meta ul {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero__meta strong {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	color: var(--color-white);
}

/* Interior page hero — shorter, same language */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 62svh;
	background-color: var(--color-primary);
	overflow: hidden;
}

.page-hero__media {
	position: absolute;
	inset: 0;
}

.page-hero__media--featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}

.page-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.page-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	color: var(--color-white);
	padding-block: calc(var(--header-h) + var(--sp-4)) var(--sp-5);
}

/* Page hero titles run 20% above the shared H1 scale. */
.page-hero h1 {
	font-size: calc(var(--fs-h1) * 1.2);
	color: var(--color-white);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.page-hero__line {
	display: block;
}

.page-hero__sub {
	margin-top: var(--sp-2);
	max-width: 52ch;
	font-size: var(--fs-lead);
	font-weight: 300;
	color: rgba(255, 255, 255, 0.86);
}

/* Pages with no hero image still need clearance under the fixed header. */
.page-head {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding-block: var(--sp-7) var(--sp-6);
}

.page-head h1 {
	color: var(--color-white);
}

/* ==========================================================================
   8. SERVICES
   ========================================================================== */

.services__grid {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: 1fr;
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border: 1px solid var(--color-line);
	padding: var(--sp-4) var(--sp-4) var(--sp-5);
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.section--off .service-card {
	background-color: var(--color-white);
}

.service-card__index {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	color: var(--color-accent);
	margin-bottom: var(--sp-3);
}

.service-card__rule {
	width: 40px;
	height: 1px;
	background-color: var(--color-primary);
	margin-bottom: var(--sp-3);
	transition: width var(--transition), background-color var(--transition);
}

.service-card h3 {
	margin-bottom: var(--sp-2);
}

.service-card p {
	color: var(--color-text-soft);
	font-size: var(--fs-body);
	margin-bottom: var(--sp-3);
	transition: color var(--transition);
}

.service-card__meta {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-2);
	padding-top: var(--sp-3);
	border-top: 1px solid var(--color-line);
	font-family: var(--font-display);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	transition: border-color var(--transition);
}

.service-card__price {
	font-weight: 500;
}

.service-card__time {
	color: var(--color-text-soft);
	transition: color var(--transition);
}

.service-card:hover,
.service-card:focus-within {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
}

.service-card:hover p,
.service-card:focus-within p,
.service-card:hover .service-card__time,
.service-card:focus-within .service-card__time {
	color: rgba(255, 255, 255, 0.72);
}

.service-card:hover .service-card__rule,
.service-card:focus-within .service-card__rule {
	width: 72px;
	background-color: var(--color-accent);
}

.service-card:hover .service-card__meta,
.service-card:focus-within .service-card__meta {
	border-top-color: var(--color-line-dark);
}

/* Image-led service rows (Services page) */
.service-row {
	display: grid;
	gap: var(--sp-4);
	align-items: center;
	padding-block: var(--sp-5);
	border-top: 1px solid var(--color-line);
}

.service-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.service-row__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.service-row__list {
	list-style: none;
	margin: var(--sp-3) 0 0;
	padding: 0;
}

.service-row__list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-block: var(--sp-2);
	border-bottom: 1px solid var(--color-line);
}

.service-row__list li span:first-child {
	font-weight: 500;
}

.service-row__list li span:last-child {
	font-family: var(--font-display);
	letter-spacing: 0.08em;
	white-space: nowrap;
}

/* ==========================================================================
   9. ABOUT / STORY
   ========================================================================== */

.about__grid {
	display: grid;
	gap: var(--sp-5);
	align-items: center;
}

.about__media {
	position: relative;
}

.about__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.about__media--landscape img {
	aspect-ratio: 4 / 3;
}

.about__body p {
	color: var(--color-text-soft);
}

.section--dark .about__body p {
	color: rgba(255, 255, 255, 0.72);
}

.about__stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-3);
	margin-top: var(--sp-5);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--color-line);
}

.section--dark .about__stats {
	border-top-color: var(--color-line-dark);
}

.about__stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
}

.about__stat span {
	display: block;
	margin-top: var(--sp-1);
	font-size: var(--fs-small);
	letter-spacing: 0.06em;
	color: var(--color-text-soft);
}

.section--dark .about__stat span {
	color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   10. GALLERY — editorial grid, tight gaps, no radius, no shadow
   ========================================================================== */

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.gallery__item {
	position: relative;
	overflow: hidden;
	background-color: var(--color-bg-off);
}

.gallery__item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.6s ease, filter 0.3s ease;
}

.gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.3s ease;
	pointer-events: none;
}

.gallery__item:hover img {
	transform: scale(1.03);
}

.gallery__item:hover::after {
	background-color: rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   11. TESTIMONIALS — the quietest section on the page
   ========================================================================== */

.testimonials {
	text-align: center;
}

.testimonials__quote {
	margin: 0;
	max-width: 820px;
	margin-inline: auto;
}

.testimonials__quote p {
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.testimonials__quote footer {
	margin-top: var(--sp-4);
	font-family: var(--font-display);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	color: var(--color-text-soft);
}

.testimonials__nav {
	display: flex;
	justify-content: center;
	gap: var(--sp-1);
	margin-top: var(--sp-5);
	padding: 0;
	list-style: none;
}

.testimonials__dot {
	width: 28px;
	height: 2px;
	padding: 0;
	border: 0;
	background-color: var(--color-line);
	transition: background-color var(--transition);
}

.testimonials__dot[aria-selected="true"] {
	background-color: var(--color-primary);
}

.testimonials__stars {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-small);
	letter-spacing: 0.3em;
	color: var(--color-accent);
}

.testimonials__quote footer a {
	border-bottom: 1px solid var(--color-line);
	transition: border-color var(--transition);
}

.testimonials__quote footer a:hover {
	border-bottom-color: var(--color-primary);
}

.testimonials__all {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--sp-2) var(--sp-5);
	margin-top: var(--sp-5);
}

/* ==========================================================================
   12. CTA BANNER
   ========================================================================== */

.cta {
	position: relative;
	background-color: var(--color-primary);
	color: var(--color-white);
	overflow: hidden;
	text-align: center;
}

.cta__media {
	position: absolute;
	inset: 0;
}

.cta__scrim {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.62);
}

.cta__inner {
	position: relative;
	z-index: 2;
	padding-block: var(--sp-7);
}

/* Wide enough that the About closing line sets in three balanced lines rather than four. */
.cta h2 {
	max-width: 25ch;
	margin-inline: auto;
	text-wrap: balance;
}

.cta p {
	max-width: 52ch;
	margin: var(--sp-3) auto 0;
	color: rgba(255, 255, 255, 0.78);
}

.cta .btn {
	margin-top: var(--sp-5);
}

/* Strip — a thin black band used between light sections for rhythm */
.strip {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding-block: var(--sp-4);
	overflow: hidden;
}

.strip__track {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	font-family: var(--font-display);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
}

.strip__track li::before {
	content: "—";
	margin-right: var(--sp-2);
	color: var(--color-accent);
}

/* ==========================================================================
   13. FORMS
   ========================================================================== */

.form__row {
	display: grid;
	gap: var(--sp-3);
	margin-bottom: var(--sp-3);
}

.form__field label {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	margin-bottom: var(--sp-1);
}

.form__field input,
.form__field select,
.form__field textarea {
	width: 100%;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	color: var(--color-text);
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid var(--color-line);
	border-radius: 0;
	padding: 0.75rem 0;
	transition: border-color var(--transition);
	appearance: none;
}

.form__field textarea {
	min-height: 140px;
	resize: vertical;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
	outline: none;
	border-bottom-color: var(--color-primary);
}

.form__field select {
	background-image: linear-gradient(45deg, transparent 50%, var(--color-text) 50%),
		linear-gradient(135deg, var(--color-text) 50%, transparent 50%);
	background-position: calc(100% - 14px) 1.35rem, calc(100% - 8px) 1.35rem;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: var(--sp-4);
}

.form__actions {
	margin-top: var(--sp-4);
}

.form__consent {
	margin-top: var(--sp-3);
	font-size: var(--fs-small);
	color: var(--color-text-soft);
}

.form__honeypot {
	position: absolute;
	left: -9999px;
}

.form__notice {
	padding: var(--sp-3);
	margin-bottom: var(--sp-4);
	border-left: 2px solid var(--color-primary);
	background-color: var(--color-bg-off);
	font-size: var(--fs-small);
}

.form__notice--error {
	border-left-color: #8c1d1d;
}

/* Contact / booking split layout */
.split {
	display: grid;
	gap: var(--sp-6);
}

.contact-details {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-details li {
	padding-block: var(--sp-3);
	border-bottom: 1px solid var(--color-line);
}

.contact-details li:first-child {
	padding-top: 0;
}

.contact-details span {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-text-soft);
	margin-bottom: 0.25rem;
}

.contact-details strong {
	font-size: 1.125rem;
	font-weight: 500;
}

.hours {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hours li {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-block: 0.625rem;
	border-bottom: 1px solid var(--color-line);
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
}

.section--dark .hours li {
	border-bottom-color: var(--color-line-dark);
}

.hours li span:first-child {
	font-family: var(--font-display);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
}

.map-embed {
	aspect-ratio: 16 / 10;
	background-color: var(--color-bg-off);
	border: 1px solid var(--color-line);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--color-text-soft);
	font-size: var(--fs-small);
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* Booking steps */
.steps {
	display: grid;
	gap: var(--sp-4);
	counter-reset: step;
	list-style: none;
	margin: 0;
	padding: 0;
}

.steps li {
	counter-increment: step;
	padding-top: var(--sp-3);
	border-top: 1px solid var(--color-line-dark);
}

.steps li::before {
	content: "0" counter(step);
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	color: var(--color-accent);
	margin-bottom: var(--sp-2);
}

.steps h3 {
	margin-bottom: var(--sp-1);
}

.steps p {
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-small);
	line-height: 1.7;
}

/* ==========================================================================
   14. EDITOR CONTENT (page.php / single.php)
   ========================================================================== */

.entry-content > * + * {
	margin-top: var(--sp-3);
}

.entry-content h2 {
	margin-top: var(--sp-5);
}

.entry-content h3 {
	margin-top: var(--sp-4);
}

.entry-content a {
	border-bottom: 1px solid var(--color-accent);
	transition: border-color var(--transition);
}

.entry-content a:hover {
	border-bottom-color: var(--color-primary);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
	color: var(--color-text-soft);
}

.entry-content li + li {
	margin-top: var(--sp-1);
}

.entry-content blockquote {
	margin: var(--sp-5) 0;
	padding-left: var(--sp-3);
	border-left: 2px solid var(--color-primary);
	font-size: var(--fs-lead);
}

.entry-content img {
	margin-block: var(--sp-4);
}

.entry-meta {
	font-family: var(--font-display);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	color: var(--color-text-soft);
	margin-bottom: var(--sp-3);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-top: var(--sp-4);
	margin-top: var(--sp-6);
	border-top: 1px solid var(--color-line);
	font-family: var(--font-display);
	font-size: var(--fs-small);
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
}

.post-list {
	display: grid;
	gap: var(--sp-5);
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	margin-bottom: var(--sp-3);
}

/* 404 */
.error-404 {
	min-height: 80svh;
	display: flex;
	align-items: center;
	text-align: center;
}

.error-404__code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 22vw, 14rem);
	font-weight: 600;
	line-height: 0.85;
	letter-spacing: 0.02em;
	color: var(--color-white);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding-block: var(--sp-6) var(--sp-4);
}

.site-footer__grid {
	display: grid;
	gap: var(--sp-5);
}

.site-footer__brand img {
	width: auto;
	height: 96px;
	margin-bottom: var(--sp-2);
	margin-left: -6px;
}

.site-footer__brand p {
	max-width: 34ch;
	color: rgba(255, 255, 255, 0.66);
	font-size: var(--fs-small);
	line-height: 1.8;
}

.site-footer h4 {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: var(--sp-3);
}

.site-footer__nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav a {
	display: inline-block;
	padding-block: 0.375rem;
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.78);
	border-bottom: 1px solid transparent;
	transition: color var(--transition), border-color var(--transition);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
	color: var(--color-white);
	border-bottom-color: var(--color-accent);
}

.site-footer__social {
	display: flex;
	gap: var(--sp-2);
	list-style: none;
	margin: var(--sp-3) 0 0;
	padding: 0;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--color-line-dark);
	transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	background-color: var(--color-white);
	color: var(--color-primary);
	border-color: var(--color-white);
}

.site-footer__social svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.site-footer__base {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	margin-top: var(--sp-6);
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__base a:hover {
	color: var(--color-white);
}

/* Build credit, the same signature as every Blue Lark site: small tracked caps on its own
   line, right-aligned under the base bar, with the studio name in bold. The footer's closing
   rule sits above it, separating the credit from the site's own links and copyright. */
.site-footer__credit {
	margin: var(--sp-3) 0 0;
	padding-top: var(--sp-3);
	border-top: 1px solid var(--color-line-dark);
	text-align: right;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__credit a {
	font-weight: 700;
	color: rgba(255, 255, 255, 0.86);
	transition: color var(--transition);
}

.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	color: var(--color-white);
}

/* ==========================================================================
   16. MOTION
   ========================================================================== */

/*
 * Scroll reveals. main.js tags each target with data-reveal ("text" or "image") and adds
 * .is-visible as it enters the viewport, with a data-reveal-step so a heading, its copy and
 * its button arrive in reading order. Nothing here hides anything until the script has run, so a
 * page without JavaScript simply shows its content.
 */
[data-reveal] {
	opacity: 0;
	transform: translateY(var(--rise-text));
	transition:
		opacity var(--motion-text) var(--ease-editorial),
		transform var(--motion-text) var(--ease-editorial);
	transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="image"] {
	overflow: hidden;
	transform: translateY(var(--rise-image));
	transition-duration: var(--motion-image);
}

/* The settle uses the individual scale property, so it never fights the hover zoom, which
   animates transform on the same image. */
[data-reveal="image"] img {
	scale: 1.06;
	transition: scale var(--motion-settle) var(--ease-editorial), transform 0.6s ease, filter 0.3s ease;
	transition-delay: var(--reveal-delay, 0s), 0s, 0s;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* Items arriving together play a beat apart, in reading order. */
[data-reveal-step="1"] { --reveal-delay: 70ms; }
[data-reveal-step="2"] { --reveal-delay: 140ms; }
[data-reveal-step="3"] { --reveal-delay: 210ms; }
[data-reveal-step="4"] { --reveal-delay: 280ms; }
[data-reveal-step="5"] { --reveal-delay: 350ms; }

[data-reveal="image"].is-visible img {
	scale: 1;
}

/*
 * Heroes play once on load: the copy rises in over the photograph in reading order. Pure CSS,
 * so it runs even before main.js arrives.
 *
 * The photograph itself never animates. It is the page's Largest Contentful Paint, and the
 * browser doesn't count an element as painted while it is at zero opacity, so fading it in
 * would push LCP back by the length of the fade.
 */
@keyframes tgl-rise {
	from {
		opacity: 0;
		transform: translateY(var(--rise-text));
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hero__statement,
	.hero__sub,
	.hero__actions,
	.hero__foot,
	.page-hero .eyebrow,
	.page-hero h1,
	.page-hero__sub {
		animation: tgl-rise var(--motion-text) var(--ease-editorial) both;
	}

	.hero__statement {
		animation-duration: 0.85s;
		animation-delay: 0.1s;
	}

	.hero__sub {
		animation-delay: 0.3s;
	}

	.hero__actions {
		animation-delay: 0.4s;
	}

	.hero__foot {
		animation-delay: 0.6s;
	}

	.page-hero h1 {
		animation-delay: 0.1s;
	}

	/* A title set as separate lines comes in a line at a time instead. */
	.page-hero h1:has(.page-hero__line) {
		animation: none;
	}

	.page-hero__line {
		animation: tgl-rise 0.8s var(--ease-editorial) both;
		animation-delay: 0.1s;
	}

	.page-hero__line:nth-child(2) {
		animation-delay: 0.18s;
	}

	.page-hero__line:nth-child(3) {
		animation-delay: 0.26s;
	}

	.page-hero__line:nth-child(n + 4) {
		animation-delay: 0.34s;
	}

	.page-hero__sub {
		animation-delay: 0.4s;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms;
		transition-duration: 0.01ms;
	}
}

/* ==========================================================================
   17. MEDIA QUERIES — mobile-first, everything above goes up
   ========================================================================== */

@media (min-width: 600px) {
	:root {
		--gutter: 2rem;
		--section-pad: 5rem;
		--section-pad-lg: 6rem;
	}

	.form__row--2 {
		grid-template-columns: 1fr 1fr;
	}

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

	.site-footer__base {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

@media (min-width: 860px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-4);
	}

	.gallery__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.split {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-7);
	}

	.about__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-6);
	}

	.about__grid--reverse .about__media {
		order: 2;
	}

	.service-row {
		grid-template-columns: 0.85fr 1fr;
		gap: var(--sp-6);
	}

	.service-row--reverse .service-row__media {
		order: 2;
	}

	.steps {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--sp-4);
	}

	.post-list {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-5);
	}

	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: var(--sp-5);
	}

	.hero__meta {
		display: block;
	}
}

@media (min-width: 1024px) {
	:root {
		--section-pad: 6.25rem;
		--section-pad-lg: 7.5rem;
		--header-h: 120px;
		--sticky-bar-h: 0px;
	}

	.site-header__toggle {
		display: none;
	}

	.site-nav {
		display: block;
	}

	.site-header__cta {
		display: inline-block;
	}

	.service-card {
		padding: var(--sp-5) var(--sp-4) var(--sp-5);
	}

	.hero__top {
		padding-block: calc(var(--header-h) + var(--sp-5));
	}

	.cta__inner {
		padding-block: var(--sp-9);
	}

	.section__head {
		margin-bottom: var(--sp-6);
	}
}

@media (min-width: 1280px) {
	:root {
		--gutter: 2.5rem;
	}
}

/* Footer utilities appended after section 15 */
.site-footer__h4--spaced {
	margin-top: var(--sp-4);
}

.site-footer__book {
	margin-top: var(--sp-4);
	padding: 0.875rem 1.75rem;
}

/* Booking + services page utilities */
.booking__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-5);
	margin-top: var(--sp-6);
	padding-top: var(--sp-4);
	border-top: 1px solid var(--color-line-dark);
}

.booking__embed {
	margin-top: var(--sp-5);
	aspect-ratio: 4 / 3;
}

.booking__embed iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.services__note {
	margin-top: var(--sp-5);
	max-width: 60ch;
	color: var(--color-text-soft);
}

.services__more {
	margin-top: var(--sp-5);
}

.services__note + .services__more {
	margin-top: var(--sp-3);
}

.policies {
	display: grid;
	gap: var(--sp-4);
	margin-top: var(--sp-5);
}

.policies h3 {
	margin-bottom: var(--sp-1);
}

.policies p {
	color: var(--color-text-soft);
	font-size: var(--fs-small);
	line-height: 1.75;
}

@media (min-width: 860px) {
	.policies {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--sp-5);
	}
}

/* 404 layout */
.error-404 {
	text-align: left;
	min-height: 86svh;
	align-items: center;
}

.error-404__inner {
	padding-block: var(--sp-8);
}

.error-404__code {
	display: block;
	margin-bottom: var(--sp-2);
	opacity: 0.35;
}

.error-404__actions {
	margin-top: var(--sp-4);
}

/* Team grid — About page */
.team__grid {
	display: grid;
	gap: var(--sp-5);
}

.team-card__media {
	margin-bottom: var(--sp-3);
}

.team-card__media img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.team-card h3 {
	margin-bottom: 0.25rem;
}

.team-card__role {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: var(--sp-2);
}

.team-card p:last-child {
	color: var(--color-text-soft);
	font-size: var(--fs-small);
	line-height: 1.75;
}

@media (min-width: 860px) {
	.team__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--sp-4);
	}
}

/* Contact + booking split extras */
.split__media {
	margin-top: var(--sp-5);
}

.split__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.contact__hours-head {
	margin-top: var(--sp-5);
	margin-bottom: var(--sp-2);
}

.contact-details a {
	border-bottom: 1px solid var(--color-line);
	transition: border-color var(--transition);
}

.contact-details a:hover {
	border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   18. BODY-BLOCK RHYTHM
   Headings that introduce copy outside .section__head need their own breathing room.
   Kept here, at the end, so the intent is explicit rather than buried in a component.
   ========================================================================== */

.about__body h2,
.service-row__body h2,
.split h2,
.policies + h2 {
	margin-bottom: var(--sp-3);
}

.about__body .eyebrow,
.service-row__body .eyebrow,
.split .eyebrow {
	margin-bottom: var(--sp-2);
}

/* About page: the opening runs straight into the Calum section in the same column. */
.about__body p + .eyebrow {
	margin-top: var(--sp-6);
}

.split h2 + p {
	margin-bottom: var(--sp-4);
}

/* Six labels fit one line at desktop with the tighter gap. */
@media (min-width: 1024px) {
	.strip__track {
		gap: var(--sp-4);
	}
}

/* ==========================================================================
   19. WORDMARK BAND
   A black strip between two light sections, filled edge to edge by the shop name.
   The three constants below are measured from the ink box of the rendered string in
   Oswald 600 at 0.01em tracking, line-height 1. Re-measure if any of those change.
   ========================================================================== */

.wordmark {
	position: relative;
	background-color: var(--color-primary);
	color: var(--color-white);
	overflow: hidden;
}

.wordmark .wordmark__text {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.wordmark__line {
	display: block;
	white-space: nowrap;
}

.wordmark__line--lead {
	font-size: var(--fs-wordmark-lead);
	margin-left: var(--wordmark-bearing-lead);
	margin-top: calc(var(--wordmark-cap-trim) - var(--type-bleed));
}

.wordmark__line--last {
	font-size: var(--fs-wordmark-last);
	margin-left: var(--wordmark-bearing-last);
	/* Pull the second line's own top leading out so the stack closes up. */
	margin-top: var(--wordmark-cap-trim);
	margin-bottom: calc(var(--wordmark-base-trim) - var(--type-bleed));
}

/*
 * Punch-out.
 *
 * The band carries a photograph on its own layer; the type block sits on top of it as solid
 * black with white letters and multiplies into it. Multiply leaves the backdrop untouched
 * wherever the source is white, so the letters become true windows onto the image, and crushes
 * it to black wherever the source is black, so the surround stays solid. Blending is
 * GPU-composited, and the fallback is free: without mix-blend-mode the block is simply white
 * type on black, which is where this band started.
 *
 * The photograph has to be a SIBLING layer, not the section's own background. A blending child
 * does not composite correctly against its own parent's fixed-attachment background, which
 * inverts the punch-out into solid letters on a photographic surround. Against a sibling
 * underneath it, the same blend is correct, and the layer is then free to use the house
 * parallax (.tgl-bg, background-attachment:fixed) like every other full-bleed image.
 *
 * isolation:isolate keeps the blend inside this section so it cannot reach the page behind it.
 */
.wordmark__image {
	position: absolute;
	inset: 0;
}

@supports (mix-blend-mode: multiply) {
	.wordmark {
		isolation: isolate;
	}

	.wordmark .wordmark__text {
		position: relative;
		background-color: var(--color-primary);
		mix-blend-mode: multiply;
	}
}


/* ==========================================================================
   20. PARALLAX BACKGROUNDS
   Full-bleed imagery is painted as a background so it can be anchored to the viewport with
   background-attachment:fixed. The picture then holds still while its section scrolls over
   it, which is the house parallax: pure CSS, no scroll handler, no JS transform.

   The URL for each .tgl-bg--<slot> comes from a generated rule in inc/enqueue.php, keyed to
   the same attachment IDs the rest of the theme uses.
   ========================================================================== */

.tgl-bg {
	background-color: var(--color-primary);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

/*
 * iOS and most touch browsers do not honour fixed attachment: they either ignore it or
 * repaint so heavily that scrolling stutters. Anchor the picture to its own section there.
 * Same when the visitor has asked for reduced motion, where parallax is exactly the kind of
 * movement they are opting out of.
 */
@media (hover: none) and (pointer: coarse) {
	.tgl-bg {
		background-attachment: scroll;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgl-bg {
		background-attachment: scroll;
	}
}

/* ==========================================================================
   21. LOCATIONS
   Two branches, listed side by side on the contact page.
   ========================================================================== */

.locations {
	display: grid;
	gap: var(--sp-5);
	margin-bottom: var(--sp-5);
}

.location h3 {
	margin-bottom: var(--sp-2);
}

.location .contact-details {
	margin-bottom: var(--sp-3);
}

.contact-details--email {
	padding-top: var(--sp-3);
	border-top: 1px solid var(--color-line);
}

.site-footer__nav strong {
	font-weight: 600;
	color: var(--color-white);
}

.map-embed .link-arrow {
	display: inline-flex;
	margin-top: var(--sp-2);
}

.map-embed p {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-1);
}

@media (min-width: 600px) {
	.locations {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-4);
	}
}

.location__social {
	margin-top: var(--sp-2);
	font-size: var(--fs-small);
	letter-spacing: 0.04em;
	color: var(--color-text-soft);
}

.location__social a {
	border-bottom: 1px solid var(--color-line);
	transition: border-color var(--transition);
}

.location__social a:hover {
	border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   22. TOWN PAGES, PRICES AND THE STICKY BAR
   Components introduced by the September build: two shop pages sharing one template, a
   price table generated from the data file, and a mobile action bar.
   ========================================================================== */

/* An unfilled gap from the copy brief. Deliberately conspicuous: these are questions for
   Calum, and they must not survive to launch unnoticed. */
.is-placeholder,
mark.is-placeholder {
	background-color: #fff6d6;
	color: #6b5200;
	padding: 0.1em 0.3em;
	font-style: italic;
}

.section--dark .is-placeholder {
	background-color: rgba(255, 246, 214, 0.15);
	color: #f0e2b8;
}

.location__subhead {
	margin-top: var(--sp-5);
	margin-bottom: var(--sp-3);
}

.location__panel {
	align-self: start;
	padding: var(--sp-4);
	border: 1px solid var(--color-line);
	background-color: var(--color-bg-off);
}

.location__hours-head {
	margin-top: var(--sp-4);
	margin-bottom: var(--sp-2);
}

.location__book {
	margin-top: var(--sp-4);
	width: 100%;
	text-align: center;
}

.location__closing {
	text-align: center;
}

.location__closing .btn {
	margin-top: var(--sp-4);
}

/* Price table: generated from inc/business-data.php, never typed. */
.price-table {
	width: 100%;
	margin-top: var(--sp-5);
	border-collapse: collapse;
	text-align: left;
}

.price-table th,
.price-table td {
	padding: var(--sp-2) 0;
	border-bottom: 1px solid var(--color-line);
	vertical-align: baseline;
}

.price-table thead th {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-text-soft);
}

.price-table tbody th {
	font-weight: 500;
}

.price-table td:last-child {
	font-family: var(--font-display);
	letter-spacing: 0.06em;
	white-space: nowrap;
	text-align: right;
}

.price-table__note {
	margin-top: var(--sp-3);
	font-size: var(--fs-small);
	color: var(--color-text-soft);
}

.service-notes {
	display: grid;
	gap: var(--sp-5);
	margin-top: var(--sp-5);
}

.service-note h3 {
	margin-bottom: 0.25rem;
}

.service-note__meta {
	font-family: var(--font-display);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: var(--sp-2);
}

/* Footer: one block per shop, because the two keep different hours. */
.site-footer__shop h4 {
	margin-bottom: var(--sp-2);
}

.site-footer__address {
	font-style: normal;
	font-size: var(--fs-small);
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: var(--sp-3);
}

.site-footer__address a:hover {
	color: var(--color-white);
}

.site-footer__shop-link {
	margin-top: var(--sp-3);
}

.site-footer__nav-inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.site-footer__nav-inline a {
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition);
}

.site-footer__nav-inline a:hover {
	border-bottom-color: var(--color-accent);
}

/*
 * Sticky Call and Book bar, phones only. Most of this traffic is a phone and a good share of
 * it is somebody standing outside the shop, so the two actions sit permanently in thumb reach.
 */
.sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background-color: var(--color-primary);
	border-top: 1px solid var(--color-line-dark);
}

.sticky-bar__action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--sticky-bar-h);
	font-family: var(--font-display);
	font-size: var(--fs-nav);
	font-weight: 500;
	letter-spacing: var(--ls-nav);
	text-transform: uppercase;
	color: var(--color-white);
}

.sticky-bar__action--book {
	background-color: var(--color-white);
	color: var(--color-primary);
}

/* The bar covers the foot of the page, so give the footer room to clear it. */
@media (max-width: 1023px) {
	.site-footer {
		padding-bottom: calc(var(--sp-4) + 56px);
	}
}

@media (min-width: 1024px) {
	.sticky-bar {
		display: none;
	}
}

@media (min-width: 600px) {
	.service-notes {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-5) var(--sp-4);
	}
}

@media (min-width: 860px) {
	.site-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

/* Pick your shop */
.shops__grid {
	display: grid;
	gap: var(--sp-5);
}

.shop-card {
	padding: var(--sp-4);
	background-color: var(--color-white);
	border: 1px solid var(--color-line);
}

.shop-card h3 {
	margin-bottom: var(--sp-1);
}

.shop-card__address {
	font-size: var(--fs-small);
	color: var(--color-text-soft);
	margin-bottom: var(--sp-2);
}

.shop-card .hours {
	margin-block: var(--sp-3);
}

@media (min-width: 860px) {
	.shops__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-4);
	}
}

/*
 * Shops dropdown.
 *
 * Biggleswade and Potton hang off a Shops parent so four items plus a button still fit a
 * phone screen, and the two town pages get a labelled home rather than floating loose in the
 * bar. Dropdown links are crawled normally, so nothing is lost by nesting them.
 */
.site-nav__list li {
	position: relative;
}

.site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	min-width: 12rem;
	margin: 0;
	padding: var(--sp-2) var(--sp-3);
	list-style: none;
	background-color: var(--color-primary);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition), visibility var(--transition);
}

.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.site-nav__list .sub-menu a {
	display: block;
	white-space: nowrap;
}

/* The parent is a label, not a destination. */
.site-nav__list .menu-item-has-children > a {
	cursor: default;
}

/*
 * Dropdown chevron: two 1px strokes, the same weight as the site's hairline rules and the line
 * work in the logo, rather than a filled triangle. Drawn from the right and bottom borders of a
 * small square turned 45 degrees, so it points down; it flips to point up while the menu is
 * open.
 */
.site-nav__list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.4em;
	height: 0.4em;
	margin-left: 0.5em;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: translateY(-0.3em) rotate(45deg);
	vertical-align: middle;
	transition: transform var(--transition);
}

.site-nav__list .menu-item-has-children:hover > a::after,
.site-nav__list .menu-item-has-children:focus-within > a::after {
	transform: translateY(0) rotate(-135deg);
}

/* Mobile drawer shows both towns indented under Shops rather than in a hover menu. */
.mobile-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: var(--sp-3);
}

.mobile-nav__list .sub-menu a {
	font-size: 1.25rem;
	border-bottom-color: transparent;
}

.map-embed__link {
	margin-top: var(--sp-3);
}

/* ==========================================================================
   23. FAQS
   Questions at the foot of each page, from the 'faqs' list in the data file. Native
   <details>, so each answer is in the markup and opens without JavaScript.
   ========================================================================== */

.faqs__list {
	margin-top: var(--sp-5);
	border-top: 1px solid var(--color-line);
}

.faq {
	border-bottom: 1px solid var(--color-line);
}

.faq__q {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--sp-3);
	padding-block: var(--sp-3);
	font-size: var(--fs-h4);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	transition: color var(--transition);
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q::after {
	content: "+";
	flex-shrink: 0;
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--color-accent);
	transition: transform var(--transition);
}

.faq[open] .faq__q::after {
	transform: rotate(45deg);
}

.faq__q:hover {
	color: var(--color-text-soft);
}

.faq__q:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 4px;
}

.faq__a {
	padding-bottom: var(--sp-4);
	max-width: 62ch;
}
