/* RamzWP — base: tokens, reset, header, menu, cursor, floating CTA, footer, shared atoms. */

:root {
	/* colour tokens (overridden inline from Theme Options → Colours) */
	--rz-ink: #0E0D0B;
	--rz-sand: #EDE4D0;
	--rz-sand-card: #E3D8C0;
	--rz-sand-card-hover: color-mix(in srgb, var(--rz-sand-card), var(--rz-ink) 5%);
	--rz-sand-well: #DCCDB2;
	--rz-gold: #C98A1E;
	--rz-gold-soft: #E0A43A;
	--rz-teal: #1F8A80;
	--rz-teal-dark: #1F6F6B;
	--rz-teal-light: #5FB3A9;
	--rz-blue: #2F5DA8;
	--rz-muted-dark: #B5AC98;
	--rz-body-dark: #CFC6B2;
	--rz-muted-light: #4A453B;
	--rz-text-light: #3A3730;
	--rz-line-dark: #2E2B26;
	--rz-mek-bg: #0D1B2A;
	--rz-mek-gold: #E8A820;
	--rz-mek-gold-hover: #F5C42C;
	--rz-mek-text: #A8B8CC;
	--rz-danger: #E84040;
	--rz-warning: #F5A623;

	/* type */
	--rz-serif: 'Instrument Serif', Georgia, serif;
	--rz-sans: 'Manrope', system-ui, sans-serif;
	--rz-mono: 'JetBrains Mono', ui-monospace, monospace;
	--rz-arabic: 'Reem Kufi', 'Noto Kufi Arabic', sans-serif;
	--rz-display: 'Rajdhani', 'Manrope', sans-serif;
	--rz-ui: 'Inter', system-ui, sans-serif;

	/* layout + motion */
	--rz-pad: clamp(20px, 4vw, 56px);
	--rz-ease: cubic-bezier(0.2, 0, 0, 1);
	--rz-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
	--rz-checker-size: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--rz-sand);
	color: var(--rz-ink);
	font-family: var(--rz-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
body.rz-home, body.rz-dark { background: var(--rz-ink); color: var(--rz-sand); }
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--rz-ease); }
a:hover { color: var(--rz-gold); }
:focus-visible { outline: 2px solid var(--rz-gold); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; }
em { font-style: italic; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.rz-skip {
	position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 999px;
	background: var(--rz-gold); color: var(--rz-ink); font-weight: 700; transition: top 0.2s var(--rz-ease);
}
.rz-skip:focus { top: 16px; color: var(--rz-ink); }

.rz-main { position: relative; z-index: 2; }

/* ---------- atoms ---------- */
.rz-label {
	margin: 0;
	font-family: var(--rz-mono);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.5;
	color: var(--rz-muted-light);
}
.rz-diamond { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--rz-gold); transform: rotate(45deg); }
.rz-diamond--sm { width: 8px; height: 8px; }
.rz-checker {
	height: var(--rz-checker-size);
	background: repeating-conic-gradient(from 45deg, var(--rz-gold) 0 25%, var(--rz-sand) 0 50%) 0 0 / var(--rz-checker-size) var(--rz-checker-size);
}
.rz-checker--teal { background-image: repeating-conic-gradient(from 45deg, var(--rz-teal-dark) 0 25%, var(--rz-sand) 0 50%); }

.rz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 16px 26px; border-radius: 999px;
	font-weight: 600; font-size: 15px; line-height: 1.2;
	transition: background 0.25s var(--rz-ease), color 0.25s var(--rz-ease), border-color 0.25s var(--rz-ease), transform 0.25s var(--rz-ease);
}
.rz-btn:active { transform: scale(0.97); }
.rz-btn--sand { background: var(--rz-sand); color: var(--rz-ink); }
.rz-btn--sand:hover { background: var(--rz-gold); color: var(--rz-ink); }
.rz-btn--gold { background: var(--rz-gold); color: var(--rz-ink); }
.rz-btn--gold:hover { background: var(--rz-sand); color: var(--rz-ink); }
.rz-btn--outline { border: 1.5px solid currentColor; }
.rz-btn--outline:hover { background: var(--rz-sand); border-color: var(--rz-sand); color: var(--rz-ink); }

.rz-progress { height: 2px; background: var(--rz-line-dark); overflow: hidden; }
.rz-progress__fill { height: 100%; width: 100%; background: var(--rz-gold); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- header ---------- */
.rz-nav {
	--rz-nav-rgb: 14, 13, 11;
	position: fixed; top: 0; left: 0; right: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 18px var(--rz-pad) 44px;
	color: var(--rz-sand);
	background: linear-gradient(to bottom, rgba(var(--rz-nav-rgb), 0.97) 0%, rgba(var(--rz-nav-rgb), 0.85) 45%, rgba(var(--rz-nav-rgb), 0.45) 75%, rgba(var(--rz-nav-rgb), 0) 100%);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	pointer-events: none;
	transition: color 0.3s var(--rz-ease);
}
.rz-nav > * { pointer-events: auto; }
.rz-light .rz-nav { --rz-nav-rgb: 237, 228, 208; color: var(--rz-ink); }
.admin-bar .rz-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .rz-nav { top: 46px; } }

.rz-logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--rz-serif); font-size: 28px; line-height: 1; letter-spacing: 0.02em; }
.rz-logo__ar { font-family: var(--rz-arabic); font-size: 18px; }
.rz-logo__img { display: block; max-height: 40px; width: auto; }
.rz-logo__svg { display: block; height: 28.5px; width: auto; overflow: visible; }
.rz-nav__links {
	display: flex; gap: clamp(14px, 2.5vw, 36px);
	font-family: var(--rz-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.rz-nav__links a { padding: 6px 0; }
.rz-nav__mobile { display: none; align-items: center; gap: 10px; font-family: var(--rz-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.rz-nav__cta {
	display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	background: var(--rz-gold); border: 1px solid var(--rz-gold); color: var(--rz-ink); font-weight: 600;
}
.rz-nav__cta:hover { color: var(--rz-ink); background: var(--rz-sand); border-color: var(--rz-sand); }
.rz-nav__burger {
	width: 44px; height: 44px; padding: 0; border-radius: 999px; border: 1px solid currentColor;
	background: transparent; color: inherit; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.rz-nav__burger > span[aria-hidden] { display: block; width: 16px; height: 1.5px; background: currentColor; }

/* mobile menu overlay */
.rz-menu {
	position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: center; gap: 8px;
	padding: 96px 28px 40px; background: var(--rz-ink); color: var(--rz-sand);
	opacity: 0; transition: opacity 0.3s var(--rz-ease);
}
.rz-menu[hidden] { display: none; }
.rz-menu.is-open { opacity: 1; }
.rz-menu nav { display: flex; flex-direction: column; }
.rz-menu nav a { font-family: var(--rz-serif); font-size: 48px; line-height: 1.15; color: var(--rz-sand); }
.rz-menu nav a.is-accent { color: var(--rz-gold); font-style: italic; }
.rz-menu__close {
	position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 999px;
	border: 1px solid rgba(237, 228, 208, 0.4); background: transparent; color: var(--rz-sand); font-size: 20px; cursor: pointer;
}

/* custom cursor (pointer devices, hero only — toggled by JS) */
.rz-cursor { position: fixed; left: 0; top: 0; z-index: 41; pointer-events: none; opacity: 0; will-change: transform; border-radius: 50%; }
.rz-cursor--ring { z-index: 40; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid var(--rz-sand); transition: border-color 0.2s var(--rz-ease); }
.rz-cursor--ring.is-link { border-color: var(--rz-gold); }
.rz-cursor--dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--rz-gold); box-shadow: 0 0 14px 3px rgba(201, 138, 30, 0.6); }

/* floating mobile CTA */
.rz-fab {
	display: none; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 25;
	align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 10px 0 22px;
	border-radius: 999px; background: var(--rz-gold); color: var(--rz-ink); font-weight: 700; font-size: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(14, 13, 11, 0.12);
	transform: translateY(140%); opacity: 0; pointer-events: none;
	transition: transform 0.4s var(--rz-ease-out), opacity 0.3s ease;
}
.rz-fab.is-on { transform: none; opacity: 1; pointer-events: auto; }
.rz-fab:hover { color: var(--rz-ink); }
.rz-fab__label { display: flex; align-items: center; gap: 10px; }
.rz-fab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rz-ink); }
.rz-fab__arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--rz-ink); color: var(--rz-sand); display: flex; align-items: center; justify-content: center; font-size: 18px; }

/* ---------- footer ---------- */
.rz-markets {
	position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
	padding: 28px var(--rz-pad); border-top: 1px solid var(--rz-line-dark); background: var(--rz-ink);
	font-size: 14px; color: var(--rz-body-dark);
}
.rz-home .rz-markets { background: transparent; }
.rz-markets__label { font-family: var(--rz-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rz-muted-dark); }
.rz-markets a { border-bottom: 1px solid transparent; transition: color 0.2s var(--rz-ease), border-color 0.2s var(--rz-ease); }
.rz-markets a:hover { border-color: currentColor; }

.rz-footer {
	position: relative; z-index: 2;
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
	padding: 24px var(--rz-pad) 32px;
	border-top: 1px solid var(--rz-line-dark);
	background: var(--rz-ink);
	font-family: var(--rz-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--rz-muted-dark);
}
.rz-home .rz-footer { background: transparent; }
.rz-footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.rz-footer__mark { font-family: var(--rz-serif); font-size: 22px; letter-spacing: 0.02em; color: var(--rz-sand); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
	.rz-nav__links { display: none; }
	.rz-nav__mobile { display: flex; }
	.rz-fab { display: flex; }
	.rz-footer { flex-direction: column; align-items: flex-start; padding: 24px 20px 96px; }
	.rz-hide-m { display: none !important; }
}

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