/**
 * HD Custom Dev — Drone section styles (Phase 1, Lexend pilot).
 * Loaded only on pages whose content carries an hd-drone-* class.
 * Brand tokens per claude/brand-identity.md: hd-teal #127F86, hd-aqua #3ECFB2,
 * hd-coral #FF6B4A, navy overlays for photo legibility. CSS-first motion:
 * scroll-driven reveals (native animation-timeline where supported), hover
 * lifts, and a slow hero drift. No JavaScript required.
 */

:root {
	--hd-teal: #127f86;
	--hd-aqua: #3ecfb2;
	--hd-coral: #ff6b4a;
	--hd-navy: #0d1b2a;
	--hd-navy-80: rgba(13, 27, 42, 0.8);
	--hd-mist: #f4f7f9;
	--hd-drone-font: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Lexend pilot: scope to the drone sections only ---- */
[class*="hd-drone-"],
[class*="hd-drone-"] h1,
[class*="hd-drone-"] h2,
[class*="hd-drone-"] h3,
[class*="hd-drone-"] h4,
[class*="hd-drone-"] p,
[class*="hd-drone-"] a {
	font-family: var(--hd-drone-font);
}

[class*="hd-drone-"] h1,
[class*="hd-drone-"] h2,
[class*="hd-drone-"] h3 {
	letter-spacing: -0.015em;
	text-wrap: balance;
}

/* ---- Hero ---- */
.hd-drone-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* Navy gradient overlay for text legibility (brand: 40–70%). */
.hd-drone-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(
		180deg,
		rgba(13, 27, 42, 0.55) 0%,
		rgba(13, 27, 42, 0.35) 45%,
		rgba(13, 27, 42, 0.62) 100%
	);
	pointer-events: none;
}

.hd-drone-hero .fusion-builder-row {
	position: relative;
	z-index: 1;
}

.hd-drone-hero-title h1 {
	color: #fff !important;
	font-size: clamp(2.6rem, 6vw, 4.5rem) !important;
	font-weight: 600;
	line-height: 1.08 !important;
	text-shadow: 0 2px 24px rgba(13, 27, 42, 0.45);
	margin-bottom: 0.4em;
}

.hd-drone-hero-sub p {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 300;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
	text-shadow: 0 1px 12px rgba(13, 27, 42, 0.5);
}

/* Staggered hero entrance. */
@media (prefers-reduced-motion: no-preference) {
	.hd-drone-hero-title,
	.hd-drone-hero-sub,
	.hd-drone-hero-ctas {
		animation: hdRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
	}
	.hd-drone-hero-sub  { animation-delay: 0.15s; }
	.hd-drone-hero-ctas { animation-delay: 0.3s; }
}

@keyframes hdRise {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}

/* ---- Buttons ---- */
.hd-drone-btn {
	display: inline-block;
	padding: 15px 36px;
	margin: 6px 8px;
	border-radius: 999px;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hd-drone-btn-solid {
	background: var(--hd-coral);
	color: #fff !important;
	box-shadow: 0 10px 30px -12px rgba(255, 107, 74, 0.75);
}

.hd-drone-btn-solid:hover {
	background: #e85a3a;
	transform: translateY(-2px);
	box-shadow: 0 16px 34px -12px rgba(255, 107, 74, 0.85);
}

.hd-drone-btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(6px);
}

.hd-drone-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
}

/* ---- Section headings ---- */
.hd-drone-h2 h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem) !important;
	font-weight: 600;
	color: var(--hd-navy);
	margin-bottom: 0.9em;
}

.hd-drone-h2.hd-on-dark h2 { color: #fff !important; }
.hd-drone-h3 h3 { font-weight: 600; color: var(--hd-navy); }

/* ---- Pitch ---- */
.hd-drone-narrow { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }

.hd-drone-pitch-text p {
	font-size: 1.08rem;
	font-weight: 300;
	line-height: 1.75;
	color: #2b3a49;
}

/* ---- Deliverable cards ---- */
.hd-drone-deliver { background-color: var(--hd-mist); }

.hd-drone-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 24px -12px rgba(13, 27, 42, 0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	margin-bottom: 24px;
}

.hd-drone-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px -18px rgba(13, 27, 42, 0.3);
}

.hd-drone-card-img { display: block; margin: -1px -1px 0; }
.hd-drone-card-img img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.hd-drone-card:hover .hd-drone-card-img img { transform: scale(1.045); }

.hd-drone-card-title { padding: 18px 24px 0; }
.hd-drone-card-title h3 { font-size: 1.22rem !important; font-weight: 600; margin: 0; }
.hd-drone-card .fusion-text { padding: 0 24px 22px; }
.hd-drone-card .fusion-text p { font-weight: 300; line-height: 1.65; }

.hd-drone-card-tag { color: var(--hd-teal); font-weight: 500; margin: 6px 0 10px; }

.hd-drone-card-link {
	color: var(--hd-coral) !important;
	font-weight: 500;
	text-decoration: none !important;
	transition: letter-spacing 0.2s ease;
}

.hd-drone-card-link:hover { letter-spacing: 0.03em; }

/* Packages variant: text-only cards. */
.hd-drone-pkg .hd-drone-card-title { padding-top: 26px; }
.hd-drone-pkg-note { color: #5b6b7a; font-weight: 300; }

/* ---- Sector tiles ---- */
.hd-drone-sector .fusion-text { height: 100%; }

.hd-drone-sector-inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 26px 26px 22px;
	margin-bottom: 22px;
	border: 1.5px solid #dde5ea;
	border-radius: 12px;
	background: #fff;
	text-decoration: none !important;
	position: relative;
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hd-drone-sector-inner::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--hd-aqua), var(--hd-teal));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.3s ease;
}

.hd-drone-sector-inner:hover {
	border-color: var(--hd-teal);
	transform: translateY(-4px);
	box-shadow: 0 16px 34px -18px rgba(18, 127, 134, 0.35);
}

.hd-drone-sector-inner:hover::before { transform: scaleY(1); }

.hd-drone-sector-title { font-size: 1.12rem; font-weight: 600; color: var(--hd-navy); }
.hd-drone-sector-tag { font-weight: 300; color: #4a5a68; }

.hd-drone-sector-arrow {
	margin-top: auto;
	color: var(--hd-coral);
	font-size: 1.3rem;
	transition: transform 0.25s ease;
}

.hd-drone-sector-inner:hover .hd-drone-sector-arrow { transform: translateX(6px); }

/* ---- Trust band ---- */
.hd-drone-trust {
	position: relative;
	isolation: isolate;
}

.hd-drone-trust::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(13, 27, 42, 0.78), rgba(13, 27, 42, 0.66));
	pointer-events: none;
}

.hd-drone-trust .fusion-builder-row { position: relative; z-index: 1; }

.hd-drone-trust-item .fusion-text { padding: 0 12px; }

.hd-drone-trust-title {
	color: #fff;
	font-weight: 600;
	font-size: 1.05rem;
	padding-left: 30px;
	position: relative;
}

.hd-drone-trust-title::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: -1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--hd-aqua);
	color: var(--hd-navy);
	font-size: 0.8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hd-drone-trust-body {
	color: rgba(255, 255, 255, 0.82);
	font-weight: 300;
	padding-left: 30px;
	line-height: 1.6;
}

/* ---- CTA band ---- */
.hd-drone-cta {
	background: linear-gradient(115deg, var(--hd-navy) 0%, #123a48 55%, var(--hd-teal) 130%) !important;
}

.hd-drone-cta-sub p {
	color: rgba(255, 255, 255, 0.88);
	font-weight: 300;
	font-size: 1.12rem;
}

/* Compact CTA strip (replaces the old in-content heroes under the new band) */
.hd-drone-cta-strip .hd-drone-hero-ctas { margin: 0; }
.hd-drone-cta-strip .hd-drone-btn { margin: 4px 8px; padding: 12px 30px; }

/* Fine print */
.hd-drone-fineprint p { color: #5b6b7a; font-weight: 300; }

/* ---- Scroll-driven reveals (native, no JS; graceful without support) ---- */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hd-drone-card,
		.hd-drone-sector-inner,
		.hd-drone-trust-item {
			animation: hdRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
			animation-timeline: view();
			animation-range: entry 0% entry 42%;
		}
	}
}
