/* ==========================================================================
   Ovation — base layer
   Reset, element defaults, the container grid, and accessibility utilities.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Keep in-page anchors clear of the fixed header. */
	scroll-padding-top: calc(var(--o-header-height-compact) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--o-bg);
	color: var(--o-text);
	font-family: var(--o-font-body);
	font-size: var(--o-fs-body);
	font-weight: var(--o-fw-regular);
	line-height: var(--o-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Locks the page behind the drawer / search panel without losing scroll position. */
body.o-scroll-locked {
	overflow: hidden;
}

h1 {
font-weight: 700 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--o-space-md);
	font-family: var(--o-font-display);
	font-weight: var(--o-fw-semibold);
	line-height: var(--o-lh-heading);
	color: inherit;
	text-wrap: balance;
}

h1 { font-size: var(--o-fs-h1); }
h2 { font-size: var(--o-fs-h2); }
h3 { font-size: var(--o-fs-h3); }
h4 { font-size: var(--o-fs-h4); }
h5 { font-size: var(--o-fs-body-lg); }
h6 { font-size: var(--o-fs-body); }

p,
ul,
ol,
dl,
blockquote,
figure,
table {
	margin: 0 0 var(--o-space-md);
}

p:last-child,
ul:last-child,
ol:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--o-transition);
}

a:hover {
	color: var(--o-accent);
}

img,
picture,
video,
canvas,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--o-rule);
	margin: var(--o-space-xl) 0;
}

/* --------------------------------------------------------------------------
   Focus
   Visible for keyboard users, suppressed for pointer users. Never removed.
   -------------------------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var(--o-focus);
	outline-offset: 3px;
	border-radius: var(--o-radius-sm);
}

/* --------------------------------------------------------------------------
   The container grid
   .o-container         content capped at 1440 with a 5% gutter
   .o-container--narrow capped at 1100
   .o-container--wide   full width, 5% gutter kept (edge-to-edge sections)
   .o-container--bleed  full width, no gutter (edge-to-edge media)
   -------------------------------------------------------------------------- */
.o-container {
	width: 100%;
	max-width: calc(var(--o-container) + (var(--o-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--o-gutter);
}

.o-container--narrow {
	max-width: calc(var(--o-container-narrow) + (var(--o-gutter) * 2));
}

.o-container--text {
	max-width: calc(var(--o-container-text) + (var(--o-gutter) * 2));
}

.o-container--wide {
	max-width: none;
}

.o-container--bleed {
	max-width: none;
	padding-inline: 0;
}

/* Full-width sections built by the Elementor widget base. */
.o-section {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	padding-block: var(--o-section-y);
}

/*
 * The scrim over a section background.
 *
 * The colour and opacity below are the defaults, and they live here rather
 * than only in the widget's control defaults on purpose: a control default
 * that nobody has touched in the panel is not always written into Elementor's
 * generated stylesheet, and when it is missing the div renders with no colour
 * at all - a scrim that is right in the editor and gone on the front end.
 * Elementor's own rule is far more specific than this one, so the moment
 * someone picks a colour it still wins.
 */
.o-section__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #000;
	opacity: 0.45; /* The shared control default. */
	pointer-events: none;
}

.o-section__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Accessibility utilities
   -------------------------------------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.o-skip-link {
	position: absolute;
	top: 0;
	left: var(--o-gutter);
	z-index: var(--o-z-skiplink);
	transform: translateY(-150%);
	padding: 0.75rem 1.25rem;
	background: var(--o-white);
	color: var(--o-navy);
	font-family: var(--o-font-ui);
	font-weight: var(--o-fw-medium);
	text-decoration: none;
	transition: transform var(--o-transition);
}

.o-skip-link:focus {
	transform: translateY(0);
}

/* Shown only to logged-in editors when a section template is missing. */
.o-section-missing {
	padding: var(--o-space-md);
	border: 1px dashed var(--o-orange);
	background: var(--o-warn-bg);
	color: var(--o-ink);
	font-family: var(--o-font-ui);
	font-size: var(--o-fs-small);
}

/* --------------------------------------------------------------------------
   Small helpers
   -------------------------------------------------------------------------- */
.o-hidden {
	display: none !important;
}

[hidden] {
	display: none !important;
}
