/* global.css — sitewide base rules per MASTER_PROJECT.md */

html {
	scroll-behavior: smooth; /* confirmed: 6.7 "Smooth scrolling to page anchors" */
}

body {
	background-color: var(--color-bg);
	color: var(--color-white);
	font-family: var(--font-primary);
	margin: 0;
}

/* Shared button system — confirmed: Section 3.17 "Buttons performing the
 * same action must look identical." Every CTA button sitewide (header,
 * hero, 404, services popup trigger, cookie banner, map route, training
 * CTA) uses one of these two classes instead of a bespoke per-component
 * button style. */
.btn-primary {
	display: inline-block;
	font-family: var(--font-primary);
	font-weight: 600;
	color: var(--color-white);
	background-color: var(--color-accent);
	border-radius: 12px; /* TODO: confirm exact value against Figma — visibly more rounded than a sharp 8px in every button screenshot */
	padding: 12px 24px; /* TODO: confirm against Figma */
	text-decoration: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	opacity: 1;
	transition: opacity 250ms ease; /* was previously missing any hover feedback at all */
}

.btn-primary:hover {
	opacity: 0.85;
}

.btn-secondary {
	display: inline-block;
	font-family: var(--font-primary);
	font-weight: 600;
	color: var(--color-white);
	background-color: transparent;
	border: 1px solid var(--color-accent);
	border-radius: 12px; /* TODO: confirm exact value against Figma */
	padding: 12px 24px; /* TODO: confirm against Figma */
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 250ms ease;
}

.btn-secondary:hover {
	background-color: rgba(64, 150, 252, 0.1);
}

/* Focus states — confirmed sitewide requirement: Section 4.22
 * "Interactive elements require focus states." Covers every link/button;
 * component-specific files no longer need their own focus-visible rules. */
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Shared section spacing — confirmed: Section 3.16 "maintain consistent
 * vertical spacing... never create abrupt transitions." Apply this class
 * (via Advanced > CSS Classes) to each top-level Elementor container for
 * Benefits/Services/Training Preview/Reviews/Map on the Home page, and the
 * equivalent sections on the Training page, so section rhythm stays
 * consistent instead of each one getting ad-hoc padding in Elementor. */
.section-py {
	padding-top: 120px; /* TODO: confirm against Figma */
	padding-bottom: 120px; /* TODO: confirm against Figma */
}

@media (max-width: 767px) {
	.section-py {
		padding-top: 64px; /* TODO: confirm against Figma */
		padding-bottom: 64px;
	}
}

/* Offset anchored sections so they don't sit under the fixed header.
   TODO: exact header height not confirmed by Figma yet — placeholder matches
   the header.css TODO height of 80px. */
section[id] {
	scroll-margin-top: 80px;
}

/* 404 page (MASTER_PROJECT.md Section 26) — custom layout, no dedicated
 * stylesheet since it's a single simple page. Dark background, centered
 * content, confirmed by spec; exact spacing/typography values are placeholders. */
.error-404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
}

.error-404__inner {
	max-width: 480px; /* TODO: confirm against Figma */
}

.error-404__title {
	font-family: var(--font-primary);
	font-size: 32px; /* TODO: confirm against Figma */
	margin: 0 0 16px;
}

.error-404__desc {
	color: var(--color-text-muted);
	margin: 0 0 32px;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
