/* ==========================================================================
   Reli Academy — main.css
   Tokens, base, layout, shared components. Loaded on every page.
   Source of truth: docs/design-system.md. Mobile-first; breakpoints 640 / 960 / 1280.
   RTL: logical properties only.
   ========================================================================== */

/* 1. Fonts
   ========================================================================== */
/* Self-hosted variable fonts (Google Fonts, OFL — see assets/fonts/OFL-*.txt).
   unicode-range as published by Google: digits, spaces and punctuation live in the latin subset. */
@font-face {
	font-family: 'Rubik';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/rubik-var-hebrew.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: 'Rubik';
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url('../fonts/rubik-var-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: 'Heebo';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/heebo-var-hebrew.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-weight: 100 900;
	font-display: swap;
	src: url('../fonts/heebo-var-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;
}

/* 2. Tokens
   ========================================================================== */
:root {
	/* Brand */
	--c-primary: #0B3FBF;        /* headings, buttons, links, key UI */
	--c-primary-hover: #0932A0;
	--c-accent: #1F7BFF;         /* lines, icons, highlights, focus ring. NOT for small text or white-text fills */
	--c-light: #EAF4FF;          /* icon tiles, soft blocks, secondary buttons */
	--c-light-hover: #DCEBFF;
	--c-media: #D9E9FF;          /* image/video placeholders & poster backgrounds */
	--c-cream: #FAF7F2;          /* warm alternating section background */
	--c-white: #FFFFFF;

	/* Text */
	--c-ink: #121A33;            /* body text */
	--c-muted: #4A5470;          /* secondary text */
	--c-on-primary-muted: #D6E4FF; /* secondary text on primary-blue backgrounds */

	/* Lines & fields */
	--c-line: #EEF2F8;           /* hairline dividers (use box-shadow 0 -1px 0) */
	--c-field: #D5DEEE;          /* input borders */

	/* Feedback */
	--c-error: #B42318;          /* error text & invalid borders (6.6:1 on white) */
	--c-error-bg: #FEF3F2;
	--c-error-on-dark: #FFB4A9;  /* error text on the footer (8.9:1) */
	--c-halo: rgba(255, 255, 255, .55); /* video play button halo */
	--c-dot: #C7D6F0;            /* inactive carousel dot (decorative) */
	--c-whatsapp: #1A9E57;       /* floating WhatsApp button: brand green, deepened for a 3.4:1 white glyph */

	/* Footer */
	--c-footer: #0E1A3D;
	--c-footer-text: #C9D3EA;
	--c-footer-accent: #7FB2FF;

	/* On primary backgrounds */
	--c-tile-on-primary: rgba(255, 255, 255, .14);
	--c-outline-on-primary: rgba(255, 255, 255, .6);
	--c-hover-on-primary: rgba(255, 255, 255, .1);
	--c-line-on-primary: rgba(255, 255, 255, .18);

	/* Soft primary hairline (hero stats) */
	--c-line-primary: rgba(11, 63, 191, .12);

	/* Footer surfaces & overlay */
	--c-footer-strip: rgba(255, 255, 255, .06);
	--c-footer-pill: rgba(255, 255, 255, .08);
	--c-footer-line: rgba(255, 255, 255, .1);
	--c-overlay: rgba(14, 26, 61, .45);

	/* Type */
	--ff-head: 'Rubik', 'Heebo', system-ui, sans-serif;   /* headings, buttons, numbers, eyebrows */
	--ff-body: 'Heebo', system-ui, sans-serif;             /* everything else */

	/* Type scale — mobile → desktop (fluid between 360px and 1280px) */
	--fs-h1-hero: clamp(2.25rem, 1.663rem + 2.609vw, 3.75rem);      /* 36 → 60 */
	--fs-h1-course: clamp(2.125rem, 1.489rem + 2.826vw, 3.75rem);   /* 34 → 60 */
	--fs-h1-article: clamp(1.9375rem, 1.424rem + 2.283vw, 3.25rem); /* 31 → 52 */
	--fs-h2: clamp(1.8125rem, 1.446rem + 1.630vw, 2.75rem);         /* 29 → 44 */
	--fs-h2-content: clamp(1.8125rem, 1.641rem + .761vw, 2.25rem);  /* 29 → 36 */
	--fs-h2-article: clamp(1.5rem, 1.304rem + .870vw, 2rem);        /* 24 → 32 */
	--fs-h3: clamp(1.25rem, 1.177rem + .326vw, 1.4375rem);          /* 20 → 23 */
	--fs-h3-sm: clamp(1.0625rem, .989rem + .326vw, 1.25rem);        /* 17 → 20 (steps, benefits) */
	--fs-body: clamp(1.0625rem, 1.038rem + .109vw, 1.125rem);       /* 17 → 18 */
	--fs-article: clamp(1.0625rem, 1.014rem + .217vw, 1.1875rem);   /* 17 → 19 */
	--fs-lead: clamp(1.0625rem, .989rem + .326vw, 1.25rem);         /* 17 → 20 */
	--fs-small: clamp(.875rem, .851rem + .109vw, .9375rem);         /* 14 → 15 */
	--fs-caption: clamp(.8125rem, .788rem + .109vw, .875rem);       /* 13 → 14 */
	--fs-btn: 1.0625rem;                                            /* 17 */
	--fs-price: clamp(2rem, 1.707rem + 1.304vw, 2.75rem);           /* 32 → 44 */
	--fs-price-card: clamp(1.25rem, 1.201rem + .217vw, 1.375rem);   /* 20 → 22 */
	--fs-stat: clamp(1.5rem, 1.207rem + 1.304vw, 2.25rem);          /* 24 → 36 */

	/* Radius */
	--r-btn: 12px;  --r-icon: 16px;  --r-card: 24px;  --r-media: 28px;  --r-block: 32px;  --r-cta: 36px;  --r-pill: 999px;

	/* Shadow (cards only) */
	--sh-card: 0 1px 2px rgba(18,26,51,.04), 0 24px 48px -28px rgba(11,63,191,.22);
	--sh-float: 0 12px 28px -14px rgba(11,63,191,.35);
	--sh-bar: 0 -4px 30px rgba(14,26,61,.18);   /* mobile sticky bar */
	--r-bar: 18px;
	--r-float: 18px;                             /* floating mini cards (hero) */
	--r-soft: 20px;                              /* tip block, images inside articles */

	/* Layout */
	--container: 1200px;
	--gutter: clamp(16px, 5vw, 120px);          /* side padding of sections */
	--section-y: clamp(56px, 8vw, 112px);       /* vertical padding of sections */
	--gap-lg: clamp(32px, 4vw, 56px);           /* heading → content */
	--gap-md: clamp(20px, 2.5vw, 28px);         /* between cards */
	--header-h: 64px;

	/* Focus */
	--focus-ring: 3px solid var(--c-accent);
}

@media (min-width: 960px) {
	:root {
		--header-h: 88px;
	}
}

/* 3. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-block-start: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--ff-body);
	font-size: var(--fs-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--c-primary);
	font-family: var(--ff-head);
	font-weight: 600;
	line-height: 1.2;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }

p, ul, ol, figure, blockquote {
	margin: 0;
}

a {
	color: var(--c-primary);
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

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

button {
	cursor: pointer;
}

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

main:focus {
	outline: none;
}

::selection {
	background: var(--c-light-hover);
	color: var(--c-ink);
}

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

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

.c-skip-link {
	position: absolute;
	inset-block-start: -100px;
	inset-inline-start: 16px;
	z-index: 1000;
	padding: 12px 20px;
	border-radius: var(--r-btn);
	background: var(--c-primary);
	color: var(--c-white);
	font-family: var(--ff-head);
	font-weight: 500;
	text-decoration: none;
}

.c-skip-link:focus {
	inset-block-start: 16px;
}

/* 4. Typography components
   ========================================================================== */
.c-heading--hero { font-size: var(--fs-h1-hero); }
.c-heading--course { font-size: var(--fs-h1-course); }
.c-heading--article { font-size: var(--fs-h1-article); }
.c-heading--section { font-size: var(--fs-h2); }
.c-heading--content { font-size: var(--fs-h2-content); }
.c-heading--card { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }

.c-lead {
	color: var(--c-muted);
	font-size: var(--fs-lead);
	line-height: 1.7;
}

.c-small {
	font-size: var(--fs-small);
	line-height: 1.5;
}

.c-caption {
	font-size: var(--fs-caption);
	font-weight: 500;
	line-height: 1.4;
}

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

.c-price {
	color: var(--c-ink);
	font-family: var(--ff-head);
	font-size: var(--fs-price);
	font-weight: 600;
	line-height: 1.2;
}

.c-price--card {
	font-size: var(--fs-price-card);
}

.c-stat {
	color: var(--c-primary);
	font-family: var(--ff-head);
	font-size: var(--fs-stat);
	font-weight: 600;
	line-height: 1.1;
}

/* Eyebrow with the signature line */
.c-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--c-primary);
	font-family: var(--ff-body);
	font-size: var(--fs-small);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .02em;
}

.c-eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: var(--c-accent);
}

.c-eyebrow--light {
	color: var(--c-white);
}

/* Highlight underline — max once per page (hero) */
.c-highlight {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
	text-decoration-thickness: 4px;
	text-underline-offset: 9px;
	text-decoration-skip-ink: none;
}

@media (min-width: 960px) {
	.c-eyebrow::before {
		width: 36px;
	}

	.c-highlight {
		text-decoration-thickness: 5px;
		text-underline-offset: 12px;
	}
}

/* 5. Layout
   ========================================================================== */
.l-container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.l-section {
	padding-block: var(--section-y);
	background: var(--c-white);
}

.l-section--cream { background: var(--c-cream); }

/* Consecutive white sections share one gap (e.g. guarantee → FAQ → CTA) */
.l-section:not(.l-section--cream) + .l-section:not(.l-section--cream) {
	padding-block-start: 0;
}

.l-section__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-block-end: var(--gap-lg);
}

.l-section__head > .l-stack {
	max-width: 760px;
}

.l-section__head .c-eyebrow {
	align-self: flex-start;
}

.l-section__head--center {
	align-items: center;
	text-align: center;
	max-width: 760px;
	margin-inline: auto;
}

.l-section__head--center .c-eyebrow {
	align-self: center;
}

@media (min-width: 960px) {
	.l-section__head--split {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: var(--gap-md);
	}
}

.l-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.l-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap-md);
}

@media (min-width: 640px) {
	.l-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
	.l-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Surfaces on primary blue */
.u-on-primary {
	background: var(--c-primary);
	color: var(--c-white);
}

.u-on-primary :is(h1, h2, h3, h4) {
	color: var(--c-white);
}

.u-on-primary .c-lead,
.u-on-primary .c-muted {
	color: var(--c-on-primary-muted);
}

.u-on-primary :focus-visible {
	outline-color: var(--c-white);
}

/* 6. Icons
   ========================================================================== */
.c-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

.c-icon--sm { width: 18px; height: 18px; }
.c-icon--md { width: 20px; height: 20px; }
.c-icon--lg { width: 28px; height: 28px; }

.c-icon-tile {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--r-icon);
	background: var(--c-light);
	color: var(--c-accent);
}

.c-icon-tile .c-icon {
	width: 24px;
	height: 24px;
}

.c-icon-tile--on-primary {
	background: var(--c-tile-on-primary);
	color: var(--c-white);
}

@media (min-width: 960px) {
	.c-icon-tile {
		width: 56px;
		height: 56px;
	}

	.c-icon-tile .c-icon {
		width: 28px;
		height: 28px;
	}
}

/* 7. Buttons & links
   ========================================================================== */
.c-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding-inline: 30px;
	border: 0;
	border-radius: var(--r-btn);
	font-family: var(--ff-head);
	font-size: var(--fs-btn);
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.c-btn .c-icon {
	width: 20px;
	height: 20px;
}

.c-btn--small {
	min-height: 48px;
	padding-inline: 24px;
}

.c-btn--block {
	width: 100%;
}

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

.c-btn--primary:hover {
	background: var(--c-primary-hover);
}

.c-btn--secondary {
	background: var(--c-light);
	color: var(--c-primary);
}

.c-btn--secondary:hover {
	background: var(--c-light-hover);
}

.c-btn--secondary .c-icon--play {
	color: var(--c-accent);
}

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

.c-btn--white:hover {
	background: var(--c-light);
}

.c-btn--outline-light {
	background: transparent;
	color: var(--c-white);
	box-shadow: inset 0 0 0 1.5px var(--c-outline-on-primary);
}

.c-btn--outline-light:hover {
	background: var(--c-hover-on-primary);
}

/* Filled icons (play, quote) */
.c-icon--play,
.c-icon--quote,
.c-icon--whatsapp {
	fill: currentColor;
	stroke: none;
}

/* Text link with trailing arrow */
.c-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px; /* touch target */
	color: var(--c-primary);
	font-family: var(--ff-head);
	font-weight: 600;
	text-decoration: none;
	text-underline-offset: 6px;
}

.c-link:hover {
	text-decoration: underline;
}

.c-link .c-icon {
	width: 18px;
	height: 18px;
}

.c-link--light {
	color: var(--c-white);
}

/* 8. Cards & blocks
   ========================================================================== */
.c-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--r-card);
	background: var(--c-white);
	box-shadow: var(--sh-card);
}

.c-card__text {
	color: var(--c-muted);
	font-size: 1rem;
}

.c-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: clamp(24px, 3vw, 32px);
	border-radius: var(--r-block);
	background: var(--c-light);
}

.c-block--cream {
	border-radius: var(--r-card);
	background: var(--c-cream);
}

/* Breadcrumbs (Yoast markup, "/" separators) + archive hero (courses, articles)
   ========================================================================== */
.c-breadcrumbs {
	color: var(--c-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

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

.c-breadcrumbs a:hover {
	color: var(--c-primary);
	text-decoration: underline;
}

.c-breadcrumbs .breadcrumb_last,
.c-breadcrumbs [aria-current] {
	color: var(--c-ink);
}

.c-breadcrumbs__sep {
	margin-inline: 8px;
}

.c-archive-hero {
	padding-block: clamp(32px, 5vw, 72px);
}

.c-archive-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.c-archive-hero__lead {
	max-width: 640px;
}

/* 9. Logo (images in assets/img; markup in template-parts/components/logo.php)
   ========================================================================== */
.c-logo {
	display: inline-flex;
	line-height: 0;
}

.c-logo__img {
	display: block;
	width: auto;
	height: 44px;
}

.c-logo--footer .c-logo__img { height: 64px; }

@media (min-width: 960px) {
	.c-logo__img { height: 56px; }
}

/* 10. Header
   ========================================================================== */
.c-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 100;
	background: var(--c-white);
	box-shadow: 0 1px 0 var(--c-line);
}

.admin-bar .c-header {
	inset-block-start: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .c-header { inset-block-start: 0; }
}

.c-header__inner {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
	min-height: var(--header-h);
}

.c-header__brand {
	display: flex;
	justify-content: center;
}

.c-header__menu-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-btn);
	background: transparent;
	color: var(--c-primary);
}

.c-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
}

/* Phone: icon tile on mobile / tablet, icon + number from 1280px */
.c-header__phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	border-radius: var(--r-btn);
	background: var(--c-light);
	color: var(--c-accent);
	text-decoration: none;
}

.c-header__phone-number {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.c-header__whatsapp,
.c-header__cta,
.c-nav {
	display: none;
}

.c-header__whatsapp {
	border-radius: var(--r-btn);
}

.c-header__whatsapp .c-icon {
	width: 22px;
	height: 22px;
}

@media (min-width: 960px) {
	.c-header__inner {
		display: flex;
		justify-content: space-between;
		gap: 24px;
	}

	.c-header__menu-btn { display: none; }

	.c-header__brand {
		justify-content: flex-start;
		gap: 48px;
	}

	.c-nav,
	.c-header__cta { display: inline-flex; }

	.c-header__whatsapp {
		display: inline-flex;
		width: 48px;
		height: 48px;
	}

	.c-header__cta {
		padding-inline: 24px;
		font-size: 1rem;
	}
}

@media (min-width: 1280px) {
	.c-header__brand { gap: 56px; }

	.c-header__phone {
		width: auto;
		height: 44px;
		background: transparent;
		color: var(--c-ink);
		font-weight: 500;
	}

	.c-header__phone .c-icon { color: var(--c-accent); }

	.c-header__phone:hover { color: var(--c-primary); }

	.c-header__phone-number {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
	}
}

/* Primary nav (desktop) */
.c-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 1280px) {
	.c-nav__list { gap: 32px; }
}

.c-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
}

.c-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--c-ink);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}

.c-nav__link:hover,
.c-nav__item.is-current > .c-nav__link {
	color: var(--c-primary);
}

.c-nav__item.is-current > .c-nav__link {
	font-weight: 600;
}

.c-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
}

.c-nav__toggle .c-icon {
	transition: transform .2s ease;
}

.c-nav__item.is-open .c-nav__toggle .c-icon {
	transform: rotate(180deg);
}

.c-nav__sub {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: -16px;
	z-index: 10;
	min-width: 260px;
	margin: 0;
	padding: 10px;
	list-style: none;
	border-radius: var(--r-card);
	background: var(--c-white);
	box-shadow: var(--sh-card), 0 0 0 1px var(--c-line);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.c-nav__item.has-sub:hover .c-nav__sub,
.c-nav__item.is-open .c-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.c-nav__sublink {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding-inline: 14px;
	border-radius: var(--r-btn);
	color: var(--c-ink);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}

.c-nav__sublink:hover,
.c-nav__sublink[aria-current] {
	background: var(--c-light);
	color: var(--c-primary);
}

/* 11. Mobile menu (native <dialog>)
   ========================================================================== */
.c-mobile-menu {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	inset-inline-end: auto;
	width: min(420px, 100%);
	max-width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--c-white);
	color: var(--c-ink);
	box-shadow: var(--sh-float);
}

.c-mobile-menu::backdrop {
	background: var(--c-overlay);
}

@media (prefers-reduced-motion: no-preference) {
	.c-mobile-menu[open] {
		animation: reli-menu-in .25s ease-out;
	}
}

@keyframes reli-menu-in {
	from { transform: translateX(100%); }
	to { transform: none; }
}

html:has(.c-mobile-menu[open]) {
	overflow: hidden;
}

.c-mobile-menu__panel {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-height: 100%;
	padding: 10px 16px calc(24px + env(safe-area-inset-bottom));
}

.c-mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
}

.c-mobile-menu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-btn);
	background: var(--c-light);
	color: var(--c-primary);
}

.c-mobile-menu__list,
.c-mobile-menu__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-mobile-menu__list > li + li {
	box-shadow: 0 -1px 0 var(--c-line);
}

.c-mobile-menu__link,
.c-mobile-menu__sublink {
	display: flex;
	align-items: center;
	min-height: 52px;
	color: var(--c-ink);
	text-decoration: none;
}

.c-mobile-menu__link {
	font-family: var(--ff-head);
	font-size: 1.1875rem;
	font-weight: 500;
}

.c-mobile-menu__sub {
	padding-block-end: 8px;
	padding-inline-start: 16px;
}

.c-mobile-menu__sublink {
	min-height: 44px;
	color: var(--c-muted);
	font-size: 1rem;
}

.c-mobile-menu__link.is-current,
.c-mobile-menu__sublink.is-current {
	color: var(--c-primary);
	font-weight: 600;
}

.c-mobile-menu__footer {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-block-start: auto;
}

.c-mobile-menu__contact {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
}

.c-mobile-menu__contact .c-icon-tile {
	width: 44px;
	height: 44px;
	border-radius: var(--r-btn);
}

.c-mobile-menu__contact .c-icon {
	width: 20px;
	height: 20px;
}

/* 12. Footer
   ========================================================================== */
.c-footer {
	padding-block: 40px 32px;
	background: var(--c-footer);
	color: var(--c-footer-text);
	font-size: var(--fs-small);
}

.c-footer a {
	color: var(--c-footer-text);
	text-decoration: none;
}

.c-footer a:hover {
	color: var(--c-white);
}

.c-footer :focus-visible {
	outline-color: var(--c-white);
}

.c-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* Lead-magnet strip */
.c-lead-strip {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px 20px;
	border-radius: var(--r-card);
	background: var(--c-footer-strip);
}

.c-lead-strip__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.c-lead-strip__title {
	color: var(--c-white);
	font-size: clamp(1.3125rem, 1.22rem + .4vw, 1.5rem);
	line-height: 1.3;
}

/* Columns: brand + 4 link columns + socials. The link columns share the outer grid. */
.c-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 16px;
}

.c-footer__brand,
.c-footer__socials {
	grid-column: 1 / -1;
}

.c-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 12px;
	line-height: 1.7;
}

.c-footer__cols {
	display: contents;
}

.c-footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.c-footer__title {
	color: var(--c-white);
	font-size: 1rem;
	font-weight: 600;
}

.c-footer__links {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-footer__links a,
.c-footer__btn {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

/* "הגדרות עוגיות": a button that reads as a footer link */
.c-footer__btn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.c-footer__btn:hover {
	color: var(--c-white);
}

.c-footer__socials {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start; /* Next to a taller column (a link column is hidden), the rows must not spread. */
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-footer__pill {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 12px;
	border-radius: var(--r-pill);
	background: var(--c-footer-pill);
	font-size: var(--fs-caption);
}

.c-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-block-start: 20px;
	box-shadow: 0 -1px 0 var(--c-footer-line);
	font-size: var(--fs-caption);
}

@media (min-width: 960px) {
	.c-footer {
		padding-block: 72px 32px;
	}

	.c-footer__inner {
		gap: 56px;
	}

	.c-lead-strip {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
		padding: 32px 40px;
		border-radius: var(--r-card);
	}

	.c-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
		gap: 16px 48px;
	}

	.c-footer__brand {
		grid-column: 1;
		grid-row: 1 / span 2;
		gap: 16px;
	}

	.c-footer__col {
		gap: 12px;
	}

	/* Social pills sit under the last (contact) column */
	.c-footer__socials {
		grid-column: -2 / -1;
	}

	.c-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		padding-block-start: 24px;
	}
}

/* 13. Mobile sticky bar (home)
   ========================================================================== */
.c-sticky-bar {
	position: fixed;
	inset-inline: 12px;
	inset-block-end: calc(12px + env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	gap: 8px;
	padding: 10px;
	border-radius: var(--r-bar);
	background: var(--c-white);
	box-shadow: var(--sh-bar);
	opacity: 0;
	transform: translateY(calc(100% + 24px));
	transition: transform .25s ease, opacity .25s ease;
}

.c-sticky-bar.is-visible {
	opacity: 1;
	transform: none;
}

.c-sticky-bar__cta {
	flex: 1 1 0;
	min-height: 50px;
}

/* Floating WhatsApp button (mobile only; inline-end = left in RTL). Moves up while the course bar is shown.
   The small × hides it to a tab on the screen edge (.is-collapsed, remembered by main.js); the tab shows it again. */
.c-wa-float {
	position: fixed;
	inset-inline-end: 16px;
	inset-block-end: calc(16px + env(safe-area-inset-bottom));
	z-index: 89;
	transition: inset-block-end .25s ease;
}

.c-wa-float__link,
.c-wa-float__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--sh-bar);
}

.c-wa-float__link {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--c-whatsapp);
	color: var(--c-white);
}

.c-wa-float__link .c-icon {
	width: 30px;
	height: 30px;
}

.c-wa-float__toggle {
	position: absolute;
	inset-block-start: -10px;
	inset-inline-start: -10px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-ink);
	cursor: pointer;
}

/* 44px touch target around the small control */
.c-wa-float__toggle::after {
	content: "";
	position: absolute;
	inset: -10px;
}

.c-wa-float__toggle .c-icon {
	width: 14px;
	height: 14px;
}

.c-wa-float__toggle .c-icon--whatsapp,
.c-wa-float.is-collapsed .c-wa-float__link,
.c-wa-float.is-collapsed .c-icon--close {
	display: none;
}

.c-wa-float.is-collapsed {
	inset-inline-end: 0;
}

.c-wa-float.is-collapsed .c-wa-float__toggle {
	position: relative;
	inset: auto;
	width: 28px;
	height: 52px;
	border-radius: 0;
	border-start-start-radius: 12px;
	border-end-start-radius: 12px;
	background: var(--c-whatsapp);
	color: var(--c-white);
}

.c-wa-float.is-collapsed .c-icon--whatsapp {
	display: block;
	width: 18px;
	height: 18px;
}

.has-sticky-bar .c-wa-float {
	inset-block-end: calc(94px + env(safe-area-inset-bottom));
}

/* Keep the footer's last line clear of the button and the bar */
.c-wa-float + .c-footer {
	padding-block-end: calc(32px + 64px + env(safe-area-inset-bottom));
}

.has-sticky-bar .c-footer {
	padding-block-end: calc(32px + 72px + env(safe-area-inset-bottom));
}

.has-sticky-bar .c-wa-float + .c-footer {
	padding-block-end: calc(32px + 136px + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
	.c-sticky-bar,
	.c-wa-float { display: none; }

	.c-wa-float + .c-footer,
	.has-sticky-bar .c-footer,
	.has-sticky-bar .c-wa-float + .c-footer { padding-block-end: 32px; }
}

/* "בקרוב" tag after a course in the menus and the footer */
.c-menu-soon {
	margin-inline-start: 6px;
	padding: 1px 8px;
	border-radius: var(--r-pill);
	background: var(--c-light);
	color: var(--c-primary);
	font-size: .75rem;
	font-weight: 600;
}

.c-footer .c-menu-soon {
	background: var(--c-footer-pill);
	color: var(--c-footer-text);
}

/* 14. Forms — fields + lead form (card on home/contact, strip in the footer on every page)
   ========================================================================== */
.c-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.c-field > label {
	font-size: var(--fs-small);
	font-weight: 500;
}

.c-field input,
.c-field select {
	width: 100%;
	height: 52px;
	padding-inline: 16px;
	border: 1.5px solid var(--c-field);
	border-radius: var(--r-btn);
	background: var(--c-white);
	color: var(--c-ink);
	font-size: 1rem;
}

.c-field input:focus-visible,
.c-field select:focus-visible {
	outline-offset: 1px;
	border-color: var(--c-accent);
}

.c-field [aria-invalid="true"] {
	border-color: var(--c-error);
}

.c-field__req {
	color: var(--c-error);
}

.c-field__error {
	color: var(--c-error);
	font-size: var(--fs-small);
	font-weight: 500;
	line-height: 1.4;
}

.c-lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.c-lead-form__title {
	font-size: clamp(1.3125rem, 1.24rem + .33vw, 1.5rem);
}

.c-lead-form__note {
	color: var(--c-muted);
	font-size: var(--fs-caption);
}

.c-lead-form__row {
	display: grid;
	gap: 14px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.c-lead-form__hp {
	position: absolute;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.c-lead-form__consent {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 2px 10px;
	color: var(--c-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.c-lead-form__consent input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--c-primary);
}

.c-lead-form__consent a {
	grid-column: 2;
}

.c-form-msg {
	padding: 12px 16px;
	border-radius: var(--r-btn);
	font-size: var(--fs-small);
	font-weight: 500;
}

.c-form-msg:empty {
	display: none;
}

.c-form-msg.is-success {
	background: var(--c-light);
	color: var(--c-primary);
}

.c-form-msg.is-error {
	background: var(--c-error-bg);
	color: var(--c-error);
}

/* Strip variant (footer, dark) */
.c-lead-form--strip {
	gap: 10px;
}

.c-lead-form__inline {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
}

.c-lead-form__inline .c-field {
	flex: 1 1 220px;
}

.c-lead-form__inline .c-lead-form__course {
	flex-basis: 100%;
}

.c-lead-form__inline input,
.c-lead-form__inline select {
	height: 54px;
	border: 0;
}

.c-footer .c-lead-form__consent {
	color: var(--c-footer-text);
}

.c-footer .c-lead-form__consent a {
	text-decoration: underline;
}

.c-footer .c-field__error {
	color: var(--c-error-on-dark);
}

.c-footer .c-form-msg {
	background: var(--c-footer-pill);
	color: var(--c-white);
}

@media (min-width: 640px) {
	.c-lead-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.c-lead-form--card {
		gap: 18px;
	}

	.c-lead-strip .c-lead-form {
		flex: 0 1 460px;
	}
}
