/*
 * Base styles. Every colour, size and space comes from tokens.css.
 * Elementor Site Settings override these for builder content.
 */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-serif);
	font-size: var(--type-body-size);
	line-height: var(--type-body-line);
	font-weight: var(--type-body-weight);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

h1, h2, h3 { color: var(--heading); margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: var(--type-h1-size); line-height: var(--type-h1-line); font-weight: var(--type-h1-weight); }
h2 { font-size: var(--type-h2-size); line-height: var(--type-h2-line); font-weight: var(--type-h2-weight); }
h3 { font-size: var(--type-h3-size); line-height: var(--type-h3-line); font-weight: var(--type-h3-weight); }

/* Gold rule under H1 and H2 */
h1::after, h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-top: 12px;
	background: var(--rule);
}

@media (max-width: 767px) {
	body { font-size: var(--type-body-mobile-size); }
	h1 { font-size: var(--type-h1-mobile-size); line-height: var(--type-h1-mobile-line); }
	h2 { font-size: var(--type-h2-mobile-size); line-height: var(--type-h2-mobile-line); }
	h3 { font-size: var(--type-h3-mobile-size); line-height: var(--type-h3-mobile-line); }
}

/*
 * Buttons: the one style every button on the site uses (header, hero, widgets).
 * Square, two kinds: .btn is filled in the accent, .btn--outline is outlined and fills on hover.
 * The fill sweeps in from the left. .btn--sm is the compact size for the header.
 * Colours follow the data-theme of the section the button sits in.
 * Selectors are doubled so the Elementor Kit's link and button styles do not win.
 */
.btn.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-3);
	min-height: 54px;
	padding: 0 28px;
	border: 2px solid var(--accent);
	border-radius: var(--radius-none);
	background: var(--accent) linear-gradient(var(--accent-hover), var(--accent-hover)) no-repeat 0 0 / 0 100%;
	color: var(--on-accent);
	font-family: var(--font-serif);
	font-size: var(--type-button-size);
	line-height: var(--type-button-line);
	font-weight: var(--type-button-weight);
	letter-spacing: var(--type-button-tracking);
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-size .45s cubic-bezier(.22, .61, .36, 1), border-color .3s ease, color .3s ease;
}
.btn.btn:hover,
.btn.btn:focus-visible {
	background-size: 100% 100%;
	border-color: var(--accent-hover);
	color: var(--on-accent);
}
.btn.btn svg { flex: none; width: 18px; height: 18px; transition: transform .3s ease; }
.btn.btn:hover svg { transform: translateX(4px); }

.btn.btn--outline {
	background: transparent linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0 100%;
	border-color: var(--border-strong);
	color: var(--accent);
}
.btn.btn--outline:hover,
.btn.btn--outline:focus-visible {
	border-color: var(--accent);
	color: var(--on-accent);
}

.btn.btn--sm { min-height: 44px; padding: 0 24px; }

/* Wrapper of the Button widget; its alignment control sets justify-content */
.kl-button { display: flex; }

/* Themed sections: <section data-theme="burgundy"> */
[data-theme] { background: var(--bg); color: var(--fg); }

.eyebrow {
	margin: 0 0 var(--space-2);
	color: var(--eyebrow);
	font-size: var(--type-eyebrow-size);
	font-weight: var(--type-eyebrow-weight);
	letter-spacing: var(--type-eyebrow-tracking);
	text-transform: uppercase;
}

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: var(--space-3); top: -100px; z-index: 200;
	padding: var(--space-2) var(--space-3);
	background: var(--bg); color: var(--accent);
}
.skip-link:focus { top: var(--space-2); }

/* Logos */
.site-logo { display: block; width: auto; }
.site-logo--horizontal { height: 64px; }
.site-logo--stacked { height: 112px; }

/* Plain templates */
.entry { max-width: 760px; margin: 0 auto; padding: var(--space-6) var(--space-3); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn.btn, .btn.btn svg { transition: none; }
}
