/* ==========================================================================
   Yalla theme — main stylesheet
   Uses logical properties (inline-start/end) so it mirrors for Arabic (RTL).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	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: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
	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: "DM Sans";
	src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
	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: "DM Sans";
	src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 1000;
	font-display: swap;
	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: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "IBM Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
	font-weight: 700 800;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Tokens ---------- */
:root {
	/* Brand: taken from the Yalla logo (near-black + aubergine), with warm accents. */
	--teal: #2A2131;
	--teal-deep: #1A141F;
	--blue: #41334A;
	--lilac: #D9C8E6;
	--orange: #E8833A;
	--orange-dark: #C9661F;
	--sun: #F6C453;
	--mint: #7FD1B9;
	--sand: #FFF7EE;
	--sand-2: #FCEBDA;
	--ink: #1E2122;
	--muted: #5E5864;
	--line: #E4DDD3;
	--white: #FFFFFF;

	--font-head: "Bricolage Grotesque", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "DM Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 22px;
	--radius-lg: 36px;
	--shadow: 0 10px 30px -12px rgba(42, 33, 49, .25);
	--shadow-lg: 0 30px 60px -20px rgba(42, 33, 49, .35);
	--ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
	--ease: cubic-bezier(.22, 1, .36, 1);

	--gutter: clamp(16px, 4vw, 40px);
	--max: 1200px;
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
	line-height: 1.65;
	color: var(--ink);
	background: var(--sand);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--teal);
	margin: 0 0 .5em;
	font-weight: 750;
	text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--teal); }

/* Arabic: no negative tracking, a bit more line height */
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4, :lang(ar) .hero__yalla { letter-spacing: 0; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000;
	background: var(--orange); color: var(--white); padding: 12px 20px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.site-main:focus { outline: none; }

.kicker {
	display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--font-head); font-weight: 700; font-size: .85rem;
	letter-spacing: .14em; text-transform: uppercase; color: var(--orange-dark);
	margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.kicker--light { color: var(--sun); }
:lang(ar) .kicker { letter-spacing: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:last-child { color: var(--muted); font-size: 1.1em; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--teal); --fg: var(--white);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
	background: var(--bg); color: var(--fg);
	font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .35s var(--ease-bounce), box-shadow .3s var(--ease), background-color .2s;
	box-shadow: 0 6px 0 -1px rgba(0,0,0,.18);
	will-change: transform;
}
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { color: var(--fg); transform: translateY(-3px) rotate(-1deg); box-shadow: 0 10px 0 -1px rgba(0,0,0,.18); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 -1px rgba(0,0,0,.2); }
.btn--orange { --bg: var(--orange); }
.btn--orange:hover { --bg: var(--orange-dark); }
.btn--teal { --bg: var(--teal); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { --bg: rgba(255,255,255,.1); box-shadow: none; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }

.round-btn {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--white); color: var(--teal); border: 2px solid var(--teal); cursor: pointer;
	transition: transform .3s var(--ease-bounce), background .2s, color .2s;
}
.round-btn:hover { transform: scale(1.08); background: var(--teal); color: var(--white); }
.round-btn--orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.round-btn--orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .3s var(--ease-bounce); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 247, 238, .88);
	backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent;
	transition: background .3s, border-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(42,33,49,.4); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

/* Over the dark hero */
.is-home .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.is-home .site-header:not(.is-scrolled) .primary-nav a,
.is-home .site-header:not(.is-scrolled) .lang-switch a,
.is-home .site-header:not(.is-scrolled) .menu-toggle { color: var(--white); }
.is-home .site-header:not(.is-scrolled) .yalla-logo, .site-footer .yalla-logo, .menu-open .site-header .yalla-logo { --logo-k: #FFFFFF; --logo-p: var(--lilac); }
.is-home .site-header { margin-bottom: calc(var(--header-h) * -1); }

.site-logo-link { display: block; line-height: 0; }
.yalla-logo { display: block; height: auto; overflow: visible; }
.yalla-logo__k { fill: var(--logo-k, #1E2122); transition: fill .3s; }
.yalla-logo__p, .yalla-logo__text { fill: var(--logo-p, #41334A); transition: fill .3s; }
.site-logo-link .yalla-logo { width: 54px; }
.yalla-logo rect { transform-box: fill-box; transition: transform .45s var(--ease-bounce); }
.site-logo-link:hover .yalla-logo__p rect:nth-child(odd) { transform: translateY(-3px); }
.site-logo-link:hover .yalla-logo__k rect:nth-child(even) { transform: translateY(3px); }
.custom-logo { max-height: 56px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; padding: .5em .85em; border-radius: 999px; text-decoration: none;
	color: var(--teal); font-weight: 600; font-size: .98rem; position: relative;
}
.primary-nav a::after {
	content: ""; position: absolute; inset-inline: .85em; bottom: .3em; height: 3px; border-radius: 3px;
	background: var(--orange); transform: scaleX(0); transform-origin: var(--origin, left);
	transition: transform .35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; list-style: none; margin: 0; padding: 10px;
	background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { color: var(--teal) !important; border-radius: 10px; }
.primary-nav .sub-menu a:hover { background: var(--sand); }

.site-nav__extra { display: flex; align-items: center; gap: 14px; }
.lang-switch ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border-radius: 999px; background: rgba(42,33,49,.08); }
.is-home .site-header:not(.is-scrolled) .lang-switch ul { background: rgba(255,255,255,.12); }
.lang-switch a { display: block; padding: .3em .7em; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--teal); }
.lang-switch a.is-current { background: var(--orange); color: var(--white) !important; }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--teal); }
.menu-toggle__bars { display: grid; gap: 5px; width: 26px; }
.menu-toggle__bars span { height: 3px; border-radius: 3px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(2) { width: 70%; justify-self: end; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
	.menu-toggle { display: block; position: relative; z-index: 120; }
	.site-nav {
		position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; align-items: stretch; gap: 32px;
		padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
		background: var(--teal); color: var(--white);
		clip-path: circle(0 at calc(100% - 44px) 38px);
		transition: clip-path .6s var(--ease); visibility: hidden;
		overflow-y: auto;
	}
	.site-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
	.menu-open .menu-toggle { color: var(--white) !important; }
	.primary-nav .menu { flex-direction: column; gap: 4px; }
	.primary-nav a { color: var(--white) !important; font-family: var(--font-head); font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 750; padding: .25em 0; }
	.primary-nav a::after { inset-inline: 0; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 1em; }
	.primary-nav .sub-menu a { color: var(--sand) !important; font-size: 1.15rem; }
	.site-nav.is-open .primary-nav li { animation: menuIn .5s var(--ease) both; }
	.site-nav.is-open .primary-nav li:nth-child(2) { animation-delay: .05s; }
	.site-nav.is-open .primary-nav li:nth-child(3) { animation-delay: .1s; }
	.site-nav.is-open .primary-nav li:nth-child(4) { animation-delay: .15s; }
	.site-nav.is-open .primary-nav li:nth-child(5) { animation-delay: .2s; }
	.site-nav.is-open .primary-nav li:nth-child(6) { animation-delay: .25s; }
	.site-nav__extra { flex-wrap: wrap; }
	.lang-switch ul { background: rgba(255,255,255,.12); }
	.lang-switch a { color: var(--white); }
	body.menu-open { overflow: hidden; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Waves ---------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 80px); position: absolute; inset-inline: 0; bottom: -1px; fill: var(--sand); }
.wave--top { top: -1px; bottom: auto; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: radial-gradient(120% 90% at 85% 20%, var(--blue) 0%, var(--teal) 55%, var(--teal-deep) 100%);
	color: var(--white);
	padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
	padding-bottom: clamp(100px, 12vw, 170px);
	min-height: min(100svh, 920px);
	display: flex; align-items: center;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.hero__title { color: var(--white); margin-bottom: .4em; }
.hero__yalla {
	display: block; font-size: clamp(4.2rem, 2.4rem + 9vw, 9.5rem); line-height: .9; letter-spacing: -.05em; font-weight: 800;
	color: var(--orange); margin-bottom: .12em;
}
.hero__yalla span { display: inline-block; animation: letterIn .9s var(--ease-bounce) both; animation-delay: calc(var(--i) * 70ms + .1s); }
.hero__yalla:hover span { animation: wiggle .6s var(--ease-bounce); animation-delay: calc(var(--i) * 40ms); }
.hero__yalla span:last-child { color: var(--sun); }
.hero__line { display: block; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem); font-weight: 700; animation: fadeUp .9s var(--ease) .6s both; }
.hero__text { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 38em; color: rgba(255,255,255,.86); animation: fadeUp .9s var(--ease) .75s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; animation: fadeUp .9s var(--ease) .9s both; }
.hero .kicker { animation: fadeUp .8s var(--ease) both; }

@keyframes letterIn { from { opacity: 0; transform: translateY(60%) rotate(-12deg) scale(.6); } }
@keyframes wiggle { 0%, 100% { transform: none; } 30% { transform: translateY(-14px) rotate(-6deg); } 60% { transform: translateY(4px) rotate(4deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

.hero__visual { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.hero__blob {
	position: absolute; inset: 6%;
	background: linear-gradient(135deg, var(--orange) 0%, var(--sun) 100%);
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	animation: morph 14s ease-in-out infinite, fadeUp 1s var(--ease) .3s both;
	overflow: hidden; display: grid; place-items: center;
	box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.hero__blob.has-image { background: var(--blue); }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__illustration { width: 82%; color: rgba(255,255,255,.7); }
.hero__illustration .orbit-dots { transform-origin: 200px 200px; animation: spin 26s linear infinite; }
.hero__illustration .orbit { transform-origin: 200px 200px; animation: spin 60s linear infinite reverse; }
.hero__illustration .people { transform-origin: 200px 240px; animation: bob 4s ease-in-out infinite; }
@keyframes morph {
	0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
	33% { border-radius: 63% 37% 45% 55% / 55% 62% 38% 45%; }
	66% { border-radius: 38% 62% 35% 65% / 62% 36% 64% 38%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.greeting {
	position: absolute; inset-inline-start: -4%; bottom: 8%; z-index: 3;
	display: flex; align-items: center; gap: 10px;
	background: var(--white); color: var(--teal); border-radius: 999px; padding: 12px 22px 12px 14px;
	box-shadow: var(--shadow-lg); font-family: var(--font-head); font-weight: 700;
	animation: fadeUp .8s var(--ease) 1.1s both, bob 5s ease-in-out 2s infinite;
}
.greeting::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(127,209,185,.35); animation: pulse 2s infinite; }
.greeting__words { display: inline-grid; font-size: 1.25rem; }
.greeting__word { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: opacity .45s, transform .6s var(--ease-bounce); white-space: nowrap; }
.greeting__word.is-active { opacity: 1; transform: none; }
.greeting__word.is-leaving { opacity: 0; transform: translateY(-70%); }
.greeting__word:lang(ar), .greeting__word:lang(fa) { font-family: "IBM Plex Sans Arabic", sans-serif; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(127,209,185,0); } }

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__shape { position: absolute; border-radius: 50%; transition: transform .6s var(--ease); }
.hero__shape--1 { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; background: radial-gradient(circle, rgba(232,131,58,.35), transparent 65%); top: -10%; inset-inline-start: -8%; }
.hero__shape--2 { width: 120px; height: 120px; border: 3px dashed rgba(246,196,83,.5); top: 18%; inset-inline-start: 46%; animation: spin 30s linear infinite; }
.hero__shape--3 { width: 22px; height: 22px; background: var(--mint); top: 72%; inset-inline-start: 6%; }
.hero__shape--4 { width: 64px; height: 64px; background: var(--sun); border-radius: 18px; top: 14%; inset-inline-end: 6%; rotate: 18deg; opacity: .9; }
.hero__grain {
	position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__scroll { position: absolute; bottom: clamp(70px, 9vw, 110px); inset-inline-start: 50%; translate: -50% 0; z-index: 3; }
.hero__mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hero__mouse::after { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: var(--white); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 860px) {
	.hero { min-height: 0; }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { max-width: 340px; order: -1; margin-top: 8px; }
	.hero__scroll { display: none; }
	.greeting { inset-inline-start: 0; }
}

/* ---------- Counters ---------- */
.counters { position: relative; z-index: 3; margin-top: clamp(-90px, -7vw, -50px); }
.counters__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 16px; }
.counter {
	position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 24px;
	box-shadow: var(--shadow); display: grid; gap: 4px;
	transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.counter:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.counter__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--sand-2); color: var(--orange-dark); margin-bottom: 8px; }
.counter:nth-child(2) .counter__icon { background: #E2F4EE; color: #2E8A6E; }
.counter:nth-child(3) .counter__icon { background: #FDF0CF; color: #A27510; }
.counter:nth-child(4) .counter__icon { background: #DCEAF1; color: var(--blue); }
.counter__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.counter__plus { color: var(--orange); }
.counter__label { color: var(--muted); font-weight: 600; }

@media (max-width: 420px) { .counter { padding: 20px 16px; } }

.placeholder-badge, .admin-hint {
	display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: repeating-linear-gradient(45deg, #FFF3C4, #FFF3C4 6px, #FFE79A 6px, #FFE79A 12px);
	color: #6B5200; border: 1px dashed #C9A227; border-radius: 8px; padding: 3px 8px; justify-self: start; margin-top: 6px;
}
.admin-hint { text-transform: none; letter-spacing: 0; font-size: .85rem; padding: 10px 14px; margin-top: 24px; }

/* ---------- Journey ---------- */
.journey { position: relative; }
.journey__map { position: relative; }
.journey__path { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.journey__track, .journey__progress { fill: none; stroke-width: 6; stroke-linecap: round; }
.journey__track { stroke: var(--line); stroke-dasharray: 2 14; }
.journey__progress { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0)); transition: stroke-dashoffset 1s var(--ease); }
[dir="rtl"] .journey__path { transform: scaleX(-1); }

.journey__stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; min-height: 120px; }
.journey__stops li:nth-child(odd) { padding-top: 10px; }
.journey__stops li:nth-child(even) { padding-top: 34px; }
.journey__stop {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
	background: none; border: 0; cursor: pointer; font: inherit; color: var(--teal); padding: 0;
}
.journey__dot {
	width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
	background: var(--white); color: var(--teal); border: 3px solid var(--line);
	box-shadow: var(--shadow); position: relative;
	transition: transform .45s var(--ease-bounce), background .3s, border-color .3s, color .3s;
}
.journey__dot .icon { width: 28px; height: 28px; }
.journey__num {
	position: absolute; top: -6px; inset-inline-start: calc(50% + 16px);
	width: 24px; height: 24px; border-radius: 50%; font-size: .75rem; font-weight: 800; display: grid; place-items: center;
	background: var(--teal); color: var(--white);
}
.journey__name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; text-align: center; }
.journey__stop:hover .journey__dot { transform: translateY(-6px) scale(1.06); }
.journey__stop.is-done .journey__dot { border-color: var(--orange); }
.journey__stop.is-active .journey__dot { background: var(--orange); border-color: var(--orange); color: var(--white); transform: scale(1.15); }
.journey__stop.is-active .journey__num { background: var(--sun); color: var(--teal); }

.journey__panels { position: relative; margin-top: 40px; background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.journey__panel { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; padding-inline-end: 130px; }
.journey__panel.is-active { animation: panelIn .55s var(--ease) both; }
.journey__panel h3 { margin-bottom: .3em; }
.journey__panel p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.08em; }
.journey__panel .kicker { margin-bottom: .5rem; }
.journey__panel-icon {
	width: clamp(72px, 9vw, 110px); aspect-ratio: 1; border-radius: 30% 70% 60% 40% / 40% 40% 60% 60%;
	display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--sun)); color: var(--white);
	animation: morph 10s ease-in-out infinite;
}
.journey__panel-icon .icon { width: 46%; height: 46%; }
.journey__nav { position: absolute; inset-inline-end: clamp(24px, 4vw, 48px); bottom: clamp(24px, 4vw, 48px); display: flex; gap: 10px; }
[dir="rtl"] .journey__nav .icon, [dir="rtl"] .carousel-nav .icon { transform: scaleX(-1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

@media (max-width: 760px) {
	.journey__path { display: none; }
	.journey__stops { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; gap: 4px; min-height: 0; }
	.journey__stops li { scroll-snap-align: center; padding-top: 10px !important; }
	.journey__dot { width: 56px; height: 56px; }
	.journey__name { font-size: .9rem; }
	.journey__panel { grid-template-columns: 1fr; padding-inline-end: 0; padding-bottom: 64px; }
}

/* ---------- Quiz ---------- */
.quiz { padding-top: 0; }
.quiz__box {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px);
	padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
	background: var(--teal); color: var(--white);
}
.quiz__box::before {
	content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(232,131,58,.45), transparent 65%); inset-inline-end: -120px; top: -160px;
}
.quiz__box h2 { color: var(--white); }
.quiz__intro p { color: rgba(255,255,255,.82); }
.quiz__progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 28px; }
.quiz__progress span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--sun)); transition: width .6s var(--ease); }
.quiz__count { font-size: .9rem; font-weight: 700; margin-top: 10px; color: var(--sun) !important; min-height: 1.5em; }

.quiz__stage { position: relative; min-height: 360px; }
.quiz__q { border: 0; margin: 0; padding: 0; display: none; min-width: 0; }
.quiz__q.is-active { display: block; animation: panelIn .5s var(--ease) both; }
.quiz__q legend { font-family: var(--font-head); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 750; margin-bottom: 20px; padding: 0; line-height: 1.2; }
.quiz__answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__answer {
	display: flex; align-items: center; gap: 12px; text-align: start;
	padding: 16px 18px; border-radius: 18px; border: 2px solid rgba(255,255,255,.18);
	background: rgba(255,255,255,.06); color: var(--white); font: inherit; font-weight: 600; cursor: pointer;
	transition: transform .35s var(--ease-bounce), background .2s, border-color .2s;
}
.quiz__answer:hover, .quiz__answer:focus-visible { transform: translateY(-4px) rotate(-.6deg); background: rgba(255,255,255,.12); border-color: var(--sun); }
.quiz__answer.is-picked { background: var(--orange); border-color: var(--orange); transform: scale(1.03); }
.quiz__emoji { font-size: 1.7rem; line-height: 1; flex: none; transition: transform .4s var(--ease-bounce); }
.quiz__answer:hover .quiz__emoji { transform: scale(1.25) rotate(-10deg); }

.quiz__result { display: none; text-align: center; padding: 10px 0; }
.quiz__result.is-active { display: block; animation: resultIn .7s var(--ease-bounce) both; }
.quiz__result:focus { outline: none; }
.quiz__result h3 { color: var(--sun); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.quiz__result p { color: rgba(255,255,255,.86); max-width: 34em; margin-inline: auto; }
.quiz__result-emoji { display: inline-block; font-size: 4.5rem; line-height: 1; margin-bottom: 12px; animation: pop 1.2s var(--ease-bounce) .2s both; }
.quiz__result-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.quiz__fallback { list-style: none; padding: 0; display: grid; gap: 8px; }
.quiz__fallback a { color: var(--sun); font-weight: 700; }
@keyframes resultIn { from { opacity: 0; transform: scale(.85); } }
@keyframes pop { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }

.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.confetti i {
	position: absolute; top: 40%; inset-inline-start: 70%; width: 10px; height: 14px; border-radius: 3px;
	animation: confetti 1.6s var(--ease) forwards;
}
@keyframes confetti {
	0% { transform: translate(0, 0) rotate(0); opacity: 1; }
	100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 860px) {
	.quiz__box { grid-template-columns: 1fr; }
	.quiz__stage { min-height: 0; }
}
@media (max-width: 520px) { .quiz__answers { grid-template-columns: 1fr; } }

/* ---------- Stories ---------- */
.stories { background: var(--white); position: relative; overflow: hidden; }
.carousel-nav { display: flex; gap: 10px; }
.carousel { position: relative; }
.carousel__track {
	list-style: none; margin: 0; display: grid; grid-auto-flow: column;
	grid-auto-columns: clamp(270px, 32vw, 380px); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 30px;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.story-card {
	--c: var(--orange); --c-bg: var(--sand-2);
	scroll-snap-align: start; position: relative; overflow: hidden;
	background: var(--c-bg); border-radius: var(--radius-lg); padding: 30px;
	display: flex; flex-direction: column; gap: 14px; min-height: 340px;
	transition: transform .45s var(--ease-bounce), box-shadow .3s;
}
.story-card::after {
	content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
	background: var(--c); opacity: .14; inset-inline-end: -50px; bottom: -50px; transition: transform .6s var(--ease);
}
.story-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.story-card:hover::after { transform: scale(1.6); }
.story-card--sun { --c: #D9A21B; --c-bg: #FDF2D3; }
.story-card--mint { --c: #2E8A6E; --c-bg: #E2F4EE; }
.story-card--blue { --c: var(--blue); --c-bg: #DCEAF1; }
.story-card__top { display: flex; align-items: center; gap: 14px; }
.story-card__avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: var(--shadow); flex: none; }
.story-card__avatar--initial { display: grid; place-items: center; background: var(--c); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.story-card__name { font-family: var(--font-head); font-weight: 750; font-size: 1.3rem; color: var(--teal); margin: 0; }
.story-card__tag { margin: 0; font-size: .85rem; font-weight: 700; color: var(--c); }
.story-card__quote { margin: 0; position: relative; flex: 1; }
.story-card__quote::before { content: "“"; font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--c); display: block; height: .45em; }
.story-card__quote p { font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.story-card__more { font-weight: 700; text-decoration: none; color: var(--teal); display: inline-flex; align-items: center; gap: .4em; position: relative; z-index: 1; }
.story-card__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--c); color: var(--white); }
.story-card__icon .icon { width: 32px; height: 32px; }
.story-card p { color: var(--muted); position: relative; z-index: 1; }

/* ---------- Donate ---------- */
.donate__box {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center;
	background: linear-gradient(135deg, var(--blue), var(--teal)); color: var(--white);
	border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden;
}
.donate__box::before {
	content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(246,196,83,.12);
	inset-inline-start: -90px; bottom: -120px;
}
.donate__box h2 { color: var(--white); }
.donate__copy p { color: rgba(255,255,255,.85); font-size: 1.08em; }
.donate__anbi { font-size: .95rem !important; color: var(--sun) !important; font-weight: 600; }
.donate__meter-wrap { display: grid; gap: 18px; position: relative; }
.meter { background: var(--white); color: var(--teal); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); }
.meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.meter__raised { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); font-variant-numeric: tabular-nums; }
.meter__goal { color: var(--muted); font-weight: 600; }
.meter__bar { height: 22px; border-radius: 22px; background: var(--sand-2); position: relative; }
.meter__fill {
	position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--fill, 0%); border-radius: inherit;
	background: linear-gradient(90deg, var(--orange), var(--sun)); background-size: 200% 100%;
	transition: width 1.8s var(--ease); animation: shimmer 3s linear infinite;
}
.meter__heart {
	position: absolute; inset-inline-end: -16px; top: 50%; translate: 0 -50%;
	width: 36px; height: 36px; border-radius: 50%; background: var(--white); color: var(--orange);
	display: grid; place-items: center; box-shadow: var(--shadow); animation: beat 1.3s ease-in-out infinite;
}
.meter__heart .icon { width: 20px; height: 20px; fill: currentColor; }
.meter__pct { margin: 0; color: var(--muted); }
.meter__pct strong { color: var(--orange-dark); font-size: 1.1em; }
.donate__iban { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); text-align: center; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes beat { 0%, 100% { scale: 1; } 15% { scale: 1.2; } 30% { scale: 1; } 45% { scale: 1.12; } }
@media (max-width: 860px) { .donate__box { grid-template-columns: 1fr; } }

/* ---------- Cards / news ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .45s var(--ease-bounce), box-shadow .3s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--sun); }
.card__placeholder .icon { width: 56px; height: 56px; animation: spin 18s linear infinite; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__meta { margin: 0; font-size: .85rem; font-weight: 700; color: var(--orange-dark); }
.card__title { margin: 0; font-size: 1.3rem; }
.card__excerpt p { margin: 0; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.card__more .icon { width: 1.1em; transition: transform .3s var(--ease-bounce); }
.card:hover .card__more .icon { transform: translateX(6px); }
[dir="rtl"] .card__more .icon, [dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn .icon-arrow, [dir="rtl"] .story-card__more .icon { scale: -1 1; }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.page-numbers { min-width: 46px; height: 46px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 700; color: var(--teal); box-shadow: var(--shadow); }
.page-numbers.current { background: var(--orange); color: var(--white); }

/* ---------- Inner pages ---------- */
.page-hero {
	position: relative; overflow: hidden; background: var(--teal); color: var(--white);
	padding: clamp(56px, 8vw, 110px) 0 clamp(90px, 10vw, 140px);
}
.page-hero__title { color: var(--white); max-width: 18em; margin: 0; animation: fadeUp .8s var(--ease) both; }
.page-hero__sub { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 40em; animation: fadeUp .8s var(--ease) .15s both; }
.page-hero__sub p { margin: 0; }
.page-hero .entry-meta a { color: var(--sun); }
.page-hero__shapes span { position: absolute; border-radius: 50%; }
.page-hero__shapes span:nth-child(1) { width: 300px; height: 300px; background: radial-gradient(circle, rgba(232,131,58,.4), transparent 65%); inset-inline-end: -60px; top: -80px; }
.page-hero__shapes span:nth-child(2) { width: 70px; height: 70px; border: 3px dashed rgba(246,196,83,.6); inset-inline-end: 18%; bottom: 30%; animation: spin 24s linear infinite; }
.page-hero__shapes span:nth-child(3) { width: 18px; height: 18px; background: var(--mint); inset-inline-end: 34%; top: 30%; animation: bob 4s ease-in-out infinite; }

.entry-figure { margin-top: clamp(-90px, -6vw, -40px); margin-bottom: 40px; position: relative; z-index: 2; }
.entry-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote, .story-quote {
	margin: 1.6em 0; padding: 22px 28px; border-inline-start: 6px solid var(--orange);
	background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15em; font-weight: 500;
}
[dir="rtl"] .entry-content blockquote, [dir="rtl"] .story-quote { border-radius: var(--radius) 0 0 var(--radius); }
.story-quote { font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); color: var(--teal); }
.story-quote p { margin: 0; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content .wp-block-button__link { border-radius: 999px; background: var(--orange); font-family: var(--font-head); font-weight: 700; }
.entry-content--full > .alignfull { margin-inline: 0; }
.entry-content .alignwide { max-width: var(--max); margin-inline: auto; }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-meta { margin: 0; font-weight: 600; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 2px dashed var(--line); font-weight: 700; }
.post-nav a { text-decoration: none; }
.has-teal-color { color: var(--teal); } .has-teal-background-color { background-color: var(--teal); }
.has-blue-color { color: var(--blue); } .has-blue-background-color { background-color: var(--blue); }
.has-orange-color { color: var(--orange); } .has-orange-background-color { background-color: var(--orange); }
.has-sun-color { color: var(--sun); } .has-sun-background-color { background-color: var(--sun); }
.has-mint-color { color: var(--mint); } .has-mint-background-color { background-color: var(--mint); }
.has-sand-color { color: var(--sand); } .has-sand-background-color { background-color: var(--sand); }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }

/* Search form */
.search-form { display: flex; max-width: 520px; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .2s; }
.search-form:focus-within { border-color: var(--orange); }
.search-field { flex: 1; border: 0; background: none; padding: 10px 18px; font: inherit; color: var(--ink); min-width: 0; }
.search-field:focus { outline: none; }
.search-submit { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--orange); color: var(--white); display: grid; place-items: center; cursor: pointer; flex: none; }
.search-again { margin-bottom: 40px; }

/* Empty + 404 */
.empty-state { text-align: center; padding: 40px 0; display: grid; justify-items: center; }
.empty-state__emoji { font-size: 4rem; margin: 0; animation: bob 3s ease-in-out infinite; }
.not-found { text-align: center; }
.not-found .search-form { margin: 24px auto; }
.not-found__compass {
	width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 28px; position: relative;
	background: radial-gradient(circle, var(--white) 55%, var(--sand-2) 56%); border: 6px solid var(--teal); box-shadow: var(--shadow-lg);
}
.not-found__needle {
	position: absolute; inset-inline-start: 50%; top: 50%; width: 16px; height: 120px; margin: -60px 0 0 -8px;
	background: linear-gradient(var(--orange) 50%, var(--teal) 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	animation: lost 3s var(--ease-bounce) infinite;
}
@keyframes lost { 0% { rotate: 0deg; } 25% { rotate: 140deg; } 45% { rotate: 80deg; } 70% { rotate: 300deg; } 100% { rotate: 360deg; } }

/* Comments */
.comments { margin-top: 64px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--white); padding: 20px; border-radius: var(--radius); margin-bottom: 16px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); font: inherit; }
.comment-form .submit { background: var(--orange); color: #fff; border: 0; border-radius: 999px; padding: .85em 1.6em; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer {
	position: relative; margin-top: clamp(40px, 6vw, 80px);
	background: var(--teal-deep); color: rgba(255,255,255,.82);
	padding: clamp(90px, 10vw, 130px) 0 30px;
}
.site-footer .wave--top { fill: var(--sand); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.footer-cta { text-align: center; padding-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 56px; position: relative; }
.footer-cta__big {
	font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 1rem + 7vw, 7rem); line-height: 1; margin: 0 0 .1em;
	background: linear-gradient(90deg, var(--orange), var(--sun), var(--mint), var(--orange)); background-size: 300% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite;
	white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.footer-cta__title { color: var(--white); }
.footer-cta p { max-width: 36em; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .yalla-logo { width: 96px; }
.footer-brand { margin-bottom: 18px; }
.footer-title { color: var(--white); font-size: 1.1rem; margin-bottom: 16px; }
.contact-list, .footer-menu, .social, .footer-legal ul { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-list .icon { flex: none; color: var(--orange); width: 20px; margin-top: 3px; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a, .site-footer .menu a { text-decoration: none; }
.site-footer .menu { list-style: none; padding: 0; margin: 0; }
.site-footer .menu li { margin-bottom: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: transform .35s var(--ease-bounce), background .2s; }
.social a:hover { background: var(--orange); color: var(--white); transform: translateY(-4px) rotate(-8deg); }
.social .icon { width: 20px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.to-top { text-decoration: none; font-weight: 700; }
.site-footer .widget { margin-bottom: 24px; }
.site-footer .widget-title { color: var(--white); font-size: 1.1rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .hero__bg, .quiz, .donate, .wave { display: none !important; }
	body { background: #fff; }
}

/* ---------- Fixes ---------- */
.journey__panel[hidden] { display: none; }
.counters__grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); max-width: calc(var(--cols, 4) * 300px); margin-inline: auto; }
@media (max-width: 860px) { .counters__grid { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); } }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer .widget h2, .site-footer .widget h3, .site-footer .wp-block-heading { color: var(--white); font-size: 1.1rem; }
.site-footer .widget ul { list-style: none; padding: 0; }
.quiz__box, .donate__box, .story-card, .hero, .page-hero { overflow: clip; }
@media (max-width: 860px) { .hero__shape--3, .hero__shape--2 { display: none; } }

/* ---------- Yalla logo in the hero ---------- */
.hero__blob { background: linear-gradient(145deg, #FFFFFF 0%, var(--sand) 60%, var(--sand-2) 100%); }
.hero__orbit { position: absolute; inset: -4%; width: 108%; height: 108%; color: rgba(255,255,255,.35); pointer-events: none; z-index: 1; }
.hero__orbit .orbit-dots { transform-origin: 200px 200px; animation: spin 26s linear infinite; }
.hero__orbit .orbit { transform-origin: 200px 200px; animation: spin 60s linear infinite reverse; }
.hero__visual { isolation: isolate; }
.hero__logo { all: unset; cursor: pointer; width: 52%; display: block; position: relative; z-index: 2; }
.hero__logo:focus-visible { outline: 3px solid var(--orange); outline-offset: 10px; border-radius: 8px; }
.hero__logo .yalla-logo { width: 100%; }
.hero__logo rect { transform-origin: 0 0; animation: barIn .9s var(--ease-bounce) both; }
.hero__logo .yalla-logo__k rect:nth-child(1) { animation-delay: .15s; } .hero__logo .yalla-logo__k rect:nth-child(2) { animation-delay: .25s; }
.hero__logo .yalla-logo__k rect:nth-child(3) { animation-delay: .35s; } .hero__logo .yalla-logo__k rect:nth-child(4) { animation-delay: .45s; }
.hero__logo .yalla-logo__p rect:nth-child(1) { animation-delay: .4s; } .hero__logo .yalla-logo__p rect:nth-child(2) { animation-delay: .5s; }
.hero__logo .yalla-logo__p rect:nth-child(3) { animation-delay: .6s; } .hero__logo .yalla-logo__p rect:nth-child(4) { animation-delay: .7s; }
.hero__logo .yalla-logo__p rect:nth-child(5) { animation-delay: .8s; } .hero__logo .yalla-logo__p rect:nth-child(6) { animation-delay: .9s; }
.hero__logo .yalla-logo__p rect:nth-child(7) { animation-delay: 1s; } .hero__logo .yalla-logo__p rect:nth-child(8) { animation-delay: 1.1s; }
.hero__logo .yalla-logo__p rect:nth-child(9) { animation-delay: 1.2s; }
.hero__logo .yalla-logo__k rect:nth-child(n+5) { animation-delay: 1.3s; }
.hero__logo:hover .yalla-logo__p rect:nth-child(odd) { transform: translateY(-4px); }
.hero__logo:hover .yalla-logo__k rect:nth-child(even) { transform: translateY(4px); }
.hero__logo.is-shaking { animation: wiggle .6s var(--ease-bounce); }
.hero__logo.is-party .yalla-logo__p { fill: var(--orange); }
.hero__logo.is-party .yalla-logo__k { fill: var(--blue); }
.hero__logo.is-party rect { animation: partyBar .5s ease-in-out 4 alternate; }
@keyframes barIn { from { transform: scale(0); opacity: 0; } }
@keyframes partyBar { to { transform: translateY(-8px); } }

/* ---------- Guide explorer ---------- */
.journey__stops { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.journey__name { font-size: clamp(.82rem, .7rem + .3vw, 1rem); line-height: 1.25; padding-inline: 4px; }
.chips { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
	display: inline-block; padding: .4em .95em; border-radius: 999px; background: var(--sand); color: var(--teal);
	font-weight: 600; font-size: .92rem; text-decoration: none; border: 2px solid var(--sand-2);
	transition: transform .3s var(--ease-bounce), background .2s, border-color .2s;
}
.chips a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); transform: translateY(-2px) rotate(-1deg); }
@media (max-width: 960px) { .journey__map .journey__path { display: none; } .journey__stops { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 104px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; min-height: 0; } .journey__stops li { padding-top: 10px !important; scroll-snap-align: center; } .journey__panel { padding-inline-end: 0; padding-bottom: 64px; } }

/* ---------- Breadcrumbs, sub-pages, related ---------- */
.breadcrumbs { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.75); display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs a { color: var(--sun); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.subpages { margin-top: clamp(40px, 6vw, 72px); }
.subpages__title, .related__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 2rem); }
.subpages__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.subpage a {
	position: relative; display: grid; gap: 6px; height: 100%; padding: 22px 24px 26px; border-radius: var(--radius);
	background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
	transition: transform .4s var(--ease-bounce), box-shadow .3s;
}
.subpage a:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); color: var(--ink); }
.subpage__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--orange-dark); font-weight: 800; font-size: .9rem; }
.subpage__title { font-family: var(--font-head); font-weight: 750; font-size: 1.2rem; color: var(--teal); line-height: 1.2; }
.subpage__text { color: var(--muted); font-size: .95rem; }
.subpage__arrow { position: absolute; inset-inline-end: 20px; top: 22px; color: var(--orange); transition: transform .3s var(--ease-bounce); }
.subpage a:hover .subpage__arrow { transform: translateX(5px); }
[dir="rtl"] .subpage__arrow .icon { scale: -1 1; }
.related { margin-top: 56px; padding-top: 28px; border-top: 2px dashed var(--line); }

/* ---------- Deeper menus (3 levels) ---------- */
@media (min-width: 961px) {
	.primary-nav .sub-menu .sub-menu { top: -10px; inset-inline-start: 100%; }
	.primary-nav .sub-menu li { position: relative; }
	.primary-nav .sub-menu .menu-item-has-children > a::before { content: "›"; float: inline-end; margin-inline-start: 10px; opacity: .6; }
	.primary-nav .sub-menu { max-height: 75vh; overflow-y: auto; }
	.primary-nav .menu > li > a { font-size: .92rem; padding-inline: .6em; }
}
@media (max-width: 1180px) { .primary-nav .sub-menu .sub-menu { display: none; } }

/* Old-site content helpers */
.entry-content table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; }
.entry-content td, .entry-content th { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.entry-content iframe { max-width: 100%; border-radius: 16px; }
.entry-content img { height: auto; }
.contact-list small { opacity: .75; }
.hero__blob:not(.has-image) { overflow: visible; }
:lang(ar) .hero__yalla { line-height: 1.35; } :lang(ar) .hero__title { margin-top: .2em; }
