/*
Theme Name: Matan Consulting
Theme URI: https://matan-consulting.ai
Author: Matan Consulting
Description: The new Matan Consulting website (Hebrew first, RTL), built from the approved mockup v11 (design A).
Version: 0.4.1
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matan
*/

/*
 * RTL first: logical CSS properties (inline-start/end, block-start/end, text-align: start) everywhere,
 * so the same rules serve Hebrew now and English later.
 * Design tokens = mockup v11, design A ("Matan Refresh"): Matan teal + orange.
 */

/* ===== Font: Heebo (SIL Open Font License, assets/fonts/OFL-Heebo.txt), served from the theme ===== */
@font-face {
	font-family: "Heebo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/heebo-hebrew-wght-normal.woff2") format("woff2");
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
	font-family: "Heebo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/heebo-latin-wght-normal.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;
}

/* ===== Tokens ===== */
:root {
	--bg: #ffffff;
	--surface: #f5f9f9;
	--surface-2: #e9f2f3;
	--ink: #1d2b2f;
	--muted: #56676b;
	--line: #e0e8e9;
	--primary: #2b7684;
	--primary-ink: #1e5c68;
	--primary-soft: #e2f0f1;
	--on-primary: #ffffff;
	--accent: #f0a04b;
	--accent-ink: #94540f;
	--accent-soft: #fdefdf;
	--on-accent: #2a1a08;
	--font-body: "Heebo", system-ui, sans-serif;
	--font-head: "Heebo", system-ui, sans-serif;
	--hw: 800;
	--ls: -0.01em;
	--radius: 18px;
	--radius-sm: 10px;
	--btn-radius: 999px;
	--card-shadow: 0 6px 24px rgba(30, 80, 90, 0.07);
	--nav-bg: rgba(255, 255, 255, 0.88);
	--hero-bg: linear-gradient(180deg, #eaf4f5 0%, #f7fbfb 60%, #ffffff 100%);
	--h1: clamp(36px, 5.2vw, 64px);
	--h2: clamp(28px, 3.4vw, 40px);
	--hdr-h: 74px;
	/* WordPress sets --wp-admin--admin-bar--height when the admin bar shows (logged-in users only). */
	--top-offset: var(--wp-admin--admin-bar--height, 0px);
	/* Lucide icons as CSS masks, for list ticks, the FAQ plus and "more" arrows inside editable text. */
	--mask-check: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21.801%2010A10%2010%200%201%201%2017%203.335%22%20%2F%3E%20%3Cpath%20d%3D%22m9%2011%203%203L22%204%22%20%2F%3E%3C%2Fsvg%3E");
	--mask-plus: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14%22%20%2F%3E%20%3Cpath%20d%3D%22M12%205v14%22%20%2F%3E%3C%2Fsvg%3E");
	--mask-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%2019-7-7%207-7%22%20%2F%3E%20%3Cpath%20d%3D%22M19%2012H5%22%20%2F%3E%3C%2Fsvg%3E");
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	min-block-size: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	text-align: start;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

img {
	max-inline-size: 100%;
	block-size: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: var(--hw);
	letter-spacing: var(--ls);
	line-height: 1.15;
	margin: 0 0 0.45em;
	text-wrap: balance;
}

h1 {
	font-size: var(--h1);
}

h2 {
	font-size: var(--h2);
}

h3 {
	font-size: 21px;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

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

.container {
	inline-size: 100%;
	max-inline-size: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

.i {
	inline-size: 1em;
	block-size: 1em;
	display: inline-block;
	vertical-align: -0.14em;
	flex: none;
}

/* An arrow that points "forward": left in Hebrew, right in English. */
[dir="ltr"] .fwd {
	transform: scaleX(-1);
}

.muted {
	color: var(--muted);
}

/* Phone numbers and e-mail addresses inside Hebrew text */
.ltr {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}

/* Accessibility helpers (WordPress standard class names) */
.screen-reader-text {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	inset-block-start: calc(var(--top-offset) + 0.5rem);
	inset-inline-start: 0.5rem;
	inline-size: auto;
	block-size: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	clip-path: none;
	white-space: normal;
	background: var(--bg);
	color: var(--ink);
	border-radius: var(--radius-sm);
	box-shadow: var(--card-shadow);
	z-index: 1000;
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	border: 1.5px solid transparent;
	border-radius: var(--btn-radius);
	padding: 0.78em 1.4em;
	font: 600 16px/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--primary);
	color: var(--on-primary);
}

.btn-accent {
	background: var(--accent);
	color: var(--on-accent);
}

.btn-ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.btn-ghost:hover {
	border-color: var(--primary);
	color: var(--primary-ink);
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.btn:hover {
		transition: none;
		transform: none;
	}
}

/* ===== Header ===== */
.nav {
	position: sticky;
	inset-block-start: var(--top-offset);
	z-index: 50;
	background: var(--nav-bg);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-block-end: 1px solid var(--line);
}

.nav > .container {
	display: flex;
	align-items: center;
	gap: 28px;
	block-size: var(--hdr-h);
}

.logo {
	display: flex;
	align-items: center;
	flex: none;
}

.logo img {
	display: block;
	block-size: 40px;
	inline-size: auto;
}

.site-nav {
	flex: 1;
}

.menu {
	display: flex;
	gap: 4px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu > li {
	position: relative;
}

.menu > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 500;
	font-size: 15.5px;
	color: var(--ink);
}

.menu > li > a:hover,
.menu > li > a.on {
	color: var(--primary-ink);
	background: var(--primary-soft);
}

.badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.6;
}

/* Dropdown: opens on hover and when a link inside it has keyboard focus */
.dd {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	min-inline-size: 320px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

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

.dd-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dd a {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

.dd a:hover,
.dd a.on {
	background: var(--primary-soft);
}

.dd b {
	display: block;
	font-weight: 600;
	font-size: 15px;
}

.dd small {
	display: block;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
}

.ic {
	inline-size: 48px;
	block-size: 48px;
	border-radius: 14px;
	background: var(--primary-soft);
	color: var(--primary-ink);
	display: grid;
	place-items: center;
	font-size: 22px;
	flex: none;
}

.dd .ic {
	inline-size: 34px;
	block-size: 34px;
	font-size: 17px;
	border-radius: 10px;
}

.nav-end {
	display: flex;
	gap: 10px;
	align-items: center;
}

.burger {
	display: none;
	background: none;
	border: 0;
	color: var(--ink);
	font-size: 26px;
	line-height: 0;
	cursor: pointer;
	padding: 6px;
	border-radius: var(--radius-sm);
}

.burger .i-close,
.burger[aria-expanded="true"] .i-open {
	display: none;
}

.burger[aria-expanded="true"] .i-close {
	display: inline-block;
}

/* Mobile menu (below 1080px, opened by the burger button) */
.mnav[hidden] {
	display: none;
}

.mnav {
	position: fixed;
	inset: calc(var(--top-offset) + var(--hdr-h)) 0 0;
	z-index: 49;
	overflow-y: auto;
	background: var(--bg);
	padding: 16px 24px 120px;
}

.mnav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mnav a {
	display: block;
	padding: 12px 0;
	border-block-end: 1px solid var(--line);
	text-decoration: none;
	font-weight: 600;
	font-size: 18px;
}

.mnav .sub a {
	font-weight: 400;
	font-size: 16px;
	padding-inline-start: 16px;
	color: var(--muted);
}

.mnav a.on {
	color: var(--primary-ink);
}

.mnav .mnav-cta {
	margin-block-start: 24px;
	border: 0;
	padding: 0.78em 1.4em;
	display: inline-flex;
}

/* ===== Main ===== */
.site-main {
	flex: 1;
}

.page-wrap {
	padding-block: 56px 80px;
}

.entry-title {
	line-height: 1.2;
}

.entry-content > * {
	max-inline-size: 760px;
}

/* Temporary front page until the home page is built (stage 3) */
.soon {
	background: var(--hero-bg);
	padding-block: 96px 112px;
}

.soon .eyebrow {
	display: inline-block;
	margin-block-end: 14px;
	color: var(--accent-ink);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.04em;
}

.soon .lead {
	max-inline-size: 640px;
	color: var(--muted);
	font-size: 19px;
}

/* ===== Page sections (pages built in the editor from core blocks with these classes) ===== */
.page-content > * {
	margin-block: 0;
}

.sec {
	position: relative;
	padding-block: 88px;
}

.sec.alt {
	background: var(--surface);
}

.sec.tight {
	padding-block: 56px;
}

.sec > .container > *,
.phero > .container > * {
	margin-block: 0;
}

.sec-head {
	max-inline-size: 760px;
	margin-block-end: 44px !important;
}

.sec-head.center {
	margin-inline: auto;
	text-align: center;
}

.sec-head > * {
	margin-block: 0;
}

.sec-head h2 {
	margin-block-end: 0.45em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block: 0 14px !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--accent-ink);
}

.lead {
	font-size: 19px;
	color: var(--muted);
}

.sec-head .lead {
	margin: 0;
}

.small-note {
	font-size: 13.5px;
	color: var(--muted);
	margin-block-start: 14px;
}

/* Page hero */
.phero {
	position: relative;
	overflow: hidden;
	background: var(--hero-bg);
	padding-block: 56px 64px;
}

.phero h1 {
	font-size: clamp(32px, 4.4vw, 56px);
}

.phero .lead {
	font-size: 19.5px;
	max-inline-size: 680px;
}

.phero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 48px;
	align-items: center;
}

.phero-grid > * {
	margin-block: 0;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-block-end: 22px;
	font-size: 14px;
	color: var(--muted);
}

.crumbs a {
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--primary-ink);
}

/* Cards */
.grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 22px;
}

.grid.cols-2 {
	--cols: 2;
}

.grid.cols-3 {
	--cols: 3;
}

.grid.cols-4 {
	--cols: 4;
}

.grid > * {
	margin-block: 0;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s, border-color 0.18s;
}

.card > * {
	margin-block: 0;
}

.card h3 {
	margin-block: 14px 8px;
}

.card p {
	color: var(--muted);
	font-size: 16px;
	margin-block-end: 14px;
}

.card .more,
.card p.more {
	margin-block-start: auto;
	margin-block-end: 0;
}

a.card:hover,
.card:has(a.more:hover) {
	transform: translateY(-3px);
	border-color: var(--primary);
}

/* A "more" link makes the whole card clickable. */
.card p.more a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.more,
p.more a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--primary-ink);
	font-weight: 600;
	text-decoration: none;
}

p.more a::before {
	content: none;
}

p.more a .i,
.more .i {
	transition: transform 0.15s;
}

p.more a > span.arrow {
	display: inline-block;
	inline-size: 1em;
	block-size: 1em;
	background: currentColor;
	-webkit-mask: var(--mask-arrow) center / contain no-repeat;
	mask: var(--mask-arrow) center / contain no-repeat;
}

.card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ic.accent {
	background: var(--accent-soft);
	color: var(--accent-ink);
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}

.pill.pri {
	background: var(--primary-soft);
	color: var(--primary-ink);
}

.pill.acc {
	background: var(--accent-soft);
	color: var(--accent-ink);
}

.art-card .ph {
	margin-block-end: 16px;
}

.art-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-block-end: 8px !important;
	font-size: 13.5px;
	color: var(--muted);
}

/* Images in a frame */
.ph {
	position: relative;
	display: grid;
	place-items: center;
	inline-size: 100%;
	aspect-ratio: var(--ar, 16 / 10);
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	color: var(--muted);
}

.ph-img {
	display: block;
	background: var(--surface-2);
}

.ph-img img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.ph-soft {
	background: linear-gradient(135deg, var(--primary-soft), var(--bg));
}

.ph-soft .i {
	font-size: 44px;
	opacity: 0.35;
}

.wp-block-image.media {
	margin: 0;
}

.wp-block-image.media img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
}

.phero .wp-block-image.media img {
	aspect-ratio: 4 / 3;
}

/* Text + picture (or text alone) */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.split > * {
	margin-block: 0;
}

.split.rev > :first-child {
	order: 2;
}

.split.solo {
	grid-template-columns: 1fr;
	max-inline-size: 860px;
}

.split .lead {
	font-size: 18px;
}

/* A list with check marks */
ul.ticks {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.ticks li {
	position: relative;
	padding-inline-start: 32px;
}

ul.ticks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.2em;
	inline-size: 20px;
	block-size: 20px;
	background: var(--primary);
	-webkit-mask: var(--mask-check) center / contain no-repeat;
	mask: var(--mask-check) center / contain no-repeat;
}

/* Numbers */
.stats-row {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
	gap: 18px;
}

.stats-row.cols-1 {
	--cols: 1;
}

.stats-row.cols-2 {
	--cols: 2;
}

.stats-row.cols-4 {
	--cols: 4;
}

.stats-row > * {
	margin-block: 0;
}

.stat {
	padding: 22px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
}

.stat > * {
	margin-block: 0;
}

.stat .stat-v {
	display: block;
	margin-block-end: 8px;
	font: var(--hw) 40px/1 var(--font-head);
	letter-spacing: -0.02em;
	color: var(--primary-ink);
	/* "10+" stays "10+" in Hebrew, but the number still lines up with the label under it (plaintext alone made
	   numbers left-aligned and Hebrew values right-aligned in the same row). */
	unicode-bidi: plaintext;
	text-align: right;
}

[dir="ltr"] .stat .stat-v {
	text-align: left;
}

.stat p:not(.stat-v) {
	color: var(--muted);
	font-size: 15px;
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: 22px;
	counter-reset: st;
}

.steps.cols-3 {
	--cols: 3;
}

.steps.cols-5 {
	--cols: 5;
}

.steps > * {
	margin-block: 0;
}

.step {
	position: relative;
	padding-block-start: 18px;
}

.step > * {
	margin-block: 0;
}

.step::before {
	counter-increment: st;
	content: counter(st, decimal-leading-zero);
	display: block;
	margin-block-end: 10px;
	font: var(--hw) 15px var(--font-head);
	color: var(--accent-ink);
}

.step::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	block-size: 3px;
	border-radius: 3px;
	background: linear-gradient(270deg, var(--primary), var(--primary-soft));
}

[dir="ltr"] .step::after {
	background: linear-gradient(90deg, var(--primary), var(--primary-soft));
}

.step h3 {
	font-size: 19px;
	margin-block-end: 6px;
}

.step p {
	color: var(--muted);
	font-size: 15.5px;
}

/* Call to action */
.cta {
	padding: 64px 40px;
	border-radius: calc(var(--radius) + 8px);
	background: var(--primary-soft);
	text-align: center;
}

.cta > * {
	margin-block: 0;
}

.cta h2 {
	max-inline-size: 760px;
	margin-inline: auto;
	margin-block-end: 0.45em;
}

.cta p {
	max-inline-size: 640px;
	margin-inline: auto;
	color: var(--muted);
	font-size: 18.5px;
}

.cta .wp-block-buttons {
	justify-content: center;
}

/* Questions and answers */
.faq {
	max-inline-size: 860px;
}

.faq > * {
	margin-block: 0;
}

.faq details {
	border-block-end: 1px solid var(--line);
	padding-block: 4px;
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

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

.faq summary::after {
	content: "";
	flex: none;
	inline-size: 20px;
	block-size: 20px;
	background: var(--primary);
	-webkit-mask: var(--mask-plus) center / contain no-repeat;
	mask: var(--mask-plus) center / contain no-repeat;
	transition: transform 0.2s;
}

.faq details[open] summary::after {
	transform: rotate(45deg);
}

.faq details > :not(summary) {
	color: var(--muted);
	margin-block: 0 12px;
}

/* Tools and technologies */
ul.tech {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.tech li {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: 14.5px;
	font-weight: 500;
}

/* Buttons made in the editor (core/buttons) */
.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 28px;
}

.btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block-start: 28px;
}

.wp-block-button {
	margin: 0;
}

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.78em 1.4em;
	border: 1.5px solid transparent;
	border-radius: var(--btn-radius);
	background: var(--primary);
	color: var(--on-primary);
	font: 600 16px/1.2 var(--font-body);
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.15s, background-color 0.15s;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-accent .wp-block-button__link {
	background: var(--accent);
	color: var(--on-accent);
}

.wp-block-button.is-style-accent .wp-block-button__link::after {
	content: "";
	inline-size: 1em;
	block-size: 1em;
	background: currentColor;
	-webkit-mask: var(--mask-arrow) center / contain no-repeat;
	mask: var(--mask-arrow) center / contain no-repeat;
}

[dir="ltr"] .wp-block-button.is-style-accent .wp-block-button__link::after {
	transform: scaleX(-1);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}

.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	border-color: var(--primary);
	color: var(--primary-ink);
}

/* ===== Footer ===== */
.foot {
	background: var(--surface);
	border-block-start: 1px solid var(--line);
	padding-block: 64px 28px;
	font-size: 15px;
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.3fr repeat(var(--cols, 3), 1fr) 1.3fr;
	gap: 32px;
}

.foot h2 {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	margin-block-end: 14px;
}

.foot ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.foot a {
	text-decoration: none;
	color: var(--muted);
}

.foot a:hover {
	color: var(--primary-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foot .about-text {
	margin-block-start: 16px;
	max-inline-size: 300px;
}

.foot .contact-list a,
.foot .contact-list > li > span {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.foot .contact-list .ltr {
	white-space: nowrap;
}

.foot .social {
	display: flex;
	gap: 10px;
	margin-block-start: 16px;
}

.foot .social a {
	inline-size: 38px;
	block-size: 38px;
	border-radius: 50%;
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	font-size: 17px;
}

.foot .social a:hover {
	text-decoration: none;
	border-color: var(--primary);
}

.foot-bot {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: space-between;
	margin-block-start: 48px;
	padding-block-start: 22px;
	border-block-start: 1px solid var(--line);
	color: var(--muted);
	font-size: 13.5px;
}

.foot-bot ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
	.nav > .container {
		gap: 18px;
	}

	.menu > li > a {
		padding: 10px 8px;
		font-size: 15px;
	}
}

@media (max-width: 1240px) {
	.menu > li > a {
		padding: 8px 6px;
		font-size: 14px;
	}

	.menu .badge {
		display: none;
	}
}

@media (max-width: 1080px) {
	.site-nav,
	.nav-end {
		display: none;
	}

	.burger {
		display: block;
		margin-inline-start: auto;
	}

	.foot-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.grid.cols-3,
	.grid.cols-4,
	.steps,
	.steps.cols-5 {
		--cols: 2;
	}
}

@media (min-width: 1081px) {
	.mnav {
		display: none;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 16px;
	}

	.container {
		padding-inline: 16px;
	}

	.mnav {
		padding-inline: 16px;
	}

	.soon {
		padding-block: 64px 72px;
	}

	.sec {
		padding-block: 56px;
	}

	.phero {
		padding-block: 36px 44px;
	}

	.grid,
	.grid.cols-2,
	.grid.cols-3,
	.grid.cols-4,
	.steps,
	.steps.cols-3,
	.steps.cols-5 {
		--cols: 1;
	}

	.stats-row,
	.stats-row.cols-4 {
		--cols: 2;
	}

	.split,
	.phero-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.split.rev > :first-child {
		order: 0;
	}

	.cta {
		padding: 40px 20px;
	}

	.stat .stat-v {
		font-size: 32px;
	}

	/* Long button text (an e-mail address, a long label) wraps instead of pushing the page sideways. */
	.btn,
	.wp-block-button__link {
		white-space: normal;
		text-align: center;
		justify-content: center;
		max-inline-size: 100%;
	}

	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}

	.foot-brand,
	.foot-contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.foot-grid {
		grid-template-columns: 1fr;
	}
}

@media print {
	.nav,
	.mnav,
	.foot {
		display: none;
	}
}
