/* TreeLine — Modern Frontend */
:root {
    --tl-green: #004B18;
    --tl-green-dark: #003310;
    --tl-green-light: #0a6b28;
    --tl-lime: #97C922;
    --tl-lime-dark: #7fb01a;
    --tl-lime-soft: #D9EFA4;
    --tl-cream: #F7FBEA;
    --tl-white: #ffffff;
    --tl-ink: #004B18;
    --tl-muted: #4a6b52;
    --tl-border: #D9EFA4;
    --tl-radius: 16px;
    --tl-radius-lg: 24px;
    --tl-shadow: 0 4px 24px rgba(0, 75, 24, 0.08);
    --tl-shadow-lg: 0 12px 48px rgba(0, 75, 24, 0.14);
    --tl-header-h: 96px;
    --tl-font: 'Cairo', system-ui, sans-serif;
    --tl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overflow-y: scroll; /* شريط تمرير واحد فقط على html */
    max-width: 100%;
    height: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--tl-font);
    color: var(--tl-ink);
    background: var(--tl-white);
    line-height: 1.7;
    overflow: visible;
    max-width: 100%;
    min-height: 100%;
    height: auto;
    position: relative;
}

main {
    overflow: visible;
    max-width: 100%;
}

body.rtl { direction: rtl; }
body.ltr { direction: ltr; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tl-transition); }
ul { list-style: none; }

.container {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

/* ===== HEADER ===== */
.tl-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--tl-transition);
}

.tl-header.scrolled {
    border-bottom-color: var(--tl-border);
    box-shadow: var(--tl-shadow);
}

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

.tl-logo {
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.tl-logo img {
    height: 72px;
    width: auto;
    max-width: 240px;
    min-width: 120px;
    object-fit: contain;
    object-position: center;
}

.tl-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tl-green);
    letter-spacing: 0.04em;
}

.tl-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-nav a {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tl-green-dark);
    transition: all var(--tl-transition);
}

.tl-nav a:hover,
.tl-nav a.active {
    background: var(--tl-lime);
    color: var(--tl-green-dark);
}

.tl-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tl-lang-btn {
    padding: 6px 14px;
    border: 2px solid var(--tl-green);
    border-radius: 999px;
    background: transparent;
    color: var(--tl-green);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--tl-font);
    transition: all var(--tl-transition);
}

.tl-lang-btn:hover {
    background: var(--tl-green);
    color: var(--tl-white);
}

.tl-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.tl-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--tl-green);
    border-radius: 2px;
    transition: all var(--tl-transition);
}

.tl-menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tl-menu-toggle.open span:nth-child(2) { opacity: 0; }
.tl-menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== BUTTONS ===== */
.tl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--tl-font);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--tl-transition);
    text-align: center;
}

.tl-btn-primary {
    background: var(--tl-lime);
    color: var(--tl-green-dark);
    border-color: var(--tl-lime);
}

.tl-btn-primary:hover {
    background: var(--tl-lime-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 239, 130, 0.4);
}

.tl-btn-outline {
    background: transparent;
    color: var(--tl-white);
    border-color: rgba(255,255,255,0.6);
}

.tl-btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--tl-white);
}

.tl-btn-green {
    background: var(--tl-green);
    color: var(--tl-white);
    border-color: var(--tl-green);
}

.tl-btn-green:hover {
    background: var(--tl-green-dark);
    transform: translateY(-2px);
}

.tl-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.tl-btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.tl-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--tl-header-h) + 60px) 0 80px;
    color: var(--tl-white);
    overflow: hidden;
}

.tl-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.tl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22,34,28,0.85) 0%, rgba(54,81,64,0.75) 50%, rgba(54,81,64,0.6) 100%);
    z-index: 1;
}

.tl-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.tl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(217,239,130,0.2);
    border: 1px solid rgba(217,239,130,0.35);
    color: var(--tl-lime);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.tl-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tl-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.92;
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.8;
}

.tl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tl-hero-page {
    min-height: 50vh;
    padding: calc(var(--tl-header-h) + 48px) 0 64px;
}

.tl-hero-page .tl-hero-content {
    text-align: center;
    margin-inline: auto;
}

/* ===== SECTIONS ===== */
.tl-section {
    padding: clamp(64px, 10vw, 100px) 0;
}

.tl-section-alt {
    background: var(--tl-cream);
}

.tl-section-dark {
    background: var(--tl-green);
    color: var(--tl-white);
}

.tl-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.tl-section-label {
    display: inline-block;
    color: var(--tl-green-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.tl-section-dark .tl-section-label { color: var(--tl-lime); }

.tl-section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--tl-green);
    margin-bottom: 16px;
}

.tl-section-dark .tl-section-header h2 { color: var(--tl-white); }

.tl-section-header p {
    color: var(--tl-muted);
    font-size: 1.05rem;
}

.tl-section-dark .tl-section-header p { color: rgba(255,255,255,0.8); }

/* ===== GRID ===== */
.tl-grid {
    display: grid;
    gap: 24px;
}

.tl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tl-grid-4 { grid-template-columns: repeat(4, 1fr); }
.tl-grid-6 { grid-template-columns: repeat(3, 1fr); }

/* ===== CARDS ===== */
.tl-card {
    background: var(--tl-white);
    border-radius: var(--tl-radius);
    overflow: hidden;
    box-shadow: var(--tl-shadow);
    transition: all var(--tl-transition);
    border: 1px solid var(--tl-border);
}

.tl-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tl-shadow-lg);
}

.tl-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.tl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tl-card:hover .tl-card-image img { transform: scale(1.06); }

.tl-card-body {
    padding: 24px;
}

.tl-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(217,239,130,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tl-green);
    margin-bottom: 16px;
}

.tl-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tl-green);
    margin-bottom: 10px;
}

.tl-card-body p {
    color: var(--tl-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.tl-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tl-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.tl-card-link:hover { color: var(--tl-green-light); }

/* ===== STATS ===== */
.tl-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tl-stat {
    text-align: center;
    padding: 32px 20px;
    background: var(--tl-white);
    border-radius: var(--tl-radius);
    box-shadow: var(--tl-shadow);
}

.tl-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--tl-green);
    line-height: 1;
    margin-bottom: 8px;
}

.tl-stat-label {
    color: var(--tl-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== WHY US ===== */
.tl-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--tl-white);
    border-radius: var(--tl-radius);
    border: 1px solid var(--tl-border);
    transition: all var(--tl-transition);
}

.tl-feature:hover {
    border-color: var(--tl-lime);
    box-shadow: var(--tl-shadow);
}

.tl-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tl-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-green-dark);
    font-size: 1.2rem;
}

.tl-feature h4 {
    font-weight: 700;
    color: var(--tl-green);
    margin-bottom: 6px;
}

.tl-feature p {
    color: var(--tl-muted);
    font-size: 0.92rem;
}

/* ===== ABOUT TEASER ===== */
.tl-about-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.tl-about-images {
    position: relative;
}

.tl-about-images img.main {
    border-radius: var(--tl-radius-lg);
    box-shadow: var(--tl-shadow-lg);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.tl-about-images img.secondary {
    position: absolute;
    bottom: -24px;
    inset-inline-end: -24px;
    width: 45%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--tl-radius);
    border: 4px solid var(--tl-white);
    box-shadow: var(--tl-shadow);
}

.tl-about-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--tl-green);
    margin-bottom: 20px;
}

.tl-about-content p {
    color: var(--tl-muted);
    margin-bottom: 24px;
    line-height: 1.9;
}

/* ===== PARTNERS ===== */
.tl-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    align-items: center;
}

.tl-partner-badge {
    padding: 16px 28px;
    background: var(--tl-white);
    border-radius: var(--tl-radius);
    border: 1px solid var(--tl-border);
    font-weight: 700;
    color: var(--tl-green);
    font-size: 0.9rem;
    text-align: center;
    min-width: 140px;
    transition: all var(--tl-transition);
}

.tl-partner-badge:hover {
    border-color: var(--tl-lime);
    box-shadow: var(--tl-shadow);
}

/* ===== CTA DUAL ===== */
.tl-cta-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tl-cta-box {
    padding: 40px;
    border-radius: var(--tl-radius-lg);
    text-align: center;
}

.tl-cta-box.individual {
    background: linear-gradient(135deg, var(--tl-green) 0%, var(--tl-green-dark) 100%);
    color: var(--tl-white);
}

.tl-cta-box.corporate {
    background: linear-gradient(135deg, var(--tl-lime) 0%, var(--tl-lime-dark) 100%);
    color: var(--tl-green-dark);
}

.tl-cta-box h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.tl-cta-box p {
    margin-bottom: 24px;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* ===== FILTERS ===== */
.tl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.tl-filter-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--tl-border);
    background: var(--tl-white);
    color: var(--tl-green);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--tl-font);
    transition: all var(--tl-transition);
}

.tl-filter-btn:hover,
.tl-filter-btn.active {
    background: var(--tl-green);
    color: var(--tl-white);
    border-color: var(--tl-green);
}

.tl-filter-select {
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--tl-border);
    background: var(--tl-white);
    color: var(--tl-green);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--tl-font);
    cursor: pointer;
    min-width: 160px;
}

/* ===== VALUES ===== */
.tl-value {
    text-align: center;
    padding: 32px 20px;
}

.tl-value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(217,239,130,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--tl-green);
}

.tl-value h4 {
    font-weight: 700;
    color: var(--tl-green);
    margin-bottom: 8px;
}

.tl-value p {
    color: var(--tl-muted);
    font-size: 0.9rem;
}

/* ===== VISION MISSION ===== */
.tl-vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tl-vm-card {
    padding: 40px;
    border-radius: var(--tl-radius-lg);
    background: var(--tl-white);
    border: 1px solid var(--tl-border);
}

.tl-vm-card.vision { border-top: 4px solid var(--tl-lime); }
.tl-vm-card.mission { border-top: 4px solid var(--tl-green); }

.tl-vm-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tl-green);
    margin-bottom: 16px;
}

/* ===== CONTACT ===== */
.tl-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.tl-form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--tl-cream);
    padding: 6px;
    border-radius: 999px;
}

.tl-form-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--tl-muted);
    font-weight: 700;
    font-family: var(--tl-font);
    cursor: pointer;
    transition: all var(--tl-transition);
    font-size: 0.9rem;
}

.tl-form-tab.active {
    background: var(--tl-green);
    color: var(--tl-white);
}

.tl-form-panel { display: none; }
.tl-form-panel.active { display: block; }

.tl-form-panels {
    position: relative;
    min-height: 380px;
}

.tl-contact-form-wrap {
    position: relative;
}

.tl-field-error {
    display: block;
    color: #b91c1c;
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 600;
}

/* Anti-bot honeypot — must stay invisible */
.tl-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tl-captcha-group {
    background: rgba(26, 67, 50, 0.06);
    border: 1px solid rgba(26, 67, 50, 0.15);
    border-radius: 12px;
    padding: 16px 18px;
}
.tl-captcha-group label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tl-captcha-group label i { color: var(--tl-green, #004B18); }
.tl-captcha-q {
    color: var(--tl-green, #004B18);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.tl-captcha-input {
    max-width: 180px;
    font-weight: 700;
    font-size: 1.1rem !important;
    text-align: center;
}

.tl-form-group {
    margin-bottom: 20px;
}

.tl-form-group label {
    display: block;
    font-weight: 600;
    color: var(--tl-green);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.tl-form-group input,
.tl-form-group textarea,
.tl-form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--tl-border);
    border-radius: 12px;
    font-family: var(--tl-font);
    font-size: 0.95rem;
    transition: border-color var(--tl-transition);
    background: var(--tl-white);
}

.tl-form-group input:focus,
.tl-form-group textarea:focus,
.tl-form-group select:focus {
    outline: none;
    border-color: var(--tl-green);
}

.tl-form-group textarea { min-height: 120px; resize: vertical; }

.tl-contact-info {
    background: var(--tl-green);
    color: var(--tl-white);
    padding: 40px;
    border-radius: var(--tl-radius-lg);
}

.tl-contact-info a {
    color: inherit;
    word-break: break-word;
}

.tl-contact-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.tl-contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.tl-contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(217,239,130,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-lime);
    flex-shrink: 0;
}

.tl-map {
    border-radius: var(--tl-radius);
    overflow: hidden;
    margin-top: 24px;
    aspect-ratio: 16/9;
    min-height: 220px;
    background: rgba(255,255,255,0.08);
}

.tl-map iframe {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border: 0;
    display: block;
}

.tl-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.tl-alert-success {
    background: rgba(217,239,130,0.3);
    color: var(--tl-green-dark);
    border: 1px solid var(--tl-lime);
}

.tl-alert-error {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.tl-alert-error ul {
    margin-top: 8px;
    padding-inline-start: 20px;
    list-style: disc;
}

.tl-alert-error li { margin-bottom: 4px; font-weight: 500; }

/* ===== FOOTER ===== */
.tl-footer {
    background: var(--tl-green-dark);
    color: rgba(255,255,255,0.85);
    padding: 64px 0 0;
}

.tl-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.tl-footer-logo {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.8;
    opacity: 0.8;
}

.tl-footer h4 {
    color: var(--tl-lime);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tl-footer-links a {
    display: block;
    padding: 6px 0;
    opacity: 0.8;
    transition: all var(--tl-transition);
}

.tl-footer-links a:hover {
    opacity: 1;
    color: var(--tl-lime);
    padding-inline-start: 8px;
}

.tl-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.tl-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tl-white);
    transition: all var(--tl-transition);
}

.tl-social a:hover {
    background: var(--tl-lime);
    color: var(--tl-green-dark);
}

.tl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.7;
}

/* ===== PROJECT DETAIL ===== */
.tl-project-hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--tl-header-h) + 48px) 0 64px;
    color: var(--tl-white);
    background-size: cover;
    background-position: center;
    position: relative;
}

.tl-project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22,34,28,0.9) 0%, rgba(22,34,28,0.4) 100%);
}

.tl-project-hero .container { position: relative; z-index: 1; }

.tl-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
}

.tl-project-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.tl-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tl-gallery img {
    border-radius: var(--tl-radius);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    cursor: pointer;
    transition: transform var(--tl-transition);
}

.tl-gallery img:hover { transform: scale(1.03); }

/* ===== SERVICE CATEGORIES ===== */
.tl-category-label {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(217,239,130,0.3);
    color: var(--tl-green);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== UTILITIES ===== */
.tl-text-center { text-align: center; }
.tl-mt-4 { margin-top: 32px; }
.tl-hidden { display: none !important; }

.tl-project-card[data-hidden="true"] { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tl-grid-3, .tl-grid-4, .tl-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .tl-stats { grid-template-columns: repeat(2, 1fr); }
    .tl-footer-grid { grid-template-columns: 1fr 1fr; }
    .tl-about-teaser { grid-template-columns: 1fr; }
    .tl-contact-grid { grid-template-columns: 1fr; }
    .tl-cta-dual { grid-template-columns: 1fr; }
    .tl-vm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .tl-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .tl-menu-toggle { display: flex; z-index: 1101; position: relative; }

    /* overlay — يعمل على body.tl-nav-mobile أو داخل الهيدر */
    .tl-nav.tl-nav-mobile,
    .tl-header-inner > .tl-nav {
        position: fixed;
        inset: 0;
        top: 0;
        z-index: 1100;
        background: rgba(12, 33, 24, 0.98);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: calc(var(--tl-header-h) + 20px) 20px 40px;
        gap: 8px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }

    .tl-nav:not(.open) {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }

    .tl-nav.open {
        display: flex !important;
        visibility: visible;
        pointer-events: auto;
    }

    .tl-nav a {
        width: 100%;
        text-align: center;
        padding: 16px 14px;
        font-size: 1rem;
        color: #fff !important;
        background: rgba(255,255,255,0.08) !important;
        border-radius: 8px;
        opacity: 1 !important;
        transform: none !important;
    }

    .tl-nav a.active,
    .tl-nav a:hover {
        background: rgba(200, 169, 81, 0.3) !important;
        color: var(--rb-gold, var(--tl-lime)) !important;
    }

    .tl-nav a.active::after,
    .tl-nav a:hover::after { display: none; }

    body.tl-menu-open .tl-header { z-index: 1102; }
    body.tl-menu-open .tl-menu-toggle { z-index: 1103; }
}

@media (max-width: 768px) {
    .tl-grid-2, .tl-grid-3, .tl-grid-4, .tl-grid-6 { grid-template-columns: 1fr; }
    .tl-stats { grid-template-columns: 1fr 1fr; }
    .tl-footer-grid { grid-template-columns: 1fr; }
    .tl-gallery { grid-template-columns: 1fr 1fr; }
    .tl-hero-actions { flex-direction: column; }
    .tl-hero-actions .tl-btn { width: 100%; }
    .tl-about-images img.secondary { display: none; }
}

@media (max-width: 480px) {
    .tl-stats { grid-template-columns: 1fr; }
    .tl-gallery { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   ANIMATIONS & INTERACTIVITY
   ═══════════════════════════════════════ */

/* Page loader */
.tl-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--tl-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.tl-loader--done { opacity: 0; visibility: hidden; pointer-events: none; }
.tl-loader-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tl-lime);
    letter-spacing: 0.05em;
}
.tl-loader-logo-img {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.tl-loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    overflow: hidden;
}
.tl-loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--tl-lime);
    border-radius: 99px;
    animation: tlLoadBar 1s ease-in-out infinite;
}
@keyframes tlLoadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Scroll progress */
.tl-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--tl-lime), var(--tl-green-light));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* Scroll reveal */
.tl-reveal, .tl-reveal-left, .tl-reveal-right, .tl-reveal-scale {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-reveal { transform: translateY(40px); }
.tl-reveal-left { transform: translateX(-40px); }
.tl-reveal-right { transform: translateX(40px); }
.tl-reveal-scale { transform: scale(0.92); }
.tl-revealed { opacity: 1 !important; transform: none !important; }

/* Hero enhancements */
.tl-hero-bg {
    transition: transform 0.1s linear;
    will-change: transform;
}
.tl-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(217,239,130,0.12), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(74,107,84,0.2), transparent);
    z-index: 1;
    pointer-events: none;
}
.tl-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.tl-particle {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background: rgba(217,239,130,0.5);
    border-radius: 50%;
    animation: tlFloatUp linear infinite;
}
@keyframes tlFloatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* Hero text entrance */
body.tl-ready .tl-hero-badge { animation: tlFadeDown 0.8s 0.2s both; }
body.tl-ready .tl-hero h1 { animation: tlFadeDown 0.8s 0.35s both; }
body.tl-ready .tl-hero p { animation: tlFadeDown 0.8s 0.5s both; }
body.tl-ready .tl-hero-actions { animation: tlFadeDown 0.8s 0.65s both; }
@keyframes tlFadeDown {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* Enhanced cards */
.tl-card {
    position: relative;
    overflow: hidden;
}
.tl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217,239,130,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.tl-card:hover::before { opacity: 1; }
.tl-card-tilt { transform-style: preserve-3d; transition: transform 0.15s ease, box-shadow 0.3s ease; }

/* Glowing stat cards */
.tl-stat {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tl-stat::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(217,239,130,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.tl-stat:hover { transform: translateY(-4px); box-shadow: var(--tl-shadow-lg); }
.tl-stat:hover::after { opacity: 1; }

/* Partner marquee feel */
.tl-partner-badge {
    animation: tlPartnerPulse 3s ease-in-out infinite;
}
.tl-partner-badge:nth-child(even) { animation-delay: 1.5s; }
@keyframes tlPartnerPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* CTA boxes glow */
.tl-cta-box {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.tl-cta-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(54,81,64,0.2);
}

/* Filter animation */
.tl-project-card[data-hidden="true"] {
    display: none !important;
}
.tl-project-card.tl-filter-in {
    animation: tlFilterIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tlFilterIn {
    from { opacity: 0; transform: scale(0.94) translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* Lightbox */
.tl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10,18,14,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.tl-lightbox.open { opacity: 1; visibility: visible; }
.tl-lightbox img {
    max-width: min(900px, 95vw);
    max-height: 85vh;
    border-radius: var(--tl-radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-lightbox.open img { transform: scale(1); }
.tl-lightbox-close {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.tl-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* Form focus glow */
.tl-form-group input:focus,
.tl-form-group textarea:focus,
.tl-form-group select:focus {
    box-shadow: 0 0 0 4px rgba(217,239,130,0.25);
}

/* Section decorative line */
.tl-section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--tl-lime), var(--tl-green));
    border-radius: 99px;
    margin: 16px auto 0;
}

/* Gradient mesh background for alt sections */
.tl-section-alt {
    background:
        radial-gradient(ellipse 100% 80% at 0% 0%, rgba(217,239,130,0.06), transparent),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(54,81,64,0.04), transparent),
        var(--tl-cream);
}

/* Feature hover slide */
.tl-feature {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.tl-feature:hover { transform: translateX(6px); }

body.ltr .tl-feature:hover { transform: translateX(-6px); }

/* Button ripple prep */
.tl-btn {
    position: relative;
    overflow: hidden;
}

/* Back to top */
.tl-back-top {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tl-green);
    color: var(--tl-lime);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--tl-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 999;
}
.tl-back-top.visible { opacity: 1; visibility: visible; transform: none; }
.tl-back-top:hover { background: var(--tl-lime); color: var(--tl-green-dark); }

body.tl-menu-open { overflow: hidden; }

