/*!
 * iTREND landing page — Astra Child Theme module
 * Loaded ONLY on the WordPress front page.
 * Font: Cairo (SIL OFL 1.1), served locally — see ../fonts/OFL-Cairo.txt
 */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
.itl-page {
	--itl-orange: #F56A0A;
	--itl-orange-deep: #E85B00;
	--itl-white: #FFFFFF;
	--itl-cream: #FFF7F0;
	--itl-peach: #FFE5D2;
	--itl-text: #202124;
	--itl-muted: #737373;
	--itl-border: #F0E5DC;
	--itl-font: 'Cairo iTrend', 'Cairo', 'Tajawal', Tahoma, 'Segoe UI', Arial, sans-serif;
	--itl-radius: 14px;
	--itl-radius-lg: 32px;
	--itl-shadow-btn: 0 10px 24px -10px rgba(232, 91, 0, .55);
	--itl-shadow-soft: 0 18px 40px -24px rgba(120, 60, 20, .28);
	--itl-container: 1320px;
	--itl-header-h: 76px;
	--itl-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ */
/* Base (scoped)                                                       */
/* ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body.itl-page {
	margin: 0;
	background: var(--itl-white);
	color: var(--itl-text);
	font-family: var(--itl-font);
	font-size: 16px;
	line-height: 1.6;
	direction: rtl;
	text-align: right;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

.itl-page img,
.itl-page svg { max-width: 100%; }

.itl-page a { color: inherit; text-decoration: none; }

.itl-page h1,
.itl-page h2,
.itl-page h3,
.itl-page p { margin: 0; font-family: var(--itl-font); }

.itl-page ul { margin: 0; padding: 0; list-style: none; }

.itl-page :focus-visible {
	outline: 3px solid rgba(245, 106, 10, .55);
	outline-offset: 3px;
	border-radius: 8px;
}

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

.itl-skip {
	position: absolute;
	inset-inline-start: 16px;
	top: -100px;
	z-index: 1000;
	background: var(--itl-orange);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 700;
	transition: top .2s;
}
.itl-skip:focus { top: 12px; }

.itl-container {
	width: 100%;
	max-width: var(--itl-container);
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 48px);
}

.itl-accent { color: var(--itl-orange); unicode-bidi: isolate; }
.itl-page bdi { unicode-bidi: isolate; }
.itl-nobr { white-space: nowrap; }
@media (min-width: 1181px) { .itl-nowrap-lg { white-space: nowrap; } }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.itl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 62px;
	padding: 0 34px;
	border-radius: 10px;
	font-family: var(--itl-font);
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform .25s var(--itl-ease), box-shadow .25s var(--itl-ease), background-color .25s var(--itl-ease), color .25s var(--itl-ease), border-color .25s var(--itl-ease);
}
.itl-btn .itl-icon { flex: none; }

.itl-btn--primary {
	background: linear-gradient(180deg, #F7741A 0%, var(--itl-orange-deep) 100%);
	color: #fff !important;
	box-shadow: var(--itl-shadow-btn);
}
.itl-btn--primary:hover,
.itl-btn--primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -12px rgba(232, 91, 0, .6);
	background: linear-gradient(180deg, #F56A0A 0%, #D85300 100%);
}

.itl-btn--outline {
	background: rgba(255, 255, 255, .7);
	color: var(--itl-text) !important;
	border-color: #CFA98B;
	backdrop-filter: blur(4px);
}
.itl-btn--outline .itl-icon { color: var(--itl-text); }
.itl-btn--outline:hover,
.itl-btn--outline:focus-visible {
	transform: translateY(-2px);
	border-color: var(--itl-orange);
	color: var(--itl-orange-deep) !important;
	background: #fff;
	box-shadow: var(--itl-shadow-soft);
}
.itl-btn--outline:hover .itl-icon { color: var(--itl-orange); }

.itl-btn:active { transform: translateY(0); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.itl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid #F1ECE7;
	backdrop-filter: saturate(160%) blur(8px);
}
.admin-bar .itl-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .itl-header { top: 0; position: relative; } }

.itl-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--itl-header-h);
}

/* Visual order (RTL): language → right, nav → centre, logo → left */
.itl-header__tools { order: 1; display: flex; align-items: center; gap: 10px; }
.itl-nav           { order: 2; flex: 1 1 auto; display: flex; justify-content: center; }
.itl-header__brand { order: 3; display: flex; align-items: center; }

.itl-logo { display: inline-flex; align-items: center; }
.itl-logo__img { display: block; height: 46px; width: auto; }
.itl-logo__word {
	position: relative;
	display: inline-block;
	font-size: 36px;
	font-weight: 800;
	font-style: italic;
	letter-spacing: -.5px;
	color: var(--itl-orange);
	line-height: 1;
	padding-top: 10px;
	direction: ltr;
}
.itl-logo__bag {
	position: absolute;
	top: -10px;
	left: 26px;
	line-height: 0;
}

.itl-nav__list { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 40px); }
.itl-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	color: #2A2B2E;
	transition: color .2s, background-color .2s;
}
.itl-nav__link::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px;
	bottom: -14px;
	height: 3px;
	border-radius: 3px;
	background: var(--itl-orange);
	transform: scaleX(0);
	transition: transform .25s var(--itl-ease);
}
.itl-nav__link:hover { color: var(--itl-orange); }
.itl-nav__link.is-active {
	color: var(--itl-orange);
	background: #FFF1E6;
}
.itl-nav__link.is-active::after,
.itl-nav__link:hover::after { transform: scaleX(1); }

/* Language selector */
.itl-lang { position: relative; }
.itl-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 14px 0 12px;
	border: 1px solid #ECE7E2;
	border-radius: 999px;
	background: #fff;
	color: var(--itl-text);
	font-family: var(--itl-font);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .08);
	transition: border-color .2s, box-shadow .2s;
}
.itl-lang__toggle:hover { border-color: #F3C6A4; box-shadow: 0 6px 18px -10px rgba(232, 91, 0, .45); }
.itl-lang__toggle .itl-icon--chevron { transition: transform .2s; color: #4A4B50; }
.itl-lang__toggle[aria-expanded="true"] .itl-icon--chevron { transform: rotate(180deg); }
.itl-flag { display: block; flex: none; }

.itl-lang__menu {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 170px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--itl-border);
	border-radius: 14px;
	box-shadow: 0 20px 40px -18px rgba(60, 30, 10, .3);
	z-index: 20;
}
.itl-lang__menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
}
.itl-lang__menu a:hover,
.itl-lang__menu a.is-current { background: #FFF1E6; color: var(--itl-orange-deep); }

/* Burger (mobile only) */
.itl-burger {
	display: none;
	width: 44px; height: 44px;
	align-items: center; justify-content: center;
	border: 1px solid #ECE7E2;
	border-radius: 12px;
	background: #fff;
	color: var(--itl-text);
	cursor: pointer;
	padding: 0;
}
.itl-burger__close { display: none; }
.itl-burger[aria-expanded="true"] .itl-burger__open { display: none; }
.itl-burger[aria-expanded="true"] .itl-burger__close { display: inline-flex; }
.itl-burger span { line-height: 0; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.itl-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 80% at 15% 30%, rgba(255, 214, 184, .75) 0%, rgba(255, 214, 184, 0) 70%),
		radial-gradient(50% 60% at 90% 10%, rgba(255, 236, 222, .9) 0%, rgba(255, 236, 222, 0) 70%),
		linear-gradient(180deg, var(--itl-cream) 0%, #FFF0E3 60%, var(--itl-peach) 100%);
}
.itl-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.itl-hero__bg::before {
	content: "";
	position: absolute;
	width: 62%;
	aspect-ratio: 1.9;
	left: -12%;
	top: 4%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255, 200, 160, .55), rgba(255, 200, 160, 0));
	filter: blur(6px);
}
.itl-hero__bg::after {
	/* white wave at the bottom, flowing into the features section */
	content: "";
	position: absolute;
	left: -5%; right: -5%;
	bottom: -1px;
	height: 120px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60C220 10 420 120 720 82S1200 10 1440 52V120H0Z' fill='%23ffffff'/%3E%3Cpath d='M0 78C260 30 480 130 760 96S1220 40 1440 70V120H0Z' fill='%23ffffff' fill-opacity='.6'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
}

.itl-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 3vw, 56px);
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(70px, 8vw, 110px);
}

.itl-hero__content { max-width: 660px; justify-self: start; }

.itl-hero__title {
	font-size: clamp(32px, 3.9vw, 58px);
	font-weight: 800;
	line-height: 1.32;
	color: var(--itl-text);
	letter-spacing: -.3px;
}
.itl-hero__title-line { display: block; }
.itl-hero__title .itl-accent { font-weight: 800; }

.itl-hero__lead {
	margin-top: 22px;
	font-size: clamp(16px, 1.45vw, 21px);
	line-height: 1.75;
	color: #5F6062;
	font-weight: 500;
}

.itl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: clamp(28px, 3vw, 40px);
}
.itl-hero__actions .itl-btn { min-width: 240px; }

.itl-hero__art {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 780px;
}
.itl-hero-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Gentle entrance */
@media (prefers-reduced-motion: no-preference) {
	.itl-hero__content > * { animation: itl-rise .7s var(--itl-ease) both; }
	.itl-hero__content > :nth-child(2) { animation-delay: .08s; }
	.itl-hero__content > :nth-child(3) { animation-delay: .16s; }
	.itl-hero__art { animation: itl-fade .9s var(--itl-ease) .1s both; }
	.itl-hero-svg .itl-boxes { animation: itl-float 6s ease-in-out infinite; transform-origin: center; }
	.itl-hero-svg .itl-plant { animation: itl-sway 7s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
}
@keyframes itl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes itl-fade { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes itl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes itl-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.2deg); } }

/* ------------------------------------------------------------------ */
/* Features                                                            */
/* ------------------------------------------------------------------ */
.itl-features {
	background: #fff;
	padding: clamp(24px, 3vw, 40px) 0 clamp(36px, 4vw, 56px);
}
.itl-features__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	row-gap: 34px;
}
.itl-feature {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 8px clamp(10px, 1.6vw, 26px);
}
.itl-feature::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	height: 72%;
	width: 1px;
	transform: translateY(-50%);
	background: linear-gradient(180deg, rgba(240, 229, 220, 0), #EADBCF 30%, #EADBCF 70%, rgba(240, 229, 220, 0));
}
.itl-feature:first-child::before { display: none; }

.itl-feature__icon {
	display: inline-flex;
	color: var(--itl-orange);
	margin-bottom: 14px;
	transition: transform .3s var(--itl-ease);
}
.itl-feature:hover .itl-feature__icon { transform: translateY(-3px) scale(1.05); }
.itl-feature__icon .itl-icon { width: 46px; height: 46px; stroke-width: 1.6; }

.itl-feature__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--itl-text);
	line-height: 1.4;
}
.itl-feature__text {
	margin-top: 6px;
	font-size: 15px;
	color: var(--itl-muted);
	line-height: 1.65;
	max-width: 22ch;
}

/* ------------------------------------------------------------------ */
/* CTA banner                                                          */
/* ------------------------------------------------------------------ */
.itl-cta { padding: 0 0 clamp(40px, 5vw, 72px); }
.itl-cta__card {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(200px, 30%);
	grid-template-areas: "action text art";
	align-items: center;
	gap: clamp(20px, 3vw, 48px);
	min-height: 190px;
	padding: 18px clamp(24px, 3.5vw, 56px);
	border-radius: var(--itl-radius-lg);
	border: 1px solid #F6E6D9;
	background: linear-gradient(90deg, #FFF8F2 0%, #FFF3E9 55%, #FFE9D7 100%);
	box-shadow: 0 30px 60px -48px rgba(150, 70, 10, .5);
}
.itl-cta__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(45% 120% at 0% 100%, rgba(255, 190, 140, .55), rgba(255, 190, 140, 0) 70%),
		radial-gradient(30% 90% at 22% 0%, rgba(255, 214, 184, .6), rgba(255, 214, 184, 0) 70%);
}
.itl-cta__text   { grid-area: text; position: relative; }
.itl-cta__action { grid-area: action; position: relative; }
.itl-cta__art    { grid-area: art; position: relative; align-self: end; margin-bottom: -18px; }
.itl-cta-svg { display: block; width: 100%; max-width: 400px; height: auto; margin-inline-end: auto; }

.itl-cta__title {
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 800;
	line-height: 1.35;
	color: var(--itl-text);
}
.itl-cta__lead {
	margin-top: 10px;
	font-size: clamp(15px, 1.3vw, 19px);
	color: #5F6062;
	line-height: 1.7;
}
.itl-btn--lg { min-height: 60px; min-width: 260px; font-size: 20px; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.itl-footer {
	border-top: 1px solid #F3ECE6;
	background: #fff;
	scroll-margin-top: 90px;
}
.itl-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 22px;
	padding-bottom: 22px;
	font-size: 14px;
	color: var(--itl-muted);
}
.itl-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.itl-footer__links a { font-weight: 600; color: #4B4C50; transition: color .2s; }
.itl-footer__links a:hover { color: var(--itl-orange); }

#itl-features { scroll-margin-top: 90px; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

/* Large tablet / small laptop */
@media (max-width: 1180px) {
	.itl-btn { font-size: 18px; min-height: 56px; padding: 0 26px; }
	.itl-hero__actions .itl-btn { min-width: 0; flex: 1 1 200px; }
	.itl-nav__link { padding: 8px 10px; font-size: 15px; }
	.itl-nav__link::after { left: 10px; right: 10px; }

	.itl-features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.itl-feature:nth-child(3n + 1)::before { display: none; }

	.itl-cta__card {
		grid-template-columns: minmax(0, 1fr) minmax(200px, 36%);
		grid-template-areas:
			"text art"
			"action art";
		row-gap: 18px;
		padding-block: 30px 18px;
	}
	.itl-cta__action { justify-self: start; }
}

/* Tablet: collapse nav into a menu */
@media (max-width: 960px) {
	.itl-burger { display: inline-flex; }

	.itl-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		display: block;
		padding: 10px clamp(18px, 4vw, 48px) 18px;
		background: #fff;
		border-bottom: 1px solid #F1ECE7;
		box-shadow: 0 24px 40px -30px rgba(60, 30, 10, .35);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .22s, transform .22s var(--itl-ease), visibility 0s .22s;
	}
	.itl-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .22s, transform .22s var(--itl-ease);
	}
	.itl-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
	.itl-nav__link { width: 100%; padding: 12px 14px; font-size: 16px; }
	.itl-nav__link::after { display: none; }
	.itl-header__inner { position: static; }
	.itl-header { position: sticky; }

	.itl-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
	:root { --itl-header-h: 66px; }
	.itl-logo__word { font-size: 30px; }
	.itl-logo__bag { left: 21px; top: -8px; }
	.itl-logo__img { height: 38px; }
	.itl-lang__toggle { height: 42px; padding: 0 10px; gap: 8px; font-size: 15px; }

	.itl-hero__inner {
		grid-template-columns: 1fr;
		text-align: center;
		padding-top: 34px;
		padding-bottom: 80px;
	}
	.itl-hero__content { justify-self: center; max-width: 560px; }
	.itl-br-desktop { display: none; }
	.itl-hero__actions { justify-content: center; }
	.itl-hero__actions .itl-btn { flex: 1 1 100%; }
	.itl-hero__art { justify-self: center; max-width: 560px; }

	.itl-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
	.itl-feature:nth-child(n)::before { display: block; }
	.itl-feature:nth-child(2n + 1)::before { display: none; }
	.itl-feature__title { font-size: 16.5px; }
	.itl-feature__text { font-size: 14px; }
	.itl-feature__icon .itl-icon { width: 40px; height: 40px; }

	.itl-cta__card {
		grid-template-columns: 1fr;
		grid-template-areas: "text" "action" "art";
		text-align: center;
		padding: 30px 22px 0;
		border-radius: 24px;
	}
	.itl-cta__action { justify-self: stretch; }
	.itl-cta__action .itl-btn { width: 100%; min-width: 0; }
	.itl-cta__art { justify-self: center; width: 100%; max-width: 320px; margin-bottom: -6px; }
	.itl-cta-svg { margin-inline: auto; }

	.itl-footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
	.itl-lang__name { display: none; }
	.itl-btn { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.itl-page *, .itl-page *::before, .itl-page *::after { animation: none !important; transition: none !important; }
}
