/* Righead Motors: site-wide styles that Elementor controls can't express
   (pseudo-element pattern, focus, reduced motion, shortcode output). */

:root {
	--rm-blue: #1E8FFF;
	--rm-blue-deep: #0A66CC;
	--rm-ink: #0D1013;
	--rm-charcoal: #1B2027;
	--rm-charcoal-2: #232A32;
	--rm-silver: #B8C0CA;
	--rm-mist: #EEF1F4;
	--rm-muted: #4A535E;
	--rm-header-offset: 95px;
}
@media (max-width: 1024px) { :root { --rm-header-offset: 84px; } }
@media (max-width: 767px) { :root { --rm-header-offset: 70px; } }

html { scroll-padding-top: var(--rm-header-offset); }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--rm-header-offset) + 32px); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .elementor-menu-toggle:focus-visible {
	outline: 3px solid var(--rm-blue) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px rgba(13, 16, 19, .55);
	border-radius: 4px;
}

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

/* Reduced motion: no entrance animations or transitions */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important; animation-iteration-count: 1 !important;
		transition-duration: .001ms !important; scroll-behavior: auto !important;
	}
	.elementor-invisible { visibility: visible !important; }
	.animated { animation-name: none !important; }
}

/* Preview notice */
.rm-preview-notice {
	background: var(--rm-ink); color: var(--rm-silver);
	font: 500 13px/1.4 "Barlow", system-ui, sans-serif; letter-spacing: .02em;
	text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--rm-charcoal-2);
}

/* Honeycomb texture for dark sections */
.rm-honeycomb {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.2'/%3E%3C/svg%3E");
	background-size: 56px 100px;
}
.rm-honeycomb--light {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%231B2027' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
	background-size: 56px 100px;
}

/* Heading accent: short bar finished with a hex nut */
.rm-accent .elementor-heading-title::after {
	content: ""; display: block; width: 64px; height: 12px; margin-top: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='12' viewBox='0 0 64 12'%3E%3Crect y='4.5' width='50' height='3' rx='1.5' fill='%231E8FFF'/%3E%3Cpath d='M57.5 1l5 2.9v5.8l-5 2.9-5-2.9V3.9z' fill='none' stroke='%231E8FFF' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat left center;
}
.rm-accent--center .elementor-heading-title::after { margin-left: auto; margin-right: auto; }

/* "To be confirmed" placeholders */
.rm-tbc {
	display: inline-block; font-style: italic; color: inherit;
	background: rgba(30, 143, 255, .14); border: 1px dashed rgba(30, 143, 255, .6);
	border-radius: 4px; padding: 1px 8px;
}

/* Contact details list */
.rm-details { margin: 0; display: grid; gap: 18px; }
.rm-details__row { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid rgba(184, 192, 202, .18); }
.rm-details__row:last-child { border-bottom: 0; padding-bottom: 0; }
.rm-details dt {
	font: 600 13px/1.3 "Barlow", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--rm-silver);
}
.rm-details dd { margin: 0; font-size: 18px; line-height: 1.5; color: #fff; }
.rm-details dd a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--rm-blue); text-underline-offset: 4px; }
.rm-details dd a:hover { color: var(--rm-blue); }
.rm-details__row--phone dd a { font-family: "Archivo", sans-serif; font-size: 26px; font-weight: 800; text-decoration: none; }

/* WhatsApp button */
.rm-wa-btn {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
	background: #25D366; color: var(--rm-ink) !important; font: 700 16px/1 "Barlow", sans-serif;
	padding: 14px 22px; border-radius: 6px; text-decoration: none;
}
.rm-wa-btn:hover { background: #3EE07A; }

/* Privacy note under the form */
.rm-privacy-note { font-size: 14px; line-height: 1.55; color: var(--rm-muted); }
.rm-privacy-note p { margin: 0 0 8px; }
.rm-privacy-note strong { color: var(--rm-charcoal); }
.rm-privacy-note .rm-tbc { color: var(--rm-charcoal); }

/* Footer legal */
.rm-footer-legal { margin: 0; font-size: 14px; color: var(--rm-silver); }
.rm-footer-legal a, .rm-footer-legal a:visited { color: #fff; }
.rm-privacy-note a { color: var(--rm-blue-deep); }
.rm-footer-legal .rm-tbc { font-size: 13px; }

/* Instagram */
.rm-insta__label {
	display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
	font: 600 14px/1.4 "Barlow", sans-serif; color: var(--rm-muted);
	background: #fff; border: 1px dashed #9AA4B0; border-radius: 4px; padding: 6px 12px;
}
.rm-insta__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rm-insta__grid li { aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--rm-charcoal); }
.rm-insta__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-insta__follow { margin: 20px 0 0; }
.rm-insta__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--rm-blue-deep); }
@media (max-width: 767px) {
	.rm-insta__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Gallery tiles */
.rm-gallery .elementor-widget-image { overflow: hidden; border-radius: 8px; }
.rm-gallery .elementor-widget-image img { width: 100%; object-fit: cover; display: block; }
.rm-gallery figcaption.widget-image-caption {
	margin: 0 !important; padding: 10px 14px; text-align: left;
	background: var(--rm-charcoal-2); color: var(--rm-silver); font: 500 14px/1.4 "Barlow", sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
	.rm-gallery .elementor-widget-image img { transition: transform .5s ease; }
	.rm-gallery .elementor-widget-image:hover img { transform: scale(1.03); }
}

/* Service cards */
.rm-service { transition: border-color .2s ease, transform .2s ease; }
@media (prefers-reduced-motion: no-preference) {
	.rm-service:hover { transform: translateY(-3px); }
}
.rm-service:hover { border-color: var(--rm-blue) !important; }

/* Enquiry form: accessible errors */
.rm-enquiry-form .elementor-field-group { position: relative; }
.rm-field-error { display: block; width: 100%; margin-top: 6px; color: #B42318; font: 600 14px/1.4 "Barlow", sans-serif; }
.rm-field-error::before { content: "! "; }
.rm-enquiry-form [aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 1px #B42318; }
.rm-form-summary:empty { display: none; }
.rm-form-summary {
	width: 100%; margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid #B42318;
	background: #FDECEA; color: #7A1A12; font: 600 15px/1.4 "Barlow", sans-serif;
}
.rm-enquiry-form .elementor-field-subgroup .elementor-field-option label { cursor: pointer; }
.rm-enquiry-form .elementor-message { font-size: 16px; line-height: 1.5; padding: 12px 14px; border-radius: 4px; }
.rm-enquiry-form .elementor-message.elementor-message-success { background: #E7F3FF; color: #0B3D73; }
.rm-enquiry-form .elementor-message.elementor-message-danger { background: #FDECEA; color: #7A1A12; }
.rm-enquiry-form .elementor-message::before { display: none; }

/* Mobile quick-contact bar */
.rm-actionbar { display: none; }
@media (max-width: 767px) {
	.rm-actionbar {
		display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
		background: var(--rm-ink); border-top: 1px solid var(--rm-charcoal-2);
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
	}
	.rm-actionbar--3 { grid-template-columns: 1fr 1fr 1fr; }
	.rm-actionbar__btn {
		display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
		border-radius: 6px; background: var(--rm-charcoal-2); color: #fff; text-decoration: none;
		font: 700 16px/1 "Barlow", sans-serif;
	}
	.rm-actionbar a.rm-actionbar__btn, .rm-actionbar a.rm-actionbar__btn:hover, .rm-actionbar a.rm-actionbar__btn:visited { color: #fff; }
	.rm-actionbar a.rm-actionbar__btn--call, .rm-actionbar a.rm-actionbar__btn--call:hover, .rm-actionbar a.rm-actionbar__btn--call:visited { background: var(--rm-blue); color: var(--rm-ink); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.rm-icon { flex: none; }
