/**
 * RecoveryQuote — child overrides (mobile-first, trust + urgency)
 */

:root {
	--color-accent: #0c4a6e;
	--color-accent-light: #0369a1;
	--color-highlight: #eab308;
	--color-highlight-soft: rgba(234, 179, 8, 0.18);
	--recoveryquote-mobile-h: 4.25rem;
	--recoveryquote-banner-h: auto;
}

.recoveryquote-brand .site-main {
	padding-bottom: 0;
}

@media (max-width: 899px) {
	.recoveryquote-brand .site-main {
		padding-bottom: calc(var(--recoveryquote-mobile-h) + env(safe-area-inset-bottom, 0px));
	}
}

/* Logo mark */
.recoveryquote-logo-mark {
	font-size: 1.25rem;
	line-height: 1;
	background: linear-gradient(145deg, var(--color-highlight-soft), rgba(12, 74, 110, 0.15));
	border-radius: 12px;
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Logo: image (Customizer → Site Identity → Logo) above text line */
.site-logo.site-logo--stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.site-logo.site-logo--stacked .site-logo__stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.site-header .site-logo.site-logo--stacked .site-logo__img {
	display: block;
	width: auto;
	max-width: min(12.5rem, 38vw);
	max-height: 2.75rem;
	height: auto;
	object-fit: contain;
}

.site-footer .site-logo.site-logo--stacked .site-logo__img {
	max-width: min(14rem, 55vw);
	max-height: 3.25rem;
}

.site-logo.site-logo--stacked .site-logo__text {
	font-size: 0.9375rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

.site-footer .site-logo.site-logo--stacked .site-logo__text {
	font-size: 1rem;
}

/* Hero visual */
.recoveryquote-hero-visual {
	align-self: center;
}

.recoveryquote-hero-card {
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--color-border);
	max-width: 380px;
	margin-inline: auto;
}

.recoveryquote-hero-card__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-accent-light);
	margin: 0 0 1rem;
}

.recoveryquote-hero-cta.btn--outline {
	border-color: var(--color-accent-light);
}

/* Service icons (child theme) */
.card__icon--battery::after {
	content: "⚡";
	font-size: 1.25rem;
}

.card__icon--truck::after {
	content: "🚐";
	font-size: 1.125rem;
}

.card__icon--clock::after {
	content: "24";
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: -0.05em;
}

/* Coverage */
.recoveryquote-map-wrap {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--color-border);
	margin-top: 1.5rem;
}

.recoveryquote-map-iframe {
	display: block;
	width: 100%;
	height: min(420px, 55vh);
}

.recoveryquote-city-links {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

.recoveryquote-city-links__title {
	font-size: 1.125rem;
	margin: 0 0 0.75rem;
}

.recoveryquote-city-links__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.recoveryquote-city-links__list a {
	font-weight: 600;
}

/* Service / contact / location prose */
.recoveryquote-prose .section-title {
	margin-bottom: 0.75rem;
}

.recoveryquote-service-page__cta-row,
.recoveryquote-contact-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.recoveryquote-faq__list dt {
	font-weight: 700;
	margin-top: 1.25rem;
	color: var(--color-text);
}

.recoveryquote-faq__list dd {
	margin: 0.35rem 0 0;
	color: var(--color-text-muted);
}

.recoveryquote-notice {
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.recoveryquote-notice--ok {
	background: rgba(34, 197, 94, 0.12);
	color: #166534;
}

.recoveryquote-notice--err {
	background: rgba(239, 68, 68, 0.12);
	color: #991b1b;
}

.recoveryquote-form__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.recoveryquote-form__field input,
.recoveryquote-form__field textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.75rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	font: inherit;
}

.recoveryquote-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.recoveryquote-geo-btn {
	margin-top: 0.5rem;
}

/* Mobile bottom bar */
.recoveryquote-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
	background: rgba(15, 23, 42, 0.96);
	gap: 0.5rem;
	align-items: center;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 899px) {
	.recoveryquote-mobile-bar {
		display: flex;
	}
}

.recoveryquote-mobile-bar__call {
	flex: 1;
	text-align: center;
	text-decoration: none !important;
	margin: 0 !important;
}

.recoveryquote-mobile-bar__wa {
	flex: 0 0 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: #25d366;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
}

/* WhatsApp FAB (desktop + above bar on mobile) */
.recoveryquote-wa-fab {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + var(--recoveryquote-mobile-h));
	z-index: 9999;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: #25d366;
	box-shadow: var(--shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
}

@media (max-width: 899px) {
	.recoveryquote-wa-fab {
		bottom: calc(var(--recoveryquote-mobile-h) + 0.75rem + env(safe-area-inset-bottom, 0px));
	}
}

.recoveryquote-wa-fab__icon {
	width: 1.5rem;
	height: 1.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='white'%3E%3Cpath d='M16 3C9.4 3 4 8.1 4 14.3c0 2.4.7 4.7 2 6.6L4 29l8.5-2.2c1.9 1 4 1.5 6.2 1.5 6.6 0 12-5.1 12-11.3S22.6 3 16 3zm6.9 15.1c-.3.8-1.5 1.5-2.1 1.6-.5.1-1.2.1-1.9-.1-.4-.1-1-.4-1.8-.8-3.2-1.4-5.2-4.7-5.4-4.9-.2-.3-1.3-1.7-1.3-3.3 0-1.6.8-2.4 1.1-2.7.3-.3.7-.5 1-.5.3 0 .5 0 .7.1.2.1.6.9.8 1.2.1.3.2.5.3.8.1.3 0 .6-.1.8l-.6 1.2c-.2.3-.4.3-.6.6-.2.2-.4.5-.2.9.2.4.9 3 4.2 4.3 2.9 1.2 3.5 1 4.1.9.6-.1 2-1 2.3-1.9.3-.9.3-1.7.2-1.9-.1-.2-.5-.3-1-.5z'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

@media (min-width: 900px) {
	.recoveryquote-wa-fab {
		bottom: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.recoveryquote-wa-fab {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Primary nav — dropdowns (WordPress menus with children)
   ------------------------------------------------------------------------- */
@media (min-width: 900px) {
	.site-nav .menu-item-has-children {
		position: relative;
	}

	.site-nav .sub-menu {
		display: none;
		position: absolute;
		left: 0;
		top: 100%;
		z-index: 1002;
		min-width: 14rem;
		margin: 0;
		padding: 0.5rem 0;
		list-style: none;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow-md);
	}

	.site-nav .sub-menu .menu-item {
		display: block;
	}

	.site-nav .sub-menu a {
		display: block;
		padding: 0.5rem 1rem;
		white-space: nowrap;
	}

	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

@media (max-width: 899px) {
	.site-nav.is-open .sub-menu {
		display: block;
		position: static;
		margin: 0.35rem 0 0 1rem;
		padding: 0;
		list-style: none;
		border-left: 2px solid var(--color-border);
	}

	.site-nav.is-open .sub-menu a {
		padding: 0.35rem 0;
		font-size: 0.9375rem;
	}
}
.recoveryquote-block__header {
	max-width: 40rem;
}

.recoveryquote-block__eyebrow {
	display: inline-block;
	padding: 0.35rem 1rem;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(12, 74, 110, 0.14) 0%,
		rgba(234, 179, 8, 0.22) 100%
	);
	border: 1px solid rgba(234, 179, 8, 0.35);
	color: var(--color-accent);
	font-weight: 700;
	letter-spacing: 0.1em;
}

.recoveryquote-block__lead {
	max-width: 42rem;
	margin-inline: auto;
	line-height: 1.65;
}

.recoveryquote-block__media {
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

/* Section-wide image: full-bleed cover (background layer, no <img>) */
.recoveryquote-block__media--cover {
	position: relative;
	min-height: min(14rem, 38vw);
	aspect-ratio: 21 / 9;
	max-height: 22rem;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.recoveryquote-block__media--cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.4);
	opacity: 0;
	transition: opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
	.recoveryquote-block__media--cover::after {
		opacity: 1;
	}

	.recoveryquote-block:hover .recoveryquote-block__media--cover::after {
		opacity: 0;
	}
}

@media (max-width: 599px) {
	.recoveryquote-block__media--cover {
		aspect-ratio: 16 / 10;
		min-height: 12rem;
		max-height: none;
	}
}

/* Card top: cover background */
.recoveryquote-service-card .card__media.recoveryquote-service-card__media-bg {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0;
	/* Parent .card__media keeps aspect-ratio from theme; ensure cover fills */
	min-height: 0;
}

.recoveryquote-service-card .card__media.recoveryquote-service-card__media-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.42);
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
	.recoveryquote-service-card.card--service--has-media .recoveryquote-service-card__media-bg::after {
		opacity: 1;
	}

	.recoveryquote-service-card.card--service--has-media:hover .recoveryquote-service-card__media-bg::after {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.recoveryquote-block__media--cover::after,
	.recoveryquote-service-card .card__media.recoveryquote-service-card__media-bg::after {
		transition: none;
	}
}

.recoveryquote-service-card.card--service--has-media .card__media.recoveryquote-service-card__media-bg {
	margin: -1.5rem -1.5rem 1rem;
}

.recoveryquote-service-cards {
	align-items: stretch;
}

.recoveryquote-service-card.card--service {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	border-top: 4px solid var(--color-highlight);
	box-shadow: var(--shadow-md);
	border-color: var(--color-border);
	border-left-color: var(--color-border);
	border-right-color: var(--color-border);
	border-bottom-color: var(--color-border);
	padding-top: 1.35rem;
}

.recoveryquote-service-card.card--service:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.recoveryquote-service-card.card--service.card--service--has-media {
	padding-top: 0;
}

.recoveryquote-service-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.recoveryquote-service-card .card__icon {
	width: 56px;
	height: 56px;
	margin-bottom: 1rem;
	background: linear-gradient(
		145deg,
		rgba(12, 74, 110, 0.16),
		rgba(234, 179, 8, 0.2)
	);
	border: 1px solid rgba(12, 74, 110, 0.15);
	box-shadow: var(--shadow-sm);
}

.recoveryquote-service-card .card__icon::after {
	font-size: 1.35rem;
}

.recoveryquote-service-card .card__text {
	flex: 1 1 auto;
	line-height: 1.62;
	margin-bottom: 0;
}

.recoveryquote-service-card__footer {
	margin-top: auto;
	padding-top: 1.15rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	align-items: center;
}

.recoveryquote-service-card__cta {
	flex: 1 1 auto;
	min-width: 7.5rem;
	text-align: center;
	text-decoration: none !important;
	justify-content: center;
}

.recoveryquote-service-card__cta--wa {
	border-color: #22c55e;
	color: #166534;
}

.recoveryquote-service-card__cta--wa:hover {
	background: rgba(34, 197, 94, 0.1);
	border-color: #16a34a;
	color: #14532d;
}

.recoveryquote-service-card__link {
	flex: 1 1 100%;
	text-align: center;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--color-accent-light);
	margin-top: 0.15rem;
}

.recoveryquote-service-card__link:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

@media (min-width: 600px) {
	.recoveryquote-service-card__footer {
		justify-content: flex-start;
	}

	.recoveryquote-service-card__cta {
		flex: 0 1 auto;
		min-width: 0;
	}

	.recoveryquote-service-card__link {
		flex: 1 1 100%;
	}
}

/* -------------------------------------------------------------------------
   Readable copy — narrow measure where we intentionally constrain width
   ------------------------------------------------------------------------- */
.recoveryquote-brand .container--narrow .prose .entry-content {
	max-width: 65ch;
	margin-inline: auto;
	text-align: left;
}

/* Hero Page template: same horizontal width as homepage sections (.container) */
.recoveryquote-brand .recoveryquote-hero-page-body .entry-content {
	max-width: none;
	width: 100%;
	text-align: left;
}

.recoveryquote-brand .container--narrow .prose .entry-content > p,
.recoveryquote-brand .recoveryquote-hero-page-body .entry-content > p {
	margin-bottom: 1.15rem;
	line-height: 1.65;
}

.recoveryquote-brand .container--narrow .prose .entry-content > p:first-of-type,
.recoveryquote-brand .recoveryquote-hero-page-body .entry-content > p:first-of-type {
	font-size: 1.125rem;
	line-height: 1.55;
	color: var(--color-text);
}

.recoveryquote-brand .about .about__text {
	line-height: 1.7;
	max-width: 60ch;
}

.recoveryquote-brand .about .about__text:first-of-type {
	font-size: 1.0625rem;
	color: var(--color-text);
}

.recoveryquote-brand .section-media--about {
	margin-bottom: clamp(1.25rem, 4vw, 2rem);
}

.recoveryquote-brand .section-header:not(.recoveryquote-block__header) .section-lead {
	max-width: 48rem;
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Primary nav — dropdowns (WordPress menus with children)
   ------------------------------------------------------------------------- */
@media (min-width: 900px) {
	.site-nav .menu-item-has-children {
		position: relative;
	}

	.site-nav .sub-menu {
		display: none;
		position: absolute;
		left: 0;
		top: 100%;
		z-index: 1002;
		min-width: 14rem;
		margin: 0;
		padding: 0.5rem 0;
		list-style: none;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow-md);
	}

	.site-nav .sub-menu .menu-item {
		display: block;
	}

	.site-nav .sub-menu a {
		display: block;
		padding: 0.5rem 1rem;
		white-space: nowrap;
	}

	.site-nav .menu-item-has-children:hover > .sub-menu,
	.site-nav .menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

@media (max-width: 899px) {
	.site-nav.is-open .sub-menu {
		display: block;
		position: static;
		margin: 0.35rem 0 0 1rem;
		padding: 0;
		list-style: none;
		border-left: 2px solid var(--color-border);
	}

	.site-nav.is-open .sub-menu a {
		padding: 0.35rem 0;
		font-size: 0.9375rem;
	}
}
