/*
Theme Name: TRX Landing
Theme URI: http://localhost/trx-landing
Description: Custom WordPress theme for TRX Landing (Tether) with Elementor widgets. Arabic RTL.
Version: 1.0.9
Author: TRX
Text Domain: trx-landing
Tags: rtl-language-support, custom-colors, threaded-comments
*/

/* ============================================================
   Tether (Arabic RTL) — landing page styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #EFE9E1;
    --bg-card: #FFFFFF;
    --bg-dark: #161514;
    --bg-yellow: #FFFF00;
    --bg-soft: #DBD7D1;
    --bg-green: #12E59A;

    --text: #161514;
    --text-muted: #6B6863;
    --text-on-dark: #F9F4E9;
    --text-on-dark-muted: #EBE9E5B5;

    --border: #0000002B;
    --border-light: #EBE9E5;

    --radius: 24px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --container-max: 1280px;
    --space-section: clamp(60px, 8vw, 130px);

    --serif: 'Noto Sans Arabic', 'Cairo', 'Segoe UI', system-ui, sans-serif;
    --sans: 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ============================================================
   Elementor wrapper reset (homepage)
   Elementor wraps every TRX widget in a "boxed" 1140px container,
   which clips full-bleed section backgrounds (the CTA mountains,
   case study, dark sections…) and narrows the content. Neutralize
   it so each widget renders full-width exactly like the static
   reference design — the widget's own inner .container then handles
   the 1280px max-width and side gutters.
   ============================================================ */
.elementor-page-5 .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 100%;
}
.elementor-page-5 .elementor-widget-wrap.elementor-element-populated,
.elementor-page-5 .elementor-widget-container {
    padding: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--bg-yellow); color: var(--text); }
.btn-light  { background: #fff; color: var(--text); }
.btn-dark   { background: var(--bg-dark); color: var(--text-on-dark); }
.btn-large  { padding: 18px 40px; font-size: 18px; }

/* ============================================================
   Header / Nav (sticky pill)
   ============================================================ */
.site-header {
    position: fixed;
    top: 18px;
    inset-inline: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 10px 14px 10px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.nav-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.nav-links {
    display: flex;
    gap: 22px;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #2a2826;
    transition: color .2s ease;
}
.nav-links a:hover { color: #000; }
.nav-cta {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    transition: opacity .2s ease;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .25s ease, opacity .25s ease;
}

.site-header.scrolled .nav-pill {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Reveal-on-scroll */
.section-title, .feature, .stat-card, .t-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.section-title.in-view, .feature.in-view, .stat-card.in-view, .t-card.in-view {
    opacity: 1;
    transform: none;
}
/* Force visibility inside Elementor editor preview iframe — the IntersectionObserver
   doesn't fire reliably there, leaving widgets invisible/empty in the canvas. */
body.elementor-editor-active .section-title,
body.elementor-editor-active .feature,
body.elementor-editor-active .stat-card,
body.elementor-editor-active .t-card,
body.e-preview--show-hidden-elements .section-title,
body.e-preview--show-hidden-elements .feature,
body.e-preview--show-hidden-elements .stat-card,
body.e-preview--show-hidden-elements .t-card {
    opacity: 1 !important;
    transform: none !important;
}
/* Disable position:sticky inside editor — it conflicts with Elementor's section wrappers
   and makes features stack on top of each other. */
body.elementor-editor-active .feature,
body.e-preview--show-hidden-elements .feature {
    position: static !important;
    top: auto !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding-top: calc(var(--header-h) + 70px);
    padding-bottom: 70px;
    text-align: center;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(46px, 7vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    max-width: 900px;
    margin-inline: auto;
}
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
    flex-wrap: wrap;
}
.hero-social-proof {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero-social-proof p { font-size: 14px; color: var(--text-muted); }

.avatars { display: flex; }
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--bg);
    margin-inline-start: -12px;
}
.avatar:first-child { margin-inline-start: 0; }

/* ============================================================
   3-Card row
   ============================================================ */
.three-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    padding-block: 30px 80px;
}
.card {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.card-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 38px;
    justify-content: space-between;
}
.card-headline {
    font-family: var(--sans);
    font-size: clamp(22px, 1.9vw, 30px);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-on-dark);
}
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    color: var(--text-on-dark);
    font-weight: 500;
}
.badge-outline { border: 1px solid rgba(244, 242, 239, 0.45); }
.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-yellow {
    background: linear-gradient(180deg, #ffff00 1%, #dcd8d3 81%);
    align-items: center;
    justify-content: flex-end;
    padding-top: 30px;
}
.card-yellow img { max-width: 75%; height: auto; }

.card-img { padding: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
article.card.card-img img { height: 100%; }

/* ============================================================
   Trusted by + logos
   ============================================================ */
.clients { padding-block: 80px 60px; text-align: center; }

.section-title {
    font-family: var(--serif);
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
}
.section-title.large { font-size: clamp(40px, 6vw, 88px); }
.section-subtitle {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 17px;
    max-width: 580px;
    margin-inline: auto;
}

.logos-marquee {
    margin-top: 60px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: logos-scroll 40s linear infinite;
}
.logos-track li img {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
}
@keyframes logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(50%); } /* RTL friendly: track shifts right */
}

.rating-pill {
    margin-top: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 15px;
}
.rating-pill .stars { color: var(--text); letter-spacing: 2px; }

/* ============================================================
   Sticky features (3 panels)
   ============================================================ */
.features {
    padding-block: var(--space-section);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 540px;
    overflow: hidden;
    max-width: calc(var(--container-max) - 48px);
    margin-inline: auto;
    width: calc(100% - 48px);
    position: sticky;
    top: 30px;
}
.feature-light { background: var(--bg-soft); }
.feature-yellow { background: var(--bg-yellow); }
.feature-yellow .feature-eyebrow { color: var(--text); }

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 30px;
}
.feature-eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
}
.feature-title {
    font-family: var(--serif);
    font-size: clamp(34px, 3.6vw, 54px);
    font-weight: 700;
    line-height: 1.1;
}
.feature-desc {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 460px;
}

.feature-media {
    position: relative;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 460px;
}
.feature-media-img { background: transparent; }
.feature-media-img img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Task card (feature 1) */
.task-card {
    position: absolute;
    inset-inline-start: 30px;
    inset-inline-end: 30px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}
.task-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.time-pill {
    background: var(--bg-yellow);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}
.user-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f2ef;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.task-card h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.task-meta { font-size: 13px; color: #161514a3; }
.task-avatars { display: flex; margin-top: 14px; }
.mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    margin-inline-start: -8px;
}
.mini-avatar:first-child { margin-inline-start: 0; }

/* Insight card (feature 2) */
.insight-card {
    position: absolute;
    inset-inline-start: 30px;
    inset-inline-end: 30px;
    bottom: 30px;
    background: rgba(246, 244, 240, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    padding: 22px;
    color: var(--text-on-dark);
}
.insight-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px; font-size: 14px;
}
.badge-outline-sm {
    border: 1px solid rgba(235, 233, 229, 0.5);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
}
.insight-number {
    font-family: var(--serif);
    font-size: clamp(36px, 3.2vw, 50px);
    line-height: 1;
}
.insight-stats {
    display: flex; gap: 18px; margin-top: 14px; font-size: 13px;
    color: var(--text-on-dark-muted);
}
.insight-stats strong { color: #fff; font-weight: 700; }
.insight-bars {
    display: flex; gap: 4px; margin-top: 14px; height: 10px;
}
.bar { border-radius: 3px; }
.bar-green  { background: var(--bg-green); flex: 8; }
.bar-yellow { background: var(--bg-yellow); flex: 3; }
.bar-gray   { background: var(--border-light); flex: 1; }

/* Floating recognition tags (feature 3) */
.floating-tag {
    position: absolute;
    background: rgba(20, 50, 230, 0.78);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tag-1 { top: 14%; inset-inline-start: 8%; }
.tag-2 { top: 46%; inset-inline-end: 8%; }
.tag-3 {
    bottom: 14%; inset-inline-start: 30%;
    background: rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Stats / AI features
   ============================================================ */
.stats-section {
    padding-block: var(--space-section);
    text-align: center;
}
.stats-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    text-align: start;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    min-height: 220px;
}
.stat-chat {
    grid-row: span 2;
    background-image: url('assets/images/bg/surface-3jj4P6KSZWk-unsplash-1-scaled.webp');
    background-size: cover;
    background-position: center;
    color: #fff;
    justify-content: flex-end;
    padding: 36px;
    min-height: 600px;
}
.chat-bubble {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 18px;
    border-radius: 14px;
    max-width: 78%;
    font-size: 14px;
}
.chat-bubble strong { display: block; font-size: 13px; margin-bottom: 4px; }
.chat-bubble p { font-size: 14px; line-height: 1.45; }
.chat-bubble.outgoing {
    background: var(--bg-yellow);
    align-self: flex-end;
    color: var(--text);
}

.stat-text h3 {
    font-family: var(--serif);
    font-size: clamp(28px, 2.2vw, 36px);
    font-weight: 700;
}
.stat-text .mini-avatars { display: flex; }
.stat-text p { color: var(--text-muted); font-size: 15px; line-height: 1.5; }

.big-number {
    font-family: var(--serif);
    font-size: clamp(64px, 7vw, 110px);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}
.big-number sup { font-size: 0.4em; vertical-align: top; margin-inline-start: 4px; }
.stat-number p:last-child,
.stat-multiplier p:last-child { color: var(--text-muted); font-size: 15px; margin-top: auto; }

.stat-cta {
    background: linear-gradient(180deg, #ffff00 0%, #dcd8d3 80%);
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
    position: relative;
    min-height: 280px;
}
.stat-cta img {
    width: 100%; height: 100%; object-fit: cover;
    position: absolute; inset: 0; opacity: 0.4;
}
.stat-cta .btn { position: relative; z-index: 1; }

/* ============================================================
   Case study (full-bleed quote)
   ============================================================ */
.case-study {
    position: relative;
    padding-block: 140px;
    color: #fff;
    overflow: hidden;
}
.case-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.case-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.75));
}
.case-study .container { position: relative; z-index: 1; max-width: 900px; }
.eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}
.big-quote {
    margin: 0 0 50px;
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.35;
}
.big-quote p + p { margin-top: 32px; }
.big-quote em { font-style: italic; }
.big-quote .brand { font-style: normal; }

.case-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.case-author h3 { font-size: 18px; font-weight: 700; }
.case-author p { font-size: 15px; color: rgba(255,255,255,0.78); }
.play-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s ease;
}
.play-btn:hover { background: rgba(0, 0, 0, 0.8); }
.play-icon { font-size: 12px; }

/* ============================================================
   Testimonials carousel
   ============================================================ */
.testimonials { padding-block: var(--space-section); text-align: center; }
.testimonials-wrap {
    margin-top: 60px;
    position: relative;
}
.testimonials-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 4px 30px;
    scrollbar-width: none;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.t-card {
    flex: 0 0 380px;
    min-height: 460px;
    border-radius: var(--radius);
    padding: 36px;
    scroll-snap-align: start;
    text-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    position: relative;
}
.t-yellow { background-color: var(--bg-yellow); color: var(--text); }
.t-light  { background-color: var(--bg-card); color: var(--text); }
.t-video  { color: #fff; min-height: 460px; }
.t-video::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    border-radius: var(--radius);
}
.t-video > * { position: relative; z-index: 1; }

.t-quote {
    font-size: 22px;
    line-height: 1.45;
    font-weight: 500;
}
.t-author { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.t-author strong { font-size: 16px; font-weight: 700; }
.t-author span { font-size: 14px; color: var(--text-muted); }
.t-author.light strong, .t-author.light span { color: #fff; }
.t-author.light span { color: rgba(255,255,255,0.78); }

.play-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff; font-size: 20px;
    margin-bottom: auto;
    align-self: flex-start;
    transition: transform .2s ease, background .2s ease;
}
.play-circle:hover { transform: scale(1.05); background: rgba(255,255,255,0.28); }

.carousel-btn {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: #fff;
    font-size: 24px;
    transform: translateY(-50%);
    z-index: 5;
    transition: opacity .2s ease;
}
.carousel-prev { inset-inline-start: -10px; }
.carousel-next { inset-inline-end: -10px; }
.carousel-btn:hover { opacity: 0.85; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: var(--space-section); }
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}
.faq-intro { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 6px 30px;
    transition: background .2s ease;
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    list-style: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    position: relative;
    flex-shrink: 0;
    transition: transform .3s ease;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 12px; transition: transform .3s ease; }

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-body {
    padding: 0 0 24px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Animation on open */
.faq-item[open] .faq-body { animation: faq-slide .3s ease-out; }
@keyframes faq-slide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
    position: relative;
    padding-block: 130px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #6e6862 0%, #2d2a26 100%);
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.55)),
        url('assets/images/bg/mountains-3-1.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.cta-chip {
    display: inline-block;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    margin-bottom: 30px;
}
.cta-title {
    font-family: var(--serif);
    font-size: clamp(50px, 8vw, 130px);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 50px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--bg);
    padding-block: 80px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}
.footer-tagline {
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 700;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 12px; }
.footer-cols a {
    font-size: 15px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s ease;
}
.footer-cols a:hover { border-bottom-color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 20px;
}
.footer-bottom p { font-size: 14px; color: var(--text-muted); }
.socials { display: flex; gap: 8px; }
.socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: background .2s ease;
}
.socials a:hover { background: rgba(0, 0, 0, 0.12); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .three-cards { grid-template-columns: 1fr 1fr; }
    .three-cards .card-img { grid-column: span 2; min-height: 300px; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stat-chat { grid-row: span 2; min-height: 480px; }
    .feature {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 30px;
        position: static;
    }
    .feature-media { min-height: 360px; }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
    .nav-pill { padding: 8px 8px 8px 18px; gap: 14px; flex-wrap: wrap; max-width: calc(100% - 24px); }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        gap: 14px;
        flex-basis: 100%;
        order: 5;
        padding: 14px 6px 6px;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .nav-toggle { display: flex; }

    .hero-title { font-size: clamp(38px, 11vw, 60px); }
    .three-cards {
        grid-template-columns: 1fr;
        padding-block: 16px 50px;
    }
    .three-cards .card-img { grid-column: auto; }
    .card { min-height: 360px; }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-chat { grid-row: auto; min-height: 480px; }

    .feature { padding: 22px; gap: 22px; }
    .feature-text { padding: 12px; }
    .feature-media { min-height: 320px; }

    .case-study { padding-block: 90px; }
    .big-quote { font-size: 22px; }

    .t-card { flex: 0 0 84vw; }
    .carousel-btn { display: none; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ============================================================
   Details modal (Feature popup)
   ============================================================ */
.feature-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.btn-details {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    color: #161514;
    border: 1px solid rgba(0,0,0,0.18);
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
}
.btn-details:hover {
    background: #fff;
    border-color: rgba(0,0,0,0.32);
    transform: translateY(-1px);
}

.trx-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.trx-modal.is-open {
    display: flex;
    animation: trx-modal-in .25s ease-out;
}
@keyframes trx-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.trx-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(6px);
}
.trx-modal-shell {
    position: relative;
    width: min(1280px, 96vw);
    height: min(92vh, 900px);
    background: var(--bg, #EFE9E1);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
}
.trx-modal-close {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
}
.trx-modal-close:hover {
    background: #161514;
    transform: scale(1.06);
}
.trx-modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    flex: 1;
    overflow: hidden;
    direction: rtl;
}
.trx-modal-gallery {
    background: #1a1a1a;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.trx-gallery-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.trx-gallery-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
}
.trx-gallery-img.is-active {
    opacity: 1;
    z-index: 1;
    cursor: zoom-in;
}
.trx-gallery-nav {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    color: #161514;
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
}
.trx-gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.trx-gallery-prev { inset-inline-start: 16px; }
.trx-gallery-next { inset-inline-end: 16px; }
.trx-gallery-counter {
    position: absolute;
    inset-block-end: 16px;
    inset-inline: 0;
    width: fit-content;
    margin-inline: auto;
    direction: ltr;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    z-index: 2;
}
.trx-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: rgba(0,0,0,0.55);
    overflow-x: auto;
    flex-shrink: 0;
}
.trx-gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: none;
    opacity: 0.6;
    transition: opacity .2s, border-color .2s;
}
.trx-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trx-gallery-thumb:hover { opacity: 1; }
.trx-gallery-thumb.is-active {
    opacity: 1;
    border-color: #FFFF00;
}
.trx-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888;
    font-size: 16px;
}

/* ---- Gallery tabs (صور / فيديوهات) ---- */
.trx-gallery-tabs {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #1a1a1a;
    flex-shrink: 0;
    z-index: 3;
}
.trx-gallery-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #d7d7d7;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-pill, 999px);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.trx-gallery-tab i { font-size: 15px; }
.trx-gallery-tab:hover { background: rgba(255,255,255,0.12); color: #fff; }
.trx-gallery-tab.is-active {
    background: var(--bg-green, #12E59A);
    border-color: var(--bg-green, #12E59A);
    color: #08231a;
}

/* ---- Gallery panels: only one visible at a time ---- */
.trx-gallery-panel {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}
.trx-gallery-panel.is-active { display: flex; }

/* ---- Video stage (mirrors the image stage) ---- */
.trx-video-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #000;
}
.trx-video-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity .35s ease;
}
.trx-video-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.trx-video-play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,255,255,0.92);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline-start: 6px;
    transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.trx-video-slide:hover .trx-video-play,
.trx-video-slide:focus-visible .trx-video-play {
    transform: scale(1.08);
    background: var(--bg-green, #12E59A);
    color: #08231a;
    border-color: var(--bg-green, #12E59A);
}
.trx-video-prev { inset-inline-start: 16px; }
.trx-video-next { inset-inline-end: 16px; }

/* ---- Video thumbnails: poster + play badge ---- */
.trx-video-thumb {
    position: relative;
    background: #000;
}
.trx-video-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

.trx-modal-details {
    padding: 32px 36px;
    overflow-y: auto;
    background: var(--bg, #EFE9E1);
    direction: rtl;
}
.trx-modal-title {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 32px);
    margin: 0 0 20px;
    color: var(--text);
    border-bottom: 1px solid var(--border-light, #EBE9E5);
    padding-bottom: 14px;
}
.trx-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
.trx-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trx-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-soft, #DBD7D1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text);
    flex-shrink: 0;
}
.trx-info-icon i { line-height: 1; }
.trx-info-content { flex: 1; min-width: 0; }
.trx-info-label {
    font-size: 12px;
    color: var(--text-muted, #6B6863);
    margin-bottom: 2px;
}
.trx-info-value {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    word-break: break-word;
}
.trx-section { margin-bottom: 22px; }
.trx-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.trx-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-yellow, #FFFF00);
    font-size: 14px;
    color: var(--text);
}
.trx-section-icon i { line-height: 1; }
.trx-contact-icon i { line-height: 1; }
.trx-deed-overlay i { margin-inline-end: 4px; }
.trx-deed-download i { margin-inline-end: 6px; }
/* WhatsApp brand icon — green look */
.trx-contact-whatsapp .trx-contact-icon i { color: #fff; }
.trx-section-area {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trx-area-label {
    font-weight: 600;
    color: var(--text-muted);
}
.trx-area-value {
    font-size: 22px;
    color: var(--text);
    font-family: var(--serif);
}
.trx-boundaries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.trx-boundary {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.trx-boundary-dir {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.trx-boundary-detail {
    font-size: 13px;
    color: var(--text-muted);
}
.trx-boundary-detail strong {
    color: var(--text);
    font-weight: 600;
}
.trx-deed-wrap {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.trx-deed-preview {
    position: relative;
    border: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: #fff;
    max-width: 260px;
    flex: 1 1 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.trx-deed-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.trx-deed-overlay {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    color: #fff;
    padding: 18px 10px 10px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}
.trx-deed-download {
    align-self: center;
    text-decoration: none;
}
.trx-description {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    line-height: 1.8;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.trx-maps-btn {
    display: inline-block;
    text-decoration: none;
}
.trx-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.trx-price {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}
.trx-price-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.trx-price strong {
    font-size: 18px;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 700;
}
.trx-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.trx-contact-btn {
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .2s, box-shadow .2s;
    direction: ltr;
    justify-content: center;
}
.trx-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.trx-contact-whatsapp {
    background: #25D366;
    color: #fff;
}
.trx-contact-phone {
    background: #161514;
    color: #fff;
}
.trx-contact-icon { font-size: 18px; }
.trx-contact-hours {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Deed image lightbox */
.trx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
    padding: 24px;
}
.trx-lightbox.is-open { display: flex; }
.trx-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
    cursor: default;
}
.trx-lightbox img,
.trx-lightbox video {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}
.trx-lightbox iframe {
    width: min(92vw, 1280px);
    height: min(92vh, 720px);
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #000;
}
.trx-lightbox-close {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-end: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s, transform .2s;
}
.trx-lightbox-close:hover { background: #161514; transform: scale(1.06); }
body.trx-lightbox-open { overflow: hidden; }

@media (max-width: 1024px) {
    .trx-modal-body { grid-template-columns: 1fr; grid-template-rows: 320px 1fr; }
    .trx-info-grid { grid-template-columns: 1fr; }
    .trx-boundaries { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .trx-modal-shell { width: 100vw; height: 100vh; border-radius: 0; }
    .trx-modal-details { padding: 22px 18px; }
    .trx-price-row, .trx-contact-row { grid-template-columns: 1fr; }
}

/* Lock body scroll when modal is open */
body.trx-modal-open { overflow: hidden; }

/* ============================================================
   Modal / gallery polish — stage tools, lightbox, mobile,
   logo & floating buttons (2026-06-25)
   ============================================================ */

/* Small action buttons inside the image/video stage (zoom, download) */
.trx-stage-tools {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.trx-stage-tool {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.62);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.trx-stage-tool:hover { background: var(--bg-green, #12E59A); color: #08231a; transform: scale(1.08); }

/* Modal close — border so it reads on any background */
.trx-modal-close { border: 1px solid rgba(255,255,255,0.22); }

/* Lightbox close — clear, visible background */
.trx-lightbox-close {
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.trx-lightbox-close:hover { background: var(--bg-green, #12E59A); color: #08231a; }

/* Lightbox download button (hidden for embedded videos via JS) */
.trx-lightbox-download {
    position: absolute;
    inset-block-start: 20px;
    inset-inline-start: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-pill, 999px);
    background: var(--bg-green, #12E59A);
    color: #08231a;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: transform .2s, filter .2s;
}
.trx-lightbox-download:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Header logo image */
.nav-logo-img { display: block; height: 38px; width: auto; }

/* Floating buttons: WhatsApp + scroll-to-top */
.trx-floats {
    position: fixed;
    inset-block-end: 22px;
    inset-inline-start: 22px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.trx-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform .2s, box-shadow .2s, opacity .25s, visibility .25s;
}
.trx-float-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.trx-float-whatsapp { background: #25D366; }
.trx-float-top {
    background: var(--bg-dark, #161514);
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
}
.trx-float-top.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 600px) {
    .trx-floats { inset-block-end: 16px; inset-inline-start: 16px; gap: 10px; }
    .trx-float-btn { width: 52px; height: 52px; font-size: 22px; }
}

/* ---- Mobile: gallery scrolls with the content (not sticky); close clears the tabs ---- */
@media (max-width: 1024px) {
    .trx-modal-body { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .trx-modal-gallery { height: 62vh; min-height: 300px; padding-top: 60px; }
    .trx-modal-close { inset-block-start: 12px; inset-inline-end: 12px; z-index: 12; background: rgba(0,0,0,0.92); }
}

