/*
Theme Name: SufraPay
Theme URI: https://sufrapay.net
Author: SufraPay
Description: Bilingual (English root, Arabic under /ar/) marketing theme for SufraPay, smart table ordering and payment for restaurants. Hand-authored, zero plugin dependencies. English and Arabic are fully separate templates; this file is the shared design system for both.
Version: 3.0.0
Requires PHP: 7.4
License: Proprietary
Text Domain: sufrapay
*/

/* =========================================================
   1. TOKENS
   Design direction (v3): editorial and calm rather than "startup
   template". Flat brand colours instead of glows, hairlines instead of
   heavy shadows, smaller controls, real photography, left-aligned type.
   ========================================================= */
:root {
	--aqua: #7CC5CB;
	--aqua-soft: #E3F1F2;
	--ink: #0B2B33;
	--ink-2: #123842;
	--deep: #07222A;
	--teal: #0A7E88;
	--teal-dark: #075A62;
	--paper: #F6F6F6;
	--white: #FFFFFF;

	--text: #0B2B33;
	--text-dim: #4A666C;
	--text-on-dark: #F3FAFB;
	--text-on-dark-dim: #A9C9CC;

	--line: rgba(11, 43, 51, 0.12);
	--line-strong: rgba(11, 43, 51, 0.22);
	--line-on-dark: rgba(255, 255, 255, 0.14);

	--shadow-1: 0 1px 2px rgba(7, 34, 42, 0.06), 0 8px 24px rgba(7, 34, 42, 0.06);
	--shadow-2: 0 2px 6px rgba(7, 34, 42, 0.08), 0 18px 40px rgba(7, 34, 42, 0.12);

	--font-en-display: 'Outfit', 'Work Sans', system-ui, sans-serif;
	--font-en-body: 'Work Sans', system-ui, sans-serif;
	--font-ar-display: 'Baloo Bhaijaan 2', 'Rubik', system-ui, sans-serif;
	--font-ar-body: 'Rubik', system-ui, sans-serif;

	--fs-hero: clamp(2.15rem, 1.4rem + 3.6vw, 4.25rem);
	--fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
	--fs-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
	--fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
	--fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
	--fs-body: 1rem;
	--fs-small: 0.875rem;

	--container: 1180px;
	--gutter: clamp(18px, 4.5vw, 56px);
	--section-pad: clamp(56px, 8vw, 112px);
	--header-h: 68px;

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--dur: 0.35s;
}
@media (min-width: 900px) {
	:root { --header-h: 76px; --fs-body: 1.0625rem; }
}

/* =========================================================
   2. RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-en-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar-body); line-height: 1.85; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 {
	font-family: var(--font-en-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.022em;
	margin: 0 0 0.5em;
	color: inherit;
	text-wrap: balance;
}
h3, h4 { letter-spacing: -0.01em; line-height: 1.25; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
	font-family: var(--font-ar-display);
	letter-spacing: 0;
	line-height: 1.35;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
.prose a, .link {
	color: var(--teal-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.prose a:hover, .link:hover { color: var(--teal); }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-pad) 0; position: relative; }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }
.section--tight-top { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { font-size: var(--fs-lead); color: var(--text-dim); margin: 0; }
.section--ink .section-head p { color: var(--text-on-dark-dim); }
.section-head--split {
	max-width: none;
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
}
.section-head--split > div { max-width: 680px; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { font-size: var(--fs-lead); color: var(--text-dim); max-width: 640px; }

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 700px) {
	.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   4. BUTTONS (deliberately compact)
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--r-sm);
	border: 1px solid transparent;
	font-family: var(--font-en-display);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	white-space: nowrap;
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
html[lang="ar"] .btn { font-family: var(--font-ar-display); font-size: 1rem; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--aqua-soft); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.section--ink .btn-ghost, .page-hero .btn-ghost, .cta-block .btn-ghost { border-color: rgba(255, 255, 255, 0.32); color: #fff; }
.section--ink .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-block .btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-arrow { display: inline-block; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.text-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; color: var(--teal-dark);
	border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.text-link:hover { color: var(--teal); }
.section--ink .text-link { color: var(--aqua); }

/* =========================================================
   5. HEADER (dark, no bottom line, auto-hides on scroll)
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ink);
	transition: transform 0.32s var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	height: var(--header-h);
	max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter);
}
.site-logo img { height: 38px; width: auto; }
.home .site-logo img, .is-ar-home .site-logo img { height: 46px; }
@media (min-width: 900px) {
	.site-logo img { height: 42px; }
	.home .site-logo img, .is-ar-home .site-logo img { height: 52px; }
}
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
	display: inline-block; padding: 8px 12px; border-radius: var(--r-sm);
	font-weight: 500; font-size: 0.95rem; color: var(--text-on-dark-dim);
	transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
html[lang="ar"] .primary-nav a { font-size: 1rem; }
.primary-nav a:hover { color: #fff; }
.primary-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 36px; padding: 6px 12px; border-radius: var(--r-sm);
	border: 1px solid var(--line-on-dark); color: var(--text-on-dark);
	font-weight: 600; font-size: 0.88rem;
}
.lang-switch:hover { border-color: var(--aqua); color: var(--aqua); }
.header-cta { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }
.menu-toggle {
	display: none; width: 44px; height: 44px; border: 0; background: none;
	align-items: center; justify-content: center; border-radius: var(--r-sm);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
	content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative;
	transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.menu-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0 0;
		background: var(--ink);
		padding: 20px var(--gutter) 40px;
		overflow-y: auto;
		opacity: 0; transform: translateY(-8px); pointer-events: none;
		transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
	}
	.primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--line-on-dark); }
	.primary-nav a { display: block; padding: 18px 4px; font-size: 1.25rem; font-family: var(--font-en-display); font-weight: 600; color: #fff; background: none; border-radius: 0; }
	html[lang="ar"] .primary-nav a { font-family: var(--font-ar-display); }
	.primary-nav a.is-active { color: var(--aqua); background: none; }
	.primary-nav .nav-cta { display: flex; margin-top: 24px; border: 0; }
	.primary-nav .nav-cta a { display: inline-flex; padding: 12px 18px; font-size: 1rem; background: var(--teal); border-radius: var(--r-sm); color: #fff; }
}
@media (min-width: 961px) { .primary-nav .nav-cta { display: none; } }
body.nav-open { overflow: hidden; }

/* Skip link */
.skip-link {
	position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
	background: var(--teal); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip-link:focus { width: auto; height: auto; overflow: visible; clip: auto; }

/* =========================================================
   6. PAGE HERO (first view; same ink as the header, so there is no
   visible seam between navigation and content)
   ========================================================= */
.page-hero {
	background: var(--ink); color: var(--text-on-dark);
	padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px);
}
.page-hero h1 { font-size: var(--fs-h1); max-width: 18ch; color: #fff; }
.page-hero .lead { color: var(--text-on-dark-dim); }
.page-hero .btn-row { margin-top: 28px; }
.page-hero--compact { padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero--compact h1 { max-width: none; margin-bottom: 0.25em; }
.page-hero-meta { color: var(--text-on-dark-dim); font-size: var(--fs-small); margin: 0; }

/* Home hero: headline + real photo */
.hero-home .hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-home h1 { font-size: var(--fs-hero); max-width: 14ch; }
.hero-home .lead { font-size: var(--fs-lead); }
.hero-media {
	position: relative; margin: 0;
	border-radius: var(--r-lg); overflow: hidden;
	aspect-ratio: 4 / 3; background: var(--ink-2);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.hero-home .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
	.hero-media { aspect-ratio: 4 / 5; max-height: 640px; }
}
.hero-points {
	display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
	color: var(--text-on-dark-dim); font-size: var(--fs-small);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }

/* =========================================================
   7. KEYWORD TICKER (scrolling strip under the hero)
   ========================================================= */
.ticker {
	background: var(--teal); color: #fff; overflow: hidden;
	border-block: 1px solid rgba(255, 255, 255, 0.12);
}
.ticker-track {
	display: flex; width: max-content;
	animation: ticker 38s linear infinite;
}
html[dir="rtl"] .ticker-track { animation-name: ticker-rtl; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li {
	display: inline-flex; align-items: center; gap: 22px;
	padding: 14px 0; padding-inline-end: 22px;
	font-family: var(--font-en-display); font-weight: 600; font-size: 0.98rem; white-space: nowrap;
}
html[lang="ar"] .ticker-list li { font-family: var(--font-ar-display); font-size: 1.05rem; }
.ticker-list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; flex-wrap: wrap; width: auto; }
	.ticker-list[aria-hidden="true"] { display: none; }
}

/* =========================================================
   8. PROBLEM LIST (numbered, editorial)
   ========================================================= */
.problem-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.problem-item {
	display: grid; grid-template-columns: 56px 1fr; gap: 12px;
	padding: 24px 0; border-bottom: 1px solid var(--line);
}
.problem-num { font-family: var(--font-en-display); font-weight: 700; font-size: 1rem; color: var(--teal); padding-top: 3px; }
.problem-item h3 { font-size: var(--fs-h3); margin-bottom: 0.3em; }
.problem-item p { margin: 0; color: var(--text-dim); }
@media (min-width: 900px) {
	.problem-list { grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 0; }
	.problem-item { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); padding: 20px 0 0; }
}
.statement {
	margin-top: clamp(28px, 4vw, 48px);
	font-family: var(--font-en-display); font-weight: 600;
	font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em;
	max-width: 30ch;
}
html[lang="ar"] .statement { font-family: var(--font-ar-display); line-height: 1.55; letter-spacing: 0; }

/* =========================================================
   9. PROCESS VIDEO EMBED
   ========================================================= */
.video-frame {
	position: relative; width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: var(--r-lg); overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 700px) { .video-frame { aspect-ratio: 16 / 9; } }
.video-steps { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 700px) { .video-steps { grid-template-columns: 1fr 1fr; gap: 28px; } }
.video-step { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.video-step-num {
	width: 30px; height: 30px; border-radius: var(--r-sm);
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--ink); color: #fff; font-weight: 700; font-family: var(--font-en-display);
}
.video-step h3 { font-size: 1.05rem; margin: 3px 0 2px; }
.video-step p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }

/* =========================================================
   10. BENTO FEATURE GRID
   ========================================================= */
.bento { display: grid; gap: 14px; }
.tile {
	position: relative; overflow: hidden;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(20px, 2.4vw, 28px);
	display: flex; flex-direction: column; gap: 6px;
	transform: scale(var(--hover-scale, 1));
	transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { --hover-scale: 1.015; border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.tile h3 { font-size: var(--fs-h3); margin: 0; }
.tile p { margin: 0; color: var(--text-dim); }
.tile-icon {
	width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: 10px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--aqua-soft); color: var(--teal-dark);
}
.tile--ink { background: var(--ink); border-color: var(--ink); color: var(--text-on-dark); }
.tile--ink p { color: var(--text-on-dark-dim); }
.tile--ink .tile-icon { background: rgba(255, 255, 255, 0.08); color: var(--aqua); }
.tile--teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.tile--teal p { color: rgba(255, 255, 255, 0.85); }
.tile--teal .tile-icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tile--photo { padding: 0; min-height: 280px; justify-content: flex-end; border: 0; color: #fff; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo .tile-body {
	position: relative; padding: clamp(20px, 2.4vw, 28px);
	background: linear-gradient(180deg, rgba(7, 34, 42, 0) 0%, rgba(7, 34, 42, 0.86) 70%);
	padding-top: 80px;
}
.tile--photo p { color: rgba(255, 255, 255, 0.85); }
@media (min-width: 700px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.tile--photo { grid-row: span 2; min-height: 420px; }
}
@media (min-width: 1000px) {
	.bento { grid-template-columns: repeat(3, 1fr); }
	.tile--wide { grid-column: 1 / -1; }
}

/* =========================================================
   11. STATS
   ========================================================= */
.stats { display: grid; gap: 0; border-top: 1px solid var(--line-on-dark); }
.stat { padding: 26px 0; border-bottom: 1px solid var(--line-on-dark); }
.stat-num {
	display: block; font-family: var(--font-en-display); font-weight: 700;
	font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.03em;
	color: var(--aqua); margin-bottom: 10px; direction: ltr; unicode-bidi: isolate;
}
html[dir="rtl"] .stat-num { text-align: right; }
.stat-label { display: block; font-weight: 600; font-size: 1.05rem; color: #fff; }
.stat-note { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--text-on-dark-dim); }
.stat-note a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) {
	.stats { grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
	.stat { border-bottom: 0; border-top: 2px solid var(--aqua); padding: 22px 0 0; }
}
.stats-footnote { margin-top: 28px; font-size: var(--fs-small); color: var(--text-on-dark-dim); max-width: 760px; }
.stats-footnote a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }

/* Light variant used inside How It Works */
.evidence {
	display: grid; gap: 24px; align-items: center;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(24px, 4vw, 44px);
}
.evidence-figures { display: flex; flex-wrap: wrap; gap: 28px 44px; }
.evidence-figure strong {
	display: block; font-family: var(--font-en-display); font-weight: 700;
	font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem); color: var(--teal); line-height: 1; letter-spacing: -0.03em;
	direction: ltr; unicode-bidi: isolate;
}
html[dir="rtl"] .evidence-figure strong { text-align: right; }
.evidence-figure span { display: block; margin-top: 8px; color: var(--text-dim); font-size: 0.95rem; max-width: 22ch; }
.evidence p { margin: 0; color: var(--text-dim); }
@media (min-width: 900px) { .evidence { grid-template-columns: 1fr 1.1fr; gap: 56px; } }

/* =========================================================
   12. MEDIA + TEXT SPLIT, PHOTOS
   ========================================================= */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split h2 { font-size: var(--fs-h2); }
.split p { color: var(--text-dim); }
.split-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; }
	.split--reverse .split-media { order: 2; }
	.split-media--tall { aspect-ratio: 4 / 5; }
}
.photo-band { display: grid; gap: 14px; }
.photo-band figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--line); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.photo-band figure:hover img { transform: scale(1.03); }
@media (min-width: 700px) { .photo-band { grid-template-columns: 1.4fr 1fr; } .photo-band figure { aspect-ratio: auto; height: clamp(260px, 32vw, 420px); } }

/* =========================================================
   13. WORKFLOW STEPS (How It Works)
   ========================================================= */
.workflow { display: grid; gap: clamp(28px, 5vw, 64px); }
.workflow-aside h2 { font-size: var(--fs-h2); }
.workflow-aside p { color: var(--text-dim); }
.workflow-aside figure { margin: 24px 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.workflow-aside img { width: 100%; height: 100%; object-fit: cover; }
.workflow-tag {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--r-md);
	background: var(--ink); color: #fff; margin-bottom: 18px;
	font-family: var(--font-en-display); font-weight: 700; font-size: 1.2rem;
}
@media (min-width: 960px) {
	.workflow { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
	.workflow-aside { position: sticky; top: calc(var(--header-h) + 28px); }
	.workflow-aside figure { aspect-ratio: 5 / 4; }
}
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step {
	position: relative; counter-increment: step;
	display: grid; grid-template-columns: 44px 1fr; gap: 14px;
	padding: 22px 12px; margin-inline: -12px;
	border-bottom: 1px solid var(--line); border-radius: var(--r-md);
	transform: scale(var(--hover-scale, 1));
	transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover { --hover-scale: 1.01; background: rgba(10, 126, 136, 0.05); }
.step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-en-display); font-weight: 700; color: var(--teal); font-size: 0.95rem; padding-top: 3px;
}
html[lang="ar"] .step::before { content: counter(step, arabic-indic); font-size: 1.1rem; }
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.25em; }
.step p { margin: 0; color: var(--text-dim); }

/* Onboarding timeline */
.timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline-day { font-family: var(--font-en-display); font-weight: 700; color: var(--teal); }
html[lang="ar"] .timeline-day { font-family: var(--font-ar-display); font-size: 0.92em; white-space: nowrap; }
.timeline h3 { font-size: 1.05rem; margin: 0 0 2px; }
.timeline p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }
@media (min-width: 900px) {
	.timeline { grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 0; }
	.timeline li { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--ink); padding: 16px 0 0; }
}

/* =========================================================
   14. CARDS (teasers, values) + hover grow
   ========================================================= */
.card {
	display: flex; flex-direction: column; gap: 6px; height: 100%;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(20px, 2.4vw, 26px);
	transform: scale(var(--hover-scale, 1));
	transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.card:hover, .card:hover { --hover-scale: 1.02; border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.card h3 { font-size: var(--fs-h3); margin: 0; }
.card p { margin: 0; color: var(--text-dim); flex-grow: 1; }
.card .text-link { margin-top: 12px; align-self: flex-start; }
.card-num { font-family: var(--font-en-display); font-weight: 700; color: var(--teal); font-size: 0.9rem; margin-bottom: 6px; }
html[lang="ar"] .card-num { font-family: var(--font-ar-display); font-size: 1rem; }

/* Mission / vision statements */
.statements { display: grid; gap: 0; border-top: 1px solid var(--line); }
.statements > div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.statements h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-dark); margin-bottom: 10px; }
html[lang="ar"] .statements h3 { text-transform: none; letter-spacing: 0; font-size: 1rem; }
.statements p { margin: 0; font-family: var(--font-en-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); line-height: 1.3; letter-spacing: -0.01em; }
html[lang="ar"] .statements p { font-family: var(--font-ar-display); line-height: 1.55; letter-spacing: 0; }
@media (min-width: 900px) { .statements { grid-template-columns: 1fr 1fr; gap: 48px; border-top: 0; } .statements > div { border-bottom: 0; border-top: 2px solid var(--ink); padding: 22px 0 0; } }

/* =========================================================
   15. STANDARDS + FURTHER READING (external references)
   ========================================================= */
.ref-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ref-list li { border-bottom: 1px solid var(--line); }
.ref-list a {
	display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
	padding: 20px 4px;
	transition: background var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.ref-list a:hover { background: rgba(10, 126, 136, 0.05); padding-inline: 12px; }
.ref-title { font-weight: 600; font-size: 1.05rem; }
.ref-desc { grid-column: 1; color: var(--text-dim); font-size: 0.95rem; }
.ref-source { grid-column: 1; font-size: var(--fs-small); color: var(--teal-dark); font-weight: 600; }
.ref-arrow { grid-column: 2; grid-row: 1 / span 3; color: var(--teal); }
html[dir="rtl"] .ref-arrow { transform: scaleX(-1); }
@media (min-width: 900px) { .ref-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

/* =========================================================
   16. FAQ ACCORDION (button + panel; JS sets max-height)
   ========================================================= */
.faq-layout { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 960px) {
	.faq-layout { grid-template-columns: 0.75fr 1.25fr; align-items: start; }
	.faq-nav { position: sticky; top: calc(var(--header-h) + 28px); }
}
.faq-nav ul { display: grid; gap: 2px; }
.faq-nav a { display: block; padding: 8px 0; color: var(--text-dim); font-weight: 500; }
.faq-nav a:hover { color: var(--teal-dark); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
	background: none; border: 0; padding: 20px 0; text-align: start;
	font-family: var(--font-en-display); font-weight: 600; font-size: 1.06rem; line-height: 1.35; color: var(--text);
}
html[lang="ar"] .faq-question { font-family: var(--font-ar-display); font-size: 1.1rem; line-height: 1.6; }
.faq-question:hover { color: var(--teal-dark); }
.faq-icon {
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	border: 1px solid var(--line-strong); color: var(--teal-dark);
	display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1;
	transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--aqua-soft); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.no-js .faq-answer { max-height: none; }
.faq-answer-inner { padding: 0 0 22px; color: var(--text-dim); max-width: 70ch; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   17. CTA BLOCK
   ========================================================= */
.cta-block {
	background: var(--ink); color: var(--text-on-dark);
	border-radius: var(--r-lg);
	padding: clamp(32px, 5vw, 64px);
	display: grid; gap: 22px; align-items: end;
}
.cta-block h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 0.3em; }
.cta-block p { margin: 0; color: var(--text-on-dark-dim); font-size: var(--fs-lead); }
@media (min-width: 900px) { .cta-block { grid-template-columns: 1.4fr auto; gap: 48px; } }

/* =========================================================
   18. FORMS
   ========================================================= */
.form-layout { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .form-layout { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field .optional { font-weight: 400; color: var(--text-dim); }
.form-field input, .form-field textarea, .form-field select {
	font: inherit; font-size: 16px; /* 16px stops iOS zooming into fields */
	min-height: 46px; padding: 11px 14px;
	border-radius: var(--r-sm); border: 1px solid var(--line-strong);
	background: var(--white); color: var(--text);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 126, 136, 0.15); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions .btn { width: auto; } }
.form-legal { margin-top: 14px; font-size: var(--fs-small); color: var(--text-dim); }
.form-legal a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; }
.form-status.is-success { background: var(--aqua-soft); color: var(--teal-dark); }
.form-status.is-error { background: #FBEAEA; color: #8F2626; }
.form-status a { text-decoration: underline; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.contact-details { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.contact-details > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-details h3 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 4px; font-family: var(--font-en-body); font-weight: 600; }
html[lang="ar"] .contact-details h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-ar-body); font-size: 0.95rem; }
.contact-details p { margin: 0; font-weight: 500; }
.contact-details a { color: var(--teal-dark); }

.next-steps { counter-reset: ns; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.next-steps li::before { content: counter(ns); width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-en-display); }
html[lang="ar"] .next-steps li::before { content: counter(ns, arabic-indic); }
.next-steps h3 { font-size: 1.05rem; margin: 2px 0 2px; }
.next-steps p { margin: 0; color: var(--text-dim); font-size: 0.97rem; }

/* =========================================================
   19. LEGAL PAGES
   ========================================================= */
.legal-section { background: var(--white); }
.legal-layout { display: grid; gap: 32px; }
.legal-toc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: var(--paper); }
.legal-toc-title { font-weight: 700; margin: 0 0 8px; font-family: var(--font-en-display); }
html[lang="ar"] .legal-toc-title { font-family: var(--font-ar-display); }
.legal-toc ol { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 0.93rem; }
.legal-toc a { color: var(--text-dim); }
.legal-toc a:hover { color: var(--teal-dark); }
@media (max-width: 959px) {
	.legal-toc ol { max-height: 220px; overflow-y: auto; }
}
@media (min-width: 960px) {
	.legal-layout { grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
	.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.legal-body { max-width: 760px; }
.legal-clause { padding: 22px 0; border-bottom: 1px solid var(--line); }
.legal-clause:first-child { padding-top: 0; }
.legal-clause h2 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); margin-bottom: 0.6em; }
.legal-num { color: var(--teal); }
.legal-clause p { color: #2B474D; }
.legal-clause a, .legal-contact a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-contact { margin-top: 28px; font-weight: 600; }

/* =========================================================
   20. FOOTER
   ========================================================= */
.site-footer { background: var(--deep); color: var(--text-on-dark-dim); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-on-dark); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-logo img { height: 36px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 30ch; }
.footer-col h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 14px; font-family: var(--font-en-body); font-weight: 600; }
html[lang="ar"] .footer-col h2 { text-transform: none; letter-spacing: 0; font-family: var(--font-ar-body); font-size: 0.95rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--aqua); }
.footer-col address { font-style: normal; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; font-size: 0.85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--aqua); }
.payment-badges { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 18px; }
.payment-badges .badge {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 0 0 auto; height: 28px; padding: 0 7px; background: #fff; border-radius: 6px;
}
.payment-badges .badge img { height: 58%; width: auto; }

/* =========================================================
   21. MOTION (progressive enhancement)
   Content is always visible without JS (.no-js) and under reduced
   motion. --hover-scale is folded into the reveal transform so hover
   grow keeps working after an element has revealed.
   ========================================================= */
.reveal, .reveal-item {
	opacity: 0;
	transform: translateY(22px) scale(var(--hover-scale, 1));
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.reveal.is-visible, .reveal-group.is-visible .reveal-item { opacity: 1; transform: translateY(0) scale(var(--hover-scale, 1)); }
.reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 0.06s; }
.reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 0.12s; }
.reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 0.18s; }
.reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 0.24s; }
.reveal-group.is-visible .reveal-item:nth-child(6) { transition-delay: 0.3s; }
.reveal-group.is-visible .reveal-item:nth-child(n+7) { transition-delay: 0.34s; }
.no-js .reveal, .no-js .reveal-item { opacity: 1; transform: none; }

/* Whole-section glide as you move from one section to the next
   (class added by JS only, so a script failure never hides content). */
.section-transition { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.section-transition.is-visible { opacity: 1; transform: none; }

/* Scroll-linked image zoom (set by JS as --zoom) */
[data-zoom] img { transform: scale(var(--zoom, 1)); transition: transform 0.1s linear; will-change: transform; }

/* Hero headline word reveal (JS wraps words) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0; margin: -0.12em 0; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); }
.is-split-ready .split-word > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; }
	.reveal, .reveal-item, .section-transition { opacity: 1 !important; transform: none !important; transition: none !important; }
	[data-zoom] img { transform: none !important; }
	.split-word > span { transform: none !important; transition: none !important; }
	.tile, .card, .step { transition: none; }
}

/* Lenis smooth scroll (only active when the library loads) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Print */
@media print {
	.site-header, .site-footer, .ticker, .video-frame, .cta-block, .legal-toc { display: none !important; }
	.reveal, .reveal-item, .section-transition { opacity: 1 !important; transform: none !important; }
	body { background: #fff; }
}
