/* ==========================================================================
   EIRIF – base: fonts, design tokens, typography, buttons, utilities
   ========================================================================== */

/* Inter (variable 400–800), self-hosted. SIL Open Font License 1.1.
   unicode-range: browsers only download the subsets a page actually uses
   (LT = latin + latin-ext; cyrillic is ready for a future RU version). */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-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;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
	--eirif-blue: #0b5fe3;
	--eirif-blue-600: #084cbb;
	--eirif-blue-100: #eaf1fe;
	--eirif-navy: #0a1f44;
	--eirif-navy-900: #071632;
	--eirif-ink: #0b1a33;
	--eirif-text: #45556c;
	--eirif-muted: #6b7a90;
	--eirif-line: #e3e9f2;
	--eirif-tint: #f3f6fb;
	--eirif-white: #fff;

	--eirif-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--eirif-radius-sm: 10px;
	--eirif-radius: 14px;
	--eirif-radius-lg: 18px;
	--eirif-shadow-sm: 0 2px 6px rgba(10, 31, 68, .05), 0 8px 24px rgba(10, 31, 68, .06);
	--eirif-shadow: 0 4px 12px rgba(10, 31, 68, .06), 0 18px 40px rgba(10, 31, 68, .10);
	--eirif-header-h: 76px;
	--eirif-gutter: 24px;
	--eirif-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
	:root { --eirif-gutter: 32px; --eirif-header-h: 68px; }
}
@media (max-width: 767px) {
	:root { --eirif-gutter: 20px; --eirif-header-h: 64px; }
}

/* ---------- Base ---------- */
html {
	scroll-padding-top: calc(var(--eirif-header-h) + var(--wp-admin--admin-bar--height, 0px) + 8px);
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	font-family: var(--eirif-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--eirif-text);
	background: var(--eirif-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--eirif-font);
	color: var(--eirif-ink);
	letter-spacing: -0.01em;
}

a { color: var(--eirif-blue); }
a:hover, a:focus { color: var(--eirif-blue-600); }

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

:focus-visible {
	outline: 3px solid #7aa7ff;
	outline-offset: 2px;
	border-radius: 4px;
}

.eirif-content:focus { outline: none; }

/* Screen-reader text + skip link */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	clip: auto;
	padding: 12px 18px;
	margin: 0;
	background: var(--eirif-white);
	color: var(--eirif-ink);
	font-weight: 600;
	border-radius: var(--eirif-radius-sm);
	box-shadow: var(--eirif-shadow);
}

.eirif-wrap {
	width: 100%;
	max-width: calc(1200px + 2 * var(--eirif-gutter));
	margin-inline: auto;
	padding-inline: var(--eirif-gutter);
}

.eirif-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons (theme markup) ---------- */
.eirif-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 24px;
	border: 1.5px solid transparent;
	border-radius: var(--eirif-radius-sm);
	font-family: var(--eirif-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.eirif-btn--sm { padding: 12px 18px; font-size: 14px; }
.eirif-btn__icon { width: 16px; height: 16px; transition: transform .2s ease; }
.eirif-btn:hover .eirif-btn__icon { transform: translateX(3px); }
.eirif-btn--primary,
.eirif-btn--primary:visited { background: var(--eirif-blue); color: var(--eirif-white); }
.eirif-btn--primary:hover,
.eirif-btn--primary:focus { background: var(--eirif-blue-600); color: var(--eirif-white); box-shadow: 0 8px 20px rgba(11, 95, 227, .28); }

/* ---------- Buttons (Elementor "Button" widget with CSS class eirif-btn-w …) ---------- */
.eirif-btn-w .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--eirif-radius-sm);
	font-family: var(--eirif-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.eirif-btn-w--sm .elementor-button { padding: 13px 20px; font-size: 14px; }
.eirif-btn-w--primary .elementor-button { background-color: var(--eirif-blue); color: var(--eirif-white); }
.eirif-btn-w--primary .elementor-button:hover,
.eirif-btn-w--primary .elementor-button:focus { background-color: var(--eirif-blue-600); color: var(--eirif-white); box-shadow: 0 8px 20px rgba(11, 95, 227, .28); }
.eirif-btn-w--ghost .elementor-button { background-color: transparent; color: var(--eirif-white); border-color: rgba(255, 255, 255, .75); }
.eirif-btn-w--ghost .elementor-button:hover,
.eirif-btn-w--ghost .elementor-button:focus { background-color: rgba(255, 255, 255, .1); color: var(--eirif-white); border-color: var(--eirif-white); }
.eirif-btn-w--link .elementor-button { background: none; padding: 6px 0; color: var(--eirif-blue); border: 0; }
.eirif-btn-w--link .elementor-button:hover,
.eirif-btn-w--link .elementor-button:focus { background: none; color: var(--eirif-blue-600); }
.eirif-btn-w--arrow .elementor-button-text::after {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	vertical-align: -3px;
	background-color: currentColor;
	-webkit-mask: var(--eirif-arrow) center / contain no-repeat;
	mask: var(--eirif-arrow) center / contain no-repeat;
	transition: transform .2s ease;
}
.eirif-btn-w--arrow .elementor-button:hover .elementor-button-text::after { transform: translateX(3px); }

/* ---------- Section typography (Elementor widgets with CSS classes) ---------- */
.eirif-eyebrow .elementor-heading-title {
	font-family: var(--eirif-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--eirif-blue);
}
.eirif-title .elementor-heading-title {
	font-family: var(--eirif-font);
	font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.5rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--eirif-ink);
}
.eirif-title--light .elementor-heading-title { color: var(--eirif-white); }
.eirif-lead {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--eirif-text);
}
.eirif-lead p { margin: 0 0 .85em; }
.eirif-lead p:last-child { margin-bottom: 0; }
.eirif-lead--light { color: rgba(255, 255, 255, .82); }

.eirif-img-rounded img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--eirif-radius-lg);
	box-shadow: var(--eirif-shadow);
}

/* Elementor icon boxes used by the theme: left-aligned text */
.elementor-widget.eirif-trust .elementor-icon-box-wrapper,
.elementor-widget.eirif-feature .elementor-icon-box-wrapper,
.elementor-widget.eirif-benefit .elementor-icon-box-wrapper { text-align: start; }

.eirif-admin-hint {
	padding: 12px 16px;
	border: 1px dashed var(--eirif-blue);
	border-radius: var(--eirif-radius-sm);
	background: var(--eirif-blue-100);
	color: var(--eirif-ink);
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
