/*
Theme Name:        RLT Automotive
Theme URI:         https://rltautomotive.co.uk
Author:            RLT Automotive
Description:       A fast, mobile-first theme made for RLT Automotive, an independent garage in Southport. Business details, services, opening hours, reviews and colours are all edited in Appearance → Customize → RLT Automotive. Includes a built-in booking form, click-to-call buttons, an "open now" badge, Google map and local-business data for Google.
Version:           1.0.5
Requires at least: 6.0
Tested up to:      6.8
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:       rlt
*/

/* ==========================================================================
   Fonts (self-hosted – no Google Fonts requests; SIL Open Font License)
   ========================================================================== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--rlt-primary: #253993;
	--rlt-accent: #ffdd00;
	--rlt-dark: #1a1a1a;

	--rlt-primary-deep: color-mix(in srgb, var(--rlt-primary) 72%, #000);
	--rlt-primary-soft: color-mix(in srgb, var(--rlt-primary) 9%, #fff);
	--rlt-text: #2a2e37;
	--rlt-muted: #5d6472;
	--rlt-light: #f5f6fa;
	--rlt-border: #e2e5ee;
	--rlt-white: #fff;
	--rlt-success: #1f9d55;
	--rlt-danger: #c0392b;

	--font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 2px 8px rgba(16, 24, 64, .05);
	--shadow: 0 10px 30px -10px rgba(16, 24, 64, .22);
	--shadow-lg: 0 30px 60px -20px rgba(10, 18, 60, .45);

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--header-h: 84px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--rlt-text);
	background: var(--rlt-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--rlt-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rlt-primary-deep); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	color: var(--rlt-dark);
	margin: 0 0 .5em;
	letter-spacing: .005em;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--rlt-primary); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible { outline-color: var(--rlt-accent); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--rlt-accent); color: var(--rlt-dark);
	padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: .8em 1.3em;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--lg { font-size: 1.075rem; padding: .95em 1.6em; }
.btn--block { width: 100%; }

.btn--primary { background: var(--rlt-primary); color: #fff; }
.btn--primary:hover { background: var(--rlt-primary-deep); color: #fff; box-shadow: var(--shadow); }

.btn--accent { background: var(--rlt-accent); color: var(--rlt-dark); }
.btn--accent:hover { background: color-mix(in srgb, var(--rlt-accent) 85%, #fff); color: var(--rlt-dark); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--rlt-accent) 70%, transparent); }

.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ==========================================================================
   Top bar & header
   ========================================================================== */
.topbar { background: var(--rlt-dark); color: rgba(255, 255, 255, .78); font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 28px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.topbar__item .icon { color: var(--rlt-accent); width: 15px; height: 15px; }
a.topbar__item:hover { color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--rlt-border);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16, 24, 64, .25); }
.admin-bar .site-header { top: 32px; }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex: none; }
.site-header__brand .brand__img { height: 68px; width: auto; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav .menu a {
	display: block; padding: 10px 14px; border-radius: 999px;
	color: var(--rlt-dark); font-weight: 600; text-decoration: none;
	transition: background-color .2s, color .2s;
}
.main-nav .menu a:hover,
.main-nav .current-menu-item > a { background: var(--rlt-primary-soft); color: var(--rlt-primary); }
.main-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.main-nav__cta { display: none; }

.site-header__call { padding: .55em 1.1em .55em .9em; gap: .7em; }
.site-header__call .icon { width: 36px; height: 36px; padding: 8px; background: rgba(255, 255, 255, .16); border-radius: 50%; }
.site-header__call-label { display: none; }
.site-header__call-number { font-size: 1.05rem; letter-spacing: .01em; }

.nav-toggle {
	display: none; margin-left: 4px;
	width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--rlt-border); background: #fff; color: var(--rlt-dark);
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	--rlt-hero-image: none;
	position: relative;
	color: #fff;
	background:
		linear-gradient(115deg, var(--rlt-primary-deep) 0%, var(--rlt-primary) 62%, color-mix(in srgb, var(--rlt-primary) 85%, #fff) 100%);
	overflow: hidden;
	isolation: isolate;
}
.hero::before {
	/* fine diagonal texture */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 18px);
}
.hero::after {
	/* yellow diagonal accent, echoing the angled shapes on the old site */
	content: ""; position: absolute; z-index: -1;
	right: -8%; bottom: -30%; width: 46%; height: 160%;
	background: linear-gradient(180deg, color-mix(in srgb, var(--rlt-accent) 22%, transparent), transparent 70%);
	transform: skewX(-18deg);
	border-left: 6px solid var(--rlt-accent);
	opacity: .9;
}
.hero--image {
	background:
		linear-gradient(100deg, color-mix(in srgb, var(--rlt-primary-deep) 94%, transparent) 0%, color-mix(in srgb, var(--rlt-primary) 82%, transparent) 55%, color-mix(in srgb, var(--rlt-primary) 55%, transparent) 100%),
		var(--rlt-hero-image) center / cover no-repeat,
		var(--rlt-primary);
}

.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
	gap: clamp(32px, 5vw, 72px); align-items: center;
	padding-top: clamp(56px, 8vw, 112px);
	padding-bottom: clamp(104px, 11vw, 150px);
}

.hero__kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: .875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--rlt-accent);
	background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .14);
	padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 22px;
}
.hero__kicker .icon { width: 16px; height: 16px; }

.hero__title {
	color: #fff;
	font-size: clamp(2.6rem, 6.2vw, 4.75rem);
	line-height: .98; letter-spacing: -.005em;
	margin-bottom: 20px;
	text-wrap: balance;
}
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 38em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__reviews {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
	color: #fff; font-weight: 600; text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px;
}
.hero__reviews:hover { color: #fff; border-bottom-color: var(--rlt-accent); }
.hero__reviews .icon { width: 18px; height: 18px; }
.hero__reviews .hero__reviews-star { color: var(--rlt-accent); }
.hero__reviews-stars { display: inline-flex; gap: 2px; }
.hero__reviews--rated strong { font-size: 1.05em; }
.hero__reviews .icon:last-child { transition: transform .2s; }
.hero__reviews:hover .icon:last-child { transform: translateX(3px); }

.hero__card {
	background: #fff; color: var(--rlt-text);
	border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 26px 26px 18px;
	border-top: 5px solid var(--rlt-accent);
}
.hero__card-title { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0; }
.hero__card-title .icon { color: var(--rlt-primary); }
.hero__card-link {
	display: flex; gap: 12px; align-items: flex-start;
	margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--rlt-border);
	color: var(--rlt-text); text-decoration: none; font-weight: 600;
}
.hero__card-link .icon { color: var(--rlt-primary); margin-top: 3px; }
.hero__card-link small { display: block; font-weight: 500; color: var(--rlt-primary); }
.hero__card-link:hover small { text-decoration: underline; }

.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

/* Open now badge */
.open-status {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
	padding: 5px 11px; border-radius: 999px;
	background: #eef0f4; color: var(--rlt-muted);
}
.open-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { background: #e4f6ec; color: var(--rlt-success); }
.open-status.is-open .open-status__dot { animation: rlt-pulse 2s infinite; }
.open-status.is-closed { background: #fbeceb; color: var(--rlt-danger); }
@keyframes rlt-pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }

/* Hours list */
.hours-list { margin: 0; }
.hours-list__row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 10px 0; border-bottom: 1px dashed var(--rlt-border);
}
.hours-list__row:last-child { border-bottom: 0; }
.hours-list dt { font-weight: 600; color: var(--rlt-dark); }
.hours-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours-list dd small { display: block; font-size: .8125rem; color: var(--rlt-muted); }
.hours-list__row.is-closed dd { color: var(--rlt-muted); }
.hours-list__short { display: none; }
.hours-list__row.is-today { position: relative; }
.hours-list__row.is-today dt::after {
	content: "Today"; margin-left: 8px; vertical-align: 2px;
	font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	background: var(--rlt-accent); color: var(--rlt-dark); padding: 2px 7px; border-radius: 4px;
}

/* ==========================================================================
   Highlights strip
   ========================================================================== */
.highlights { position: relative; z-index: 2; margin-top: -64px; }
.highlights__grid {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	border: 1px solid var(--rlt-border);
	padding: 0;
}
.highlight { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.highlight + .highlight { border-left: 1px solid var(--rlt-border); }
.highlight__icon {
	flex: none; display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 12px;
	background: var(--rlt-accent); color: var(--rlt-dark);
}
.highlight__icon .icon { width: 22px; height: 22px; }
.highlight__title { font-size: 1.25rem; margin: 2px 0 4px; }
.highlight__text { font-size: .9375rem; color: var(--rlt-muted); margin: 0; line-height: 1.45; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section) 0; }
.section--light { background: var(--rlt-light); }
.services.section { padding-top: calc(var(--section) - 8px); }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--rlt-primary); margin-bottom: 12px;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--rlt-accent); }
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.25rem); margin-bottom: 14px; text-wrap: balance; }
.section-intro { color: var(--rlt-muted); font-size: 1.125rem; margin: 0; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--rlt-border); border-radius: var(--radius);
	padding: 30px 28px 26px;
	transition: transform .25s, box-shadow .25s, border-color .25s;
	overflow: hidden;
}
.service-card::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: var(--rlt-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon {
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
	background: var(--rlt-primary); color: #fff; margin-bottom: 20px;
	box-shadow: 0 10px 20px -10px var(--rlt-primary);
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card__title { font-size: 1.625rem; margin-bottom: 8px; }
.service-card__text { color: var(--rlt-muted); margin-bottom: 18px; }
.service-card__link {
	margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; text-decoration: none; color: var(--rlt-primary);
}
.service-card__link .icon { width: 18px; height: 18px; transition: transform .2s; }
.service-card__link:hover .icon { transform: translateX(4px); }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.about .kicker { justify-content: flex-start; }
.about__text { font-size: 1.125rem; color: var(--rlt-muted); }
.about__text p:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--rlt-border); border-radius: var(--radius); padding: 16px 18px; }
.step__num {
	flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--rlt-accent); color: var(--rlt-dark); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
}
.step__title { font-size: 1.25rem; margin: 2px 0 2px; }
.step__text { margin: 0; color: var(--rlt-muted); font-size: .975rem; }

.about__media { position: relative; }
.about__img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.about__badge {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	aspect-ratio: 4 / 4.4; border-radius: var(--radius);
	background: linear-gradient(150deg, var(--rlt-primary) 0%, var(--rlt-primary-deep) 100%);
	color: rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg); padding: 40px;
}
.about__badge::before {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 18px);
}
.about__badge::after {
	content: ""; position: absolute; z-index: -1; left: -20%; bottom: -10%; width: 140%; height: 22%;
	background: var(--rlt-accent); transform: rotate(-8deg); opacity: .95;
}
.about__badge img { width: min(52%, 220px); margin-bottom: 22px; }
.about__badge p { margin: 0 0 12%; font-weight: 600; letter-spacing: .02em; }

/* Reviews */
.reviews__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.reviews__grid > .review { flex: 1 1 300px; max-width: calc((100% - 48px) / 3); }
.review { margin: 0; background: #fff; border: 1px solid var(--rlt-border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.review__stars { display: flex; gap: 2px; color: #f5b301; margin-bottom: 14px; }
.review__stars .icon { width: 18px; height: 18px; }
.review__text { margin: 0 0 16px; font-size: 1.0625rem; }
.review__text p { margin: 0; }
.review__name { margin-top: auto; font-weight: 600; color: var(--rlt-dark); }
.reviews__more { text-align: center; margin: 36px 0 0; }

/* CTA band */
.cta-band {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(110deg, var(--rlt-primary-deep), var(--rlt-primary));
	color: #fff; padding: clamp(44px, 6vw, 72px) 0;
}
.cta-band::after {
	content: ""; position: absolute; z-index: -1; top: -40%; left: 56%; width: 56px; height: 180%;
	background: var(--rlt-accent); transform: skewX(-18deg); opacity: .9;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(2rem, 4vw, 2.875rem); margin-bottom: 6px; }
.cta-band__text { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.125rem; max-width: 34em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--rlt-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 34px); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 1.625rem; margin-bottom: 18px; }
.card__head .card__title { margin: 0; }
.card__title .icon { color: var(--rlt-primary); }
.contact__info { display: grid; gap: 20px; }
.contact__card { padding: 24px 26px; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list--large li { align-items: center; }
.contact-list--large small { display: block; font-size: .8125rem; color: var(--rlt-muted); font-weight: 500; letter-spacing: .02em; }
.contact-list--large a,
.contact-list--large span { font-weight: 600; color: var(--rlt-dark); }
.contact-list--large li:not(:last-child) a { font-size: 1.1875rem; }
.contact-list__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rlt-primary-soft); color: var(--rlt-primary); }
.contact-list__icon .icon { width: 20px; height: 20px; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rlt-border); background: #e8eaf0; }
.map iframe { width: 100%; height: 280px; border: 0; }
.map__btn { position: absolute; left: 14px; bottom: 14px; box-shadow: var(--shadow); }

/* Form */
.booking-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; color: var(--rlt-dark); margin-bottom: 6px; }
.field .req { color: var(--rlt-danger); }
.field .opt { font-weight: 400; color: var(--rlt-muted); font-size: .8125rem; }
.field input,
.field select,
.field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--rlt-dark);
	background: #fff; border: 1.5px solid #d4d8e3; border-radius: var(--radius-sm);
	padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
	appearance: none;
}
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6472' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--rlt-primary); box-shadow: 0 0 0 4px var(--rlt-primary-soft); }
.field input.reg-input {
	/* styled like a UK number plate */
	background: #ffd50a linear-gradient(90deg, #1d4ea6 0 34px, transparent 34px);
	border-color: #222; color: #111;
	font-family: "Arial Narrow", var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase;
	padding-left: 46px;
}
.field input.reg-input::placeholder { color: rgba(0, 0, 0, .35); }
.form-small { font-size: .875rem; color: var(--rlt-muted); margin: 0; text-align: center; }
.form-small a { font-weight: 600; }

.form-notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px; font-size: .975rem; }
.form-notice--ok { background: #e4f6ec; color: #135c33; }
.form-notice--ok .icon { color: var(--rlt-success); margin-top: 2px; }
.form-notice--error { background: #fbeceb; color: #8a2419; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(115deg, var(--rlt-primary-deep), var(--rlt-primary));
	color: #fff; padding: clamp(48px, 7vw, 88px) 0;
}
.page-hero::after {
	content: ""; position: absolute; z-index: -1; top: -20%; right: 8%; width: 70px; height: 140%;
	background: var(--rlt-accent); transform: skewX(-18deg);
}
.page-hero__title { color: #fff; font-size: clamp(2.4rem, 5vw, 3.75rem); margin: 0; }
.page-hero__sub { margin: 8px 0 0; color: rgba(255, 255, 255, .82); font-size: 1.125rem; }

.entry__thumb img { border-radius: var(--radius); margin-bottom: 32px; }
.entry__content > * + * { margin-top: 1em; }
.entry__content h2 { font-size: 2rem; margin-top: 1.4em; }
.entry__content h3 { font-size: 1.5rem; margin-top: 1.2em; }
.entry__content img { border-radius: var(--radius-sm); }
.entry__content .alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--rlt-border); border-radius: var(--radius); overflow: hidden; }
.post-card__thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__body { padding: 22px; }
.post-card__date { font-size: .875rem; color: var(--rlt-muted); margin-bottom: 6px; }
.post-card__title { font-size: 1.5rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--rlt-border); text-decoration: none; }
.pagination .current { background: var(--rlt-primary); color: #fff; border-color: var(--rlt-primary); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--rlt-primary); color: rgba(255, 255, 255, .8); font-size: .975rem; }
.site-footer a { color: #fff; }
.site-footer__grid {
	display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 40px;
	padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 56px);
}
.site-footer__logo .brand__img { height: 92px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { max-width: 30em; }
.site-footer__title { color: #fff; font-size: 1.375rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; background: var(--rlt-accent); border-radius: 2px; }
.site-footer .contact-list .icon { color: var(--rlt-accent); width: 18px; height: 18px; margin-top: 4px; }
.site-footer .hours-list__row { border-bottom-color: rgba(255, 255, 255, .16); padding: 8px 0; }
.site-footer .hours-list dt { color: #fff; font-weight: 500; white-space: nowrap; }
.site-footer .hours-list dd { white-space: nowrap; }
.site-footer .hours-list__row.is-today dt::after { display: none; }
.site-footer .hours-list dd,
.site-footer .hours-list dd small,
.site-footer .hours-list__row.is-closed dd { color: rgba(255, 255, 255, .8); }
.footer-menu,
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a,
.site-footer .menu a { text-decoration: none; color: rgba(255, 255, 255, .85); }
.footer-menu a:hover,
.site-footer .menu a:hover { color: var(--rlt-accent); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s, color .2s; }
.social a:hover { background: var(--rlt-accent); color: var(--rlt-dark); }
.social .icon { width: 19px; height: 19px; }

.site-footer__bottom { background: rgba(0, 0, 0, .18); font-size: .875rem; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-footer__bottom p { margin: 0; }

/* Mobile quick-contact bar */
.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-header__call { display: none; }
}

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.topbar { display: none; }
	.site-header__brand .brand__img { height: 52px; }

	.nav-toggle { display: inline-flex; margin-left: auto; }
	.main-nav {
		position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		background: #fff; padding: 20px var(--gutter) 32px;
		border-top: 1px solid var(--rlt-border);
		overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
	}
	.main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav .menu a { font-size: 1.25rem; padding: 14px 12px; border-radius: 10px; border-bottom: 1px solid var(--rlt-border); }
	.main-nav__cta { display: inline-flex; font-size: 1.125rem; padding: 1em; }
	body.nav-open { overflow: hidden; }

	.hero__inner { grid-template-columns: 1fr; padding-bottom: 96px; }
	.hero::after { width: 70%; right: -30%; opacity: .55; }
	.highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.highlight:nth-child(3) { border-left: 0; }
	.highlight:nth-child(n+3) { border-top: 1px solid var(--rlt-border); }

	.services__grid,
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.reviews__grid > .review { max-width: 100%; }
	.about__grid,
	.contact__grid { grid-template-columns: 1fr; }
	.about__media { max-width: 480px; }
	.cta-band::after { left: auto; right: 6%; opacity: .35; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.hero__actions .btn { width: 100%; }
	.hero::after { display: none; }
	.hours-list__long { display: none; }
	.hours-list__short { display: inline; }
	.hero__card { padding: 22px 20px 14px; }
	.highlights { margin-top: -56px; }
	.highlights__grid { grid-template-columns: 1fr; }
	.highlight { padding: 18px 20px; }
	.highlight + .highlight { border-left: 0; border-top: 1px solid var(--rlt-border); }
	.services__grid,
	.post-grid { grid-template-columns: 1fr; }
	.service-card { padding: 24px 22px; }
	.field-row { grid-template-columns: 1fr; }
	.cta-band__actions,
	.cta-band__actions .btn { width: 100%; }
	.cta-band::after { opacity: .35; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.map iframe { height: 240px; }

	.has-mobile-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.has-mobile-bar .mobile-bar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: #fff; border-top: 1px solid var(--rlt-border);
		box-shadow: 0 -8px 24px -12px rgba(16, 24, 64, .25);
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		gap: 8px;
	}
	.mobile-bar__item {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
		padding: 6px 4px; border-radius: 10px;
		font-size: .8125rem; font-weight: 600; color: var(--rlt-dark); text-decoration: none;
	}
	.mobile-bar__item .icon { width: 22px; height: 22px; color: var(--rlt-primary); }
	.mobile-bar__item--call { background: var(--rlt-accent); }
	.has-mobile-bar.is-typing .mobile-bar { display: none; }
	.mobile-bar__item--call .icon { color: var(--rlt-dark); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
	.topbar, .site-header, .mobile-bar, .cta-band, .map, .booking-form { display: none !important; }
}
