/*
Theme Name: The Bridge Saundersfoot v2
Theme URI: https://thebridgesaundersfoot.org
Author: Gareth Mac
Author URI: https://g-mac.uk
Description: Block theme for The Bridge Saundersfoot, a community church by the sea. Built for people who have never been to church: plain words, clear next steps, mobile first, WCAG 2.2 AA. Tokens live in theme.json; this file holds only what theme.json cannot express.
Version: 2.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-bridge-saundersfoot-v2
Tags: full-site-editing, block-theme, accessibility-ready
Tested up to: 6.8
Requires PHP: 7.4

Copyright (C) 2026 The Bridge Saundersfoot
Fonts: Poppins, SIL Open Font License 1.1, self-hosted in assets/fonts. Stand-in for the house style font (Avenir) pending a licensed web-embedding source. See issue #131.
*/

/* ============================================================
   Foundations
   ============================================================ */
:root { --br-header-h: 6rem; }
html { scroll-behavior: smooth; scroll-padding-top: var(--br-header-h); }
body { padding-top: var(--br-header-h); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	/* Nav drawer (see Header section): with transitions off, the delayed visibility flip on close collapses to zero, so it opens and closes instantly and never lingers */
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container,
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-dialog { transition: none !important; transition-delay: 0s !important; }
	/* Scroll-reveal (assets/js/reveal.js): belt and braces, nothing is ever hidden or moved */
	html.br-js-reveal .br-reveal, html.br-js-reveal .br-reveal.is-in { opacity: 1 !important; transform: none !important; }
}

/* Scroll-reveal: content is visible by default. The hidden start state only exists once reveal.js has
   added html.br-js-reveal (JS running, IntersectionObserver present, reduced motion NOT requested). */
html.br-js-reveal .br-reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease-out, transform .55s ease-out; }
html.br-js-reveal .br-reveal.is-in { opacity: 1; transform: none; }
body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
img { height: auto; }

/* Focus: always visible, two-tone so it works on light and dark */
:where(a, button, summary, input, textarea, select, .wp-block-button__link):focus-visible {
	outline: 3px solid #0B3A55;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #fff;
	border-radius: 4px;
}
.br-on-dark :where(a, button, summary, .wp-block-button__link):focus-visible {
	outline-color: #F6B042;
	box-shadow: 0 0 0 6px #0B3A55;
}

/* Links in running text keep an underline (not colour alone) */
.wp-block-post-content a:not(.wp-block-button__link) { text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }

/* Buttons: big, round, 44px+ targets */
.wp-block-button__link { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s, transform .2s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: inherit; border: 2px solid currentColor; padding: calc(0.85rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }
.br-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--deep); border-color: #fff; }
.br-on-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--deep); }

/* "Still to confirm" marker: loud on purpose, removed before launch */
.br-tbc {
	background: #FFE79A; color: #0E2A38; font-weight: 700; font-size: 0.85em;
	padding: 0.05em 0.4em; border-radius: 0.3em; border: 1px dashed #8A6A00;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ============================================================
   Header (floats: fixed to the viewport top, slightly transparent with a
   blur so scrolled content stays legible underneath it) and footer
   ============================================================ */
.br-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 500;
	border-bottom: 1px solid rgba(14, 42, 56, 0.08);
	box-shadow: 0 8px 24px rgba(14, 42, 56, 0.07);
}
/* Blur lives on a pseudo-element, not .br-header itself: backdrop-filter/filter on an element creates a
   new containing block for any position:fixed descendant, which breaks the nav drawer (.wp-block-navigation
   __responsive-container, position:fixed; inset:0) -- it would get boxed into the header's own height
   instead of covering the viewport. Keeping the filter off the real ancestor avoids that entirely. */
.br-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.br-header .br-header__inner { gap: 1rem; padding-block: 0.5rem; }
.br-header .wp-block-site-logo img { height: auto; width: 128px; }
.br-header .wp-block-navigation__responsive-container-open,
.br-header .wp-block-navigation__responsive-container-close { min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0; }
.br-header .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.br-header .wp-block-navigation-item__content { padding: 0.55rem 0.7rem; border-radius: 0.5rem; text-decoration: none; color: var(--wp--preset--color--ink); }
.br-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--foam); }
.br-header .current-menu-item > .wp-block-navigation-item__content,
.br-header .wp-block-navigation-item__content[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--wp--preset--color--sea); border-radius: 0.5rem 0.5rem 0 0; }
@media (max-width: 781px) {
	.br-header .wp-block-site-logo img { width: 104px; }
}
/* "Plan a visit": lives as the last item in the nav drawer only (see header.html, .br-nav-cta) --
   styled as a standout button there, and hidden entirely at the 1200px+ row layout where there is
   no burger menu at all. The persistent floating pill in the footer covers that case instead. */
.br-header .wp-block-navigation-item.br-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink) !important;
	font-weight: 800; border-radius: 999px; text-align: center;
}
.br-header .wp-block-navigation-item.br-nav-cta > .wp-block-navigation-item__content:hover { background: #fff !important; }
@media (min-width: 1200px) {
	.br-header .wp-block-navigation-item.br-nav-cta { display: none; }
}
/* Navigation: full row only from 1200px up; under that, a hamburger that opens a side drawer.
   Core hard-codes its own inline/overlay switch at 600px (overlayMenu "mobile"), so between 600px and the
   breakpoint we re-show the toggle ourselves. Open/close, focus trap and Esc stay with core's Interactivity API.
   WORKAROUND, named: if core changes those class names this needs a look. */
@media (min-width: 600px) and (max-width: 1199px) {
	.br-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
/* Drawer (under 1200px): the container is a dimmed full-viewport backdrop and the dialog inside is the side panel.
   Core removes .is-menu-open and drops the container to display:none in one frame, which would kill any exit
   animation. So below 1200px the container stays laid out as a fixed overlay in BOTH states and the closed state
   is hidden with visibility (out of the tab order and the accessibility tree, and it cannot catch clicks).
   Opening = visibility flips at once, then the backdrop fades in and the panel slides in. Closing = the reverse,
   with visibility held back until the exit has finished. Every panel style below is therefore scoped to the
   container, not to .is-menu-open, so the panel keeps its look while it slides out. The few core rules that only
   exist under .is-menu-open (column layout, transparent items) are restated here for the same reason.
   Selector prefix (specificity 0,3,1) is deliberate: it has to beat core's :not(.is-menu-open) rules. */
@media (max-width: 1199px) {
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container {
		position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: row; justify-content: flex-end;
		padding: 0 !important; overflow: hidden; color: #fff !important;
		background: rgba(11, 58, 85, 0) !important;
		visibility: hidden; pointer-events: none; animation: none !important;
		transition: background-color .22s ease-in, visibility 0s linear .22s;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
		background: rgba(11, 58, 85, 0.55) !important;
		visibility: visible; pointer-events: auto;
		transition: background-color .28s ease-out, visibility 0s;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-close { width: min(22rem, 85vw); max-width: none; margin: 0; height: 100%; box-sizing: border-box; }
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-dialog {
		box-sizing: border-box; height: 100%; width: 100%; overflow-y: auto; margin: 0; position: relative;
		background: var(--wp--preset--color--deep); color: #fff;
		padding: 4.5rem 1.5rem 2rem; box-shadow: -12px 0 40px rgba(14, 42, 56, 0.35);
		transform: translateX(100%);
		transition: transform .22s ease-in;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		transform: translateX(0);
		transition: transform .28s ease-out;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close {
		position: absolute; top: 0.9rem; right: 0.9rem; color: #fff; border-radius: 50%;
		background: rgba(255, 255, 255, 0.12);
		display: inline-flex; align-items: center; justify-content: center; padding: 0;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close:hover { background: rgba(255, 255, 255, 0.22); }
	/* Restated from core's .is-menu-open rules so the list does not reflow to a row while it slides out */
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container-content {
		box-sizing: border-box; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: var(--navigation-layout-justification-setting, inherit); overflow: visible;
		padding: 0 !important;
	}
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container-content .wp-block-navigation__container { flex-direction: column; justify-content: flex-start; align-items: stretch !important; width: 100%; text-align: left; background: transparent !important; color: inherit !important; }
	.br-header nav.wp-block-navigation .wp-block-navigation-item { flex-direction: column; width: 100%; align-items: stretch !important; justify-content: flex-start !important; text-align: left !important; background: transparent !important; color: inherit !important; }
	/* Link padding is 0 on purpose: core's own open-state rule always won over the earlier .7rem .9rem here, so 0 is what has always rendered */
	.br-header nav.wp-block-navigation .wp-block-navigation-item__content { color: #fff; font-size: 1.3rem; font-family: var(--wp--preset--font-family--display); display: block; padding: 0; }
	.br-header nav.wp-block-navigation .wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, 0.12); }
	.br-header nav.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
	.br-header nav.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] { box-shadow: inset 4px 0 0 var(--wp--preset--color--sun); border-radius: 0.5rem; }
	.br-header nav.wp-block-navigation .wp-block-navigation__responsive-container :where(a, button):focus-visible { outline-color: #F6B042; box-shadow: 0 0 0 6px #0B3A55; }
}

.br-footer { background: var(--wp--preset--color--deep); color: #fff; }
.br-footer a { color: #fff; }
.br-footer a:hover { color: var(--wp--preset--color--sun); }
.br-footer h2, .br-footer h3 { color: #fff; font-size: 1.15rem; }
.br-footer__logo { background: #fff; border-radius: 1rem; padding: 0.4rem 0.8rem; display: inline-block; }
.br-footer__logo img { height: 4.2rem; width: auto; display: block; }
.br-footer__small { font-size: 0.9375rem; color: #D6E4EA; }
.br-footer__small a { color: #fff; }
.br-footer .br-tbc { color: #0E2A38; }

/* Persistent "Plan a visit": a full-width bar at the bottom on phones, a compact floating pill in the
   bottom-right corner everywhere else. One element (parts/footer.html), restyled by width. */
.br-sticky-cta {
	position: fixed; z-index: 99; display: flex; align-items: center;
	animation: br-cta-in .45s ease-out .6s both;
	transition: opacity .25s ease-out, transform .25s ease-out, visibility .25s;
}
.br-sticky-cta__text { display: none; margin: 0; }
.br-sticky-cta a.br-sticky-cta__btn {
	background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink);
	font-weight: 800; text-decoration: none; padding: 0.7rem 1.3rem; border-radius: 999px; min-height: 2.75rem;
	display: inline-flex; align-items: center; white-space: nowrap;
}
.br-sticky-cta a.br-sticky-cta__btn:hover { background: #fff; }
@keyframes br-cta-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 782px) {
	.br-sticky-cta { right: 1.25rem; bottom: 1.25rem; box-shadow: 0 8px 24px rgba(14, 42, 56, 0.35); border-radius: 999px; }
	.br-sticky-cta a.br-sticky-cta__btn { padding: 0.8rem 1.5rem; font-size: 1.0625rem; box-shadow: 0 0 0 3px var(--wp--preset--color--deep); }
	/* Slides away only once the map itself or the home hero (which has its own button) reaches the pill's own bottom-right corner, so it never sits on top of the map or the hero photo label -- not merely while that section is visible anywhere on screen. See ui.js. */
	.br-sticky-cta.is-tucked { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
}
@media (max-width: 781px) {
	.br-sticky-cta {
		left: 0; right: 0; bottom: 0; justify-content: space-between; gap: 0.75rem;
		background: var(--wp--preset--color--deep); color: #fff;
		padding: 0.6rem clamp(1rem, 4vw, 2rem) calc(0.6rem + env(safe-area-inset-bottom));
		box-shadow: 0 -6px 18px rgba(14, 42, 56, 0.25);
	}
	.br-sticky-cta__text { display: block; font-size: 0.9375rem; line-height: 1.25; }
	.br-sticky-cta__text strong { display: block; font-size: 1rem; }
}
/* Room at the end of every page so the bar or pill never covers the last lines of the footer */
.br-footer { padding-bottom: calc(var(--wp--preset--spacing--50) + 4.5rem) !important; }

/* ============================================================
   Sections and bands
   ============================================================ */
.br-section { padding-block: var(--wp--preset--spacing--60); }
.br-section--tight { padding-block: var(--wp--preset--spacing--50); }
.br-bg-sand  { background: var(--wp--preset--color--sand); }
.br-bg-white { background: #fff; }
.br-bg-foam  { background: var(--wp--preset--color--foam); }
.br-bg-shell { background: var(--wp--preset--color--shell); }
.br-bg-deep  { background: var(--wp--preset--color--deep); color: #fff; }
.br-bg-sea   { background: var(--wp--preset--color--sea); color: #fff; }
.br-bg-deep a:not(.wp-block-button__link), .br-bg-sea a:not(.wp-block-button__link) { color: #fff; }
.br-bg-deep h1, .br-bg-deep h2, .br-bg-deep h3, .br-bg-sea h1, .br-bg-sea h2, .br-bg-sea h3 { color: #fff; }
.br-measure { max-width: 40rem; }
.br-lead { font-size: var(--wp--preset--font-size--lead); line-height: 1.55; }
.br-eyebrow {
	font-weight: 800; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--wp--preset--color--sea); margin-bottom: 0.5rem;
}
.br-bg-deep .br-eyebrow, .br-bg-sea .br-eyebrow { color: var(--wp--preset--color--sun); }
.br-bg-sea .br-eyebrow { color: #fff; }
.br-section > * + * { margin-block-start: 1.25rem; }
.br-section .br-grid { margin-block-start: 2rem; }
.br-grid > * { margin: 0 !important; }

/* Wave dividers */
.br-wave { line-height: 0; margin: 0 !important; }
.br-wave svg { display: block; width: 100%; height: clamp(28px, 5vw, 64px); }

/* ============================================================
   Grids and cards
   ============================================================ */
.br-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .br-grid--2, .br-grid--3, .br-grid--4, .br-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
	.br-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.br-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.br-grid--5 { grid-template-columns: repeat(6, 1fr); }
	.br-grid--5 > * { grid-column: span 2; }
	.br-grid--5 > *:nth-child(4) { grid-column: 2 / span 2; }
	.br-grid--5 > *:nth-child(5) { grid-column: 4 / span 2; }
}
.br-card {
	background: #fff; border: 1px solid rgba(14, 42, 56, 0.1); border-radius: 1.25rem;
	padding: 1.5rem; box-shadow: 0 1px 0 rgba(14, 42, 56, 0.04);
}
.br-card > * + * { margin-block-start: 0.6rem; }


.br-card .br-meta { color: var(--wp--preset--color--muted); font-size: 0.9375rem; font-weight: 600; }
.br-bg-foam .br-card, .br-bg-sand .br-card { background: #fff; }
.br-bg-deep .br-card, .br-bg-sea .br-card { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: #fff; box-shadow: none; }
.br-card--tint { background: var(--wp--preset--color--foam); border-color: transparent; }
.br-icon { width: 3.75rem; height: 3.75rem; flex-shrink: 0; border-radius: 50%; background: var(--wp--preset--color--foam); color: var(--wp--preset--color--sea); display: grid; place-items: center; }
.br-bg-foam .br-icon, .br-card--tint .br-icon { background: #fff; }
.br-bg-deep .br-icon, .br-bg-sea .br-icon { background: rgba(255,255,255,0.16); color: var(--wp--preset--color--sun); }
.br-icon svg { width: 2.1rem; height: 2.1rem; }
.br-icon-wrap { margin: 0 0 0.25rem; line-height: 0; }
.br-value-tag { display: inline-block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--leaf); background: var(--wp--preset--color--foam); padding: 0.2rem 0.7rem; border-radius: 999px; }
.br-bg-white .br-value-tag { background: var(--wp--preset--color--foam); }
/* "Enjoy" gets the logo's third colour (the bright green in its gradient, currently unused anywhere
   else on the site) rather than the same dark green as the other four values -- it's the one value
   about delight rather than duty, so it reads as a deliberate highlight, not an inconsistency. */
.br-value-tag--sprout { color: var(--wp--preset--color--sprout); background: rgba(102, 181, 89, 0.14); }
.br-card .br-value-tag { margin-top: 0.4rem; }

/* Facts list ("when, where, cost") */
.br-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.br-facts li { display: grid; grid-template-columns: 3.75rem 1fr; gap: 0.9rem; align-items: start; }
.br-facts strong { display: block; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* Numbered steps */
.br-steps { counter-reset: step; display: grid; gap: 1.25rem; }
.br-steps > * { counter-increment: step; position: relative; padding-left: 4rem; margin: 0 !important; }
.br-steps > *::before {
	content: counter(step); position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; border-radius: 50%;
	background: var(--wp--preset--color--deep); color: #fff; display: grid; place-items: center; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.3rem;
}
.br-steps h3 { margin: 0 0 0.25rem; }
.br-steps p { margin: 0; }

/* ============================================================
   Hero
   ============================================================ */
.br-hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem) clamp(2.5rem, 2rem + 4vw, 5rem); background: var(--wp--preset--color--sand); position: relative; overflow: hidden; }
.br-hero-grid { display: grid; gap: 2.25rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .br-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.br-hero-grid > * { margin: 0 !important; }
.br-hero h1 { margin: 0 0 1rem; }
.br-hero h1 em { font-style: italic; color: var(--wp--preset--color--sea); font-weight: 500; }
.br-hero--page h1 { font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem); }
.br-timecard {
	background: #fff; border-radius: 1.25rem; padding: 1.25rem 1.4rem; margin-block: 1.5rem !important;
	border: 1px solid rgba(14, 42, 56, 0.12); box-shadow: 0 10px 30px rgba(14, 42, 56, 0.08);
	display: grid; gap: 0.35rem;
}
.br-timecard p { margin: 0; }
.br-timecard .br-timecard__when { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 700; line-height: 1.15; }
.br-timecard .br-timecard__where { color: var(--wp--preset--color--muted); font-weight: 600; }
/* Photo slot: fixed 4:5 frame (same radius and shadow as .br-photo--portrait) that hosts a real photo, or an honest neutral placeholder until one exists */
.br-photo-slot { margin: 0; justify-self: center; width: 100%; max-width: 28rem; margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 20px 40px rgba(14, 42, 56, 0.22); }
.br-photo-slot img { width: 100%; height: 100%; display: block; object-fit: cover; }
.br-photo-slot__placeholder {
	width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
	background:
		radial-gradient(120% 80% at 85% 100%, rgba(29, 95, 142, 0.14), transparent 60%),
		linear-gradient(160deg, var(--wp--preset--color--foam) 0%, var(--wp--preset--color--shell) 100%);
	color: var(--wp--preset--color--muted);
}
.br-photo-slot__icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.br-photo-slot__icon svg { width: 1.5rem; height: 1.5rem; }
.br-photo-slot__placeholder { box-sizing: border-box; padding: 1.25rem; text-align: center; }
.br-photo-slot__label { font-size: var(--wp--preset--font-size--small); font-weight: 700; letter-spacing: 0.01em; line-height: 1.35; color: var(--wp--preset--color--ink); max-width: 16rem; }
@media (max-width: 899px) { .br-photo-slot { max-width: 19rem; } }

/* Wide variant: 16:10 landscape frame (same radius and shadow as .br-photo--wide) */
.br-photo-slot--wide { aspect-ratio: 16 / 10; max-width: none; }

/* Inner page heroes: text plus a smaller photo slot */
.br-hero--page .br-photo-slot { max-width: 22rem; }
.br-hero--page .br-photo-slot--wide { max-width: 100%; }
@media (max-width: 899px) {
	.br-hero--page .br-photo-slot { max-width: 17rem; }
	.br-hero--page .br-photo-slot--wide { max-width: 100%; }
}
.br-card .br-photo-slot { box-shadow: none; max-width: none; }

/* TEMPORARY, REMOVE BEFORE LAUNCH: reference-image variant of the photo slot.
   A stock photo from Pexels sits behind the "Photo needed" label as a brief for the photographer.
   Marked with a "Reference only" ribbon, a dashed inner frame and a slight desaturation so it can
   never pass as a finished photo. Only slots with the extra class .br-photo-slot--ref are affected;
   plain placeholders render exactly as before. To retire: delete the <img>, the ribbon span and the
   --ref class from the slot (or swap in the real photo), then delete this block and assets/images/reference/. */
.br-photo-slot--ref { position: relative; isolation: isolate; }
.br-photo-slot--ref .br-photo-slot__ref-img { position: absolute; inset: 0; z-index: 0; filter: saturate(0.7) contrast(0.95); }
.br-photo-slot--ref::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(248, 243, 234, 0.12); pointer-events: none; }
.br-photo-slot--ref::after { content: ""; position: absolute; inset: 0.55rem; z-index: 2; border: 2px dashed rgba(255, 255, 255, 0.9); border-radius: 0.9rem; pointer-events: none; }
.br-photo-slot--ref .br-photo-slot__placeholder {
	position: absolute; z-index: 3; inset: auto 1rem 1rem 1rem; width: auto; height: auto;
	background: rgba(255, 255, 255, 0.93); border-radius: 0.9rem; box-shadow: 0 6px 18px rgba(14, 42, 56, 0.25);
	padding: 0.8rem 1rem; gap: 0.45rem;
}
.br-photo-slot--ref .br-photo-slot__icon { background: var(--wp--preset--color--foam); }
/* Diagonal corner ribbon, caution-tape style, shared by the photo slots and the home hero */
.br-ref-ribbon {
	position: absolute; z-index: 4; top: 3.65rem; left: -3.9rem; width: 17rem; transform: rotate(-45deg);
	display: flex; flex-direction: column; align-items: center; gap: 0.05rem;
	background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink);
	border-block: 3px dashed var(--wp--preset--color--ink); padding: 0.3rem 0;
	box-shadow: 0 4px 12px rgba(14, 42, 56, 0.35); text-align: center; line-height: 1.1; pointer-events: none;
}
.br-ref-ribbon__main { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.br-ref-ribbon__sub { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; }

/* Home hero: full-bleed photo area with a circular text and CTA badge on top.
   Scoped to .br-hero--home so the inner-page heroes (.br-hero--page) are untouched. */
.br-hero--home { padding: 0; background: var(--wp--preset--color--sand); }
.br-hero--home > * { margin: 0 !important; }
.br-hero--home .br-hero__stage {
	position: relative; isolation: isolate; display: grid; place-items: center;
	min-height: clamp(30rem, 85svh, 52rem);
	padding: clamp(1.25rem, 3vw, 2.5rem) 1rem clamp(3.25rem, 5vw, 4rem);
}
.br-hero--home .br-hero__stage > * { margin: 0 !important; }
/* Placeholder photo: neutral palette wash. A real <img> inside fills it (object-fit: cover). */
.br-hero__photo {
	position: absolute; inset: 0; z-index: -1; overflow: hidden;
	background:
		radial-gradient(70% 90% at 15% 100%, rgba(29, 95, 142, 0.35), transparent 70%),
		radial-gradient(60% 80% at 90% 0%, rgba(246, 176, 66, 0.22), transparent 70%),
		linear-gradient(135deg, #9DC3D3 0%, #C9E0E2 45%, var(--wp--preset--color--foam) 100%);
}
.br-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.br-hero__photo:has(img)::after { content: ""; position: absolute; inset: 0; background: rgba(11, 58, 85, 0.35); }
/* Rotating hero photos (Passion-Creek-style crossfade), pure CSS, no JS. N = number of .br-hero__photo-slide
   images; cycle length = N * 6s, each photo gets an equal 6s "turn" with a quick fade in/out either side.
   Every slide's keyframe is identical -- only animation-delay (0s, 6s, 12s, ...) staggers whose turn is active,
   which is what makes one photo's fade-out line up exactly with the next one's fade-in. If you add or remove
   a slide, add/remove a matching :nth-of-type delay rule (next multiple of 6s) and change 24s in both the
   animation-duration below and this comment. Currently 4 slides -> 24s full cycle. */
.br-hero__photo-slide {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	opacity: 0; animation: br-hero-crossfade 24s infinite;
}
.br-hero__photo-slide:first-of-type { opacity: 1; } /* static fallback: shown whenever animation is off (prefers-reduced-motion) */
.br-hero__photo-slide:nth-of-type(1) { animation-delay: 0s; }
.br-hero__photo-slide:nth-of-type(2) { animation-delay: 6s; }
.br-hero__photo-slide:nth-of-type(3) { animation-delay: 12s; }
.br-hero__photo-slide:nth-of-type(4) { animation-delay: 18s; }
@keyframes br-hero-crossfade {
	0% { opacity: 0; }
	3% { opacity: 1; }
	22% { opacity: 1; }
	25% { opacity: 0; }
	100% { opacity: 0; }
}
/* The circle: deep sea at 92% opacity. Worst case (white photo behind) it composites to about #1E4A63. */
.br-hero--home .br-hero__circle {
	box-sizing: border-box; --d: min(36rem, calc(100vw - 2rem)); width: var(--d); height: var(--d); overflow: hidden; border-radius: 50%;
	background: rgba(11, 58, 85, 0.92); color: #fff;
	box-shadow: 0 0 0 0.5rem rgba(255, 255, 255, 0.55), 0 24px 60px rgba(11, 58, 85, 0.35);
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	padding: 11%;
}
.br-hero--home .br-hero__circle > * { margin: 0 !important; max-width: 100%; }
.br-hero--home .br-hero__circle > * + * { margin-block-start: 1.4rem !important; }
.br-hero--home .br-hero__circle h1 { color: #fff; margin: 0; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.1; }
.br-hero--home .br-hero__circle h1 em { color: var(--wp--preset--color--sun); font-style: italic; font-weight: 500; }
.br-hero--home .br-hero__circle .br-hero__circle-sub { font-size: 1rem; line-height: 1.4; opacity: 0.88; }
.br-hero--home .br-hero__circle .wp-block-buttons { justify-content: center; }
.br-hero--home .br-hero__circle .wp-block-button__link { font-size: 1.0625rem; padding: 0.8rem 1.7rem; background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink); }
/* "Photo needed" label: small pill in the bottom-right corner of the photo area */
.br-hero__tag {
	position: absolute; right: 1rem; bottom: 1rem; margin: 0 !important; max-width: calc(100% - 2rem);
	display: inline-flex; align-items: center; gap: 0.45rem;
	background: rgba(255, 255, 255, 0.92); color: var(--wp--preset--color--ink);
	font-size: 0.8125rem; font-weight: 600; line-height: 1.3; padding: 0.35rem 0.8rem 0.35rem 0.45rem; border-radius: 999px;
}
.br-hero__tag-icon { display: inline-flex; flex-shrink: 0; }
.br-hero__tag-icon svg { width: 1.1rem; height: 1.1rem; }
/* TEMPORARY, REMOVE BEFORE LAUNCH: reference image in the home hero (see .br-photo-slot--ref above).
   The existing :has(img)::after dim still applies; this adds desaturation, a dashed inner frame and the ribbon. */
.br-hero__photo--ref img { filter: saturate(0.7) contrast(0.95); }
.br-hero__photo--ref::before { content: ""; position: absolute; inset: 0.75rem; z-index: 2; border: 2px dashed rgba(255, 255, 255, 0.85); border-radius: 1rem; pointer-events: none; }
.br-hero__photo--ref .br-ref-ribbon { top: 3.7rem; left: -4.2rem; width: 18rem; padding: 0.4rem 0; }
.br-hero__photo--ref .br-ref-ribbon__main { font-size: 1rem; }
.br-hero__photo--ref .br-ref-ribbon__sub { font-size: 0.8125rem; }
@media (min-width: 900px) {
	.br-hero__photo--ref .br-ref-ribbon { top: 4.4rem; left: -5.3rem; width: 22rem; padding: 0.5rem 0; }
	.br-hero__photo--ref .br-ref-ribbon__main { font-size: 1.2rem; }
	.br-hero__photo--ref .br-ref-ribbon__sub { font-size: 0.9375rem; }
}
/* Lead and timecard sit just under the photo, on sand */
.br-hero--home .br-hero__below {
	display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr;
	max-width: 74rem; margin-inline: auto !important; padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}
@media (min-width: 900px) { .br-hero--home .br-hero__below { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; } }
.br-hero--home .br-hero__below > * { margin: 0 !important; }
.br-hero--home .br-hero__below .br-timecard { margin-block: 0 !important; }
.br-hero__intro > * + * { margin-block-start: 0.75rem !important; }
.br-hero__intro .br-eyebrow { margin-bottom: 0; }
.br-hero__intro .br-hero__tagline {
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.375rem;
	line-height: 1.3; color: var(--wp--preset--color--sea);
}
.br-hero__intro .br-hero__kicker { font-size: 1.125rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--ink); }
.br-hero__intro .wp-block-buttons { margin-block-start: 1.25rem !important; }
@media (max-width: 599px) {
	.br-hero--home .br-hero__circle { padding: 11%; }
	.br-hero--home .br-hero__circle > * + * { margin-block-start: 1.1rem !important; }
	.br-hero--home .br-hero__circle .br-hero__circle-sub { font-size: 0.875rem; }
	.br-hero--home .br-hero__circle .wp-block-button__link { padding: 0.65rem 1.4rem; min-height: 2.75rem; }
}
/* Below ~360px the circle shrinks (see --d above); reclaim padding and trim the headline so it stays inside the curve at 320px and up. */
@media (max-width: 359px) {
	.br-hero--home .br-hero__circle { padding: 8%; }
	.br-hero--home .br-hero__circle h1 { font-size: 1.6rem; line-height: 1.15; }
	.br-hero--home .br-hero__circle .br-hero__circle-sub { font-size: 0.8125rem; }
	.br-hero--home .br-hero__circle .wp-block-button__link { padding: 0.5rem 1.1rem; min-height: 2.5rem; font-size: 0.9375rem; }
}

/* Photo frames and graceful slots */
.br-photo { margin: 0; }
.br-photo img { width: 100%; display: block; object-fit: cover; }
.br-photo--portrait img { border-radius: 1.25rem; aspect-ratio: 4 / 5; box-shadow: 0 20px 40px rgba(14, 42, 56, 0.22); }
.br-photo--wide img { border-radius: 1.25rem; aspect-ratio: 16 / 10; box-shadow: 0 20px 40px rgba(14, 42, 56, 0.22); }
.br-photo figcaption { font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin-top: 0.6rem; }
.br-bg-deep .br-photo figcaption { color: #D6E4EA; }

.br-split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .br-split { grid-template-columns: 1fr 1fr; gap: 4rem; } .br-split--flip > :first-child { order: 2; } }
.br-split > * { margin: 0 !important; }

/* Parking map */
.br-map img { border-radius: 1.25rem; border: 1px solid rgba(14, 42, 56, 0.15); width: 100%; }

/* Find us: a distinct "Getting here" band with a bigger heading and a bigger map.
   The band colour is set per page with a .br-bg-* class so it differs from its neighbours. */
.br-findus { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.br-findus .br-split { align-items: start; }
@media (min-width: 900px) { .br-findus .br-split { grid-template-columns: 1fr 1.2fr; gap: 3.5rem; } }
.br-findus h2 { font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.6rem); margin-block: 0 1rem; }
.br-findus .br-eyebrow { margin-block: 0 0.5rem; }
.br-findus .br-map-wrap {
	background: #fff; border-radius: 1.6rem; padding: 0.75rem;
	border: 1px solid rgba(14, 42, 56, 0.1); box-shadow: 0 20px 40px rgba(14, 42, 56, 0.14);
}
.br-findus .br-map { margin: 0; }
.br-findus .br-map figcaption { font-size: 0.9375rem; color: var(--wp--preset--color--muted); margin: 0.6rem 0.4rem 0.2rem; }

/* ============================================================
   FAQ (core/details)
   ============================================================ */
.wp-block-details { background: #fff; border: 1px solid rgba(14, 42, 56, 0.12); border-radius: 1rem; padding: 0; margin-block: 0.75rem; }
.wp-block-details summary { cursor: pointer; font-weight: 800; padding: 1.1rem 3rem 1.1rem 1.25rem; list-style: none; position: relative; min-height: 2.75rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 1.25rem; top: 50%; width: 0.65rem; height: 0.65rem; margin-top: -0.5rem;
	border-right: 3px solid var(--wp--preset--color--sea); border-bottom: 3px solid var(--wp--preset--color--sea); transform: rotate(45deg); transition: transform .2s;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -0.2rem; }
.wp-block-details > :not(summary) { padding: 0 1.25rem; }
.wp-block-details > :last-child { padding-bottom: 1.1rem; }
.wp-block-details > * + * { margin-block-start: 0.6rem; }

/* ============================================================
   Misc
   ============================================================ */
.br-quote { border-left: 4px solid var(--wp--preset--color--sun); padding-left: 1.25rem; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--subhead); line-height: 1.3; }
.br-cta-band { text-align: center; }
.br-cta-band .wp-block-buttons { justify-content: center; }
.br-cta-band p { margin-inline: auto; }
.br-tel { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.5rem; }
.br-page-title { padding-block: 3rem 1rem; }
.br-small { font-size: var(--wp--preset--font-size--small); }
.br-muted { color: var(--wp--preset--color--muted); }
.br-bg-deep .br-muted { color: #D6E4EA; }
.br-stack { display: grid; gap: 1.25rem; }
.br-stack > * { margin: 0 !important; }
.br-stack > h2 { margin-bottom: 0.25rem !important; }

/* ---- Round 2 fixes ---- */
.br-header .br-header__inner { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.br-header { padding: 0; }
.wp-block-post-content > * { margin-block: 0 !important; }

.br-bg-deep .br-card .br-meta, .br-bg-sea .br-card .br-meta { color: #D6E4EA; }
.br-bg-deep .br-card h3, .br-bg-deep .br-card p { color: #fff; }
.br-hero h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.7rem); }
.br-hero--page h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem); }
.wp-site-blocks > * { margin-block: 0 !important; }
.br-facts { margin-block: 1.25rem !important; }
.br-card > * { margin: 0; }
.br-card > * + * { margin-block-start: 0.6rem !important; }
.br-card .br-icon-wrap { margin-block-end: 0.25rem !important; }
.br-section > .br-measure, .br-hero .br-measure, .br-section > .br-steps {
	margin-inline-start: max(0px, calc((100% - 74rem) / 2)) !important;
	margin-inline-end: auto !important;
}
.br-section > .br-steps { max-width: 46rem; }
.br-hero-text > * { max-width: 100%; }
.wp-block-details summary { display: flex; align-items: center; padding-block: 0.8rem; }
.wp-block-details summary::after { margin-top: -0.35rem; }
.wp-block-details[open] summary::after { margin-top: -0.05rem; }
.br-section > .wp-block-image { margin-block-start: 1.5rem !important; }

/* ---- Round 3: side panels and wider two-column sections ---- */
.br-split--top { align-items: start; }
@media (min-width: 900px) { .br-split--wide { grid-template-columns: 1.55fr 1fr; gap: 3rem; } }
.br-aside {
	background: var(--wp--preset--color--foam); border: 1px solid rgba(14, 42, 56, 0.1); border-radius: 1.25rem;
	padding: 1.5rem 1.6rem; box-shadow: 0 10px 30px rgba(14, 42, 56, 0.06);
}
.br-bg-foam .br-aside, .br-bg-sand .br-aside { background: #fff; }
.br-aside > * { margin: 0 !important; }
.br-aside > * + * { margin-block-start: 0.85rem !important; }
.br-aside h3 { font-size: 1.25rem; }
.br-aside > .br-facts { margin-block: 0.85rem 0 !important; }
.br-aside ul.br-links { list-style: none; padding: 0; margin: 0.85rem 0 0 !important; display: grid; gap: 0.5rem; }
.br-aside ul.br-links a { font-weight: 700; }
.br-aside hr { border: 0; border-top: 1px solid rgba(14, 42, 56, 0.12); width: 100%; }
.br-aside dl { margin: 0; display: grid; gap: 0.9rem; }
.br-aside dt { font-weight: 800; }
.br-aside dd { margin: 0.15rem 0 0; }
@media (min-width: 900px) { .br-aside--sticky { position: sticky; top: calc(var(--br-header-h) + 0.5rem); } }
.br-split > .br-split__main > * + * { margin-block-start: 1.1rem; }
.br-split__main > .wp-block-details { margin-block: 0.75rem; }
.br-split__main > *:first-child { margin-block-start: 0; }

/* ---- Round 4: icon beside heading on cards, not stacked above it ---- */
.br-card:has(> .br-icon-wrap) {
	display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; row-gap: 0.6rem; align-items: center;
}
.br-card:has(> .br-icon-wrap) > .br-icon-wrap { grid-column: 1; grid-row: 1; margin: 0 !important; }
.br-card:has(> .br-icon-wrap) > h3 { grid-column: 2; grid-row: 1; margin: 0 !important; }
.br-card:has(> .br-icon-wrap) > :not(.br-icon-wrap):not(h3) { grid-column: 1 / -1; margin: 0 !important; }
