/*
Theme Name: Springwood Hand Car Wash
Theme URI: http://localhost/springwood
Author: Springwood Hand Car Wash
Description: A single page landing site for Springwood Hand Car Wash, Braintree, Essex. Valet packages as drop downs, offer marquee, gallery, reviews, opening hours and contact details.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: springwood
*/

/* -------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------- */

:root {
	--ink: #04182c;          /* deepest navy, page base */
	--ink-2: #072542;        /* raised dark surface */
	--ink-3: #0d3760;        /* dark surface, hover */

	--blue: #0e6dbf;         /* signage blue */
	--blue-bright: #2196f3;
	--sky: #6dd0ff;
	--foam: #eaf5ff;

	--amber: #ffb020;
	--amber-soft: #ffd166;
	--red: #e63946;

	--paper: #f4f8fc;        /* light section background */
	--text: #0b2239;         /* body text on light */
	--text-soft: #4b6479;
	--line: #d9e6f2;
	--line-dark: rgba(255, 255, 255, .14);
	--white: #fff;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 18px 40px -22px rgba(3, 22, 42, .45);
	--shadow-lg: 0 36px 80px -34px rgba(3, 22, 42, .6);
	--wrap: 1200px;

	--font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--mono: "Consolas", "SF Mono", ui-monospace, monospace;
}

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

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
	line-height: 1.1;
	margin: 0 0 .5em;
	letter-spacing: -.025em;
	font-weight: 800;
}

h2 {
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1rem;
}

a {
	color: inherit;
}

/* Both list types: the steps strip is an <ol>, whose default 40px inline
   padding pushed it out of alignment and caused overflow on small screens. */
ul,
ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wrap {
	width: min(100% - 2.5rem, var(--wrap));
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--white);
	color: var(--ink);
	padding: .75rem 1.25rem;
	z-index: 200;
	font-weight: 700;
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--sky);
	outline-offset: 3px;
}

/* Scroll reveal (added by app.js; no-JS pages stay visible). */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
	transition-delay: var(--reveal-delay, 0ms);
}

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

/* -------------------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .9rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	white-space: nowrap;
	border: 2px solid transparent;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-lg {
	padding: 1.05rem 2rem;
	font-size: 1.05rem;
}

.btn-primary {
	background: var(--blue-bright);
	color: var(--white);
	box-shadow: 0 14px 30px -14px rgba(33, 150, 243, .9);
}

.btn-primary:hover {
	background: #3aa5f7;
}

.btn-light {
	background: var(--white);
	color: var(--ink);
}

.btn-light:hover {
	background: var(--foam);
}

.btn-outline {
	background: rgba(255, 255, 255, .06);
	color: var(--white);
	border-color: rgba(255, 255, 255, .45);
}

.btn-outline:hover {
	background: rgba(255, 255, 255, .16);
}

.btn-outline-dark {
	background: transparent;
	color: var(--ink);
	border-color: var(--ink);
}

.btn-outline-dark:hover {
	background: var(--ink);
	color: var(--white);
}

/* Live / closed indicator dot. */
.pip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
	display: inline-block;
}

.pip-live {
	background: #3ddc84;
	box-shadow: 0 0 0 0 rgba(61, 220, 132, .7);
	animation: pip 2.2s infinite;
}

.pip-off {
	background: var(--amber);
}

@keyframes pip {
	70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
	100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.stars {
	display: inline-flex;
	gap: 2px;
}

.stars svg {
	width: 16px;
	height: 16px;
	fill: var(--amber);
	flex: none;
}

/* Numbered section label, e.g. "01 / ABOUT US". */
.kicker {
	display: flex;
	align-items: center;
	gap: .7rem;
	font-family: var(--mono);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .74rem;
	font-weight: 700;
	color: var(--blue);
	margin-bottom: 1rem;
}

.kicker span {
	background: var(--blue);
	color: var(--white);
	padding: .2rem .5rem;
	border-radius: 4px;
	letter-spacing: .08em;
}

.kicker::after {
	content: "";
	height: 1px;
	flex: 1;
	max-width: 90px;
	background: currentColor;
	opacity: .35;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	transition: background-color .3s ease, backdrop-filter .3s ease, border-color .3s ease;
	border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
	background: rgba(4, 24, 44, .88);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--line-dark);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: .6rem 0;
}

.brand {
	display: block;
	line-height: 0;
}

.brand img {
	height: 72px;
	width: auto;
	transition: height .3s ease;
}

.is-stuck .brand img {
	height: 58px;
}

.header-nav {
	display: flex;
	gap: 1.7rem;
	margin-left: auto;
	font-weight: 600;
	font-size: .95rem;
}

.header-nav a {
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	padding-bottom: 3px;
	border-bottom: 2px solid transparent;
}

.header-nav a:hover {
	color: var(--white);
	border-bottom-color: var(--sky);
}

.header-call {
	padding: .55rem 1.15rem;
	font-size: .93rem;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	background: var(--ink);
	color: var(--white);
	padding: clamp(9rem, 16vw, 12rem) 0 0;
	overflow: hidden;
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 38%;
}

/* Darkens the photo enough for white text, warm at the top like the brief. */
.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(4, 18, 34, .82) 0%, rgba(4, 18, 34, .68) 45%, rgba(4, 18, 34, .95) 100%),
		linear-gradient(90deg, rgba(4, 18, 34, .9) 0%, rgba(4, 18, 34, .3) 65%, transparent 100%);
}

/* Faint engineering grid over the photo. */
.hero-grid {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 88px 88px;
	mask-image: radial-gradient(120% 90% at 20% 20%, #000 30%, transparent 78%);
}

.hero-inner {
	position: relative;
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--mono);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: .74rem;
	font-weight: 700;
	padding: .55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .28);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(6px);
	margin-bottom: 1.75rem;
}

.hero-title {
	font-size: clamp(2.7rem, 8.2vw, 6rem);
	font-weight: 900;
	letter-spacing: -.04em;
	line-height: 1.18;
	margin: 0 0 1.5rem;
	max-width: 15ch;
}

.mark {
	position: relative;
	color: var(--sky);
	white-space: nowrap;
}

/* Hand-drawn stroke under the accent words. Sits clear of descenders. */
.underline {
	position: absolute;
	left: -.03em;
	bottom: -.2em;
	/* Explicit width: an SVG left on `auto` sizes from its own aspect ratio
	   instead of stretching to the word. */
	width: calc(100% + .06em);
	height: .14em;
	overflow: visible;
}

.underline path {
	fill: none;
	stroke: var(--red);
	stroke-width: 7;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.lede {
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	color: rgba(255, 255, 255, .84);
	max-width: 46ch;
	margin-bottom: 2.25rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .9rem 1.25rem;
}

.trust {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-size: .93rem;
	color: rgba(255, 255, 255, .8);
}

/* Vertical "scroll to explore" rail on the right. */
.scroll-hint {
	position: absolute;
	right: 1.6rem;
	top: 45%;
	margin: 0;
	writing-mode: vertical-rl;
	font-family: var(--mono);
	text-transform: uppercase;
	letter-spacing: .35em;
	font-size: .66rem;
	color: rgba(255, 255, 255, .5);
}

.scroll-hint span {
	display: block;
	padding-bottom: 4.5rem;
	position: relative;
}

.scroll-hint span::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 1px;
	height: 3.5rem;
	background: linear-gradient(rgba(255, 255, 255, .5), transparent);
}

/* Stat tiles across the bottom of the hero. */
.stat-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	border-bottom: 0;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	backdrop-filter: blur(10px);
	overflow: hidden;
}

.stat-row li {
	padding: 1.5rem 1.75rem;
	border-left: 1px solid rgba(255, 255, 255, .14);
}

.stat-row li:first-child {
	border-left: 0;
}

.stat-top {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 .3rem;
}

.stat-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(33, 150, 243, .18);
	border: 1px solid rgba(109, 208, 255, .35);
	color: var(--sky);
}

.stat-icon .icon {
	width: 20px;
	height: 20px;
}

.stat-row strong {
	font-size: clamp(1.3rem, 2.5vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -.02em;
}

.stat-label {
	font-size: .92rem;
	color: rgba(255, 255, 255, .72);
}

/* -------------------------------------------------------------------------
   Offer marquee
   ------------------------------------------------------------------------- */

.marquee {
	background: linear-gradient(90deg, var(--blue-bright), var(--sky) 50%, var(--blue-bright));
	color: #04182c;
	padding: .5rem 0;
	overflow: hidden;
	border-block: 1px solid rgba(4, 24, 44, .35);
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
	animation-play-state: paused;
}

.marquee-run {
	display: flex;
	align-items: center;
	flex: none;
}

.marquee-item {
	font-size: clamp(.8rem, 1.2vw, .95rem);
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 0 .9rem;
	white-space: nowrap;
}

.marquee-sep {
	font-size: .55rem;
	opacity: .5;
}

@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-33.333%); }
}

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

.section {
	padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-dark {
	position: relative;
	background: var(--ink);
	color: var(--white);
}

.section-dark .kicker {
	color: var(--sky);
}

.section-dark .kicker span {
	background: var(--blue-bright);
}

.section-head {
	max-width: 52ch;
	margin-bottom: 2.75rem;
}

.section-intro {
	color: var(--text-soft);
	font-size: 1.05rem;
	margin: 0;
}

.section-dark .section-intro {
	color: rgba(255, 255, 255, .78);
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */

.about-grid {
	display: grid;
	grid-template-columns: .92fr 1.08fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

.about-media {
	position: relative;
}

.about-media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

/* Small floating badge overlapping the photo. */
.about-tag {
	position: absolute;
	right: -18px;
	bottom: 28px;
	background: var(--white);
	border-radius: var(--radius);
	padding: .9rem 1.2rem;
	box-shadow: var(--shadow);
	border-left: 4px solid var(--blue-bright);
}

.about-tag strong {
	display: block;
	font-size: 1.05rem;
	line-height: 1.2;
}

.about-tag span {
	font-size: .84rem;
	color: var(--text-soft);
}

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

.about-copy h2 {
	color: var(--text);
	max-width: 18ch;
}

.about-points {
	display: grid;
	gap: .55rem;
	margin-top: 1.75rem;
}

.about-points li {
	position: relative;
	padding-left: 2rem;
	font-weight: 600;
	color: var(--text);
}

.about-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 16px;
	height: 9px;
	border-left: 2.5px solid var(--blue-bright);
	border-bottom: 2.5px solid var(--blue-bright);
	transform: rotate(-45deg);
}

/* -------------------------------------------------------------------------
   Services (drop downs)
   ------------------------------------------------------------------------- */

.services {
	display: grid;
	gap: .75rem;
	border-top: 1px solid var(--line-dark);
}

.service {
	border-bottom: 1px solid var(--line-dark);
}

.service > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.4rem .5rem;
	transition: padding-left .2s ease, color .2s ease;
}

.service > summary::-webkit-details-marker {
	display: none;
}

.service > summary:hover {
	padding-left: 1.1rem;
	color: var(--sky);
}

.service-num {
	font-family: var(--mono);
	font-size: .8rem;
	font-weight: 700;
	color: rgba(255, 255, 255, .4);
	flex: none;
}

.service-name {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	font-size: clamp(1.25rem, 2.8vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -.025em;
}

.flag {
	font-family: var(--mono);
	font-size: .66rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	padding: .3rem .6rem;
	border-radius: 4px;
	background: rgba(33, 150, 243, .18);
	color: var(--sky);
	border: 1px solid rgba(33, 150, 243, .4);
}

.flag-offer {
	background: rgba(255, 176, 32, .16);
	color: var(--amber-soft);
	border-color: rgba(255, 176, 32, .45);
}

.chevron {
	margin-left: auto;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	position: relative;
	transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.chevron::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.service[open] .chevron {
	transform: rotate(180deg);
	background: var(--blue-bright);
	border-color: var(--blue-bright);
	color: var(--white);
}

.service-body {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 2rem;
	padding: .25rem .5rem 2.25rem;
	align-items: center;
}

.service-summary {
	color: rgba(255, 255, 255, .74);
	max-width: 50ch;
}

.ticks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
	gap: .45rem 1.5rem;
}

.ticks li {
	position: relative;
	padding-left: 1.7rem;
	font-weight: 600;
}

.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 15px;
	height: 8px;
	border-left: 2.5px solid var(--sky);
	border-bottom: 2.5px solid var(--sky);
	transform: rotate(-45deg);
}

.service-photo {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line-dark);
}

/* The board photos are cropped to the board itself, so show them whole —
   a forced aspect ratio would clip the vehicle-size row off the bottom. */
.service-photo img {
	width: 100%;
	height: auto;
}

.service-offer > summary .service-num {
	color: var(--amber);
}

/* -------------------------------------------------------------------------
   Steps
   ------------------------------------------------------------------------- */

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
	counter-reset: step;
}

.step {
	position: relative;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 2.25rem 1.75rem 1.75rem;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.step::after {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--blue-bright), var(--sky));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s ease;
}

.step:hover::after {
	transform: scaleX(1);
}

.step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--white);
	font-family: var(--mono);
	font-weight: 700;
	font-size: .9rem;
	margin-bottom: 1.1rem;
}

.step h3 {
	margin-bottom: .4rem;
}

.step p {
	color: var(--text-soft);
	margin: 0;
	font-size: .97rem;
}

/* -------------------------------------------------------------------------
   Gallery
   ------------------------------------------------------------------------- */

/* Feature layout: the lead photo holds a 2x2 block and the remaining eight
   tiles fill around it, which comes to exactly 12 cells across 4 columns.
   Rows are a fixed height so every edge lines up. */
.gallery {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(135px, 13.5vw, 195px);
	gap: 1rem;
}

.gallery figure {
	margin: 0;
	position: relative;
	height: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line-dark);
	background: var(--ink-2);
}

.gallery .is-feature {
	grid-column: span 2;
	grid-row: span 2;
}

.gallery img {
	width: 100%;
	height: 100%;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1), filter .4s ease;
}

.gallery .fit-cover img {
	object-fit: cover;
}

.gallery .fit-contain img {
	object-fit: contain;
	padding: .5rem;
}

.gallery figure:hover img {
	transform: scale(1.06);
	filter: saturate(1.1);
}

.gallery figure::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(4, 18, 34, .5));
	opacity: 0;
	transition: opacity .4s ease;
	pointer-events: none;
}

.gallery figure:hover::after {
	opacity: 1;
}

/* -------------------------------------------------------------------------
   Decorative wash bubbles
   ------------------------------------------------------------------------- */

.has-bubbles {
	position: relative;
	overflow: hidden;
}

.bubbles {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: .7;
	/* Travel distance. Fixed rather than viewport based: tying this to vh
	   made bubbles overshoot the section on tall screens. */
	--rise: 1150px;
}

/* Fainter set, for sections where bubbles sit behind cards and body copy. */
.bubbles-soft {
	opacity: .3;
}

/* Keep the section's real content above the drifting bubbles. */
.has-bubbles > .wrap {
	position: relative;
	z-index: 1;
}

.bubble {
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .45);
	/* Ends on a light tint rather than transparent, so the whole bubble
	   reads lighter than the section behind it instead of as a dark orb. */
	background:
		radial-gradient(circle at 30% 26%,
			rgba(255, 255, 255, .8),
			rgba(255, 255, 255, .26) 28%,
			rgba(255, 255, 255, .12) 52%,
			rgba(160, 220, 255, .16) 100%);
	box-shadow:
		inset -5px -8px 16px rgba(109, 208, 255, .3),
		0 0 26px rgba(109, 208, 255, .18);
	animation: bubble-rise linear infinite;
}

/* Size, position and pace varied per bubble so the drift reads naturally. */
.bubble.b1 { width:  86px; height:  86px; left:  3%; bottom: -110px; animation-duration: 23s; animation-delay:  0s; }
.bubble.b2 { width:  38px; height:  38px; left: 14%; bottom: -110px; animation-duration: 17s; animation-delay: -6s; }
.bubble.b3 { width: 130px; height: 130px; left: 26%; bottom: -170px; animation-duration: 31s; animation-delay: -3s; }
.bubble.b4 { width:  26px; height:  26px; left: 39%; bottom: -110px; animation-duration: 14s; animation-delay: -9s; }
.bubble.b5 { width:  62px; height:  62px; left: 52%; bottom: -110px; animation-duration: 26s; animation-delay: -14s; }
.bubble.b6 { width:  44px; height:  44px; left: 66%; bottom: -110px; animation-duration: 19s; animation-delay: -2s; }
.bubble.b7 { width: 104px; height: 104px; left: 78%; bottom: -150px; animation-duration: 28s; animation-delay: -11s; }
.bubble.b8 { width:  30px; height:  30px; left: 88%; bottom: -110px; animation-duration: 16s; animation-delay: -5s; }
.bubble.b9 { width:  70px; height:  70px; left: 95%; bottom: -110px; animation-duration: 24s; animation-delay: -18s; }

@keyframes bubble-rise {
	from {
		transform: translate3d(0, 0, 0) scale(.85);
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	85% {
		opacity: 1;
	}
	to {
		transform: translate3d(28px, calc(var(--rise) * -1), 0) scale(1.1);
		opacity: 0;
	}
}

/* -------------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------------- */

.reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.review {
	margin: 0;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 1.9rem;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
}

.review::before {
	content: "\201C";
	position: absolute;
	top: -.15em;
	right: .5rem;
	font-size: 6rem;
	line-height: 1;
	color: var(--blue);
	opacity: .1;
	font-family: Georgia, serif;
}

.review blockquote {
	margin: 0;
	font-size: 1.02rem;
	color: var(--text);
	flex: 1;
}

.review figcaption strong {
	display: block;
	font-size: 1rem;
}

.review figcaption span {
	font-size: .88rem;
	color: var(--text-soft);
}

/* -------------------------------------------------------------------------
   Hours and location cards
   ------------------------------------------------------------------------- */

.two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.25rem;
	align-items: start;
}

.card {
	background: var(--white);
	color: var(--text);
	border-radius: var(--radius-lg);
	padding: clamp(1.6rem, 3vw, 2.25rem);
	box-shadow: var(--shadow-lg);
}

.card h3 {
	font-size: 1.4rem;
	margin-bottom: .9rem;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 700;
	font-size: .9rem;
	padding: .35rem .85rem;
	border-radius: 999px;
	background: var(--foam);
	border: 1px solid var(--line);
	margin: 0 0 1.25rem;
}

.status-open {
	color: #0d7a49;
}

.status-closed {
	color: #96560a;
}

.hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.hours th,
.hours td {
	padding: .62rem 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-weight: 600;
}

.hours td {
	text-align: right;
	color: var(--text-soft);
}

.hours tr:last-child th,
.hours tr:last-child td {
	border-bottom: 0;
}

.hours .is-today th,
.hours .is-today td {
	color: var(--blue);
	font-weight: 800;
}

.fine {
	margin: 1rem 0 0;
	font-size: .9rem;
	color: var(--text-soft);
}

address {
	font-style: normal;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.55;
	margin-bottom: 1.4rem;
}

address span {
	display: block;
}

.card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .7rem;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Visit us: details column beside the contact form
   ------------------------------------------------------------------------- */

/* Both columns stretch to the same height, and the Find us card takes up
   the slack so its bottom edge lines up with the form. */
.visit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	align-items: stretch;
}

.visit-details {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.visit-details .card:last-child {
	flex: 1;
}

.form-intro {
	color: var(--text-soft);
	margin-bottom: 1.4rem;
}

.contact-form .field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	margin: 0 0 1rem;
}

.contact-form label {
	font-size: .88rem;
	font-weight: 700;
	color: var(--text);
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--text);
	background: #fbfdff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: .75rem .9rem;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form textarea {
	resize: vertical;
	min-height: 110px;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--blue-bright);
	box-shadow: 0 0 0 3px rgba(33, 150, 243, .18);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
	border-color: var(--red);
}

.field-err {
	font-size: .85rem;
	font-weight: 600;
	color: #c1121f;
}

/* Spam trap: hidden from people but still reachable by bots. */
.field-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.btn-block {
	width: 100%;
	justify-content: center;
}

.form-note {
	border-radius: 10px;
	padding: .8rem 1rem;
	font-size: .95rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
}

.form-ok {
	background: #e7f8ef;
	border: 1px solid #a8e6c4;
	color: #0d7a49;
}

.form-bad {
	background: #fdecee;
	border: 1px solid #f5bcc3;
	color: #c1121f;
}

/* -------------------------------------------------------------------------
   Assurance band
   ------------------------------------------------------------------------- */

.assurance {
	background: linear-gradient(120deg, var(--blue) 0%, var(--ink-3) 55%, var(--ink) 100%);
	color: var(--white);
	padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.assurance-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.75rem;
}

.assurance h2 {
	margin-bottom: .3rem;
	max-width: 20ch;
}

.assurance p {
	margin: 0;
	color: rgba(255, 255, 255, .85);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
	background: #03121f;
	color: var(--white);
	padding: clamp(2.75rem, 5vw, 4rem) 0 1.5rem;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 2.5rem;
}

.footer-brand img {
	height: 92px;
	width: auto;
	margin-bottom: 1rem;
}

.footer-brand p,
.footer-col p {
	color: rgba(255, 255, 255, .72);
	font-size: .95rem;
	margin: 0 0 .75rem;
}

.footer-col h3 {
	font-family: var(--mono);
	color: var(--sky);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .72rem;
	margin-bottom: .9rem;
}

.footer-col strong,
.footer-col a {
	color: var(--white);
}

.footer-bottom {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-bottom p {
	margin: 0;
	font-size: .85rem;
	color: rgba(255, 255, 255, .5);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1080px) {
	.gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 960px) {
	.visit-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.about-grid {
		grid-template-columns: 1fr;
	}

	.about-media img {
		aspect-ratio: 16 / 10;
	}

	.about-tag {
		right: 16px;
	}

	.service-body {
		grid-template-columns: 1fr;
	}

	.service-photo {
		max-width: 420px;
	}

	.scroll-hint {
		display: none;
	}

	.footer-inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 820px) {
	.header-nav {
		display: none;
	}

	.header-call {
		margin-left: auto;
	}

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

	.stat-row {
		grid-template-columns: 1fr;
	}

	.stat-row li {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .14);
		padding: 1.15rem 1.35rem;
	}

	.stat-row li:first-child {
		border-top: 0;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 16px;
	}

	.brand img,
	.is-stuck .brand img {
		height: 52px;
	}

	.hero {
		padding-top: 7.5rem;
	}

	.hero-title {
		max-width: none;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.hero-actions .btn,
	.card-actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.trust {
		width: 100%;
	}

	.service > summary {
		gap: .8rem;
		padding: 1.15rem .25rem;
	}
}

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

	.marquee-track {
		animation: none;
	}

	/* Drifting bubbles are decoration only, so drop them entirely rather
	   than freezing them mid-rise. */
	.bubbles {
		display: none;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
