/* =========================================================================
   Athath Express — 01 BASE
   Design tokens, reset, typography, layout shells, motion primitives.
   All rules are namespaced .a-* to stay clear of Elementor.
   ====================================================================== */

:root {
	/* Brand */
	--a-green: #157a3d;
	--a-green-dark: #0d5128;
	--a-green-deep: #0a3d20;
	--a-green-bright: #2ecc71;
	--a-gold: #c9a227;
	--a-gold-soft: #e6c964;
	--a-cream: #f7f4ee;
	--a-ink: #16241d;
	--a-muted: #5c6b63;
	--a-white: #ffffff;

	/* Derived surfaces */
	--a-sand: #efe9dd;
	--a-sand-soft: #fbf9f5;
	--a-tint: #eef6f0;
	--a-line: rgba(22, 36, 29, .10);
	--a-line-2: rgba(22, 36, 29, .17);
	--a-line-light: rgba(255, 255, 255, .14);
	--a-ink-60: rgba(22, 36, 29, .60);

	/* Type */
	--a-font: "Cairo", "Segoe UI", system-ui, sans-serif;
	--a-fs-body: clamp(1rem, .965rem + .14vw, 1.0625rem);
	--a-fs-lead: clamp(1.05rem, .99rem + .32vw, 1.2rem);
	--a-fs-small: .9rem;
	--a-fs-h1: clamp(2rem, 1.32rem + 3.05vw, 3.7rem);
	--a-fs-h2: clamp(1.6rem, 1.25rem + 1.6vw, 2.55rem);
	--a-fs-h3: clamp(1.14rem, 1.06rem + .38vw, 1.42rem);
	--a-fs-h4: clamp(1.02rem, .99rem + .17vw, 1.14rem);
	--a-lh-body: 1.85;
	--a-lh-head: 1.3;

	/* Space */
	--a-section: clamp(58px, 6.2vw, 96px);
	--a-section-lg: clamp(66px, 7vw, 108px);
	--a-gutter: clamp(20px, 4.2vw, 40px);
	--a-max: 1220px;
	--a-max-narrow: 900px;

	/* Shape */
	--a-r-xs: 8px;
	--a-r-sm: 14px;
	--a-r-md: 22px;
	--a-r-lg: 32px;
	--a-r-pill: 999px;

	/* Depth */
	--a-sh-1: 0 1px 2px rgba(10, 61, 32, .05), 0 10px 26px -14px rgba(10, 61, 32, .22);
	--a-sh-2: 0 2px 5px rgba(10, 61, 32, .05), 0 26px 56px -26px rgba(10, 61, 32, .30);
	--a-sh-3: 0 4px 10px rgba(10, 61, 32, .06), 0 46px 90px -40px rgba(10, 61, 32, .42);
	--a-sh-gold: 0 18px 40px -22px rgba(201, 162, 39, .55);

	/* Motion */
	--a-ease: cubic-bezier(.22, .68, .36, 1);
	--a-dur: .45s;

	--a-header-h: 82px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--a-header-h) + 20px);
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--a-white);
	color: var(--a-ink);
	font-family: var(--a-font);
	font-size: var(--a-fs-body);
	font-weight: 400;
	line-height: var(--a-lh-body);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Cairo everywhere — including builder-rendered content. */
body,
button,
input,
textarea,
select,
optgroup,
.elementor,
.elementor-widget-container,
[class^="elementor-"],
[class*=" elementor-"],
.a-builder * {
	font-family: var(--a-font);
}

body.a-menu-open { overflow: hidden; }

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

a {
	color: var(--a-green);
	text-decoration: none;
	transition: color .25s var(--a-ease);
}
a:hover { color: var(--a-green-dark); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--a-ink);
	font-family: var(--a-font);
	font-weight: 800;
	line-height: var(--a-lh-head);
	letter-spacing: 0;
	text-wrap: balance;
}
h1 { font-size: var(--a-fs-h1); line-height: 1.22; }
h2 { font-size: var(--a-fs-h2); line-height: 1.24; }
h3 { font-size: var(--a-fs-h3); font-weight: 700; line-height: 1.4; }
h4 { font-size: var(--a-fs-h4); font-weight: 700; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
figure, blockquote, figcaption { margin: 0; }

button {
	cursor: pointer;
	font: inherit;
	color: inherit;
	border: 0;
	background: none;
}

:focus-visible {
	outline: 3px solid var(--a-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--a-green-deep);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Layout shells
   ---------------------------------------------------------------------- */

.a-container {
	width: min(100% - (var(--a-gutter) * 2), var(--a-max));
	margin-inline: auto;
}
.a-container--narrow { max-width: var(--a-max-narrow); }

.a-section { padding-block: var(--a-section); position: relative; }
.a-section--lg { padding-block: var(--a-section-lg); }
.a-section--tight { padding-block: clamp(44px, 4.6vw, 68px); }
.a-section--flush-top { padding-block-start: 0; }

.a-bg-cream { background: var(--a-cream); }
.a-bg-sand { background: var(--a-sand-soft); }
.a-bg-white { background: var(--a-white); }
.a-bg-deep {
	background:
		radial-gradient(115% 90% at 88% 4%, rgba(46, 204, 113, .17), transparent 58%),
		linear-gradient(160deg, #0e4d28 0%, var(--a-green-deep) 62%, #072d18 100%);
	color: #e9f3ec;
}
.a-bg-deep h1,
.a-bg-deep h2,
.a-bg-deep h3,
.a-bg-deep h4 { color: #fff; }
.a-bg-deep p { color: rgba(233, 243, 236, .82); }

/* Hairline that separates two light sections without a hard border */
.a-rule {
	height: 1px;
	background: linear-gradient(to left, transparent, var(--a-line-2) 22%, var(--a-line-2) 78%, transparent);
	border: 0;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------------------- */

.a-kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	color: var(--a-green);
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.4;
}
.a-kicker__dash {
	display: block;
	width: 26px;
	height: 2px;
	flex: none;
	border-radius: 2px;
	background: linear-gradient(to left, var(--a-gold), var(--a-green-bright));
}
.a-kicker--light { color: var(--a-gold-soft); }
.a-kicker--light .a-kicker__dash { background: linear-gradient(to left, var(--a-gold), rgba(255, 255, 255, .5)); }

.a-lead {
	font-size: var(--a-fs-lead);
	line-height: 1.78;
	color: var(--a-muted);
	max-width: 60ch;
}
.a-bg-deep .a-lead { color: rgba(233, 243, 236, .84); }

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

/* Latin/Arabic numerals keep their intended order (e.g. "+8", not "8+") */
.a-num {
	display: inline-block;
	direction: ltr;
	unicode-bidi: isolate;
	font-feature-settings: "tnum";
}

.a-head {
	max-width: 720px;
	margin-block-end: clamp(32px, 3.4vw, 50px);
}
.a-head--center { margin-inline: auto; text-align: center; }
.a-head--center .a-kicker { justify-content: center; }
.a-head--split {
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
	gap: clamp(18px, 3vw, 54px);
	align-items: end;
}
.a-head h2 { margin-bottom: 0; }
.a-head__aside {
	color: var(--a-muted);
	font-size: 1.02rem;
	line-height: 1.8;
	padding-block-end: .35em;
}
.a-bg-deep .a-head__aside { color: rgba(233, 243, 236, .78); }

@media (max-width: 860px) {
	.a-head--split { grid-template-columns: 1fr; align-items: start; gap: 14px; }
	.a-head__aside { padding-block-end: 0; }
}

/* -------------------------------------------------------------------------
   Icons
   ---------------------------------------------------------------------- */

.a-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	display: inline-block;
	vertical-align: -.2em;
}
.a-icon--lg { width: 26px; height: 26px; }

/* -------------------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------------- */

.a-btn {
	--btn-bg: var(--a-green);
	--btn-fg: #fff;
	--btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 26px;
	border: 1px solid var(--btn-bd);
	border-radius: var(--a-r-pill);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: transform .3s var(--a-ease), box-shadow .3s var(--a-ease), background-color .3s var(--a-ease), color .3s var(--a-ease), border-color .3s var(--a-ease);
	will-change: transform;
}
.a-btn .a-icon { width: 19px; height: 19px; }
.a-btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.a-btn:active { transform: translateY(0); }

.a-btn--primary {
	--btn-bg: linear-gradient(140deg, #1c8f49, var(--a-green-dark));
	box-shadow: 0 14px 30px -14px rgba(13, 81, 40, .75);
}
.a-btn--primary:hover { box-shadow: 0 20px 38px -14px rgba(13, 81, 40, .8); }

.a-btn--gold {
	--btn-bg: linear-gradient(140deg, #dcb63c, var(--a-gold));
	--btn-fg: #2a2205;
	box-shadow: var(--a-sh-gold);
}

.a-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--a-green-deep);
	--btn-bd: var(--a-line-2);
}
.a-btn--ghost:hover {
	--btn-bg: var(--a-white);
	--btn-bd: rgba(21, 122, 61, .35);
	box-shadow: var(--a-sh-1);
}

.a-btn--light {
	--btn-bg: #fff;
	--btn-fg: var(--a-green-deep);
	box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .5);
}
.a-btn--outline-light {
	--btn-bg: rgba(255, 255, 255, .06);
	--btn-fg: #fff;
	--btn-bd: rgba(255, 255, 255, .32);
	backdrop-filter: blur(6px);
}
.a-btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .14); }

.a-btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.a-btn--sm { padding: 10px 18px; font-size: .93rem; }
.a-btn--block { width: 100%; }

.a-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

/* Text link with a sliding arrow (RTL aware) */
.a-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--a-green-dark);
}
.a-arrow-link .a-icon {
	width: 18px;
	height: 18px;
	transition: transform .3s var(--a-ease);
}
.a-arrow-link:hover .a-icon { transform: translateX(-5px); }
html[dir="ltr"] .a-arrow-link .a-icon { transform: scaleX(-1); }
html[dir="ltr"] .a-arrow-link:hover .a-icon { transform: scaleX(-1) translateX(-5px); }

/* -------------------------------------------------------------------------
   Accessibility
   ---------------------------------------------------------------------- */

.a-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.a-skip-link {
	position: absolute;
	inset-inline-start: 50%;
	inset-block-start: -100px;
	transform: translateX(50%);
	z-index: 200;
	padding: 12px 22px;
	border-radius: 0 0 var(--a-r-sm) var(--a-r-sm);
	background: var(--a-green-deep);
	color: #fff;
	font-weight: 700;
	transition: inset-block-start .25s var(--a-ease);
}
.a-skip-link:focus { inset-block-start: 0; color: #fff; }

/* -------------------------------------------------------------------------
   Motion: scroll reveal + depth primitives
   ---------------------------------------------------------------------- */

.a-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity .7s var(--a-ease), transform .7s var(--a-ease);
}
.a-reveal.is-in { opacity: 1; transform: none; }
.a-reveal[data-delay="1"] { transition-delay: .08s; }
.a-reveal[data-delay="2"] { transition-delay: .16s; }
.a-reveal[data-delay="3"] { transition-delay: .24s; }
.a-reveal[data-delay="4"] { transition-delay: .32s; }
.no-js .a-reveal { opacity: 1; transform: none; }

/* 3D scene: children translate on the Z axis inside a shared perspective. */
.a-scene {
	perspective: 1400px;
	perspective-origin: 50% 45%;
}
.a-scene__stage {
	transform-style: preserve-3d;
	transition: transform .6s var(--a-ease);
}
.a-layer {
	transform-style: preserve-3d;
	transform:
		translate3d(calc(var(--mx, 0) * var(--depth, 1) * 1px), calc(var(--my, 0) * var(--depth, 1) * 1px), var(--z, 0px));
	transition: transform .5s var(--a-ease);
}

/* Hover depth used by cards and media frames */
.a-lift {
	transition: transform .5s var(--a-ease), box-shadow .5s var(--a-ease);
	will-change: transform;
}
.a-lift:hover { transform: translateY(-6px); }

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