/* WeTrade experience layer: display font, dark jade theme, glass panels, journey timeline, motion.
 * Everything dark is scoped to body.wt-dark, so the filter `wetrade_dark_theme` can switch it off. */

@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arabic glyphs under the "Outfit" name, so headings set to Outfit still render Arabic with Noto Sans Arabic. */
@font-face {
	font-family: "Outfit";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/noto-sans-arabic-arabic-wght-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
	--wt-font-display: "Outfit", "Inter", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--wt-night: #031a15;
	--wt-night-2: #05241d;
	--wt-soft: #b9d2ca;
	--wt-amber: #ff9a4d;
	--wt-glass: rgba(255, 255, 255, 0.05);
	--wt-glass-line: rgba(255, 255, 255, 0.14);
	--wt-px: 70%;
	--wt-py: 20%;
}

h1, h2, h3, .wt-hero .wt-hero__title, .wt-card__title { font-family: var(--wt-font-display); }
html[lang^="ar"] :is(h1, h2, h3), html[lang^="ar"] .wt-hero .wt-hero__title { font-family: "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }

/* =====================================================================
   Dark theme
   ===================================================================== */
html:has(body.wt-dark) { background: var(--wt-night); }
body.wt-dark { background: transparent; color: var(--wt-soft); }
body.wt-dark::before, body.wt-dark::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
/* Light: two fixed glows, a third that follows the pointer. */
body.wt-dark::before {
	z-index: -2;
	background:
		radial-gradient(520px circle at var(--wt-px) var(--wt-py), rgba(25, 195, 154, 0.1), transparent 70%),
		radial-gradient(60% 50% at 88% -5%, rgba(25, 195, 154, 0.2), transparent 70%),
		radial-gradient(45% 45% at -5% 38%, rgba(232, 93, 4, 0.12), transparent 70%),
		radial-gradient(70% 55% at 65% 105%, rgba(0, 115, 95, 0.3), transparent 70%),
		linear-gradient(180deg, #031a15 0%, #04211b 100%);
}
/* Texture: contour lines and a fine grain. */
body.wt-dark::after {
	z-index: -1; opacity: 0.55;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700' fill='none' stroke='%237fd1bb' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M-20 120C140 60 260 190 430 130S720 30 920 110'/%3E%3Cpath d='M-20 170C150 110 270 240 440 180S730 80 920 160'/%3E%3Cpath d='M-20 225C160 165 280 295 450 235S740 135 920 215'/%3E%3Cpath d='M-20 420C120 480 300 350 470 420S760 520 920 430'/%3E%3Cpath d='M-20 470C130 530 310 400 480 470S770 570 920 480'/%3E%3Cpath d='M-20 525C140 585 320 455 490 525S780 625 920 535'/%3E%3Cpath d='M-20 600C150 650 330 540 500 600S790 690 920 610'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 900px 700px, 160px 160px;
}
body.wt-dark :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
body.wt-dark a { color: #8fe0c9; }
body.wt-dark a:hover, body.wt-dark a:focus { color: #fff; }
body.wt-dark ::selection { background: #E85D04; color: #fff; }
body.wt-dark :focus-visible { outline-color: var(--wt-amber); }
body.wt-dark .site-main, body.wt-dark #content, body.wt-dark .site-content, body.wt-dark .ast-container, body.wt-dark #primary, body.wt-dark .elementor { background: transparent; }
body.wt-dark .ast-separate-container, body.wt-dark.ast-separate-container .ast-article-single, body.wt-dark .ast-plain-container { background: transparent; }
body.wt-dark .page-header .entry-title { color: #fff; }

/* "Paper": a light panel for forms and long text, so they stay easy to read and fill in. */
.wt-paper { background: #fff; color: #0f1a17; border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08); }
body.wt-dark .wt-paper :is(h1, h2, h3, h4, h5, h6) { color: #06382e; }
body.wt-dark .wt-paper a { color: #005A4E; }
body.wt-dark .wt-paper a:hover { color: #06382e; }
body.wt-dark .wt-paper .elementor-widget-text-editor { color: #0f1a17; }

/* Glass card */
.wt-glass, body.wt-dark .wt-card, body.wt-dark .wt-location {
	position: relative; background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
	border: 1px solid var(--wt-glass-line); border-radius: 22px;
	-webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 60px rgba(0, 0, 0, 0.28);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease, box-shadow 0.35s ease;
	transform: perspective(1000px) rotateX(var(--wt-rx, 0deg)) rotateY(var(--wt-ry, 0deg)) translateY(var(--wt-lift, 0px));
	transform-style: preserve-3d;
}
.wt-glass::after, body.wt-dark .wt-card::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
	background: radial-gradient(420px circle at var(--wt-mx, 50%) var(--wt-my, 0%), rgba(255, 255, 255, 0.14), transparent 60%);
}
.wt-glass:hover, body.wt-dark .wt-card:hover, body.wt-dark .wt-card:focus-within {
	--wt-lift: -6px; border-color: rgba(255, 154, 77, 0.55);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 34px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(232, 93, 4, 0.18);
}
.wt-glass:hover::after, body.wt-dark .wt-card:hover::after { opacity: 1; }

/* Product / service cards */
body.wt-dark .wt-card { overflow: hidden; }
body.wt-dark .wt-card:hover { transform: perspective(1000px) rotateX(var(--wt-rx, 0deg)) rotateY(var(--wt-ry, 0deg)) translateY(-6px); }
body.wt-dark .wt-card__media { background: #06382e; position: relative; }
body.wt-dark .wt-card__media img { filter: saturate(0.85) contrast(1.05); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease; }
body.wt-dark .wt-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 26, 21, 0) 45%, rgba(3, 26, 21, 0.72) 100%), linear-gradient(135deg, rgba(0, 90, 78, 0.28), rgba(232, 93, 4, 0.08)); mix-blend-mode: multiply; }
body.wt-dark .wt-card:hover .wt-card__media img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }
body.wt-dark .wt-card__media--empty { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 14px, rgba(255, 255, 255, 0.07) 14px 28px); }
body.wt-dark .wt-card__title a { color: #fff; }
body.wt-dark .wt-card__text { color: var(--wt-soft); }
body.wt-dark .wt-card__tag, body.wt-dark .wt-card__num { color: var(--wt-amber); }
body.wt-dark .wt-card__more { color: #8fe0c9; transition: color 0.2s ease, letter-spacing 0.3s ease; }
body.wt-dark .wt-card:hover .wt-card__more { color: #fff; }
body.wt-dark .wt-card:has(a:focus-visible) { outline-color: var(--wt-amber); }

/* Corridors and location */
body.wt-dark .wt-corridors, body.wt-dark .wt-corridors--dark { background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--wt-glass-line); border-radius: 24px; color: var(--wt-soft); }
body.wt-dark .wt-corridors__list li { border-color: rgba(255, 255, 255, 0.12); }
body.wt-dark .wt-corridors__from { color: #8fa9a1; }
body.wt-dark .wt-corridors__to { color: #fff; }
body.wt-dark .wt-location { overflow: hidden; }
body.wt-dark .wt-location__map { background: #06382e; }
body.wt-dark .wt-location__title { color: var(--wt-amber); }
body.wt-dark .wt-location__name { color: #fff; }
body.wt-dark .wt-location__address { color: var(--wt-soft); }
body.wt-dark .wt-location__link, body.wt-dark .wt-location__link:visited { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
body.wt-dark .wt-location__link:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Elementor buttons: lift and glow */
body.wt-dark .elementor-button { transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease; box-shadow: 0 10px 30px rgba(232, 93, 4, 0.25); }
body.wt-dark .elementor-button:hover, body.wt-dark .elementor-button:focus { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(232, 93, 4, 0.4); }
body.wt-dark .elementor-widget-icon-box .elementor-icon { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; border-radius: 16px; background: rgba(232, 93, 4, 0.14); border: 1px solid rgba(255, 154, 77, 0.35); }

/* Long text on the dark page (privacy policy etc.) */
body.wt-dark .wt-prose :is(p, li) { color: var(--wt-soft); }

/* =====================================================================
   Header (child theme header and the Xpro template header)
   ===================================================================== */
body.wt-dark .wt-header, body.wt-dark #wt-header {
	background: rgba(3, 26, 21, 0.55) !important; border-block-end: 1px solid rgba(255, 255, 255, 0.08) !important;
	-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
body.wt-dark .wt-header.is-scrolled, body.wt-dark .xpro-theme-builder-header.is-scrolled #wt-header { background: rgba(3, 26, 21, 0.9) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
body.wt-dark .wt-nav a { color: #e6f2ee; }
body.wt-dark .wt-nav a:hover, body.wt-dark .wt-nav .current-menu-item > a, body.wt-dark .wt-nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, 0.08); }
body.wt-dark .wt-header .wt-lang a, body.wt-dark #wt-header .wt-lang a { color: #b9d2ca; }
body.wt-dark .wt-header .wt-lang a:hover, body.wt-dark #wt-header .wt-lang a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.wt-dark .wt-header .wt-lang .is-current a, body.wt-dark #wt-header .wt-lang .is-current a { background: rgba(127, 209, 187, 0.18); color: #fff; }
body.wt-dark .wt-header .wt-burger { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
body.wt-dark .wt-header .wt-burger:hover, body.wt-dark .wt-header .wt-burger:focus { background: rgba(255, 255, 255, 0.14); color: #fff; }
body.wt-dark .wt-nav .sub-menu { background: #05241d; border-color: rgba(255, 255, 255, 0.12); }
@media (max-width: 1024px) {
	body.wt-dark .wt-nav { background: #04211b; border-block-end-color: rgba(255, 255, 255, 0.1); }
	body.wt-dark .wt-nav__lang { border-block-start-color: rgba(255, 255, 255, 0.12); }
	body.wt-dark .wt-nav__lang .wt-lang a { border-color: rgba(255, 255, 255, 0.18); }
}
body.wt-dark .wt-footer, body.wt-dark #wt-footer { background: rgba(2, 15, 12, 0.72) !important; border-block-start: 1px solid rgba(255, 255, 255, 0.08); }

/* =====================================================================
   Hero
   ===================================================================== */
body.wt-dark .wt-hero {
	min-height: clamp(600px, calc(100svh - 68px), 940px);
	background: radial-gradient(90% 80% at 78% 45%, rgba(18, 160, 127, 0.22) 0%, rgba(18, 160, 127, 0) 62%);
}
[dir="rtl"] body.wt-dark .wt-hero, body.wt-dark[dir="rtl"] .wt-hero, html[dir="rtl"] body.wt-dark .wt-hero { background: radial-gradient(90% 80% at 22% 45%, rgba(18, 160, 127, 0.22) 0%, rgba(18, 160, 127, 0) 62%); }
body.wt-dark .wt-hero::before { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 28%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3, 26, 21, 0), var(--wt-night)); }
.wt-hero__inner { position: relative; z-index: 1; }
.wt-hero .wt-hero__title { font-weight: 650; letter-spacing: -0.035em; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1; }
html[lang^="zh"] .wt-hero .wt-hero__title, html[lang^="ar"] .wt-hero .wt-hero__title { letter-spacing: 0; line-height: 1.25; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); }
.wt-hero__content { max-width: 640px; }
.wt-hero__btn--primary, .wt-hero__btn--primary:visited { box-shadow: 0 12px 34px rgba(232, 93, 4, 0.4); color: #fff; }
.wt-hero__btn--primary:hover, .wt-hero__btn--primary:focus { background: #ff7a1f; color: #fff; box-shadow: 0 18px 44px rgba(232, 93, 4, 0.55); transform: translateY(-2px); }
.wt-hero__btn--secondary { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.05); }

.wt-hero__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wt-hero__label {
	position: absolute; top: 0; left: 0; opacity: 0; will-change: transform, opacity; white-space: nowrap;
	margin: -30px 0 0 10px; padding: 3px 9px; border-radius: 999px; font: 600 11px/1.3 "Inter", system-ui, sans-serif; letter-spacing: 0.04em;
	color: #eaf6f2; background: rgba(3, 26, 21, 0.62); border: 1px solid rgba(127, 209, 187, 0.35);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wt-hero__label--hub { color: #fff; background: #E85D04; border-color: #ffb37a; font-size: 12px; box-shadow: 0 6px 20px rgba(232, 93, 4, 0.5); }
html[lang^="zh"] .wt-hero__label, html[lang^="ar"] .wt-hero__label { letter-spacing: 0; font-size: 12px; font-family: inherit; }

/* Entrance: the hero text rises in line by line. */
@media (prefers-reduced-motion: no-preference) {
	.wt-hero__content > * { animation: wt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.wt-hero__content > :nth-child(2) { animation-delay: 0.1s; }
	.wt-hero__content > :nth-child(3) { animation-delay: 0.2s; }
	.wt-hero__content > :nth-child(4) { animation-delay: 0.3s; }
}
@keyframes wt-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	body.wt-dark .wt-hero { min-height: 0; }
	body.wt-dark .wt-hero::after { background: linear-gradient(180deg, rgba(3, 26, 21, 0) 22%, rgba(3, 26, 21, 0.94) 60%); }
	.wt-hero__label { display: none; }
	.wt-hero__label--hub { display: block; }
}

/* =====================================================================
   3D logo block
   ===================================================================== */
.wt-logo3d { position: relative; width: 100%; height: var(--wt-logo3d-h, 380px); display: grid; place-items: center; }
.wt-logo3d::before { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(25, 195, 154, 0.28), rgba(232, 93, 4, 0.1) 55%, transparent 75%); filter: blur(22px); }
.wt-logo3d__flat { position: relative; width: min(70%, 330px); height: auto; transition: opacity 0.6s ease; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.wt-logo3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s ease; }
.wt-logo3d.is-3d .wt-logo3d__canvas { opacity: 1; }
.wt-logo3d.is-3d .wt-logo3d__flat { opacity: 0; }
@media (max-width: 767px) { .wt-logo3d { height: min(var(--wt-logo3d-h, 380px), 260px); } }

/* =====================================================================
   Facts strip (home page, under the hero)
   ===================================================================== */
.wt-facts .elementor-widget-heading .elementor-heading-title { font-family: var(--wt-font-display); }
.wt-fact { border-inline-start: 2px solid rgba(255, 154, 77, 0.7); padding-inline-start: 18px !important; }

/* =====================================================================
   Journey: a scroll-driven timeline. The steps stay ordinary Elementor widgets;
   this only draws the line, the nodes and the progress.
   ===================================================================== */
.wt-steps { position: relative; --wt-progress: 0; counter-reset: wt-step; }
.wt-steps::before, .wt-steps::after { content: ""; position: absolute; inset-block-start: 20px; inset-inline-start: 27px; width: 2px; border-radius: 2px; }
.wt-steps::before { inset-block-end: 20px; background: rgba(255, 255, 255, 0.12); }
.wt-steps::after { height: calc((100% - 40px) * var(--wt-progress)); background: linear-gradient(180deg, #8fe0c9, #E85D04); box-shadow: 0 0 18px rgba(232, 93, 4, 0.7); transition: height 0.15s linear; }
.wt-step { position: relative; padding-inline-start: 92px !important; padding-block: 18px 34px !important; opacity: 0.45; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wt-step.is-active { opacity: 1; }
.wt-step > .elementor-widget:first-child, .wt-step > .e-con-inner > .elementor-widget:first-child {
	position: absolute; inset-inline-start: 0; inset-block-start: 10px; width: 56px !important; height: 56px; display: grid; place-items: center; z-index: 1;
	border-radius: 50%; background: #05241d; border: 2px solid rgba(255, 255, 255, 0.18);
	transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.wt-step > .elementor-widget:first-child .elementor-heading-title { color: #8fa9a1 !important; font-size: 17px !important; line-height: 1 !important; font-family: var(--wt-font-display); transition: color 0.4s ease; }
.wt-step.is-active > .elementor-widget:first-child { border-color: #E85D04; background: #E85D04; box-shadow: 0 0 0 8px rgba(232, 93, 4, 0.16), 0 10px 30px rgba(232, 93, 4, 0.5); transform: scale(1.06); }
.wt-step.is-active > .elementor-widget:first-child .elementor-heading-title { color: #fff !important; }
@media (max-width: 600px) {
	.wt-steps::before, .wt-steps::after { inset-inline-start: 21px; }
	.wt-step { padding-inline-start: 68px !important; }
	.wt-step > .elementor-widget:first-child { width: 44px !important; height: 44px; inset-block-start: 14px; }
}

/* =====================================================================
   Call-to-action band
   ===================================================================== */
.wt-band { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid rgba(255, 154, 77, 0.3); background: linear-gradient(120deg, rgba(0, 90, 78, 0.55), rgba(3, 26, 21, 0.4) 55%, rgba(232, 93, 4, 0.22)); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4); }
.wt-band::before { content: ""; position: absolute; inset-block-start: -40%; inset-inline-end: -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 93, 4, 0.35), transparent); filter: blur(10px); pointer-events: none; }
.wt-band > * { position: relative; }

/* =====================================================================
   Scroll reveal. Only active once motion.js has added .wt-js to <html>,
   so nothing stays hidden if the script does not run.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.wt-js .wt-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--wt-delay, 0s); }
	.wt-js .wt-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.wt-glass, body.wt-dark .wt-card { transform: none !important; transition: none; }
	.wt-steps::after { transition: none; }
	.wt-step { opacity: 1; }
}

/* Buttons keep their own text colour on the dark theme (the general link colour must not win). */
body.wt-dark .wt-hero__btn--primary, body.wt-dark .wt-hero__btn--primary:visited, body.wt-dark .wt-hero__btn--primary:hover, body.wt-dark .wt-hero__btn--primary:focus { color: #fff; }
body.wt-dark .wt-hero__btn--secondary, body.wt-dark .wt-hero__btn--secondary:visited, body.wt-dark .wt-hero__btn--secondary:hover { color: #fff; }
body.wt-dark .wt-btn, body.wt-dark .wt-btn:visited, body.wt-dark .wt-btn:hover { color: #fff; box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3); }
body.wt-dark .wt-skip, body.wt-dark .wt-skip:focus { color: #fff; }
@media (max-width: 900px) { body.wt-dark .wt-hero__inner { padding-block-start: clamp(15rem, 62vw, 19rem); } }
