/* WeTrade Lens display components: hero, showcase, location card, service grid. */

/* ---------- Hero ---------- */
.wt-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(520px, 78vh, 760px);
	display: grid; align-items: center;
	background:
		radial-gradient(120% 90% at 78% 40%, rgba(18, 160, 127, 0.34) 0%, rgba(18, 160, 127, 0) 60%),
		linear-gradient(160deg, #06382e 0%, #04261f 70%);
	color: #fff;
}
[dir="rtl"] .wt-hero {
	background:
		radial-gradient(120% 90% at 22% 40%, rgba(18, 160, 127, 0.34) 0%, rgba(18, 160, 127, 0) 60%),
		linear-gradient(200deg, #06382e 0%, #04261f 70%);
}
.wt-hero__media { position: absolute; inset: 0; z-index: -1; }
.wt-hero__fallback {
	position: absolute; inset-block: 0; inset-inline-end: 2%; width: min(48%, 620px);
	display: grid; align-items: center; opacity: 0.95;
	transition: opacity 0.9s ease;
}
.wt-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; }
.wt-hero__media.is-3d .wt-hero__canvas { opacity: 1; }
.wt-hero__media.is-3d .wt-hero__fallback { opacity: 0; }

.wt-hero__inner { width: min(100% - 2rem, var(--wt-container, 1200px)); margin-inline: auto; padding-block: clamp(4rem, 10vh, 7rem); }
.wt-hero__content { max-width: 620px; }
.wt-hero__eyebrow {
	display: inline-block; margin: 0 0 1.1rem; padding: 0.3rem 0.8rem; border-radius: 999px;
	background: rgba(127, 209, 187, 0.16); color: #b5e6d8; border: 1px solid rgba(127, 209, 187, 0.35);
	font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
html[lang^="zh"] .wt-hero__eyebrow, html[lang^="ar"] .wt-hero__eyebrow { letter-spacing: 0; font-size: 0.875rem; }
.wt-hero .wt-hero__title {
	margin: 0 0 1.25rem; color: #fff; font-weight: 700; letter-spacing: -0.025em; line-height: 1.04;
	font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.25rem); text-wrap: balance;
}
html[lang^="zh"] .wt-hero .wt-hero__title, html[lang^="ar"] .wt-hero .wt-hero__title { letter-spacing: 0; line-height: 1.3; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
.wt-hero__text { margin: 0 0 2rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); line-height: 1.6; color: #d3e6e0; max-width: 54ch; }
.wt-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.wt-hero__btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0.75rem 1.6rem;
	border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.wt-hero__btn:hover { transform: translateY(-1px); }
.wt-hero__btn--primary, .wt-hero__btn--primary:visited { background: #E85D04; color: #0f1a17; }
.wt-hero__btn--primary:hover, .wt-hero__btn--primary:focus { background: #ff9233; color: #0f1a17; }
.wt-hero__btn--secondary, .wt-hero__btn--secondary:visited { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.wt-hero__btn--secondary:hover, .wt-hero__btn--secondary:focus { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.wt-hero__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 900px) {
	.wt-hero { min-height: 0; align-items: end; }
	.wt-hero__fallback { inset-inline: 6%; inset-block: 1.5rem auto; width: auto; height: 17.5rem; }
	.wt-stack { width: auto; height: 100%; }
	.wt-hero__inner { padding-block: clamp(11rem, 38vw, 15rem) 3.5rem; }
	.wt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 38, 31, 0) 20%, rgba(4, 38, 31, 0.92) 62%); }
}

/* ---------- Hero fallback: a fanned stack of frames around a lens ring (no WebGL needed) ---------- */
.wt-stack { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; perspective: 1200px; }
.wt-stack__ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px solid rgba(127, 209, 187, 0.4); box-shadow: 0 0 0 26px rgba(127, 209, 187, 0.05), 0 0 90px rgba(232, 93, 4, 0.28) inset, 0 0 60px rgba(18, 160, 127, 0.3); }
.wt-stack__ring::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed rgba(255, 154, 77, 0.55); animation: wt-turn 40s linear infinite; }
.wt-stack__frame { position: absolute; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); animation: wt-float 7s ease-in-out infinite; }
.wt-stack__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-stack__frame--1 { width: 34%; aspect-ratio: 9 / 16; inset-inline-start: 8%; top: 16%; --wt-tilt: rotateY(18deg) rotateZ(-4deg); }
.wt-stack__frame--2 { width: 42%; aspect-ratio: 1; inset-inline-start: 32%; top: 30%; z-index: 1; --wt-tilt: rotateY(-6deg) rotateZ(2deg); animation-delay: -2.3s; }
.wt-stack__frame--3 { width: 46%; aspect-ratio: 16 / 9; inset-inline-end: 2%; top: 12%; --wt-tilt: rotateY(-20deg) rotateZ(5deg); animation-delay: -4.6s; }
@keyframes wt-float { 0%, 100% { transform: var(--wt-tilt) translateY(0); } 50% { transform: var(--wt-tilt) translateY(-14px); } }
@keyframes wt-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.wt-stack__frame { animation: none; transform: var(--wt-tilt); }
	.wt-stack__ring::after { animation: none; }
	.wt-hero__fallback, .wt-hero__canvas { transition: none; }
}

/* ---------- Showcase: a wall of samples in their real formats ---------- */
.wt-show__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-end: 1.5rem; }
.wt-show__filter {
	min-height: 44px; padding: 0.5rem 1.15rem; border-radius: 999px; border: 1px solid #d9e2df; background: #fff; color: #06382e;
	font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.wt-show__filter:hover { border-color: #005A4E; }
.wt-show__filter[aria-pressed="true"] { background: #E85D04; border-color: #E85D04; color: #fff; }
.wt-show__wall { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 1.25rem; }
@media (max-width: 1024px) { .wt-show__wall { columns: 2; } }
@media (max-width: 520px) { .wt-show__wall { column-gap: 0.75rem; } }
.wt-shot { break-inside: avoid; margin: 0 0 1.25rem; position: relative; border-radius: 18px; overflow: hidden; background: #06382e; transition: opacity 0.35s ease, transform 0.35s ease; }
@media (max-width: 520px) { .wt-shot { margin-block-end: 0.75rem; border-radius: 12px; } }
.wt-shot[hidden] { display: none; }
.wt-shot__link { display: block; position: relative; color: #fff; text-decoration: none; cursor: zoom-in; }
.wt-shot__link img { display: block; width: 100%; height: auto; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.wt-shot[data-ratio="9:16"] img { aspect-ratio: 9 / 16; object-fit: cover; }
.wt-shot[data-ratio="1:1"] img { aspect-ratio: 1; object-fit: cover; }
.wt-shot[data-ratio="16:9"] img { aspect-ratio: 16 / 9; object-fit: cover; }
.wt-shot:hover img, .wt-shot__link:focus-visible img { transform: scale(1.06); }
.wt-shot__meta { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 0.2rem; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(180deg, rgba(3, 26, 21, 0), rgba(3, 26, 21, 0.88)); }
.wt-shot__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #ffb37a; }
html[lang^="zh"] .wt-shot__tag, html[lang^="ar"] .wt-shot__tag { letter-spacing: 0; font-size: 0.8125rem; }
.wt-shot__title { font-weight: 600; font-size: 1rem; line-height: 1.3; color: #fff; }
.wt-shot__link:focus-visible { outline: 3px solid #E85D04; outline-offset: -3px; }
.wt-show__note { margin: 1rem 0 0; font-size: 0.875rem; color: #51605b; }
.wt-zoom { max-width: min(92vw, 1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #031a15; color: #fff; overflow: hidden; }
.wt-zoom::backdrop { background: rgba(2, 12, 10, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wt-zoom img { display: block; max-width: 100%; max-height: calc(92vh - 3.25rem); margin-inline: auto; }
.wt-zoom__title { margin: 0; padding: 0.8rem 1.1rem; font-weight: 600; }
.wt-zoom__close { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(3, 26, 21, 0.7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wt-zoom__close:hover { background: #E85D04; border-color: #E85D04; }

/* ---------- Location ---------- */
.wt-location { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border: 1px solid #d9e2df; border-radius: 20px; overflow: hidden; background: #fff; }
.wt-location__map { min-height: 280px; background: #ddf3ec; }
.wt-location__map img, .wt-location__map svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-location__body { padding: clamp(1.25rem, 3vw, 2.25rem); }
.wt-location__title { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #005A4E; }
html[lang^="zh"] .wt-location__title, html[lang^="ar"] .wt-location__title { letter-spacing: 0; font-size: 0.9375rem; }
.wt-location__name { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 650; color: #06382e; line-height: 1.3; }
.wt-location__address { font-style: normal; color: #51605b; margin: 0 0 1rem; }
.wt-location__contact { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.25rem; }
.wt-location__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wt-location__link, .wt-location__link:visited {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem; border-radius: 999px;
	border: 2px solid #005A4E; color: #06382e; font-weight: 600; font-size: 0.9375rem; text-decoration: none;
}
.wt-location__link:hover, .wt-location__link:focus { background: #ddf3ec; color: #06382e; }
@media (max-width: 760px) { .wt-location { grid-template-columns: 1fr; } .wt-location__map { min-height: 200px; max-height: 240px; } }

/* ---------- Grid ---------- */
.wt-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(var(--wt-grid-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1024px) { .wt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wt-grid { grid-template-columns: 1fr; } }
.wt-card {
	position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #d9e2df; border-radius: 16px; overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.wt-card:hover, .wt-card:focus-within { border-color: #005A4E; box-shadow: 0 1px 2px rgba(6, 56, 46, 0.06), 0 12px 28px rgba(6, 56, 46, 0.1); transform: translateY(-2px); }
.wt-card__media { aspect-ratio: 4 / 3; background: #f4f7f6; overflow: hidden; }
.wt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-card__media--empty { background: repeating-linear-gradient(135deg, #f4f7f6 0 14px, #eaf1ef 14px 28px); }
.wt-card__num { padding: 1.5rem 1.5rem 0; font-size: 0.875rem; font-weight: 700; color: #E85D04; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.wt-card__body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.wt-card__tag { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #005A4E; }
.wt-card__title { margin: 0; font-size: 1.1875rem; line-height: 1.3; }
.wt-card__title a { color: #06382e; text-decoration: none; }
.wt-card__title a::after { content: ""; position: absolute; inset: 0; }
.wt-card__title a:focus-visible { outline: none; }
.wt-card:has(a:focus-visible) { outline: 3px solid #E85D04; outline-offset: 2px; }
.wt-card__text { margin: 0; color: #51605b; font-size: 0.9375rem; line-height: 1.55; }
.wt-card__more { margin-block-start: auto; padding-block-start: 0.5rem; font-weight: 600; font-size: 0.9375rem; color: #005A4E; }
.wt-card__more::after { content: " \2192"; }
[dir="rtl"] .wt-card__more::after { content: " \2190"; }
