/*
Theme Name: NC Rotator Recovery
Theme URI: https://ncrotatorrecovery.com
Author: CoreConcepts Design
Author URI: https://coreconcepts.design
Description: Fast, mobile-first single-page lead-generation theme for Dependable Towing & Recovery's rotator and rollover recovery site. Sticky tap-to-call header, tracked call and intake buttons, accessible FAQ accordions, LocalBusiness and FAQPage schema. Content is editable through ClientLayer.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: ncrotatorrecovery
*/

@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
	color-scheme: dark;
	--bg: #05080f;
	--bg-alt: #0a101c;
	--surface: #0f1726;
	--line: #223049;
	--ink: #f2f6fc;
	--ink-soft: #b4c0d4;
	--blue: #2f7bff;
	--blue-soft: #8db8ff;
	--green: #3ddc4a;
	--green-ink: #03150a;
	--radius: 14px;
	--header-h: 68px;
	--font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::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;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
}

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

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

h1,
h2 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, 9vw, 4.4rem);
}

h2 {
	font-size: clamp(2rem, 6vw, 3rem);
}

h3 {
	font-size: 1.2rem;
	line-height: 1.25;
}

a {
	color: var(--blue-soft);
}

:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	border-radius: 4px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

.container-narrow {
	max-width: 880px;
}

.icon {
	flex: none;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 22px;
	border: 2px solid transparent;
	border-radius: 10px;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.15;
	text-decoration: none;
	text-align: center;
	transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-call {
	background: var(--green);
	color: var(--green-ink);
	box-shadow: 0 0 0 1px rgba(61, 220, 74, 0.35), 0 10px 28px -10px rgba(61, 220, 74, 0.7);
}

.btn-call:hover {
	background: #5be866;
}

.btn-outline {
	border-color: var(--blue);
	background: rgba(47, 123, 255, 0.12);
	color: #fff;
}

.btn-outline:hover {
	background: rgba(47, 123, 255, 0.26);
}

.btn-outline .icon {
	width: 18px;
	height: 18px;
}

.btn-sm {
	min-height: 46px;
	padding: 10px 16px;
	font-size: 0.95rem;
}

.btn-lg {
	min-height: 58px;
	padding: 14px 26px;
	font-size: 1.1rem;
}

.btn-block {
	width: 100%;
}

.btn-stack > span {
	display: grid;
	text-align: left;
}

.btn-stack small {
	font-size: 0.9rem;
	font-weight: 700;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
	background: rgba(5, 8, 15, 0.94);
	backdrop-filter: blur(10px);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: var(--header-h);
}

.brand {
	display: block;
	flex: none;
}

.brand-logo {
	width: auto;
	height: 52px;
}

.header-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* 24/7/365 badge beside the call button (desktop only). */
.header-note {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 4px 12px;
	border: 1px solid rgba(61, 220, 74, 0.45);
	border-radius: 999px;
	background: rgba(61, 220, 74, 0.1);
	color: var(--ink);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.header-note .pulse {
	width: 8px;
	height: 8px;
}

/* Section menu: dropdown under the bar on small screens, inline on wide ones. */
.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 4px;
	order: 3;
	width: 100%;
	padding-bottom: 8px;
}

.site-nav a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 12px;
	border-radius: 8px;
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
	color: var(--green);
}

.header-inner {
	flex-wrap: wrap;
}

.nav-toggle {
	display: none;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	cursor: pointer;
}

.nav-toggle span {
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1099px) {
	.js .nav-toggle {
		display: flex;
	}

	.js .site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: grid;
		gap: 0;
		width: auto;
		padding: 8px 20px 16px;
		border-bottom: 1px solid var(--line);
		background: rgba(5, 8, 15, 0.98);
		box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
	}

	.js .site-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
	}

	.js .site-nav a {
		min-height: 50px;
		padding-inline: 4px;
		border-bottom: 1px solid var(--line);
		border-radius: 0;
		font-size: 1.05rem;
	}

	.js .site-nav a:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 419px) {
	.brand-logo {
		height: 42px;
	}

	.header-inner {
		gap: 8px;
	}

	.header-cta {
		gap: 8px;
	}

	.header-cta .btn {
		gap: 0;
		padding-inline: 12px;
		font-size: 0.9rem;
	}

	.header-cta .btn .icon {
		display: none;
	}
}

@media (min-width: 1100px) {
	.header-inner {
		flex-wrap: nowrap;
	}

	.site-nav {
		order: 0;
		flex-wrap: nowrap;
		justify-content: center;
		width: auto;
		padding-bottom: 0;
	}

	.site-nav a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 6px;
		height: 2px;
		border-radius: 2px;
		background: linear-gradient(90deg, var(--blue), var(--green));
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.25s ease;
	}

	.site-nav a:hover::after,
	.site-nav a.is-current::after {
		transform: scaleX(1);
	}
}

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

.hero {
	position: relative;
	overflow: hidden;
	padding: 36px 0 44px;
	background:
		radial-gradient(60% 70% at 85% 10%, rgba(47, 123, 255, 0.28), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgba(61, 220, 74, 0.14), transparent 70%),
		var(--bg);
}

.hero-grid {
	display: grid;
	gap: 32px;
	align-items: center;
}

.hero h1 {
	max-width: 15ch;
}

.lede {
	max-width: 58ch;
	margin-top: 18px;
	color: var(--ink-soft);
	font-size: 1.13rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.hero-actions .btn {
	flex: 1 1 220px;
}

.hero-note {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	color: var(--ink);
	font-size: 0.98rem;
	font-weight: 600;
}

.pulse {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 0 rgba(61, 220, 74, 0.7);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 10px rgba(61, 220, 74, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(61, 220, 74, 0);
	}
}

.hero-media {
	position: relative;
}

.hero-media::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: calc(var(--radius) + 4px);
	background: linear-gradient(135deg, var(--blue), transparent 45%, var(--green));
}

.hero-media img {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--radius);
}

/* ---------- Trust bar ---------- */

.trust {
	border-block: 1px solid var(--line);
	background: var(--bg-alt);
}

.trust-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	padding-block: 20px;
}

.trust-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
}

.trust-list .icon {
	margin-top: 1px;
	color: var(--green);
}

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

.section {
	padding: 56px 0;
}

.section-alt {
	border-block: 1px solid var(--line);
	background: var(--bg-alt);
}

.section-head {
	max-width: 760px;
	margin-bottom: 30px;
}

.section-head h2::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--blue), var(--green));
}

.section-head p {
	margin-top: 16px;
	color: var(--ink-soft);
}

.grid {
	display: grid;
	gap: 20px;
}

.card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.card p {
	color: var(--ink-soft);
}

.card-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card-body {
	padding: 20px;
}

.card-body p {
	margin-top: 8px;
}

/* ---------- Video ---------- */

.video-grid {
	display: grid;
	gap: 8px;
	align-items: center;
}

.video-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	max-width: 580px;
}

.video-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #000;
	aspect-ratio: 9 / 16;
}

.video-poster {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.video-poster img,
.video-card video,
.video-card iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.video-card video {
	object-fit: contain;
}

.video-poster::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 45%);
}

.video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--green);
	color: var(--green-ink);
	transform: translate(-50%, -50%);
	transition: transform 0.15s ease;
}

.video-play .icon {
	width: 30px;
	height: 30px;
}

.video-poster:hover .video-play {
	transform: translate(-50%, -50%) scale(1.08);
}

.video-title {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 12px;
	z-index: 1;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
}

/* ---------- Audience ---------- */

.audience-card {
	padding: 24px 22px;
	border-top: 3px solid var(--blue);
}

.audience-card p {
	margin-top: 8px;
}

.card-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 14px;
	border-radius: 10px;
	background: rgba(47, 123, 255, 0.16);
	color: var(--blue-soft);
}

.card-icon .icon {
	width: 24px;
	height: 24px;
}

/* ---------- Coverage ---------- */

.coverage-grid {
	display: grid;
	gap: 8px;
	align-items: center;
}

.coverage-map img {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

/* ---------- Locations ---------- */

.location-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px;
}

.location-card h3 {
	font-family: var(--font-display);
	font-size: 1.7rem;
	line-height: 1.1;
	text-transform: uppercase;
}

.location-address {
	display: flex;
	gap: 8px;
}

.card .location-address {
	color: var(--ink);
}

.location-address .icon {
	margin-top: 3px;
	color: var(--blue-soft);
}

.location-meta {
	display: grid;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.location-meta div {
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.location-meta dt {
	color: var(--ink-soft);
}

.location-meta dd {
	font-weight: 700;
	text-align: right;
}

.location-card .btn {
	margin-top: auto;
	font-size: 1.2rem;
}

/* ---------- Reviews and gallery ---------- */

.review-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px;
}

.review-card blockquote::before {
	content: "\201C";
	display: block;
	height: 34px;
	color: var(--green);
	font-family: Georgia, serif;
	font-size: 3.4rem;
	line-height: 1;
}

.card.review-card blockquote p {
	color: var(--ink);
}

.review-card figcaption {
	margin-top: auto;
	color: var(--ink-soft);
	font-weight: 700;
}

.reviews-link {
	margin-top: 20px;
}

.reviews-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
}

.gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 30px;
}

.gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
}

/* ---------- Fleet callout ---------- */

.fleet {
	padding: 26px 0;
	background: linear-gradient(90deg, rgba(47, 123, 255, 0.24), rgba(61, 220, 74, 0.14));
}

.fleet-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.fleet-inner p {
	flex: 1 1 320px;
	font-size: 1.13rem;
	font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq-list {
	border-top: 1px solid var(--line);
}

.faq-item {
	border-bottom: 1px solid var(--line);
}

.faq-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 60px;
	padding: 16px 4px;
	border: 0;
	background: none;
	color: var(--ink);
	font: inherit;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.faq-btn:hover {
	color: var(--blue-soft);
}

.faq-btn .icon {
	color: var(--green);
	transition: transform 0.2s ease;
}

.faq-btn[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.faq-a {
	color: var(--ink-soft);
}

.faq-a p {
	padding: 0 4px 20px;
}

/*
 * Answers stay in the HTML; with JavaScript they collapse until opened.
 * The 0fr → 1fr grid row animates the height without measuring it.
 */
.js .faq-a {
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	opacity: 0;
	transition: grid-template-rows 0.35s ease, opacity 0.3s ease, visibility 0s 0.35s;
}

.js .faq-a p {
	min-height: 0;
	overflow: hidden;
	padding-bottom: 0;
	transition: padding-bottom 0.35s ease;
}

.js .faq-item.is-open .faq-a {
	grid-template-rows: 1fr;
	visibility: visible;
	opacity: 1;
	transition: grid-template-rows 0.35s ease, opacity 0.3s ease 0.05s, visibility 0s;
}

.js .faq-item.is-open .faq-a p {
	padding-bottom: 20px;
}

.faq-item {
	position: relative;
	transition: background-color 0.2s ease;
}

.faq-item::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 14px;
	bottom: 14px;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(var(--blue), var(--green));
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.js .faq-item.is-open::before {
	transform: scaleY(1);
}

.faq-cta {
	margin-top: 34px;
	padding: 24px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.faq-cta p {
	font-weight: 700;
}

.faq-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.faq-cta-actions .btn {
	flex: 1 1 220px;
}

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

.site-footer {
	padding: 44px 0 32px;
	border-top: 1px solid var(--line);
	background: #030509;
}

.footer-inner {
	display: grid;
	gap: 26px;
}

.footer-brand {
	display: grid;
	gap: 14px;
}

.footer-logo {
	width: 220px;
}

.footer-info {
	display: grid;
	gap: 2px;
}

.footer-info span {
	color: var(--ink-soft);
}

.footer-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}

.footer-link,
.footer-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--ink);
	font-weight: 600;
}

.footer-link .icon {
	width: 16px;
	height: 16px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.footer-small,
.footer-credit {
	color: var(--ink-soft);
	font-size: 0.9rem;
}

.footer-credit a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ink);
	font-weight: 700;
	transition: color 0.2s ease;
}

.footer-credit a:hover {
	color: var(--green);
}

/* ---------- Policy pages and 404 ---------- */

.page-content {
	padding-block: 48px 64px;
}

.page-content h1 {
	margin-bottom: 26px;
	font-size: clamp(2.2rem, 7vw, 3.4rem);
}

.entry {
	max-width: 72ch;
	color: var(--ink-soft);
}

.entry > * + * {
	margin-top: 1.1em;
}

.entry h2,
.entry h3 {
	margin-top: 1.6em;
	color: var(--ink);
}

.entry h2 {
	font-size: 1.9rem;
}

.entry ul {
	padding-left: 1.2em;
	list-style: disc;
}

.notfound {
	min-height: 60vh;
	padding-top: 80px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
	.grid-3 {
		grid-template-columns: 1fr 1fr;
	}

	.grid-locations {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}

	.gallery {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.trust-list li {
		font-size: 1rem;
	}
}

@media (min-width: 960px) {
	:root {
		--header-h: 84px;
	}

	.brand-logo {
		height: 66px;
	}

	.header-note {
		display: inline-flex;
	}

	.hero {
		padding: 64px 0 72px;
	}

	.hero-grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 56px;
	}

	.hero-actions .btn {
		flex: 0 1 auto;
	}

	.trust-list {
		grid-template-columns: repeat(4, 1fr);
		padding-block: 24px;
	}

	.section {
		padding: 88px 0;
	}

	.section-head {
		margin-bottom: 40px;
	}

	.grid-3 {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.video-grid,
	.coverage-grid {
		grid-template-columns: 0.8fr 1.2fr;
		gap: 56px;
	}

	.video-list {
		justify-self: end;
		width: 100%;
	}

	.faq-cta-actions .btn {
		flex: 0 1 auto;
	}

	.footer-inner {
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.footer-nav {
		grid-column: 1 / -1;
	}

	.footer-credit {
		justify-self: end;
	}
}

/* ---------- Motion ---------- */

/*
 * Everything here is transform/opacity only (no layout shift) and optional:
 * without JavaScript, or with reduced motion, the page simply shows static.
 */

/* Scroll progress along the bottom of the sticky header. */
.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: linear-gradient(90deg, var(--blue), var(--green));
	transform: scaleX(var(--progress, 0));
	transform-origin: left;
}

.site-header {
	transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
	background: rgba(5, 8, 15, 0.98);
	box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.9);
}

/* Hero entrance. The H1 and photo move but never start invisible (LCP). */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

@keyframes slide-up {
	from {
		transform: translateY(18px);
	}
}

@keyframes settle {
	from {
		transform: translateY(24px) scale(0.97);
	}
}

.hero h1 {
	animation: slide-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .lede {
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.hero .hero-actions {
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both;
}

.hero .hero-note {
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.32s both;
}

.hero-media {
	animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* The photo leans toward the pointer (set by js/main.js on desktop). */
.hero-media-tilt {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.25s ease-out;
	will-change: transform;
}

.hero-media::before {
	background-size: 200% 200%;
	animation: border-flow 6s ease-in-out infinite alternate;
}

@keyframes border-flow {
	to {
		background-position: 100% 100%;
	}
}

/* Scroll reveal: js/main.js adds .reveal below the fold, then .is-in. */
.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

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

.js .reveal.section-head h2::after {
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s ease 0.3s;
}

.js .reveal.is-in.section-head h2::after {
	transform: scaleX(1);
}

/* Buttons: light sweep on hover, press feedback, ringing phone. */
.btn {
	position: relative;
	overflow: hidden;
}

.btn::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	pointer-events: none;
}

.btn:hover::after {
	left: 130%;
	transition: left 0.6s ease;
}

.btn:active {
	transform: translateY(0) scale(0.98);
}

.btn-call .icon {
	transform-origin: 50% 50%;
	animation: ring 5s ease-in-out 2s infinite;
}

@keyframes ring {
	0%,
	8%,
	100% {
		transform: rotate(0);
	}
	1.5%,
	4.5% {
		transform: rotate(-14deg);
	}
	3%,
	6% {
		transform: rotate(14deg);
	}
}

.btn .icon-arrow {
	transition: transform 0.2s ease;
}

.btn:hover .icon-arrow {
	transform: translateX(4px);
}

/* Cards: lift, brighter edge and a glow that follows the pointer. */
.card {
	position: relative;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 123, 255, 0.2), transparent 65%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.card-media {
	overflow: hidden;
}

.card-media img,
.gallery img,
.video-poster img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card-icon {
	transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.gallery li {
	overflow: hidden;
	border-radius: 10px;
}

.video-card {
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-play::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--green);
	animation: halo 2.4s ease-out infinite;
}

@keyframes halo {
	to {
		transform: scale(1.7);
		opacity: 0;
	}
}

.trust-list .icon {
	transition: transform 0.25s ease;
}

.footer-link,
.footer-nav a,
.reviews-link a {
	transition: color 0.2s ease;
}

@media (hover: hover) {
	.card:hover {
		border-color: rgba(141, 184, 255, 0.55);
		box-shadow: 0 22px 44px -26px rgba(47, 123, 255, 0.75);
		transform: translateY(-5px);
	}

	.card:hover::after {
		opacity: 1;
	}

	.card:hover .card-media img,
	.gallery li:hover img,
	.video-poster:hover img {
		transform: scale(1.06);
	}

	.card:hover .card-icon {
		background: var(--blue);
		color: #fff;
		transform: scale(1.08) rotate(-4deg);
	}

	.video-card:hover {
		border-color: rgba(61, 220, 74, 0.6);
		box-shadow: 0 22px 44px -26px rgba(61, 220, 74, 0.7);
		transform: translateY(-5px);
	}

	.trust-list li:hover .icon {
		transform: scale(1.25);
	}

	.faq-item:hover {
		background: rgba(47, 123, 255, 0.06);
	}

	.footer-link:hover,
	.footer-nav a:hover {
		color: var(--green);
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .reveal {
		opacity: 1;
		transform: none;
	}

	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}
