/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-weight: 700;
	font-size: var(--fs-sm);
	line-height: 1;
	padding: 0.875rem 1.5rem;
	border-radius: var(--radius-full);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}

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

.btn--primary {
	background: var(--color-primary-dark);
	color: var(--white);
	box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
	background: var(--blue-900);
	box-shadow: var(--shadow-md);
}

.btn--secondary {
	background: transparent;
	color: var(--color-primary);
	border-color: var(--color-border);
}

.btn--secondary:hover {
	border-color: var(--color-primary);
	background: var(--color-primary-tint);
}

.btn--ghost-inverse {
	background: transparent;
	color: var(--color-inverse-text);
	border-color: var(--color-inverse-border);
}

.btn--ghost-inverse:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
	padding: 0.625rem 1.125rem;
	font-size: var(--fs-xs);
}

.btn--block {
	width: 100%;
}

.btn[target="_blank"]::after {
	content: "";
	width: 11px;
	height: 11px;
	margin-left: 2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3z'/%3E%3Cpath d='M5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3z'/%3E%3Cpath d='M5 5h6v2H7v10h10v-4h2v6H5V5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	padding-block: var(--space-12) var(--space-10);
}

.hero__content {
	max-width: 640px;
}

.hero h1 {
	margin-top: var(--space-4);
	font-size: clamp(2.5rem, 1.75rem + 3.25vw, 3.75rem);
	line-height: 1.05;
}

.hero__subhead {
	font-size: var(--fs-lg);
	margin-top: var(--space-5);
	max-width: 52ch;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	margin-top: var(--space-8);
	flex-wrap: wrap;
}

.hero--feature {
	background: var(--color-inverse-bg);
	color: var(--color-inverse-text);
}

.hero--feature .hero__content {
	max-width: 760px;
}

.hero--feature .eyebrow {
	color: var(--blue-500);
}

.hero--feature h1 {
	color: var(--color-inverse-text);
}

.hero--feature .hero__subhead {
	color: var(--color-inverse-text-muted);
}

/* ==========================================================================
   Placeholder visuals (hero graphic / video tour)
   ========================================================================== */
.placeholder-visual {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	background: linear-gradient(155deg, var(--blue-700), var(--blue-900));
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.placeholder-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 20% 20%, rgba(217, 142, 59, 0.35), transparent 45%),
		radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.12), transparent 40%);
}

.hero-visual-frame {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.hero-visual-frame__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-placeholder {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	background: linear-gradient(155deg, var(--blue-800), var(--blue-900));
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.video-placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle at 15% 15%, rgba(217, 142, 59, 0.3), transparent 45%),
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: auto, 32px 32px, 32px 32px;
}

.video-placeholder__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	color: var(--color-inverse-text);
	text-align: center;
	padding: var(--space-4);
}

.video-placeholder__play {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
}

.video-placeholder__play svg {
	width: 22px;
	height: 22px;
	fill: var(--white);
	margin-left: 3px;
}

.video-placeholder__badge {
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-inverse-text-muted);
}

.video-placeholder__caption {
	font-size: var(--fs-sm);
	color: var(--color-inverse-text-muted);
	max-width: 34ch;
}

.video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.video-embed iframe,
.video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: var(--blue-900);
}

.video-embed--facade {
	cursor: pointer;
	background: var(--blue-900);
}

.video-embed--facade img,
.video-embed__fallback-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-embed__fallback-bg {
	background: linear-gradient(155deg, var(--blue-800), var(--blue-900));
}

.video-embed__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.video-embed--facade:hover .video-embed__play {
	background: rgba(255, 255, 255, 0.24);
	transform: translate(-50%, -50%) scale(1.05);
}

.video-embed__play svg {
	width: 22px;
	height: 22px;
	fill: var(--white);
	margin-left: 3px;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
	background: var(--white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-6);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
	border-color: transparent;
}

.card__icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	background: var(--color-primary-tint);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-4);
}

.card__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--color-primary-dark);
	stroke-width: 1.75;
}

.card h3 {
	margin-bottom: var(--space-2);
}

.card p {
	font-size: var(--fs-sm);
	margin-bottom: 0;
}

.card__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--color-primary);
	margin-top: var(--space-4);
}

.problem-card {
	background: var(--color-bg-alt);
	border-radius: var(--radius-md);
	padding: var(--space-6);
}

.problem-card--dark {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--color-inverse-border);
}

.problem-card--dark h3 {
	color: var(--color-inverse-text);
}

.problem-card--dark p {
	color: var(--color-inverse-text-muted);
}

/* ==========================================================================
   How it works (fixed 5-step process)
   ========================================================================== */
.process {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--space-5);
	counter-reset: step;
}

@media (max-width: 1000px) {
	.process {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.process {
		grid-template-columns: 1fr;
	}
}

.process__step {
	position: relative;
	padding-top: var(--space-6);
}

.process__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--color-inverse-bg);
	color: var(--color-inverse-text);
	font-weight: 700;
	font-size: var(--fs-sm);
	margin-bottom: var(--space-4);
}

.process__step h3 {
	font-size: var(--fs-base);
	margin-bottom: var(--space-2);
}

.process__step p {
	font-size: var(--fs-sm);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-6);
}

@media (max-width: 700px) {
	.stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.stat {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--color-inverse-border);
	border-radius: var(--radius-md);
	padding: var(--space-6) var(--space-4);
	text-align: center;
}

.stat__number {
	font-size: var(--fs-3xl);
	font-weight: 800;
	color: var(--color-accent);
}

.stat__label {
	font-size: var(--fs-sm);
	color: var(--color-inverse-text-muted);
	margin-top: var(--space-2);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
	background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
	border-radius: var(--radius-lg);
	padding: var(--space-10);
	color: var(--color-inverse-text);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-8);
	flex-wrap: wrap;
}

.cta-banner h2 {
	color: var(--color-inverse-text);
	max-width: 24ch;
}

.cta-banner p {
	color: var(--color-inverse-text-muted);
	margin-top: var(--space-2);
}

.cta-banner__actions {
	display: flex;
	gap: var(--space-4);
	flex-wrap: wrap;
}

/* ==========================================================================
   Rich content (block-editor body copy on feature/page templates)
   ========================================================================== */
.entry-content {
	max-width: 760px;
}

.entry-content > * + * {
	margin-top: var(--space-5);
}

.entry-content h2 {
	margin-top: var(--space-10);
}

.entry-content h3 {
	margin-top: var(--space-8);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.entry-content table {
	font-size: var(--fs-sm);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	background: var(--color-bg);
}

.entry-content thead th {
	background: var(--color-bg-alt);
	font-weight: 700;
}

.entry-content blockquote {
	border-left: 3px solid var(--color-accent);
	padding-left: var(--space-5);
	font-size: var(--fs-lg);
	color: var(--color-text);
	font-weight: 600;
}

/* ==========================================================================
   Forms (contact page)
   ========================================================================== */
.form-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
}

.form-field label {
	font-size: var(--fs-sm);
	font-weight: 700;
}

.form-field input,
.form-field textarea {
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--white);
	font-size: var(--fs-base);
}

.form-field input:focus,
.form-field textarea:focus {
	border-color: var(--color-primary);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-5);
}

@media (max-width: 600px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

.form-notice {
	padding: var(--space-4) var(--space-5);
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	margin-bottom: var(--space-6);
}

.form-notice--success {
	background: var(--color-primary-tint);
	color: var(--color-primary-hover);
}

.form-notice--error {
	background: #fbe9e7;
	color: #a33a2a;
}

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