/*
Theme Name: SEO Agentuur
Theme URI: https://seo-agentuur.ee/
Author: SEO Agentuur
Author URI: https://seo-agentuur.ee/
Description: SEO Agentuuri käsitsi kirjutatud teema. Avaleht on ACF-iga muudetav ja töötab ilma JavaScriptita (ainult HTML ja CSS).
Version: 1.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-agentuur
*/

/* ==========================================================================
   1. Fondid ja muutujad
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Bränd. */
	--sa-teal: #619f95;
	--sa-mint: #75eddc;
	--sa-mint-bg: #e9fdfa;
	--sa-orange: #fe6042;
	--sa-orange-grad: linear-gradient(103deg, #ff5461 34%, #fe6140 76%);

	/* Sama üleminek mis senisel lehel. Lõpp on 115% peal, et valge menüütekst jääks nurgas loetavaks (AA). */
	--sa-dark-grad: linear-gradient(45deg, #000 35%, var(--sa-teal) 115%);

	/* Samad toonid tekstisuuruses (WCAG AA kontrast heledal taustal). */
	--sa-teal-deep: #3a7369;
	--sa-orange-ink: #d13d1e;

	/* Neutraalid. */
	--sa-ink: #0b1211;
	--sa-navy: #181a31;
	--sa-text: #3b3d42;
	--sa-muted: #5f6070;
	--sa-line: #e2e9e7;
	--sa-line-strong: #cbd8d5;
	--sa-soft: #f4fbfa;
	--sa-white: #fff;

	/* Mõõdud. */
	--sa-container: 1200px;
	--sa-gutter: 24px;
	--sa-radius: 20px;
	--sa-radius-field: 28px;
	--sa-section: clamp(72px, 10vw, 136px);
	--sa-h2: clamp(34px, 4.6vw, 62px);
	--sa-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Sisselogitud kasutaja tööriistariba kõrgus, et täisekraani menüü selle alla ei jääks. */
	--sa-adminbar: 0px;

	/* Brändi ümar kolmnurk (sama kuju mis avalehe fotol). */
	--sa-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M0.130,0.577 Q-0.100,0.300 0.243,0.191 L0.757,0.029 Q1.100,-0.080 0.957,0.250 L0.723,0.790 Q0.580,1.120 0.350,0.843 Z'/%3E%3C/svg%3E");
	--sa-shape-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M0.020,0.240 Q0.020,-0.060 0.287,0.076 L0.853,0.364 Q1.120,0.500 0.853,0.636 L0.287,0.924 Q0.020,1.060 0.020,0.760 Z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Alus
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--sa-white);
	color: var(--sa-text);
	font-family: var(--sa-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

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

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

.sa-site {
	position: relative;
	overflow-x: clip;
}

.admin-bar {
	--sa-adminbar: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--sa-adminbar: 46px;
	}
}

.sa-container {
	width: 100%;
	max-width: calc(var(--sa-container) + 2 * var(--sa-gutter));
	margin-inline: auto;
	padding-inline: var(--sa-gutter);
}

.sa-skip {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--sa-white);
	color: var(--sa-navy);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.sa-skip:focus {
	transform: none;
}

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

/* ==========================================================================
   3. Korduvad osad
   ========================================================================== */

.sa-section {
	padding-block: var(--sa-section);
}

.sa-section--tint {
	background: var(--sa-mint-bg);
}

.sa-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	color: var(--sa-teal-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Väike oranž brändikolmnurk iga ülapealkirja ees. */
.sa-eyebrow::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	background: var(--sa-orange);
	-webkit-mask: var(--sa-shape-play) center / 100% 100% no-repeat;
	mask: var(--sa-shape-play) center / 100% 100% no-repeat;
}

.sa-title {
	color: var(--sa-navy);
	font-size: var(--sa-h2);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.sa-lead {
	display: flex;
	gap: 22px;
	margin-top: 28px;
	color: var(--sa-muted);
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.65;
}

.sa-lead::before {
	content: "";
	flex: 0 0 40px;
	height: 2px;
	margin-top: 0.8em;
	background: var(--sa-orange);
}

.sa-btn {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 32px;
	overflow: hidden;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

/* Gradienti ei saa sujuvalt vahetada, seega hover tuleb läbi ::before kihi. */
.sa-btn::before {
	content: "";
	position: absolute;
	inset: -2px;
	z-index: -1;
	background: var(--sa-orange-grad);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sa-btn--mint {
	background: var(--sa-mint);
	color: var(--sa-ink);
}

.sa-btn--teal {
	background: var(--sa-teal-deep);
	color: var(--sa-white);
}

.sa-btn--mint:hover,
.sa-btn--mint:focus-visible,
.sa-btn--teal:hover,
.sa-btn--teal:focus-visible {
	color: var(--sa-white);
}

.sa-btn--mint:hover::before,
.sa-btn--mint:focus-visible::before,
.sa-btn--teal:hover::before,
.sa-btn--teal:focus-visible::before {
	opacity: 1;
}

.sa-btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--sa-white);
}

.sa-btn--ghost:hover,
.sa-btn--ghost:focus-visible {
	border-color: var(--sa-mint);
	color: var(--sa-mint);
}

.sa-btn svg {
	flex: none;
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}

.sa-btn:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   4. Päis
   ========================================================================== */

.sa-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 20;
	padding-block: 28px;
	color: var(--sa-white);
}

/* Teistel lehtedel pole tumedat hero't, seega päis saab oma tausta. */
body:not(.home) .sa-header {
	position: relative;
	background: var(--sa-dark-grad);
}

.sa-header__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.sa-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.sa-logo img {
	display: block;
	width: clamp(176px, 21vw, 290px);
	height: auto;
}

.sa-menu {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sa-menu li {
	position: relative;
}

.sa-menu a {
	display: block;
	padding: 7px 14px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.sa-menu a:hover,
.sa-menu a:focus-visible {
	color: var(--sa-mint);
}

.sa-menu > .current-menu-item > a,
.sa-menu > .current_page_item > a {
	border-color: var(--sa-mint);
}

.sa-menu > .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin: 0 0 3px 10px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.sa-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 5;
	min-width: 260px;
	padding: 10px;
	border-radius: 14px;
	background: var(--sa-white);
	box-shadow: 0 18px 40px rgba(11, 18, 17, 0.22);
	color: var(--sa-navy);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.sa-menu li:hover > .sub-menu,
.sa-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sa-menu .sub-menu a {
	padding: 10px 14px;
	white-space: normal;
}

.sa-menu .sub-menu a:hover,
.sa-menu .sub-menu a:focus-visible {
	background: var(--sa-mint-bg);
	color: var(--sa-teal-deep);
}

.sa-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 12px;
	color: var(--sa-white);
}

.sa-burger svg {
	width: 22px;
	height: 22px;
}

@media (max-width: 960px) {
	.sa-header {
		padding-block: 20px;
	}

	.sa-burger--open {
		display: flex;
	}

	/* Täisekraani menüü ilma JS-ita: #menyy:target avab, iga link sulgeb. */
	.sa-nav {
		position: fixed;
		inset: var(--sa-adminbar) 0 0;
		z-index: 30;
		display: none;
		flex-direction: column;
		padding: 104px var(--sa-gutter) 40px;
		overflow-y: auto;
		background: var(--sa-ink);
	}

	/* Logo jääb avatud menüü peale nähtavale. */
	.sa-header .sa-logo {
		position: relative;
		z-index: 31;
	}

	#menyy:target {
		display: flex;
	}

	#menyy:target ~ .sa-burger--open {
		display: none;
	}

	#menyy:target ~ .sa-burger--close {
		position: fixed;
		top: calc(20px + var(--sa-adminbar));
		right: var(--sa-gutter);
		z-index: 31;
		display: flex;
	}

	html:has(#menyy:target) {
		overflow: hidden;
	}

	.sa-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sa-menu a {
		padding: 16px 0;
		border: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 0;
		font-size: 20px;
		white-space: normal;
	}

	.sa-menu > .current-menu-item > a,
	.sa-menu > .current_page_item > a {
		color: var(--sa-mint);
	}

	.sa-menu > .menu-item-has-children > a::after {
		display: none;
	}

	.sa-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 18px;
		border-radius: 0;
		background: none;
		box-shadow: none;
		color: inherit;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.sa-menu .sub-menu a {
		padding: 13px 0;
		color: rgba(255, 255, 255, 0.78);
		font-size: 17px;
	}

	.sa-menu .sub-menu a:hover,
	.sa-menu .sub-menu a:focus-visible {
		background: none;
		color: var(--sa-mint);
	}
}

/* ==========================================================================
   5. Hero
   ========================================================================== */

.sa-hero {
	position: relative;
	padding: clamp(136px, 12.5vw, 176px) 0 clamp(72px, 8.5vw, 124px);
	overflow: hidden;
	background: var(--sa-dark-grad);
	color: var(--sa-white);
}

.sa-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	gap: clamp(28px, 4vw, 64px);
	align-items: center;
}

/* Pealkirja suurus tuleb tekstiveeru laiusest, nii mahub pikk sõna ("orienteeritud") igal ekraanil reale. */
.sa-hero__copy {
	container-type: inline-size;
}

.sa-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 26px;
	color: var(--sa-mint);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.sa-hero__eyebrow::before {
	content: "";
	flex: none;
	width: 36px;
	height: 2px;
	background: currentColor;
}

.sa-hero__title {
	font-size: clamp(34px, 5.6vw, 84px);
	font-size: clamp(34px, 12.6cqi, 88px);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

/* Pealkirja osa, mis on ACF-väljal span-märgendi sees. */
.sa-hero__title span {
	color: var(--sa-mint);
}

.sa-hero__text {
	max-width: 32em;
	margin-top: 30px;
	color: rgba(255, 255, 255, 0.86);
	font-size: clamp(17px, 1.45vw, 20px);
	line-height: 1.6;
}

.sa-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.sa-hero__visual {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin-left: auto;
	aspect-ratio: 1 / 1;
}

.sa-hero__accent {
	position: absolute;
	inset: 0;
	background: var(--sa-orange-grad);
	-webkit-mask: var(--sa-shape) center / 100% 100% no-repeat;
	mask: var(--sa-shape) center / 100% 100% no-repeat;
	transform: translate(-6%, 9%) rotate(-7deg) scale(0.95);
}

.sa-hero__visual picture {
	position: absolute;
	inset: 0;
	display: block;
}

.sa-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Meediateegist valitud foto on tavaline ristkülik, brändi kuju tuleb maskist. */
.sa-hero__img--mask {
	object-fit: cover;
	-webkit-mask: var(--sa-shape) center / 100% 100% no-repeat;
	mask: var(--sa-shape) center / 100% 100% no-repeat;
}

.sa-hero__curve {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	display: block;
	width: 100%;
	height: clamp(36px, 7vw, 100px);
	fill: var(--sa-white);
}

/* Numbrid hero alaosas (template-parts/home/stats.php). */
.sa-stats {
	position: relative;
	z-index: 1;
	margin-top: clamp(48px, 6vw, 88px);
}

.sa-stats__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sa-stat {
	padding: 26px 24px 0;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sa-stat:first-child {
	padding-left: 0;
	border-left: 0;
}

.sa-stat__num {
	display: block;
	color: var(--sa-white);
	font-size: clamp(38px, 4.4vw, 62px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.sa-stat__label {
	display: block;
	margin-top: 12px;
	color: var(--sa-mint);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Kui hero järel on kaldu riba, jääb kaar ära ja riba katab hero alaserva. */
.sa-hero:has(+ .sa-marquee) {
	padding-bottom: clamp(100px, 10vw, 150px);
}

.sa-hero:has(+ .sa-marquee) .sa-hero__curve {
	display: none;
}

/* Otsingutulemuste kaart pildi peal: "Sinu ettevõte" tõuseb esimeseks. */
.sa-serp {
	--sa-row: 52px;
	position: absolute;
	bottom: 2%;
	left: -8%;
	z-index: 2;
	width: min(360px, 74%);
	padding: 14px 14px 12px;
	border-radius: 16px;
	background: var(--sa-white);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
	color: var(--sa-navy);
	transform: rotate(-4deg);
	/* Oma kiht: muidu jättis Chrome kaardi sisu animatsiooni ajal uuesti joonistamata (pildi pop-animatsiooni sees). */
	will-change: transform;
}

.sa-serp__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 44px;
	padding: 0 14px 0 18px;
	border: 1px solid var(--sa-line-strong);
	border-radius: 22px;
	font-size: 15px;
	font-weight: 600;
}

.sa-serp__q::after {
	content: "";
	display: inline-block;
	width: 2px;
	height: 1.1em;
	margin-left: 3px;
	vertical-align: -0.18em;
	background: var(--sa-teal-deep);
}

.sa-serp__bar svg {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--sa-teal-deep);
}

.sa-serp__results {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(3, var(--sa-row));
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 6px 4px;
	margin-top: 12px;
}

.sa-serp__pos {
	align-self: center;
	color: var(--sa-muted);
	font-size: 13px;
	font-weight: 700;
}

.sa-serp__row {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	padding: 0 44px 0 12px;
	border-radius: 10px;
}

.sa-serp__row--you {
	z-index: 1;
	gap: 2px;
	background: var(--sa-mint-bg);
	box-shadow: inset 3px 0 0 var(--sa-teal);
}

.sa-serp__url {
	color: var(--sa-teal-deep);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.sa-serp__title {
	color: var(--sa-navy);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.sa-serp__line {
	display: block;
	width: 86%;
	height: 8px;
	border-radius: 4px;
	background: #e3eae8;
}

.sa-serp__line--short {
	width: 54%;
	background: #edf2f1;
}

.sa-serp__up {
	position: absolute;
	top: 50%;
	right: 10px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -14px;
	border-radius: 50%;
	background: var(--sa-orange);
	color: var(--sa-white);
}

.sa-serp__up svg {
	width: 15px;
	height: 15px;
	transform: rotate(-90deg);
}

/* Täisarvud loetakse lehe avamisel nullist üles. Päris number jääb lehele (ekraanilugeja, otsingumootor). */
@property --sa-n {
	syntax: "<integer>";
	inherits: false;
	initial-value: 0;
}

/* Hero liikumine: sisu tõuseb sisse, kaart näitab tõusu, numbrid loevad, oranž kujund pöörleb kerimisel. */
@media (prefers-reduced-motion: no-preference) {
	.sa-hero__eyebrow,
	.sa-hero__text,
	.sa-hero__actions,
	.sa-stats {
		animation: sa-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.sa-hero__text {
		animation-delay: 0.2s;
	}

	.sa-hero__actions {
		animation-delay: 0.3s;
	}

	.sa-stats {
		animation-delay: 0.45s;
	}

	/* Pealkiri ja pilt ainult liiguvad, ei hägustu: nii ei hiline LCP. */
	.sa-hero__title {
		animation: sa-slide 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.sa-hero__visual {
		animation: sa-pop 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
	}

	.sa-serp {
		animation: sa-serp-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
	}

	.sa-serp__row--you {
		animation: sa-serp-climb 1.6s cubic-bezier(0.65, 0, 0.35, 1) 1.5s both;
	}

	.sa-serp__row:not(.sa-serp__row--you) {
		animation: sa-serp-drop 1.6s cubic-bezier(0.65, 0, 0.35, 1) 1.5s both;
	}

	.sa-serp__up {
		animation: sa-serp-up 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 3s both;
	}

	.sa-serp__q::after {
		animation: sa-blink 1s steps(1) 5;
	}

	.sa-stat__num--count .sa-stat__val {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.sa-stat__num--count::after {
		--sa-n: var(--sa-to);
		content: counter(sa-n);
		content: counter(sa-n) / "";
		counter-reset: sa-n var(--sa-n);
		animation: sa-count 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
	}
}

@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.sa-hero__accent {
			animation: sa-accent linear both;
			animation-timeline: scroll(root);
			animation-range: 0 100vh;
		}
	}
}

@keyframes sa-in {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
}

@keyframes sa-slide {
	from {
		transform: translateY(40px);
	}
}

@keyframes sa-pop {
	from {
		transform: scale(0.9) rotate(-3deg);
	}
}

/* Ainult liikumine: läbipaistvuse animatsiooniga jättis Chrome kaardi üldse joonistamata. */
@keyframes sa-serp-in {
	from {
		transform: translateY(70px) rotate(-10deg) scale(0.88);
	}
}

@keyframes sa-serp-climb {
	0% {
		background-color: var(--sa-white);
		box-shadow: inset 0 0 0 var(--sa-teal);
		transform: translateY(calc(2 * (var(--sa-row) + 6px)));
	}

	75% {
		background-color: var(--sa-white);
		box-shadow: inset 0 0 0 var(--sa-teal);
	}

	100% {
		transform: none;
	}
}

@keyframes sa-serp-drop {
	from {
		transform: translateY(calc(-1 * (var(--sa-row) + 6px)));
	}
}

@keyframes sa-serp-up {
	from {
		opacity: 0;
		transform: scale(0.3);
	}
}

@keyframes sa-blink {
	50% {
		opacity: 0;
	}
}

@keyframes sa-count {
	from {
		--sa-n: 0;
	}
}

@keyframes sa-accent {
	from {
		transform: translate(-6%, 9%) rotate(-7deg) scale(0.95);
	}

	to {
		transform: translate(-12%, 18%) rotate(9deg) scale(0.95);
	}
}

@media (max-width: 860px) {
	.sa-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
	}

	.sa-serp {
		left: -14%;
		width: 86%;
	}
}

@media (max-width: 760px) {
	.sa-stats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border-top: 0;
	}

	.sa-stat,
	.sa-stat:first-child {
		padding: 20px 0 0 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.sa-stat:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.sa-stat:nth-child(n + 3) {
		margin-top: 22px;
	}
}

@media (max-width: 640px) {
	.sa-hero {
		padding-top: 128px;
	}

	.sa-hero__actions {
		gap: 10px;
	}

	.sa-hero__actions .sa-btn {
		padding-inline: 24px;
	}

	.sa-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-hero__visual {
		display: none;
	}
}

/* Kaldu riba teenuste nimedega (template-parts/home/marquee.php). */
.sa-marquee {
	position: relative;
	z-index: 3;
	width: 112%;
	margin: calc(-1 * clamp(34px, 3.3vw, 50px)) 0 0 -6%;
	padding-block: clamp(14px, 1.4vw, 22px);
	overflow: hidden;
	background: var(--sa-mint);
	color: var(--sa-ink);
	transform: rotate(-2.4deg);
}

.sa-marquee__track {
	display: flex;
	width: max-content;
}

.sa-marquee__item {
	display: flex;
	flex: none;
	align-items: center;
	gap: clamp(18px, 2.2vw, 34px);
	padding-right: clamp(18px, 2.2vw, 34px);
	font-size: clamp(30px, 4.4vw, 64px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Kontuurkiri: joon joonistatakse täidise alla, nii ei paista muutuvfondi kattuvad kontuurid tähtede sees. */
.sa-marquee__item:nth-child(even) {
	color: var(--sa-mint);
	-webkit-text-stroke: 4px var(--sa-ink);
	paint-order: stroke fill;
}

/* Oranž brändikolmnurk nimede vahel. */
.sa-marquee__item::after {
	content: "";
	flex: none;
	width: 0.5em;
	height: 0.5em;
	background: var(--sa-orange);
	-webkit-mask: var(--sa-shape-play) center / 100% 100% no-repeat;
	mask: var(--sa-shape-play) center / 100% 100% no-repeat;
}

/* Riba liigub ainult koos lehe kerimisega, iseenesest mitte. */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.sa-marquee__track {
			animation: sa-marquee linear both;
			animation-timeline: scroll(root);
			animation-range: 0 150vh;
		}
	}
}

@keyframes sa-marquee {
	from {
		transform: translateX(-4%);
	}

	to {
		transform: translateX(-34%);
	}
}

/* ==========================================================================
   6. Teenused
   ========================================================================== */

.sa-services__intro {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	column-gap: clamp(32px, 6vw, 96px);
	align-items: end;
	margin-bottom: clamp(40px, 5vw, 72px);
}

.sa-services__intro > * {
	grid-column: 1;
}

/* Juhtlõik on pealkirja kõrval paremal. */
.sa-services__intro > .sa-lead {
	grid-row: 1 / span 2;
	grid-column: 2;
	margin-top: 0;
	padding-bottom: 6px;
}

.sa-services__list {
	border-top: 1px solid var(--sa-line-strong);
}

.sa-service {
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-areas: "icon head text arrow";
	grid-template-columns: 72px minmax(0, 1.05fr) minmax(0, 1fr) 52px;
	gap: 8px clamp(18px, 2.6vw, 40px);
	align-items: center;
	padding: clamp(22px, 2.4vw, 32px) clamp(0px, 2vw, 28px);
	border-bottom: 1px solid var(--sa-line-strong);
}

/* Lingiga rida täitub hiire all (ja klaviatuuriga fookuses) tumeda brändirohelisega. */
.sa-service::before {
	content: "";
	position: absolute;
	inset: -1px 0;
	z-index: -1;
	border-radius: var(--sa-radius);
	background: var(--sa-teal-deep);
	opacity: 0;
	transform: scaleY(0.92);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.sa-service--link:hover::before,
.sa-service--link:has(:focus-visible)::before {
	opacity: 1;
	transform: none;
}

.sa-service__icon {
	position: relative;
	display: grid;
	grid-area: icon;
	place-items: center;
	width: 72px;
	height: 72px;
	color: var(--sa-tone);
}

.sa-service__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--sa-tone-bg);
	-webkit-mask: var(--sa-shape-play) center / 100% 100% no-repeat;
	mask: var(--sa-shape-play) center / 100% 100% no-repeat;
	transform: rotate(180deg);
	transition: transform 0.45s ease;
}

.sa-service:hover .sa-service__icon::before {
	transform: rotate(150deg);
}

.sa-service__icon svg,
.sa-service__icon img {
	position: relative;
	left: 7px;
	width: 29px;
	height: 29px;
}

/* Oma ikoon (nt senised kolmnurgaga SVG-d) täidab kogu ala, teema kuju ei lisata. */
.sa-service__icon--custom::before {
	content: none;
}

.sa-service__icon--custom img {
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sa-service--red {
	--sa-tone: #d8492f;
	--sa-tone-bg: #fde3dd;
}

.sa-service--green {
	--sa-tone: #1f8a68;
	--sa-tone-bg: #d6f5ec;
}

.sa-service--yellow {
	--sa-tone: #b97a0c;
	--sa-tone-bg: #ffeccb;
}

.sa-service--blue {
	--sa-tone: #3f63d8;
	--sa-tone-bg: #e0e8fd;
}

.sa-service--purple {
	--sa-tone: #8a4fd0;
	--sa-tone-bg: #eedffc;
}

.sa-service__head {
	grid-area: head;
	transition: transform 0.3s ease;
}

.sa-service--link:hover .sa-service__head,
.sa-service--link:has(:focus-visible) .sa-service__head {
	transform: translateX(8px);
}

.sa-service__num {
	display: block;
	margin-bottom: 8px;
	color: var(--sa-teal-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.16em;
	font-variant-numeric: tabular-nums;
	transition: color 0.3s ease;
}

.sa-service__title {
	color: var(--sa-navy);
	font-size: clamp(21px, 2.3vw, 31px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
	transition: color 0.3s ease;
}

.sa-service__title a {
	text-decoration: none;
}

/* Terve rida on klikitav. */
.sa-service__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sa-service__text {
	grid-area: text;
	color: var(--sa-muted);
	font-size: 16px;
	line-height: 1.6;
	transition: color 0.3s ease;
}

/* Kirjelduses olev link jääb terve rea klikiala peale. */
.sa-service__text a {
	position: relative;
	z-index: 1;
}

.sa-service__arrow {
	display: grid;
	grid-area: arrow;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--sa-line-strong);
	border-radius: 50%;
	color: var(--sa-navy);
	transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sa-service__arrow svg {
	width: 20px;
	height: 20px;
}

.sa-service--link:hover .sa-service__title,
.sa-service--link:has(:focus-visible) .sa-service__title {
	color: var(--sa-white);
}

/* Valge tekst, sest münditoon tumerohelisel on ainult 3,9:1. */
.sa-service--link:hover .sa-service__num,
.sa-service--link:has(:focus-visible) .sa-service__num,
.sa-service--link:hover .sa-service__text,
.sa-service--link:has(:focus-visible) .sa-service__text {
	color: var(--sa-white);
}

.sa-service--link:hover .sa-service__arrow,
.sa-service--link:has(:focus-visible) .sa-service__arrow {
	border-color: var(--sa-mint);
	background: var(--sa-mint);
	color: var(--sa-ink);
	transform: translateX(4px);
}

@media (max-width: 900px) {
	.sa-services__intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-services__intro > .sa-lead {
		grid-row: auto;
		grid-column: 1;
		margin-top: 24px;
		padding-bottom: 0;
	}

	.sa-service {
		grid-template-areas:
			"icon head arrow"
			"icon text arrow";
		grid-template-columns: 64px minmax(0, 1fr) 46px;
	}

	.sa-service__icon {
		width: 64px;
		height: 64px;
	}

	.sa-service__arrow {
		width: 46px;
		height: 46px;
	}
}

@media (max-width: 520px) {
	.sa-service {
		grid-template-areas:
			"icon head"
			"icon text";
		grid-template-columns: 52px minmax(0, 1fr);
		column-gap: 16px;
	}

	.sa-service__icon {
		align-self: start;
		width: 52px;
		height: 52px;
	}

	.sa-service__icon svg,
	.sa-service__icon img {
		left: 4px;
		width: 22px;
		height: 22px;
	}

	.sa-service__icon--custom img {
		left: 0;
		width: 100%;
		height: 100%;
	}

	.sa-service__arrow {
		display: none;
	}
}

/* ==========================================================================
   7. Arvustused
   ========================================================================== */

.sa-reviews__head {
	margin-bottom: clamp(36px, 4.6vw, 64px);
}

/* Kolm võrdset kaarti reas (rohkem arvustusi läheb järgmisele reale). */
.sa-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.sa-reviews__grid:has(> :only-child) {
	grid-template-columns: minmax(0, 760px);
}

.sa-reviews__grid:has(> :nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sa-review {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 2.6vw, 38px);
	border-radius: var(--sa-radius);
	background: var(--sa-white);
	box-shadow: 0 10px 30px rgba(24, 26, 49, 0.06);
}

/* Tärnid, tsitaat ja nimi on kõigis kaartides samal kõrgusel (alamruudustik). */
@supports (grid-template-rows: subgrid) {
	.sa-review {
		display: grid;
		grid-row: span 3;
		grid-template-rows: subgrid;
		row-gap: 0;
	}
}

/* Suur jutumärk paremas ülanurgas. */
.sa-review::after {
	content: "\201D";
	content: "\201D" / "";
	position: absolute;
	top: 10px;
	right: 26px;
	color: var(--sa-mint);
	font-size: 104px;
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
}

.sa-review__stars {
	margin-bottom: 24px;
	color: var(--sa-orange);
	font-size: 19px;
	line-height: 1;
	letter-spacing: 3px;
}

.sa-review__quote {
	flex: 1;
	color: #3a3d55;
	font-size: 16px;
	line-height: 1.75;
}

.sa-review__who {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--sa-line);
}

.sa-review__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--sa-teal-deep);
	color: var(--sa-white);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.sa-review__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sa-review__name {
	color: var(--sa-navy);
	font-size: 15.5px;
	font-weight: 700;
	font-style: normal;
	line-height: 1.3;
}

.sa-review__role {
	margin-top: 2px;
	color: var(--sa-muted);
	font-size: 13px;
	line-height: 1.4;
}

.sa-review__site {
	align-self: flex-start;
	margin-top: 3px;
	color: var(--sa-teal-deep);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.sa-review__site:hover,
.sa-review__site:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Kaardid tõusevad kerimisel sisse üksteise järel. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sa-review:nth-child(3n + 2) {
			animation-range: entry 0% entry 230px;
		}

		.sa-review:nth-child(3n) {
			animation-range: entry 0% entry 320px;
		}
	}
}

@media (max-width: 900px) {
	.sa-reviews__grid,
	.sa-reviews__grid:has(> :nth-child(2):last-child) {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-review {
		padding: 28px 24px;
	}
}

/* ==========================================================================
   8. Meist
   ========================================================================== */

.sa-about {
	position: relative;
	z-index: 0;
	overflow: hidden;
}

/* Suur hele brändikujund vasakus alanurgas. */
.sa-about::before {
	content: "";
	position: absolute;
	bottom: 36px;
	left: -170px;
	z-index: -1;
	width: 400px;
	height: 400px;
	background: var(--sa-mint-bg);
	-webkit-mask: var(--sa-shape) center / 100% 100% no-repeat;
	mask: var(--sa-shape) center / 100% 100% no-repeat;
	transform: rotate(16deg);
}

.sa-about__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 7vw, 110px);
	align-items: start;
}

.sa-about__head {
	position: sticky;
	top: 40px;
}

.sa-prose {
	color: var(--sa-text);
	font-size: 17px;
	line-height: 1.75;
}

.sa-prose > * + * {
	margin-top: 1.1em;
}

.sa-prose a {
	color: var(--sa-orange-ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.sa-prose a:hover,
.sa-prose a:focus-visible {
	color: var(--sa-navy);
}

.sa-prose ul,
.sa-prose ol {
	padding-left: 1.3em;
}

.sa-prose ul {
	list-style: disc;
}

.sa-prose ol {
	list-style: decimal;
}

.sa-prose h2,
.sa-prose h3 {
	margin-top: 1.6em;
	color: var(--sa-navy);
	line-height: 1.25;
}

/* Meist-teksti esimene lõik on juhtlõik. */
.sa-about .sa-prose > :first-child {
	color: var(--sa-navy);
	font-size: clamp(20px, 1.9vw, 26px);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: -0.012em;
}

@media (max-width: 900px) {
	.sa-about__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-about__head {
		position: static;
	}

	.sa-about::before {
		display: none;
	}
}

/* ==========================================================================
   9. KKK
   ========================================================================== */

.sa-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.sa-faq__head {
	position: sticky;
	top: 40px;
}

.sa-faq__btn {
	margin-top: 36px;
}

/* Küsimused ühes valges paneelis, read on eraldatud peenikese joonega. */
.sa-faq__list {
	padding: 6px clamp(22px, 3vw, 44px);
	border-radius: var(--sa-radius);
	background: var(--sa-white);
	box-shadow: 0 18px 50px rgba(24, 26, 49, 0.07);
}

.sa-faq__item + .sa-faq__item {
	border-top: 1px solid var(--sa-line);
}

.sa-faq__item summary {
	display: block;
	padding: 26px 0;
	cursor: pointer;
	list-style: none;
}

.sa-faq__item summary::-webkit-details-marker {
	display: none;
}

.sa-faq__q {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 44px;
	gap: 16px;
	align-items: center;
	color: var(--sa-navy);
	font-size: clamp(17px, 1.55vw, 21px);
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.2s ease;
}

.sa-faq__num {
	color: var(--sa-teal-deep);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
}

.sa-faq__item summary:hover .sa-faq__q,
.sa-faq__item[open] .sa-faq__q {
	color: var(--sa-teal-deep);
}

/* Pluss, mis avatud vastuse juures pöördub ristiks. */
.sa-faq__icon {
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sa-mint-bg);
	color: var(--sa-teal-deep);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.sa-faq__icon::before,
.sa-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.sa-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.sa-faq__item summary:hover .sa-faq__icon {
	background: var(--sa-mint);
	color: var(--sa-ink);
}

.sa-faq__item[open] .sa-faq__icon {
	background: var(--sa-teal-deep);
	color: var(--sa-white);
	transform: rotate(45deg);
}

/* Vastus algab küsimuse teksti joonelt. */
.sa-faq__a {
	max-width: 46em;
	padding: 0 60px 30px 56px;
	font-size: 16.5px;
	line-height: 1.7;
}

/* Sujuv avanemine seal, kus brauser seda oskab. Mujal avaneb kohe. */
@supports (interpolate-size: allow-keywords) {
	@media (prefers-reduced-motion: no-preference) {
		.sa-faq__list {
			interpolate-size: allow-keywords;
		}

		.sa-faq__item::details-content {
			height: 0;
			overflow: clip;
			transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
		}

		.sa-faq__item[open]::details-content {
			height: auto;
		}
	}
}

@media (max-width: 900px) {
	.sa-faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sa-faq__head {
		position: static;
	}
}

@media (max-width: 560px) {
	.sa-faq__q {
		grid-template-columns: 28px minmax(0, 1fr) 40px;
		gap: 12px;
	}

	.sa-faq__icon {
		width: 40px;
		height: 40px;
	}

	.sa-faq__a {
		padding: 0 0 24px 40px;
	}
}

/* ==========================================================================
   10. Kontakt
   ========================================================================== */

/* Tume lõpuplokk, sama üleminek mis hero'l. */
.sa-contact {
	background: var(--sa-dark-grad);
	color: var(--sa-white);
}

.sa-contact .sa-eyebrow {
	color: var(--sa-mint);
}

/* Suur kutse, suurus tuleb veeru laiusest. */
.sa-contact__info {
	container-type: inline-size;
}

.sa-contact .sa-title {
	color: var(--sa-white);
	font-size: clamp(40px, 19cqi, 104px);
	line-height: 0.98;
}

.sa-contact .sa-lead {
	color: rgba(255, 255, 255, 0.82);
}

.sa-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(40px, 7vw, 110px);
	align-items: start;
}

.sa-bio {
	max-width: 520px;
	margin-top: 36px;
	padding: 24px 26px;
	border-left: 4px solid var(--sa-mint);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
}

.sa-bio__photo {
	display: block;
	width: 88px;
	margin-bottom: 14px;
	border-radius: 50%;
}

.sa-bio__photo img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sa-bio__name {
	display: block;
	color: var(--sa-white);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
}

.sa-bio__name a {
	text-decoration: underline;
	text-decoration-color: var(--sa-mint);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.sa-bio__name a:hover,
.sa-bio__name a:focus-visible {
	color: var(--sa-mint);
}

.sa-bio__role {
	display: block;
	margin-top: 6px;
	color: var(--sa-mint);
	font-size: 15px;
	font-weight: 700;
}

.sa-bio__text {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 15px;
	line-height: 1.6;
}

.sa-contact__list {
	display: grid;
	gap: 6px;
	margin-top: 28px;
}

.sa-contact__item {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 48px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 16.5px;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.sa-contact__item svg {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	color: var(--sa-mint);
	transition: background-color 0.25s ease, color 0.25s ease;
}

/* Telefoninumber ei murdu kahele reale. */
.sa-contact__item--phone span {
	white-space: nowrap;
}

a.sa-contact__item:hover,
a.sa-contact__item:focus-visible {
	color: var(--sa-white);
}

a.sa-contact__item:hover svg,
a.sa-contact__item:focus-visible svg {
	background: var(--sa-mint);
	color: var(--sa-ink);
}

.sa-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
	padding: clamp(24px, 3.4vw, 44px);
	border-radius: var(--sa-radius);
	background: var(--sa-white);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
	color: var(--sa-text);
	scroll-margin-top: 32px;
}

.sa-field--wide,
.sa-form__note,
.sa-form__actions,
.sa-form__foot {
	grid-column: 1 / -1;
}

.sa-field label {
	display: block;
	margin: 0 0 8px 4px;
	color: var(--sa-navy);
	font-size: 14px;
	font-weight: 600;
}

.sa-field__req {
	color: var(--sa-orange-ink);
}

.sa-field input,
.sa-field textarea {
	display: block;
	width: 100%;
	padding: 15px 24px;
	border: 1px solid #cfd8d6;
	border-radius: var(--sa-radius-field);
	background: var(--sa-white);
	color: var(--sa-navy);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-field textarea {
	min-height: 170px;
	border-radius: 24px;
	resize: vertical;
}

.sa-field input::placeholder,
.sa-field textarea::placeholder {
	color: #767786;
}

.sa-field input:hover,
.sa-field textarea:hover {
	border-color: var(--sa-teal);
}

.sa-field input:focus,
.sa-field textarea:focus {
	border-color: var(--sa-teal-deep);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(97, 159, 149, 0.22);
}

.sa-field--quiz input {
	max-width: 160px;
}

/* Meepott robotitele. */
.sa-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sa-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 4px;
}

.sa-form__hint {
	color: var(--sa-muted);
	font-size: 13px;
}

.sa-form__note {
	padding: 14px 18px;
	border-left: 4px solid var(--sa-teal-deep);
	border-radius: 10px;
	background: var(--sa-mint-bg);
	color: var(--sa-navy);
	font-size: 15px;
	font-weight: 500;
}

.sa-form__note--error {
	border-left-color: var(--sa-orange-ink);
	background: #fdefec;
}

/* Pluginavorm (nt Contact Form 7), kui ACF-is on shortcode määratud. */
.sa-form--plugin {
	display: block;
}

.sa-form--plugin input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.sa-form--plugin textarea {
	width: 100%;
	margin-bottom: 16px;
	padding: 15px 24px;
	border: 1px solid #cfd8d6;
	border-radius: var(--sa-radius-field);
	font-size: 16px;
}

.sa-form--plugin textarea {
	border-radius: 24px;
}

.sa-form--plugin input[type="submit"] {
	min-height: 50px;
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--sa-teal-deep);
	color: var(--sa-white);
	font-weight: 600;
	cursor: pointer;
}

.sa-form--plugin input[type="submit"]:hover {
	background: var(--sa-orange-grad);
}

@media (max-width: 900px) {
	.sa-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.sa-form {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   11. Jalus
   ========================================================================== */

.sa-footer {
	padding-block: 44px 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: var(--sa-ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 14.5px;
}

.sa-footer__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
}

/* Logo kogu konteineri laiuses, lehe viimane suur märk. */
.sa-footer .sa-footer__mark {
	margin-top: clamp(36px, 5vw, 72px);
}

.sa-footer .sa-footer__mark img {
	width: 100%;
}

.sa-footer__copy span,
.sa-footer__copy a {
	color: var(--sa-mint);
}

.sa-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.sa-footer__menu a {
	display: inline-block;
	padding-block: 6px;
	color: var(--sa-white);
	font-weight: 500;
	text-decoration: none;
}

.sa-footer__menu a:hover,
.sa-footer__menu a:focus-visible {
	color: var(--sa-mint);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ==========================================================================
   12. Teised lehed (lihtne varuvaade)
   ========================================================================== */

.sa-page {
	padding-block: clamp(48px, 7vw, 96px);
}

.sa-page__in {
	max-width: 820px;
}

.sa-page__title {
	margin-bottom: 28px;
}

.sa-page__item + .sa-page__item {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid var(--sa-line);
}

.sa-page__item h2 a {
	text-decoration: none;
}

.sa-page__item h2 a:hover {
	color: var(--sa-teal-deep);
}

.sa-page__nav {
	margin-top: 48px;
	font-weight: 600;
}

/* ==========================================================================
   13. Liikumine ja print
   ========================================================================== */

/* Kerimisel ilmumine ilma JS-ita. Brauser, mis seda ei oska, näitab sisu kohe. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sa-title,
		.sa-reveal {
			animation: sa-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 140px;
		}
	}
}

@keyframes sa-rise {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

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

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

@media print {
	.sa-header,
	.sa-footer,
	.sa-hero__visual,
	.sa-hero__curve,
	.sa-marquee,
	.sa-form {
		display: none;
	}

	.sa-hero,
	.sa-contact {
		padding: 0;
		background: none;
		color: #000;
	}

	.sa-reveal {
		animation: none;
	}
}
