/*!
 * RecLite — flexible component styles.
 *
 * One section per component, in FRD MODULE-07 order. Component CSS uses
 * the brand CSS custom properties (declared inline in <head> by
 * reclite_brand_css_variables()) — never hardcoded hex.
 */

/* --------------------------------------------------------- Shared utilities */

.section {
	position: relative;
	overflow: hidden;
}
.section .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.button {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: var(--reclite-btn-radius, 4px);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background 0.15s ease, color 0.15s ease;
}
.button--primary {
	background: var(--reclite-color-primary, #1f6feb);
	color: #fff;
	border-color: var(--reclite-color-primary, #1f6feb);
}
.button--primary:hover, .button--primary:focus {
	background: transparent;
	color: var(--reclite-color-primary, #1f6feb);
	text-decoration: none;
}
.button--secondary {
	background: transparent;
	color: #fff;
	border-color: #fff;
}
.button--secondary:hover, .button--secondary:focus {
	background: #fff;
	color: var(--reclite-color-text, #1a1a1a);
	text-decoration: none;
}

/* --------------------------------------------------------- 07a-1 Hero Banner */

.section-hero-banner {
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: center;
}
.section-hero-banner--height-full   { min-height: 100vh; }
.section-hero-banner--height-large  { min-height: 70vh; }
.section-hero-banner--height-medium { min-height: 50vh; }
.section-hero-banner__overlay {
	position: absolute; inset: 0;
	background: #000;
	pointer-events: none;
}
.section-hero-banner__overlay--none   { opacity: 0; }
.section-hero-banner__overlay--light  { opacity: 0.3; }
.section-hero-banner__overlay--medium { opacity: 0.5; }
.section-hero-banner__overlay--dark   { opacity: 0.7; }
.section-hero-banner__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 3rem 1rem;
}
.section-hero-banner__heading    { font-size: clamp( 2rem, 5vw, 3.5rem ); margin: 0 0 0.5em; }
.section-hero-banner__subheading { font-size: clamp( 1rem, 2vw, 1.25rem ); margin: 0 0 1.5em; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-hero-banner__ctas       { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------- 07a-2 Page Banner */

.section-page-banner {
	background: var(--reclite-color-secondary, #0b3d2e);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 2.5rem 0 2rem;
}
.section-page-banner--has-image .section-page-banner__overlay {
	position: absolute; inset: 0;
	background: #000;
	pointer-events: none;
}
.section-page-banner__overlay--light { opacity: 0.3; }
.section-page-banner__overlay--dark  { opacity: 0.55; }
.section-page-banner__inner   { position: relative; z-index: 1; }
.section-page-banner__heading { font-size: clamp( 1.6rem, 3vw, 2.4rem ); margin: 0 0 0.4em; }
.section-page-banner .site-breadcrumbs { padding: 0; margin: 0; color: rgba(255,255,255,0.85); max-width: none; }
.section-page-banner .site-breadcrumbs a { color: inherit; }

/* --------------------------------------------------------- 07a-3 Split Hero */

.section-split-hero            { padding: 3rem 0; }
.section-split-hero__inner     { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.section-split-hero--image-left  .section-split-hero__media { order: -1; }
.section-split-hero--image-right .section-split-hero__media { order: 1; }
.section-split-hero__heading   { font-size: clamp( 1.5rem, 3vw, 2.25rem ); margin: 0 0 0.6em; }
.section-split-hero__media img { width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 768px) {
	.section-split-hero__inner { grid-template-columns: 1fr; }
	.section-split-hero--image-left .section-split-hero__media,
	.section-split-hero--image-right .section-split-hero__media { order: -1; }
}

/* --------------------------------------------------------- 07a-4 Video Hero */

.section-video-hero {
	min-height: 70vh;
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: center;
	position: relative;
}
.section-video-hero__video {
	position: absolute; inset: 0;
	overflow: hidden;
	z-index: 0;
}
.section-video-hero__video iframe {
	position: absolute;
	top: 50%; left: 50%;
	width: 177.78vh;            /* 16:9 */
	height: 56.25vw;
	min-width: 100%; min-height: 100%;
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.section-video-hero__overlay {
	position: absolute; inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1;
}
.section-video-hero__inner   { position: relative; z-index: 2; text-align: center; padding: 3rem 1rem; }
.section-video-hero__heading { font-size: clamp( 2rem, 5vw, 3.5rem ); margin: 0 0 0.4em; }
.section-video-hero__subheading { font-size: clamp( 1rem, 2vw, 1.25rem ); margin: 0 0 1.5em; max-width: 720px; margin-left: auto; margin-right: auto; }

[data-reduced-motion="true"] .section-video-hero__video { display: none; }

/* --------------------------------------------------------- 07a-5 Alert Banner (per-section) */

.section-alert            { padding: 1rem 0; }
.section-alert--info      { background: #e7f3ff; color: #0b3d2e; }
.section-alert--warning   { background: #fff7e0; color: #5a3e00; }
.section-alert--danger    { background: #fde2e2; color: #6a1f1f; }
.section-alert--success   { background: #e3f6e2; color: var(--reclite-color-secondary, #1f5a25); }
.section-alert__inner     { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.section-alert__message   { flex: 1; min-width: 220px; }
.section-alert__cta {
	padding: 0.35rem 0.9rem;
	border-radius: var(--reclite-btn-radius, 4px);
	background: var(--reclite-color-primary, #1f6feb);
	color: #fff !important;
	text-decoration: none;
}
.section-alert__dismiss { background: transparent; border: 0; font-size: 1.4rem; cursor: pointer; line-height: 1; color: inherit; }
