/*
 * RENTCCTV – site styles (front end + editor).
 * Colours/fonts come from theme.json presets; this file handles layout and components.
 */

:root {
	--rc-navy: var(--wp--preset--color--contrast, #081626);
	--rc-navy-2: var(--wp--preset--color--accent-2, #11253d);
	--rc-yellow: var(--wp--preset--color--accent-1, #ffc400);
	--rc-grey: var(--wp--preset--color--accent-3, #f2f4f7);
	--rc-slate: var(--wp--preset--color--accent-4, #46505f);
	--rc-mist: var(--wp--preset--color--accent-5, #c9d2de);
	--rc-line: var(--wp--preset--color--accent-6, #d9dee5);
	--rc-white: #fff;
	--rc-error: #b42318;
	--rc-error-bg: #fef3f2;
	--rc-ok: #067647;
	--rc-radius: 10px;
	--rc-radius-sm: 6px;
	--rc-shadow: 0 1px 2px rgba(8, 22, 38, .06), 0 6px 20px rgba(8, 22, 38, .06);
	--rc-head-font: var(--wp--preset--font-family--sora, "Sora", system-ui, sans-serif);
	--rc-section-pad: clamp(3.5rem, 8vw, 6.5rem);
	--rc-header-h: 72px;
	--rc-focus: 0 0 0 3px var(--rc-white), 0 0 0 6px var(--rc-navy);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rc-header-h) + var(--wp-admin--admin-bar--height, 0px) + 12px); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body { background: var(--rc-white); color: var(--rc-slate); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.rc-main { margin-block-start: 0 !important; }
.rc-main:not(.rc-page) > .wp-block-post-content > * + * { margin-block-start: 0; }

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

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--rc-yellow); outline-offset: 2px; box-shadow: 0 0 0 6px var(--rc-navy); border-radius: 3px; }

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* ------------------------------------------------------------------ Demo banner */
.rc-demo-banner {
	background: repeating-linear-gradient(-45deg, #111 0 14px, #1d1d1d 14px 28px);
	color: #fff; font-size: .8125rem; line-height: 1.4; padding: .55rem 1rem; text-align: center;
	border-bottom: 3px solid var(--rc-yellow);
}
.rc-demo-banner strong { color: var(--rc-yellow); }

/* ------------------------------------------------------------------ Header */
header.rc-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.rc-header {
	background: var(--rc-navy); color: var(--rc-white);
	padding-block: .85rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.rc-header__inner { gap: 1.5rem; align-items: center; min-height: calc(var(--rc-header-h) - 1.7rem); }

/* Site logo: official banner logo (875×206, ≈4.25:1) from the client logo pack.
   The text wordmark below is only the fallback when no Site Logo is set. */
.rc-logo { margin: 0; line-height: 1; flex-shrink: 0; }
.rc-logo a { display: block; border-radius: 6px; }
.rc-logo img { display: block; height: 50px; width: auto !important; max-width: none; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
@media (max-width: 599px) { .rc-logo img { height: 40px; } }
.rc-footer__brand .rc-logo img { height: auto; width: 260px !important; max-width: 100%; }
.rc-wordmark {
	display: inline-flex; align-items: baseline; text-decoration: none !important;
	font-family: var(--rc-head-font); font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	letter-spacing: -.01em; line-height: 1; font-style: italic; transform: skewX(-8deg); padding-right: .2em;
}
.rc-wordmark__rent { color: var(--rc-white); }
.rc-wordmark__cctv { color: var(--rc-yellow); }

/* Navigation */
.rc-nav { font-size: .9375rem; font-weight: 600; }
.rc-nav .wp-block-navigation__container { gap: .35rem 1.6rem; }
.rc-header .rc-nav a.wp-block-navigation-item__content { color: rgba(255, 255, 255, .9); text-decoration: none; padding-block: .4rem; position: relative; }
.rc-header .rc-nav a.wp-block-navigation-item__content:hover,
.rc-header .rc-nav a.wp-block-navigation-item__content.is-active { color: var(--rc-yellow); }
.rc-header .rc-nav .rc-nav-cta a.wp-block-navigation-item__content {
	background: var(--rc-yellow); color: var(--rc-navy); border-radius: var(--rc-radius-sm);
	padding: .6rem 1.1rem; text-transform: uppercase; letter-spacing: .04em; font-size: .8125rem; font-weight: 700;
}
.rc-header .rc-nav .rc-nav-cta a.wp-block-navigation-item__content:hover { background: var(--rc-white); color: var(--rc-navy); }
.rc-nav .wp-block-navigation__responsive-container-open,
.rc-nav .wp-block-navigation__responsive-container-close { color: var(--rc-white); }
.rc-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--rc-navy) !important; color: var(--rc-white) !important; padding: 1.25rem 1.25rem 2rem; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem; font-size: 1.25rem; align-items: flex-start; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .65rem 0 !important; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open .rc-nav-cta { margin-top: 1rem; }
.rc-nav .wp-block-navigation__responsive-container.is-menu-open .rc-nav-cta a.wp-block-navigation-item__content { padding: .85rem 1.4rem !important; font-size: 1rem; }

/* ------------------------------------------------------------------ Buttons */
.wp-block-button__link, .rc-btn {
	font-family: var(--wp--preset--font-family--inter, inherit); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	font-size: .875rem; line-height: 1.2; border-radius: var(--rc-radius-sm); padding: 1rem 1.6rem;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.rc-btn--primary { background: var(--rc-yellow); color: var(--rc-navy); }
.rc-btn--primary:hover { background: var(--rc-white); color: var(--rc-navy); border-color: var(--rc-yellow); }
.rc-btn--ghost { background: transparent; color: var(--rc-white); border-color: rgba(255, 255, 255, .55); }
.rc-btn--ghost:hover { border-color: var(--rc-white); background: rgba(255, 255, 255, .08); }
.rc-btn--large { padding: 1.15rem 2rem; font-size: .9375rem; }
.wp-block-button.is-style-navy .wp-block-button__link { background: var(--rc-navy); color: var(--rc-white); }
.wp-block-button.is-style-navy .wp-block-button__link:hover { background: var(--rc-navy-2); color: var(--rc-yellow); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border: 2px solid currentColor; }
.wp-block-button__link::after, .rc-card__link a::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .5em; vertical-align: -.15em; background: currentColor; -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; }

/* ------------------------------------------------------------------ Hero */
.rc-hero {
	position: relative; isolation: isolate; overflow: hidden; color: var(--rc-white);
	background: radial-gradient(120% 90% at 85% 10%, #173a5e 0%, var(--rc-navy) 55%, #050d17 100%);
	padding-top: clamp(4rem, 11vw, 8.5rem) !important; padding-bottom: 0 !important;
	min-height: min(88vh, 760px); display: flex; flex-direction: column;
}
.rc-hero > * { position: relative; z-index: 2; width: 100%; box-sizing: border-box; }
.rc-hero .rc-hero__media { position: absolute !important; inset: 0; z-index: 0; margin: 0 !important; max-width: none !important; width: 100%; }
.rc-hero .rc-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .32; filter: saturate(.75) contrast(1.05); }
.rc-hero::before { /* legibility gradient over the photo */
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(90deg, rgba(8, 22, 38, .97) 0%, rgba(8, 22, 38, .86) 45%, rgba(8, 22, 38, .35) 100%);
}
.rc-hero::after { /* illustrative mobile CCTV tower */
	content: none; position: absolute; z-index: 1; right: max(2rem, calc((100vw - 1200px) / 2)); bottom: 3.2rem;
	width: clamp(220px, 26vw, 330px); aspect-ratio: 3 / 5; background: url(../img/tower.svg) center bottom / contain no-repeat;
}
@media (min-width: 900px) { .rc-hero::after { content: ""; } }
.rc-hero__content { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.rc-hero__content > * { max-width: 640px; }
.rc-hero__title {
	color: var(--rc-white); font-size: clamp(2.25rem, 5.4vw, 4rem); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 1.25rem; text-wrap: balance;
}
.rc-hero__sub { color: var(--rc-yellow); font-family: var(--rc-head-font); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 0 0 1rem; }
.rc-hero__body { color: rgba(255, 255, 255, .85); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.65; margin: 0 0 2rem; }
.rc-hero__cta { margin: 0; }
.rc-hazard {
	margin: auto calc(var(--wp--style--root--padding-right, 0px) * -1) 0 calc(var(--wp--style--root--padding-left, 0px) * -1) !important;
	max-width: none !important; width: auto !important; align-self: stretch; box-sizing: border-box;
	background: repeating-linear-gradient(-45deg, var(--rc-yellow) 0 22px, var(--rc-navy) 22px 44px);
	display: flex; justify-content: center; align-items: center; min-height: 3.25rem; padding: .6rem 1rem; text-align: center;
}
.rc-hazard > span {
	background: var(--rc-yellow); color: var(--rc-navy); padding: .35rem 1rem; border-radius: 3px;
	font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
}

/* ------------------------------------------------------------------ Sections */
.rc-section { padding-block: var(--rc-section-pad) !important; }
.rc-section--white { background: var(--rc-white); }
.rc-section--grey { background: var(--rc-grey); }
.rc-section--navy { background: var(--rc-navy); color: rgba(255, 255, 255, .82); }
.rc-section--navy :where(h2, h3, h4) { color: var(--rc-white); }
.rc-section--navy a:not(.wp-block-button__link):not(.rc-btn) { color: var(--rc-yellow); }
.rc-section__title {
	text-align: center; font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; margin: 0 auto clamp(2rem, 5vw, 3.25rem) !important; text-wrap: balance;
}
.rc-section__title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--rc-yellow); margin: 1rem auto 0; }
.rc-section > * + * { margin-block-start: 0; }
.rc-section > * + .alignwide, .rc-section > .alignwide + * { margin-block-start: clamp(2rem, 5vw, 3rem) !important; }
.rc-section > .rc-section__title + * { margin-block-start: 0 !important; }
.rc-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--rc-navy); }
.rc-section--navy .rc-lead { color: rgba(255, 255, 255, .9); }
.rc-subhead { font-size: 1.2rem; margin-top: 2rem; }
.rc-note { text-align: center; margin-top: 2rem !important; font-size: 1rem; }

/* Split: text + image */
.rc-split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .rc-split { grid-template-columns: 1.1fr .9fr; } }
.rc-split__text > h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15; margin-top: 0; }
.rc-split__text > h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--rc-yellow); margin-top: 1rem; }
.rc-split__media { margin: 0; }
.rc-split__media img, .rc-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rc-radius); box-shadow: var(--rc-shadow); display: block; }
.rc-split__media img { aspect-ratio: 4 / 3.4; }

/* Grids */
.rc-grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
@media (min-width: 640px) { .rc-grid--3, .rc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .rc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rc-grid > * { margin: 0 !important; }

/* Cards */
.rc-card {
	position: relative; background: var(--rc-white); border: 1px solid var(--rc-line); border-radius: var(--rc-radius);
	padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--rc-shadow); display: flex; flex-direction: column;
}
.rc-card > * { margin: 0; }
.rc-card > * + * { margin-top: .6rem; }
.rc-card h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
.rc-card p { font-size: .9375rem; line-height: 1.6; }
.rc-card--option { border-top: 4px solid var(--rc-yellow); }
.rc-section--grey .rc-card { border-color: transparent; }
.rc-card--dark { background: var(--rc-navy-2); border-color: rgba(255, 255, 255, .08); box-shadow: none; color: rgba(255, 255, 255, .78); }
.rc-card--dark h3 { color: var(--rc-white); }
.rc-card--line { box-shadow: none; }
.rc-card__link { margin-top: auto !important; padding-top: 1rem; font-size: .8125rem !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rc-card__link a { text-decoration: none; }
.rc-card__link a:hover { text-decoration: underline; }
.rc-card--banner { margin-top: clamp(1.5rem, 3vw, 2rem) !important; background: var(--rc-navy); color: rgba(255, 255, 255, .85); border: 0; }
.rc-card--banner h3 { color: var(--rc-white); }
@media (min-width: 760px) {
	.rc-card--banner { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; padding-left: 1.75rem; }
	.rc-card--banner.rc-icon::before { grid-row: 1 / span 2; margin-bottom: 0; }
	.rc-card--banner > * + * { margin-top: .35rem; }
}

/* Icon badges (Lucide, ISC licence). ::before = badge, ::after = icon drawn with mask-image so colour follows the theme. */
.rc-icon { --rc-badge: var(--rc-navy); --rc-glyph: var(--rc-yellow); --rc-pad-l: 1.5rem; }
.rc-icon::before { content: ""; display: block; flex: none; width: 52px; height: 52px; border-radius: 12px; margin-bottom: 1.1rem; background: var(--rc-badge); }
.rc-icon::after {
	content: ""; position: absolute; top: calc(1.6rem + 13px); left: calc(var(--rc-pad-l) + 13px); width: 26px; height: 26px;
	background: var(--rc-glyph); -webkit-mask: var(--rc-ico) center / contain no-repeat; mask: var(--rc-ico) center / contain no-repeat;
}
.rc-card--dark.rc-icon, .rc-card--banner.rc-icon { --rc-badge: var(--rc-yellow); --rc-glyph: var(--rc-navy); }
.rc-card--line.rc-icon { --rc-badge: var(--rc-grey); --rc-glyph: var(--rc-navy); }
@media (min-width: 760px) { .rc-card--banner.rc-icon { --rc-pad-l: 1.75rem; } }
.rc-icon--construction { --rc-ico: url(../icons/construction.svg); }
.rc-icon--store { --rc-ico: url(../icons/store.svg); }
.rc-icon--house { --rc-ico: url(../icons/house.svg); }
.rc-icon--fence { --rc-ico: url(../icons/fence.svg); }
.rc-icon--tractor { --rc-ico: url(../icons/tractor.svg); }
.rc-icon--tent { --rc-ico: url(../icons/tent.svg); }
.rc-icon--warehouse { --rc-ico: url(../icons/warehouse.svg); }
.rc-icon--square-parking { --rc-ico: url(../icons/square-parking.svg); }
.rc-icon--radio-tower { --rc-ico: url(../icons/radio-tower.svg); }
.rc-icon--cctv { --rc-ico: url(../icons/cctv.svg); }
.rc-icon--scan-eye { --rc-ico: url(../icons/scan-eye.svg); }
.rc-icon--moon { --rc-ico: url(../icons/moon.svg); }
.rc-icon--wifi { --rc-ico: url(../icons/wifi.svg); }
.rc-icon--sun { --rc-ico: url(../icons/sun.svg); }
.rc-icon--car-front { --rc-ico: url(../icons/car-front.svg); }
.rc-icon--hard-drive { --rc-ico: url(../icons/hard-drive.svg); }
.rc-icon--monitor { --rc-ico: url(../icons/monitor.svg); }
.rc-icon--wifi-off { --rc-ico: url(../icons/wifi-off.svg); }
.rc-icon--battery-charging { --rc-ico: url(../icons/battery-charging.svg); }
.rc-icon--smartphone { --rc-ico: url(../icons/smartphone.svg); }
.rc-icon--scan-search { --rc-ico: url(../icons/scan-search.svg); }
.rc-icon--database { --rc-ico: url(../icons/database.svg); }
.rc-icon--headset { --rc-ico: url(../icons/headset.svg); }
.rc-icon--shield-check { --rc-ico: url(../icons/shield-check.svg); }

/* Photos strip */
.rc-photos { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
@media (min-width: 640px) { .rc-photos { grid-template-columns: 1fr 1fr; } }
.rc-photos > figure { margin: 0 !important; }
.rc-photos img { aspect-ratio: 16 / 9; }

/* Callouts */
.rc-callout {
	display: grid; gap: 1.25rem 2rem; align-items: center; margin-top: clamp(2rem, 5vw, 3rem) !important;
	background: var(--rc-navy); color: rgba(255, 255, 255, .85); border-radius: var(--rc-radius);
	padding: clamp(1.5rem, 4vw, 2.5rem); border-left: 6px solid var(--rc-yellow);
}
@media (min-width: 860px) { .rc-callout { grid-template-columns: 1fr auto; } }
.rc-callout h3 { color: var(--rc-white); font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .5rem; }
.rc-callout p { margin: 0; }
.rc-callout__text > * + * { margin-top: .5rem; }
.rc-callout__cta { margin: 0 !important; }
.rc-callout--yellow { background: var(--rc-yellow); color: var(--rc-navy); border-left-color: var(--rc-white); }
.rc-section--navy .rc-callout--yellow h3 { color: var(--rc-navy); }

/* Steps */
.rc-steps { counter-reset: rc-step; }
.rc-step { counter-increment: rc-step; padding-top: 1.5rem; }
.rc-step::before {
	content: counter(rc-step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%; background: var(--rc-yellow); color: var(--rc-navy);
	font-family: var(--rc-head-font); font-weight: 800; font-size: 1.1rem; margin-bottom: 1.1rem;
}

/* Why choose */
.rc-why { margin-top: clamp(2.5rem, 6vw, 4rem) !important; background: var(--rc-white); border-radius: var(--rc-radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--rc-shadow); }
.rc-why > h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0 0 1.25rem; }
.rc-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem 2rem; }
@media (min-width: 760px) { .rc-ticks { grid-template-columns: 1fr 1fr; } }
.rc-ticks li { position: relative; padding-left: 2.1rem; color: var(--rc-navy); font-weight: 500; }
.rc-ticks li::before {
	content: ""; position: absolute; left: 0; top: .1em; width: 1.4rem; height: 1.4rem; border-radius: 50%;
	background: var(--rc-yellow) url(../icons/check.svg) center / 15px no-repeat;
}

/* FAQs */
.rc-faqs { display: grid; gap: .75rem; }
.rc-faqs > * { margin: 0 !important; }
.rc-faq { background: var(--rc-white); border: 1px solid var(--rc-line); border-radius: var(--rc-radius-sm); }
.rc-faq summary {
	list-style: none; cursor: pointer; position: relative; padding: 1.1rem 3.25rem 1.1rem 1.25rem;
	font-family: var(--rc-head-font); font-weight: 600; color: var(--rc-navy); font-size: 1.0625rem; line-height: 1.4;
}
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after {
	content: ""; position: absolute; right: 1.1rem; top: 50%; width: 1.4rem; height: 1.4rem; margin-top: -.7rem;
	background: var(--rc-navy); -webkit-mask: url(../icons/plus.svg) center / contain no-repeat; mask: url(../icons/plus.svg) center / contain no-repeat;
}
.rc-faq[open] summary::after { -webkit-mask-image: url(../icons/minus.svg); mask-image: url(../icons/minus.svg); }
.rc-faq[open] { border-color: var(--rc-yellow); box-shadow: inset 4px 0 0 var(--rc-yellow); }
.rc-faq > :not(summary) { margin: 0; padding: 0 1.25rem 1.2rem; }

/* ------------------------------------------------------------------ Enquiry */
.rc-enquire__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .rc-enquire__grid { grid-template-columns: .8fr 1.2fr; } .rc-enquire__intro { position: sticky; top: calc(var(--rc-header-h) + var(--wp-admin--admin-bar--height, 0px) + 2rem); } }
.rc-enquire__intro h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; margin-top: 0; }
.rc-enquire__intro h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--rc-yellow); margin-top: 1rem; }
.rc-enquire__form { background: var(--rc-white); color: var(--rc-slate); border-radius: var(--rc-radius); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.rc-section--navy .rc-enquire__form h3 { color: var(--rc-navy); }
.rc-section--navy .rc-enquire__form a:not(.rc-btn) { color: var(--rc-navy); text-decoration: underline; }
.rc-form__title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 1.5rem; }

/* Form */
.rc-form { font-size: 1rem; }
.rc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.rc-group { padding-top: 1.5rem !important; margin-top: 1.5rem !important; border-top: 1px solid var(--rc-line) !important; }
.rc-form > .rc-group:first-of-type { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.rc-group__legend { font-family: var(--rc-head-font); font-weight: 700; color: var(--rc-navy); font-size: 1.0625rem; padding: 0; margin-bottom: .9rem; float: left; width: 100%; }
.rc-group__legend + * { clear: both; }
.rc-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .rc-row { grid-template-columns: 1fr 1fr; } .rc-row--narrow { grid-template-columns: 1fr; } }
.rc-field { margin: 0 0 1rem; }
.rc-field > label, .rc-choices > legend { display: block; font-weight: 600; color: var(--rc-navy); margin-bottom: .35rem; font-size: .9375rem; }
.rc-optional { font-weight: 400; color: var(--rc-slate); font-size: .875rem; }
.rc-field__hint { font-size: .875rem; color: var(--rc-slate); margin: -.1rem 0 .5rem; }
.rc-form input[type="text"], .rc-form input[type="email"], .rc-form input[type="tel"], .rc-form input[type="number"], .rc-form input[type="date"], .rc-form textarea {
	display: block; width: 100%; box-sizing: border-box; font: inherit; color: var(--rc-navy);
	background: var(--rc-white); border: 2px solid var(--rc-mist); border-radius: var(--rc-radius-sm);
	padding: .75rem .85rem; min-height: 50px; transition: border-color .15s ease;
}
.rc-form textarea { min-height: 96px; resize: vertical; }
.rc-form input:hover, .rc-form textarea:hover { border-color: #9aa7b8; }
.rc-form input:focus, .rc-form textarea:focus { border-color: var(--rc-navy); outline: 3px solid var(--rc-yellow); outline-offset: 0; box-shadow: none; }
.rc-input--short { max-width: 12rem; }
.rc-form input[type="file"] { display: block; width: 100%; font: inherit; font-size: .9375rem; padding: .85rem; border: 2px dashed var(--rc-mist); border-radius: var(--rc-radius-sm); background: var(--rc-grey); box-sizing: border-box; cursor: pointer; }
.rc-form input[type="file"]::file-selector-button { font: inherit; font-weight: 700; border: 0; border-radius: 4px; background: var(--rc-navy); color: var(--rc-white); padding: .55rem 1rem; margin-right: 1rem; cursor: pointer; }

/* Choices */
.rc-form .rc-choices { margin: 0 0 1.35rem; }
.rc-form .rc-choices:last-child { margin-bottom: .25rem; }
.rc-choices__items { display: flex; flex-wrap: wrap; gap: .5rem; }
.rc-choices__items--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 620px) { .rc-choices__items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rc-choices__items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .rc-choices__items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rc-choice { position: relative; display: flex; align-items: flex-start; gap: .6rem; }
.rc-choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--rc-navy); cursor: pointer; }
.rc-choice label { cursor: pointer; line-height: 1.45; color: var(--rc-navy); }
.rc-choices--inline .rc-choice { border: 2px solid var(--rc-mist); border-radius: var(--rc-radius-sm); padding: .6rem .9rem; min-height: 46px; box-sizing: border-box; align-items: center; }
.rc-choices--inline .rc-choice input { margin: 0; }
.rc-choice--tile { border: 2px solid var(--rc-mist); border-radius: var(--rc-radius-sm); padding: .7rem .8rem; min-height: 50px; box-sizing: border-box; align-items: center; background: var(--rc-white); transition: border-color .15s, background-color .15s; }
.rc-choice--tile input { margin: 0; }
.rc-choice--tile label { font-weight: 500; font-size: .9375rem; }
.rc-choice--tile label::after, .rc-choices--inline .rc-choice label::after { content: ""; position: absolute; inset: 0; } /* whole tile is clickable */
.rc-choice--tile:hover, .rc-choices--inline .rc-choice:hover { border-color: #9aa7b8; }
.rc-choice--tile:has(input:checked), .rc-choices--inline .rc-choice:has(input:checked) { border-color: var(--rc-navy); background: #fff8dd; box-shadow: inset 0 0 0 1px var(--rc-navy); }
.rc-choice--tile:has(input:focus-visible), .rc-choices--inline .rc-choice:has(input:focus-visible) { outline: 3px solid var(--rc-yellow); outline-offset: 1px; }
.rc-field--check { margin: .25rem 0 1rem; display: flex; align-items: center; }
.rc-row .rc-field--check { padding-top: 1.9rem; }
@media (max-width: 619px) { .rc-row .rc-field--check { padding-top: 0; } }

/* Errors */
.rc-field--error > label, .rc-field--error > legend, fieldset.rc-field--error > .rc-group__legend { color: var(--rc-error); }
.rc-field--error input:not([type="radio"]):not([type="checkbox"]), .rc-field--error textarea { border-color: var(--rc-error) !important; }
.rc-field--error { border-left: 4px solid var(--rc-error); padding-left: .85rem; }
.rc-field__error { color: var(--rc-error); font-weight: 600; font-size: .9375rem; margin: 0 0 .5rem; }
.rc-error-summary { border: 3px solid var(--rc-error); background: var(--rc-error-bg); border-radius: var(--rc-radius-sm); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.rc-error-summary:focus { outline: 3px solid var(--rc-yellow); }
.rc-error-summary__title { font-family: var(--rc-head-font); font-weight: 700; color: var(--rc-error); margin: 0 0 .5rem; font-size: 1.125rem; }
.rc-error-summary ul { margin: 0; padding-left: 1.2rem; }
.rc-error-summary a { color: var(--rc-error) !important; font-weight: 600; }

.rc-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Google reCAPTCHA (only rendered when configured). Space is reserved so the layout doesn't jump when the widget loads. */
.rc-recaptcha { margin-top: 1.5rem; outline-offset: 4px; }
.rc-recaptcha__widget { min-height: 78px; max-width: 100%; }
.rc-recaptcha__widget--compact { min-height: 144px; }
.rc-recaptcha__terms { font-size: .8125rem; color: var(--rc-slate); margin: 0; }
.rc-recaptcha__terms a { color: inherit; text-decoration: underline; }
.rc-recaptcha--v3:not(.rc-field--error) { margin-top: 1.25rem; }
/* The v3 badge would sit under the mobile action bar; Google allows hiding it when the notice above is shown. */
.grecaptcha-badge { visibility: hidden !important; }

.rc-submit { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--rc-line); }
.rc-submit .rc-btn { width: 100%; }
@media (min-width: 620px) { .rc-submit .rc-btn { width: auto; } }

.rc-form-success { border: 3px solid var(--rc-ok); background: #ecfdf3; border-radius: var(--rc-radius-sm); padding: 1.5rem; color: var(--rc-navy); }
.rc-form-success:focus { outline: 3px solid var(--rc-yellow); }
.rc-form-success__title { font-family: var(--rc-head-font); font-weight: 700; font-size: 1.25rem; margin: 0 0 .5rem; color: var(--rc-ok); }
.rc-form-success p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Footer */
.rc-footer { background: #050e19; color: rgba(255, 255, 255, .72); padding-top: clamp(3rem, 7vw, 4.5rem) !important; padding-bottom: 1.5rem !important; font-size: .9375rem; border-top: 4px solid var(--rc-yellow); }
.rc-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.rc-footer a:hover { color: var(--rc-yellow); text-decoration: underline; }
.rc-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .rc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .rc-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.rc-footer__grid > * { margin: 0 !important; }
.rc-footer__tagline { margin-top: .9rem; }
.rc-footer__heading { color: var(--rc-white); font-size: .8125rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 1rem; }
.rc-footer__links, .rc-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.rc-footer__links li, .rc-contact li { margin: 0; line-height: 1.5; }
.rc-contact__phone { font-weight: 700; color: var(--rc-white) !important; }
.rc-footer__bottom { margin-top: clamp(2.5rem, 6vw, 3.5rem) !important; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8125rem; }
.rc-legal { margin: 0; }
.rc-linkbutton { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .85); text-decoration: underline; cursor: pointer; }
.rc-linkbutton:hover { color: var(--rc-yellow); }

/* ------------------------------------------------------------------ Mobile action bar */
.rc-actionbar { display: none; }
@media (max-width: 781px) {
	.rc-actionbar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--rc-navy); border-top: 1px solid rgba(255, 255, 255, .12); padding: .5rem; gap: .5rem;
		padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
	}
	.rc-actionbar a {
		display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; border-radius: var(--rc-radius-sm);
		font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .875rem; text-decoration: none;
	}
	.rc-actionbar__call { color: var(--rc-white); border: 2px solid rgba(255, 255, 255, .45); }
	.rc-actionbar__enquire { background: var(--rc-yellow); color: var(--rc-navy); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.rc-consent { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}
.rc-ico { display: inline-block; width: 1.15em; height: 1.15em; background: currentColor; }
.rc-ico--phone { -webkit-mask: url(../icons/phone.svg) center / contain no-repeat; mask: url(../icons/phone.svg) center / contain no-repeat; }

/* ------------------------------------------------------------------ Consent banner (only rendered when a GA4 ID is set) */
.rc-consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.rc-consent[hidden] { display: none; }
.rc-consent__inner { pointer-events: auto; max-width: 720px; width: 100%; background: var(--rc-navy); color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .15); border-top: 4px solid var(--rc-yellow); border-radius: var(--rc-radius); padding: 1.25rem 1.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); font-size: .9375rem; }
.rc-consent__inner a { color: var(--rc-yellow); }
.rc-consent__title { font-family: var(--rc-head-font); font-weight: 700; color: var(--rc-white); margin: 0 0 .4rem; }
.rc-consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

/* ------------------------------------------------------------------ Inner pages (legal drafts, 404) */
.rc-main > .wp-block-group:not(.alignfull):first-child,
.rc-page { padding-block: clamp(2.5rem, 7vw, 5rem); }
.rc-page-title { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.rc-page .wp-block-post-content h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -.01em; margin-block-start: 2.25rem; margin-block-end: .5rem; }
.rc-page .wp-block-post-content h2 + * { margin-block-start: 0; }
.rc-page .wp-block-post-content a { color: var(--rc-navy); }
.rc-draft-flag { background: #fff8dd; border-left: 4px solid var(--rc-yellow); padding: .85rem 1rem; color: var(--rc-navy); font-weight: 600; }

/* Editor tweaks */
.editor-styles-wrapper .rc-hero { min-height: 520px; }
