/*
Theme Name: Always Clean
Theme URI: https://www.alwaysclean.bh
Author: Always Clean W.L.L
Description: Bilingual (English / Arabic, RTL-aware) brochure theme for Always Clean W.L.L, including the "Nadheef" restaurant certification page at /nadheef and a certificate verification page for badge QR codes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alwaysclean
*/

/* =====================================================================
   Fonts – ITF Mirsal D (self-hosted, covers Arabic + Latin)
   ===================================================================== */
@font-face { font-family: "Mirsal"; src: url("assets/fonts/itfMirsalD-Light.otf") format("opentype");   font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Mirsal"; src: url("assets/fonts/itfMirsalD-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mirsal"; src: url("assets/fonts/itfMirsalD-Medium.otf") format("opentype");  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Mirsal"; src: url("assets/fonts/itfMirsalD-Bold.otf") format("opentype");    font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mirsal"; src: url("assets/fonts/itfMirsalD-Black.otf") format("opentype");   font-weight: 900; font-style: normal; font-display: swap; }

/* =====================================================================
   Tokens
   ===================================================================== */
:root {
	--navy: #0b1a33;
	--navy-2: #112548;
	--navy-3: #17325f;
	--blue: #0a72f0;
	--blue-d: #0759c0;
	--blue-l: #3f97ff;
	--sky: #e3f1ff;
	--sky-2: #f3f8fe;
	--ink: #0f1b2d;
	--muted: #5b6b82;
	--line: #dbe6f3;
	--white: #fff;
	--wa: #25d366;
	--ok: #1c9c5b;
	--err: #d23f3f;

	--font: "Mirsal", "Segoe UI", Tahoma, Arial, system-ui, sans-serif;
	--radius: 20px;
	--radius-s: 12px;
	--shadow: 0 18px 50px -20px rgba(11, 26, 51, .35);
	--shadow-s: 0 6px 20px -8px rgba(11, 26, 51, .25);
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(60px, 8vw, 110px);
	--header-h: 74px;
}

/* =====================================================================
   Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
html[dir="rtl"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; border-radius: 4px; }

/* Anchor targets land below the sticky header (e.g. /#ContactForm) */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { max-width: 760px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.28em; }
html[dir="rtl"] .ic--dir { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Reveal on scroll (only when JS is active). --i staggers siblings. */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity .9s, transform .9s, filter .9s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* =====================================================================
   Buttons, pills, headings
   ===================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; font-weight: 700; line-height: 1.1;
	border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: .95rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 114, 240, .8); }
.btn--primary:hover { background: var(--blue-d); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--sky); color: var(--blue-d); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb457; color: #fff; }

.pill {
	display: inline-flex; align-items: center; gap: .45em; padding: .45em .95em; border-radius: 999px;
	font-size: .9rem; font-weight: 700; background: var(--sky); color: var(--blue-d);
}
.pill--glow { background: rgba(63, 151, 255, .14); color: #a9d2ff; border: 1px solid rgba(63, 151, 255, .35); }
.pill--solid { background: var(--blue); color: #fff; box-shadow: var(--shadow-s); }

.eyebrow { display: inline-block; color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6em; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow--light { color: #bfe0ff; }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.sec-sub { color: var(--muted); font-size: 1.1rem; }
.link { font-weight: 700; display: inline-flex; align-items: center; gap: .35em; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, .06); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: clamp(150px, 18vw, 210px); height: auto; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a { color: rgba(255, 255, 255, .82); font-weight: 500; padding: .4em 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.nav__nadheef)::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--blue-l); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
html[dir="rtl"] .nav a:not(.nav__nadheef)::after { transform-origin: 100% 50%; }
.nav a:hover::after, .nav a[aria-current="page"]:not(.nav__nadheef)::after { transform: scaleX(1); }
.nav__nadheef { display: inline-flex; align-items: center; gap: .35em; background: rgba(10, 114, 240, .18); border: 1px solid rgba(63, 151, 255, .45); padding: .4em .9em !important; border-radius: 999px; color: #fff !important; }
.nav__nadheef:hover, .nav__nadheef[aria-current="page"] { background: var(--blue); }
.nav__mobile-actions { display: none; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
	color: #fff; font-weight: 700; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: .45em 1em; font-size: .95rem;
}
.lang-switch:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.burger .ic { width: 28px; height: 28px; }
.burger__close { display: none; }
body.nav-open .burger__close { display: block; }
body.nav-open .burger__open { display: none; }

@media (max-width: 960px) {
	.burger { display: block; }
	.header__call span { display: none; }
	.header__call { padding: .6em; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); padding: 24px var(--gutter) 40px;
		display: none; overflow: auto; z-index: 49;
	}
	body.nav-open .nav { display: block; }
	body.nav-open { overflow: hidden; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav ul a { display: block; font-size: 1.25rem; padding: .7em 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.nav__nadheef { margin-top: 10px; justify-content: center; }
	.nav__mobile-actions { display: grid; gap: 10px; margin-top: 24px; }
}

/* =====================================================================
   Hero (home) & Nadheef hero
   ===================================================================== */
.hero, .nhero, .verify {
	position: relative; overflow: hidden; color: #fff; isolation: isolate;
	background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0b3f8f 130%);
}
.hero__bg {
	position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
	opacity: .22; mix-blend-mode: screen;
}
.hero::after, .nhero::after {
	content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	inset-inline-end: -25vw; top: -30vw; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(10, 114, 240, .45), transparent 70%);
}
.hero__grid, .nhero__grid {
	display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
	padding-block: clamp(56px, 8vw, 110px);
}
.hero__title, .nhero__title { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 900; margin: .5em 0 .4em; }
.hero__title .hl, .nhero__title .hl, .hl .w > span {
	background: linear-gradient(90deg, #8fcaff, #3f97ff 60%, #8fcaff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
html[dir="rtl"] .hero__title, html[dir="rtl"] .nhero__title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.hero__sub, .nhero__intro { color: rgba(255, 255, 255, .8); font-size: 1.15rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__media { margin: 0; position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hero__media figcaption { font-size: .85rem; color: rgba(255, 255, 255, .6); margin-top: 10px; }
.hero__stamp {
	position: absolute; inset-inline-start: -14px; bottom: 52px; display: flex; align-items: center; gap: 10px;
	background: #fff; color: var(--navy); padding: 10px 16px 10px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow);
}
.hero__stamp img { width: 36px; height: 36px; border-radius: 50%; }

.trust { background: var(--sky); border-bottom: 1px solid var(--line); overflow: hidden; }
.trust__track { display: flex; width: max-content; padding-block: 16px; font-weight: 700; color: var(--navy-2); animation: ticker 32s linear infinite; }
html[dir="rtl"] .trust__track { animation-name: ticker-rtl; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__track span { display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; padding-inline-end: 56px; }
.trust__track .ic { color: var(--blue); }
.trust__star { font-style: normal; color: var(--blue-l); margin-inline-start: 40px; font-size: .8em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }

@media (max-width: 900px) {
	.hero__grid, .nhero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__stamp { inset-inline-start: 12px; bottom: 44px; }
}

/* =====================================================================
   About
   ===================================================================== */
.about { padding-block: var(--section); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.about__img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-s); }
.about__img--a { grid-column: 1 / 2; grid-row: 1 / 2; aspect-ratio: 4 / 3; }
.about__img--b { grid-column: 2 / 3; grid-row: 1 / 3; }
.about__img--c { grid-column: 1 / 2; grid-row: 2 / 3; aspect-ratio: 16 / 10; }
.about__copy p { color: var(--muted); font-size: 1.05rem; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.vm__card { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.vm__card h3 { font-size: 1.15rem; }
.vm__card p { font-size: .98rem; margin: 0; }
.vm__ic { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; align-items: center; justify-content: center; margin-bottom: 12px; }
.vm__ic .ic { width: 22px; height: 22px; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .vm { grid-template-columns: 1fr; } }

/* =====================================================================
   Services
   ===================================================================== */
.services { padding-block: var(--section); background: var(--sky-2); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc__media { position: relative; }
.svc__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc__media .pill { position: absolute; top: 14px; inset-inline-start: 14px; }
.svc__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc__body h3 { font-size: 1.25rem; margin: 0; }
.svc__body p { color: var(--muted); margin: 0; }
.svc__body .link { margin-top: auto; padding-top: 8px; }
.svc__ic { display: inline-flex; width: 46px; height: 46px; border-radius: 13px; background: var(--sky); color: var(--blue); align-items: center; justify-content: center; margin-bottom: 4px; }
.svc__ic .ic { width: 24px; height: 24px; }
.svc__note { display: flex; gap: .5em; align-items: flex-start; background: var(--sky); color: var(--navy-2) !important; border-radius: var(--radius-s); padding: 12px 14px; font-size: .95rem; }
.svc__note .ic { color: var(--blue); margin-top: .2em; }
.svc--featured { grid-column: 1 / -1; flex-direction: row; }
.svc--featured .svc__media { flex: 0 0 46%; }
.svc--featured .svc__media img { height: 100%; aspect-ratio: auto; }
.svc--featured .svc__body { padding: 32px; }
.svc--featured h3 { font-size: 1.6rem; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
	.svc-grid { grid-template-columns: 1fr; }
	.svc--featured { flex-direction: column; }
	.svc--featured .svc__media img { aspect-ratio: 16 / 10; }
}

/* =====================================================================
   Why us
   ===================================================================== */
.why { padding-block: var(--section); color: #fff; background: linear-gradient(135deg, #0b3f8f 0%, var(--blue) 50%, #2f9cff 100%); position: relative; overflow: hidden; }
.why .eyebrow { color: #cfe6ff; }
.why__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.why__card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(4px); }
.why__card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.why__card p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.why__ic { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--blue); align-items: center; justify-content: center; margin-bottom: 14px; }
.why__ic .ic { width: 26px; height: 26px; }
@media (max-width: 1000px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .why__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Nadheef teaser (home)
   ===================================================================== */
.teaser { padding-block: var(--section); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.teaser::before { content: ""; position: absolute; inset-inline-start: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 114, 240, .35), transparent 70%); }
.teaser__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.teaser__badge { display: flex; justify-content: center; }
.teaser__copy p { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 540px; }
@media (max-width: 860px) { .teaser__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   The Nadheef badge (CSS rendition; replaced by assets/img/nadheef-badge.png when present)
   ===================================================================== */
.badge-img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.badge {
	width: 100%; aspect-ratio: 1; border-radius: 13%; padding: 5%;
	background: linear-gradient(160deg, #2d9bff 0%, #0a6fe6 45%, #0947a6 100%);
	box-shadow: 0 35px 60px -25px rgba(0, 0, 0, .6), inset 0 0 0 3px rgba(255, 255, 255, .45), inset 0 -12px 30px rgba(0, 0, 0, .25), inset 0 12px 30px rgba(255, 255, 255, .25);
	color: #fff; position: relative; direction: rtl; font-family: var(--font);
}
html[dir="ltr"] .badge { direction: ltr; }
.badge__inner { height: 100%; border: 2px solid rgba(255, 255, 255, .35); border-radius: 10%; display: flex; flex-direction: column; justify-content: space-between; padding: 6% 6% 5%; }
.badge__cloud {
	position: relative; margin-top: auto; padding: 8% 10% 6%; text-align: center; border-radius: 45% 45% 40% 40% / 60% 60% 40% 40%;
	background: rgba(255, 255, 255, .13); border: 2px solid rgba(255, 255, 255, .5); box-shadow: inset 0 0 30px rgba(255, 255, 255, .15);
}
.badge__l1 { display: block; font-size: clamp(1rem, 4.5cqw, 1.5rem); font-weight: 700; opacity: .95; }
.badge__word { display: block; font-size: clamp(3rem, 15cqw, 5.2rem); font-weight: 900; line-height: 1; margin-top: .05em; text-shadow: 0 6px 20px rgba(0, 0, 0, .35); letter-spacing: .02em; }
html[dir="rtl"] .badge__word, .badge[dir="rtl"] .badge__word { letter-spacing: 0; }
.badge__spark { position: absolute; width: 13%; color: #fff; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); inset-inline-start: -3%; top: 30%; }
.badge__spark--s { width: 7%; inset-inline-start: 7%; top: 6%; }
.badge__foot { display: flex; align-items: flex-end; gap: 4%; margin-top: 8%; }
.badge__logo { width: 24%; height: auto; opacity: .95; }
.badge__cert { flex: 1; margin: 0; font-size: clamp(.55rem, 2.6cqw, .8rem); line-height: 1.35; opacity: .95; border-inline-start: 1px solid rgba(255, 255, 255, .5); padding-inline-start: 4%; }
.badge__qr { width: 21%; aspect-ratio: 1; background: #fff; color: var(--navy); border-radius: 12%; display: grid; place-items: center; padding: 6%; }
.badge__qr .ic { width: 100%; height: 100%; }
.badge__qr span { font-size: .5rem; font-weight: 700; display: none; }
.badge { container-type: inline-size; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact { padding-block: var(--section); background: #fff; }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list small { display: block; color: var(--muted); font-size: .85rem; }
.contact__list a, .contact__list span:not(.contact__ic) { font-weight: 700; color: var(--navy); }
.contact__list a:hover { color: var(--blue); }
.contact__ic { display: inline-flex; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); align-items: center; justify-content: center; }
.contact__ic--wa { background: #e6f9ec; color: #1aa64e; }
.contact__map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 260px; border: 0; display: block; }

.form { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-s); }
.form label { display: block; margin-bottom: 14px; }
.form label span { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
	width: 100%; font: inherit; padding: .75em .9em; border: 1px solid #c9d8ea; border-radius: var(--radius-s); background: #fff; color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 114, 240, .18); }
.form textarea { resize: vertical; min-height: 110px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form__foot small { color: var(--muted); }
/* Honeypot: visually hidden without offscreen offsets (offsets create scrollable overflow in RTL). */
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.notice { border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 18px; font-weight: 700; display: flex; gap: .5em; align-items: center; }
.notice--ok { background: #e6f7ee; color: var(--ok); }
.notice--err { background: #fdeaea; color: var(--err); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-top: clamp(48px, 6vw, 72px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.footer__brand p { margin-top: 18px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; align-items: center; justify-content: center; }
.footer__social a:hover { background: var(--blue); }
.footer__h { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__list { display: grid; gap: 8px; }
.footer__list a { color: rgba(255, 255, 255, .78); }
.footer__list a:hover { color: #fff; }
.footer__list--contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__list--contact .ic { color: var(--blue-l); margin-top: .2em; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
	background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .8);
}
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* =====================================================================
   Nadheef page
   ===================================================================== */
.nhero__badge { display: flex; justify-content: center; }
.nhero__intro { font-size: 1.12rem; }

.covers { padding-block: var(--section); background: #fff; }
.covers__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.covers__intro { font-size: 1.15rem; font-weight: 700; color: var(--navy-2); max-width: 640px; }
.covers__list { display: grid; gap: 28px; margin-block: 32px; }
.covers__list li { display: flex; gap: 20px; align-items: flex-start; }
.covers__list h3 { font-size: 1.2rem; margin-bottom: .25em; }
.covers__list p { margin: 0; color: var(--muted); }
.covers__ic { flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(10, 114, 240, .8); }
.covers__ic .ic { width: 30px; height: 30px; }
.covers__photo { margin: 0; }
.covers__photo img { border-radius: var(--radius); box-shadow: var(--shadow-s); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.covers__side { position: sticky; top: calc(var(--header-h) + 24px); }
.cta-card {
	background: linear-gradient(160deg, #1d86ff, var(--blue) 55%, #0651b8); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
	box-shadow: var(--shadow); position: relative; overflow: hidden; text-align: center;
}
.cta-card::before, .cta-card::after {
	content: ""; position: absolute; border: 2px solid rgba(255, 255, 255, .12); border-radius: 50%; width: 140%; aspect-ratio: 1; inset-inline-start: -20%; pointer-events: none;
}
.cta-card::before { top: -95%; }
.cta-card::after { top: -75%; }
.cta-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); position: relative; }
.cta-card p { position: relative; color: rgba(255, 255, 255, .92); margin: 22px 0 28px; font-weight: 500; }
.cta-card .btn { position: relative; width: 100%; }
@media (max-width: 900px) { .covers__grid { grid-template-columns: 1fr; } .covers__side { position: static; } }

.plaque { padding-block: var(--section); background: var(--sky-2); border-block: 1px solid var(--line); }
.plaque__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.plaque__copy p { color: var(--muted); font-size: 1.05rem; }
.plaque__points { display: grid; gap: 12px; margin-top: 20px; }
.plaque__points li { display: flex; gap: .6em; align-items: flex-start; font-weight: 500; }
.plaque__points .ic { color: var(--blue); margin-top: .25em; }
.plaque__badge { display: flex; justify-content: center; }
@media (max-width: 860px) { .plaque__grid { grid-template-columns: 1fr; } }

.steps { padding-block: var(--section); }
.steps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-s); position: relative; }
.step__n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 960px) { .steps__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps__grid { grid-template-columns: 1fr; } }

.certified { padding-block: var(--section); background: var(--sky-2); border-top: 1px solid var(--line); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cert-card__logo { width: 90px; height: 90px; object-fit: contain; border-radius: 14px; }
.cert-card__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--sky); color: var(--blue); }
.cert-card__ic .ic { width: 32px; height: 32px; }
.cert-card h3 { font-size: 1.05rem; margin: 8px 0 0; }
.cert-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.cert-card .link { margin-top: auto; padding-top: 10px; font-size: .95rem; }
@media (max-width: 960px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Certificate verification page
   ===================================================================== */
.verify { padding-block: clamp(48px, 7vw, 96px); min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
.verify__card { background: #fff; color: var(--ink); max-width: 620px; margin-inline: auto; border-radius: 28px; padding: clamp(28px, 4vw, 48px); text-align: center; box-shadow: var(--shadow); }
.verify__status { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1.1em; border-radius: 999px; font-weight: 700; margin: 6px auto 22px; }
.verify__status.is-ok { background: #e6f7ee; color: var(--ok); }
.verify__status.is-bad { background: #fdeaea; color: var(--err); }
.verify__logo { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 16px; border-radius: 18px; }
.verify__name { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; }
.verify__lead { font-size: 1.15rem; font-weight: 700; color: var(--blue); }
.verify__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; text-align: start; }
.verify__meta div { background: var(--sky-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.verify__meta dt { font-size: .8rem; color: var(--muted); }
.verify__meta dd { margin: 0; font-weight: 700; }
.verify__foot { font-size: .92rem; color: var(--muted); }
.verify__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.verify__brand { width: 160px; }
@media (max-width: 480px) { .verify__meta { grid-template-columns: 1fr; } }

/* =====================================================================
   Plain pages / 404
   ===================================================================== */
.page-plain { padding-block: var(--section); }
.page-plain--center { text-align: center; min-height: 50vh; display: flex; align-items: center; }
.prose :is(h2, h3) { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-s); }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-inline-start: 1.4em; margin-bottom: 1em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

/* =====================================================================
   Motion & creative layer
   ===================================================================== */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --intro: 1.25s; }
.seen { --intro: .15s; }

/* --- Intro curtain (once per session) --- */
.curtain { display: none; position: fixed; inset: 0; z-index: 200; background: var(--navy); place-items: center; pointer-events: none; overflow: hidden; }
.js:not(.seen) .curtain { display: grid; animation: curtain-out .75s cubic-bezier(.77, 0, .18, 1) 1.15s forwards; }
.curtain img { width: min(280px, 60vw); height: auto; opacity: 0; animation: curtain-logo .9s var(--ease-out) .1s forwards; }
.curtain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(10, 114, 240, .45), transparent 55%); animation: curtain-glow 1.2s ease-out forwards; }
.curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue), #8fcaff); transform: scaleX(0); transform-origin: 0 50%; animation: curtain-bar 1.05s var(--ease-out) .15s forwards; }
@keyframes curtain-logo { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes curtain-glow { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1.4); } }
@keyframes curtain-bar { to { transform: scaleX(1); } }
@keyframes curtain-out { to { transform: translateY(-101%); } }

/* --- Hero intro: elements fade/slide in after the curtain --- */
.js .anim-in { opacity: 0; transform: translateY(24px); animation: anim-in .9s var(--ease-out) forwards; animation-delay: calc(var(--intro) + var(--i, 0) * 80ms); }
@keyframes anim-in { to { opacity: 1; transform: none; } }

/* --- Headline words rising (main.js wraps words in .w > span) --- */
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
/* Once split, the gradient is painted per word (background-clip on a parent of transformed children is unreliable). */
.split .hl { background: none; color: inherit; animation: none; -webkit-text-fill-color: initial; }
.js .split .w > span { display: inline-block; transform: translateY(115%); animation: word-up .9s var(--ease-out) forwards; animation-delay: calc(var(--intro) + var(--i, 0) * 70ms); }
@keyframes word-up { to { transform: none; } }

/* --- Sparkles (logo star motif) --- */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; transition: transform .6s var(--ease-out); }
.sparkle { position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y); color: #fff; opacity: 0; filter: drop-shadow(0 0 8px rgba(143, 202, 255, .9)); animation: twinkle var(--d) ease-in-out var(--delay) infinite; }
.plaque .sparkle { color: var(--blue-l); filter: drop-shadow(0 0 6px rgba(10, 114, 240, .5)); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg) translateY(0); } 50% { opacity: .95; transform: scale(1) rotate(45deg) translateY(-14px); } }
.hero .wrap, .nhero .wrap, .teaser .wrap, .plaque .wrap { position: relative; z-index: 1; }

/* --- Before / after slider in the hero --- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; cursor: ew-resize; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before img { filter: sepia(.55) saturate(.45) contrast(1.15) brightness(.48); }
.ba__before::after { content: ""; position: absolute; inset: 0; mix-blend-mode: multiply; background: radial-gradient(ellipse at 30% 65%, rgba(70, 45, 10, .7), transparent 60%), radial-gradient(ellipse at 75% 20%, rgba(40, 30, 10, .5), transparent 50%), repeating-linear-gradient(115deg, rgba(0, 0, 0, .2) 0 5px, transparent 5px 13px); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(255, 255, 255, .6); z-index: 2; outline: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); transition: transform .2s; }
.ba__handle span svg { width: 26px; height: 26px; }
.ba:hover .ba__handle span, .ba__handle:focus-visible span { transform: translate(-50%, -50%) scale(1.12); }
.ba__label { position: absolute; top: 14px; z-index: 2; padding: .3em .8em; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(4px); transition: opacity .3s; }
.ba__label--before { left: 14px; } .ba__label--after { right: 14px; }
.ba.is-clean .ba__label--before { opacity: 0; }

/* --- Trust ticker star pulse --- */
.trust__star { animation: twinkle 3s ease-in-out infinite; opacity: 1; transform: none; }

/* --- About collage: curtain-reveal each photo, hover zoom --- */
.js .about__img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms), 0s; }
.js .about__media.is-in .about__img { clip-path: inset(0); }
.about__img:hover { transform: scale(1.04) rotate(-.5deg); }

/* --- Cards: 3D tilt (transform set by main.js), image zoom, icon wiggle --- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt.is-tilting { transition: transform .12s ease-out; }
.svc__media { overflow: hidden; }
.svc__media img { transition: transform 1s var(--ease-out); }
.svc:hover .svc__media img { transform: scale(1.07); }
.svc:hover .svc__ic, .why__card:hover .why__ic, .covers__list li:hover .covers__ic { animation: wiggle .6s var(--ease-out); }
@keyframes wiggle { 0% { transform: rotate(0); } 30% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg) scale(1.08); } 100% { transform: none; } }
.why__card { transition: background .3s, transform .3s var(--ease-out), box-shadow .3s; position: relative; z-index: 1; }
.why__card:hover { background: rgba(255, 255, 255, .18); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.step { transition: box-shadow .3s; }
.step:hover { box-shadow: var(--shadow); }
.step__n { position: relative; }
.step__n::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue-l); opacity: 0; animation: ring 2.6s ease-out infinite; animation-delay: calc(var(--i, 0) * .4s); }
@keyframes ring { 0% { transform: scale(.8); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

/* --- Bubbles rising through the blue "why us" section --- */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.why .wrap { position: relative; }
.bubbles span { position: absolute; bottom: -80px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45); background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 60%); animation: rise var(--d) linear var(--delay) infinite; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 100% { transform: translate(var(--sway), -140vh); opacity: 0; } }

/* --- Nadheef badge: float, shine sweep --- */
.badge-wrap { position: relative; width: min(400px, 100%); flex: none; animation: float 6s ease-in-out infinite; }
.badge-wrap.is-tilting { animation: none; }
/* Official badge artwork: same light sweep as the CSS badge. */
.badge-wrap--img::after { content: ""; position: absolute; inset: 0; border-radius: 4%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .35) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: shine 5.5s ease-in-out 1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-16px) rotate(1.2deg); } }
.badge::after, .badge-img { position: relative; }
.badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%); background-size: 260% 100%; background-position: 130% 0; animation: shine 5.5s ease-in-out 1s infinite; }
@keyframes shine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -130% 0; } }

/* --- Watermark logo mark with scroll parallax --- */
/* overflow: clip (not hidden) keeps the sticky sidebar in .covers working. */
.about, .covers, .teaser, .plaque { position: relative; overflow: clip; }
.watermark { position: absolute; inset-inline-end: -8%; top: -6%; width: min(48vw, 620px); height: auto; opacity: .07; pointer-events: none; will-change: transform; }
.teaser .watermark { opacity: .05; inset-inline-end: auto; inset-inline-start: -10%; top: 5%; }
.covers .watermark { top: 30%; }

/* --- Steps connector line draws in --- */
.steps__grid { position: relative; }
.steps__line { position: absolute; top: 48px; inset-inline: 48px; height: 2px; background: linear-gradient(90deg, var(--blue), #8fcaff); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease-out) .3s; }
html[dir="rtl"] .steps__line { transform-origin: 100% 50%; }
.steps__grid.is-in .steps__line { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
@media (max-width: 960px) { .steps__line { display: none; } }

/* --- Header: scroll progress, shrink --- */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--blue), #8fcaff); transform: scaleX(0); transform-origin: 0 50%; z-index: 2; }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }
.header__row { transition: min-height .3s var(--ease-out); }
.site-header.is-scrolled .header__row { min-height: 62px; }
.brand img { transition: transform .3s var(--ease-out); transform-origin: 0 50%; }
html[dir="rtl"] .brand img { transform-origin: 100% 50%; }
.site-header.is-scrolled .brand img { transform: scale(.88); }

/* --- Buttons: light sweep on hover, magnetic pull via main.js --- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-130%); transition: transform .7s var(--ease-out); pointer-events: none; }
.btn:hover::after { transform: translateX(130%); }
.magnetic { transition: transform .25s var(--ease-out), box-shadow .15s, background .15s; }

/* --- CTA card rings pulse --- */
.cta-card::before, .cta-card::after { animation: ripple 6s ease-in-out infinite; }
.cta-card::after { animation-delay: -3s; }
@keyframes ripple { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .6; } }

/* --- Section headings: accent line grows in --- */
.sec-head .eyebrow { position: relative; padding-inline-start: 34px; }
.sec-head .eyebrow::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 24px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out) .2s; }
html[dir="rtl"] .sec-head .eyebrow::before { transform-origin: 100% 50%; }
.is-in .sec-head .eyebrow::before, .sec-head.is-in .eyebrow::before, .no-reveal .sec-head .eyebrow::before { transform: scaleX(1); }

/* --- WhatsApp float pulse --- */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: ring 2.4s ease-out infinite; }

/* --- Reduced motion: switch everything off --- */
@media (prefers-reduced-motion: reduce) {
	.curtain, .sparkles, .bubbles, .steps__line, .wa-float::before, .step__n::after { display: none !important; }
	.js .anim-in, .js .split .w > span { opacity: 1; transform: none; animation: none; }
	.badge-wrap, .badge::after, .trust__track, .trust__star, .hl, .hero__title .hl, .cta-card::before, .cta-card::after { animation: none !important; }
	.js .about__img { clip-path: none; }
	.btn::after { display: none; }
	.ba { --pos: 55% !important; }
}
