/* ==========================================================================
   ECONOVO — sections.css
   ========================================================================== */

/* ---- Hero ---- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--sp-96); overflow: hidden; position: relative; }
.hero-bg-shape {
    position: absolute; top: -10%; right: -5%; width: 600px; height: 600px;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-sage) 20%, transparent) 0%, transparent 70%);
    border-radius: 50%; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-64); align-items: center; }
.hero-content h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: var(--sp-24); line-height: 1.06;
    background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .hero-content h1 { background: linear-gradient(135deg, #E7EFEA 0%, var(--color-sage) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-content p { font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: var(--sp-32); max-width: 540px; }
.hero-tags { display: flex; gap: var(--sp-8); flex-wrap: wrap; margin-bottom: var(--sp-24); }
.hero-tag { font-family: var(--font-mono); font-size: .78rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--text-soft); }
.hero-actions { display: flex; gap: var(--sp-16); flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-img-container {
    width: 100%; height: 500px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    background: var(--bg-sunken); border: 2px solid var(--color-sage); position: relative;
}
.hero-img-container img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Empathy / testimonial panel — stays solid+dark for text contrast,
   just gets the same glass sheen border as everything else ---- */
.empathy-box { border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), var(--shadow-lg); }

/* ---- Trust bar (ticker) ---- */
.trust-bar { padding: var(--sp-24) 0; background: var(--glass-lite-bg); border-top: 1px solid var(--glass-lite-border); border-bottom: 1px solid var(--glass-lite-border); overflow: hidden; }
.trust-bar-inner { display: flex; align-items: center; gap: var(--sp-32); }
.trust-label { flex-shrink: 0; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); white-space: nowrap; }
.trust-marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-track { display: flex; align-items: center; gap: var(--sp-32); width: max-content; animation: trustMarquee 26s linear infinite; }
[lang="ar"] .trust-track { animation-name: trustMarqueeRtl; }
.trust-item { font-weight: 600; color: var(--text); font-size: .92rem; opacity: .85; white-space: nowrap; }
.trust-track .dot { color: var(--color-sage); }

@keyframes trustMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes trustMarqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .trust-track { animation: none; } }

/* ---- Stats (ledger row) — one glass panel, real blur (single element, cheap) ---- */
.stats-section { padding: var(--sp-64) 0; }
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur-sm)) saturate(150%); backdrop-filter: blur(var(--glass-blur-sm)) saturate(150%);
    border: 1px solid var(--glass-border); border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-sm);
    overflow: hidden;
}
.stat-cell { padding: var(--sp-32) var(--sp-16); text-align: center; border-right: 1px solid var(--glass-border); }
.stat-cell:last-child { border-right: none; }
[lang="ar"] .stat-cell { border-right: none; border-left: 1px solid var(--glass-border); }
[lang="ar"] .stat-cell:last-child { border-left: none; }
.stat-value { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--brand-dark); margin-bottom: 4px; }
[data-theme="dark"] .stat-value { color: var(--color-sage); }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 600; }

/* ---- Why grid ---- */
.why-grid, .pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-24); }
.why-card, .pillar-card { padding: var(--sp-32); }
.why-card h3, .pillar-card h3 { font-size: 1.4rem; margin-bottom: var(--sp-12); }
.why-card p, .pillar-card p { font-size: 1rem; }

/* ---- Journey timeline (numbered — real sequence) ---- */
.journey-section { background: var(--bg-sunken); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 100%; background: var(--color-sage); transform: translateX(-50%); opacity: .35; }
.timeline-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-48); position: relative; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { width: calc(50% - 40px); padding: var(--sp-24); }
.timeline-content .step-num { font-family: var(--font-mono); font-size: .82rem; color: var(--color-sage); font-weight: 700; display: block; margin-bottom: 6px; }
.timeline-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 22px; height: 22px; background: var(--color-sage); border: 4px solid var(--bg-sunken); border-radius: 50%; z-index: 2; transition: var(--t-base); }
.timeline-item:hover .timeline-dot { background: var(--brand-dark); transform: translate(-50%,-50%) scale(1.25); }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--sp-24); }
.team-card { padding: var(--sp-32) var(--sp-24); text-align: center; }
.team-card .role { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-card .name { font-size: .9rem; color: var(--text-soft); font-family: var(--font-mono); }

/* ---- Events ---- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-24); }
.event-card { padding: var(--sp-32); }
.event-card .eyebrow { margin-bottom: var(--sp-16); }
.event-card h3 { font-size: 1.3rem; margin-bottom: var(--sp-8); }
.event-meta { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-24); padding-top: var(--sp-16); border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: .85rem; color: var(--text-soft); }

/* ---- FAQ wrapper width ---- */
.faq-wrapper { max-width: 800px; margin: 0 auto; }

/* ---- CTA ---- */
.cta-section { background: var(--gradient-primary); color: #fff; text-align: center; padding: var(--sp-128) var(--sp-24); border-radius: var(--r-lg); margin: 0 var(--sp-24); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.cta-section .section-title { color: #fff; }
.cta-section p { color: var(--color-sage); margin-bottom: var(--sp-48); font-size: 1.2rem; }

/* ---- Footer ---- */
.footer { background: var(--brand-dark); color: #fff; padding: var(--sp-96) 0 var(--sp-24); margin-top: var(--sp-96); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-64); margin-bottom: var(--sp-64); }
.footer-brand h3 { font-size: 1.8rem; color: var(--color-sage); margin-bottom: var(--sp-16); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 400px; }
.footer-title { font-size: 1.15rem; margin-bottom: var(--sp-24); color: #fff; }
.footer-links li { margin-bottom: var(--sp-16); }
.footer-links a, .footer-links li { color: rgba(255,255,255,.6); }
.footer-links a:hover { color: var(--color-sage); }
.social-buttons-container { display: flex; flex-direction: column; gap: var(--sp-16); margin-top: var(--sp-32); }
.social-btn { display: flex; align-items: center; gap: var(--sp-16); padding: 12px 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); color: #fff; font-weight: 600; transition: var(--t-base); width: max-content; }
.social-btn:hover { background: var(--color-sage); color: var(--color-obsidian); border-color: var(--color-sage); transform: translateX(5px); }
[lang="ar"] .social-btn:hover { transform: translateX(-5px); }
.social-btn svg { width: 20px; height: 20px; }
.footer-bottom { text-align: center; padding-top: var(--sp-32); border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.4); font-size: .85rem; }

/* ---- Reveal-on-scroll base state (animated via GSAP in animations.js;
       this is the CSS fallback if JS fails to load) ---- */
.reveal { opacity: 0; transform: translateY(32px); transition: all .7s cubic-bezier(.5,0,0,1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: .1s; } .delay-200 { transition-delay: .2s; } .delay-300 { transition-delay: .3s; }
