/* =========================================================
   Asinil Agricultural Development — main stylesheet
   ========================================================= */
:root {
  --green-900: #0d3008;
  --green-800: #174a0b;
  --green-700: #1f5f12;
  --green-600: #2c7a1a;
  --lime: #5fd31c;
  --lime-soft: #e9f8dc;
  --sand: #f6f1e6;
  --sand-2: #ece3d0;
  --ink: #18210f;
  --muted: #5e6857;
  --line: #e2dccd;
  --white: #ffffff;
  --gold: #c9971f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(13, 48, 8, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(13, 48, 8, 0.35);
  --container: 1200px;
  --font-body: "Tajawal", system-ui, sans-serif;
  --font-display: "El Messiri", "Tajawal", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; margin: 0 0 .5em; color: var(--green-900); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--green-900); color: #dfe9d8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .95rem; color: var(--green-600);
  letter-spacing: .02em; margin-bottom: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--lime); }
.section-dark .eyebrow { color: var(--lime); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--lime); }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-dark .lead { color: #c5d4bc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); cursor: pointer; transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-800); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lime { background: var(--lime); color: var(--green-900); }
.btn-lime:hover { background: #73e532; color: var(--green-900); transform: translateY(-2px); }
.btn-outline { border-color: currentColor; color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--green-900); }
.btn-sm { padding: .5em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--green-900); color: #c9d8c0; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #c9d8c0; }
.topbar a:hover { color: var(--lime); }
.topbar .items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar i { color: var(--lime); margin-inline-end: 6px; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 500; border-radius: 10px;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--green-700); background: var(--lime-soft); }
.nav-links .has-menu > a::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75em; margin-inline-start: 6px; }
.submenu {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 240px; padding: 8px; list-style: none; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.submenu a:hover { background: var(--lime-soft); color: var(--green-700); }
.submenu i { width: 20px; color: var(--green-600); text-align: center; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--green-900); cursor: pointer; padding: 8px; }

@media (max-width: 1020px) {
  .topbar .social { display: none; }
  .menu-toggle { display: block; }
  .nav-cta .btn { display: none; }
  .nav-links {
    position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 20px 24px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 80px); overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .site-header.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a.nav-link { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 12px 6px; }
  .nav-links .has-menu > a::after { display: none; }
  .nav-links .mobile-cta { display: block; padding-top: 16px; }
}
@media (min-width: 1021px) { .nav-links .mobile-cta { display: none; } }
@media (max-width: 600px) {
  .topbar .container { justify-content: center; }
  .topbar .items { gap: 14px; font-size: .82rem; }
  .brand img { height: 42px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: var(--white);
  background: var(--green-900) center/cover no-repeat; isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(10,38,6,.92) 0%, rgba(10,38,6,.7) 45%, rgba(10,38,6,.25) 100%);
}
.hero .container { padding-block: 80px; }
.hero-content { max-width: 680px; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero h1 span { color: var(--lime); }
.hero p { font-size: 1.2rem; color: #dbe7d3; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: .92rem; margin-bottom: 18px;
}
.hero-badge i { color: var(--lime); }

/* ---------- Stats strip ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -64px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 22px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--green-700); line-height: 1.2; }
.stat .label { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- About / intro ---------- */
.img-stack { position: relative; }
.img-stack .main { border-radius: var(--radius-lg); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; box-shadow: var(--shadow-lg); }
.img-stack .badge {
  position: absolute; inset-block-end: -24px; inset-inline-end: -10px; background: var(--green-700); color: var(--white);
  padding: 18px 24px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.img-stack .badge strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--lime); }
@media (max-width: 600px) { .img-stack .badge { inset-inline-end: 12px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75rem;
  flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime-soft); color: var(--green-700); margin-top: 4px;
}

/* ---------- Mission / Vision ---------- */
.mv-card {
  position: relative; padding: 36px 32px; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); height: 100%; overflow: hidden;
}
.mv-card .icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--green-700); color: var(--lime); margin-bottom: 18px;
}
.mv-card p { font-size: 1.08rem; color: var(--muted); margin: 0; }
.section-dark .mv-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section-dark .mv-card p { color: #c9d8c0; }
.section-dark .mv-card .icon { background: var(--lime); color: var(--green-900); }

/* ---------- Category tiles ---------- */
.cat-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 28px;
  border-radius: var(--radius-lg); overflow: hidden; color: var(--white); isolation: isolate; box-shadow: var(--shadow);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,38,6,.95) 10%, rgba(10,38,6,.35) 60%, rgba(10,38,6,.1)); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--green-900); font-size: 1.4rem; margin-bottom: 14px; }
.cat-tile h3 { color: var(--white); font-size: 1.6rem; margin-bottom: .2em; }
.cat-tile .en { font-size: .85rem; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.cat-tile p { color: #d6e3cd; margin: .6em 0 1em; }
.cat-tile .more { color: var(--lime); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.cat-tile .count { position: absolute; top: 20px; inset-inline-end: 20px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }

/* ---------- Project card ---------- */
.project-card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: .3s ease; height: 100%;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--green-800); }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .media img { transform: scale(1.05); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; background: var(--lime-soft); color: var(--green-700);
}
.chip.on-media { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(255,255,255,.95); }
.chip.status { position: absolute; top: 14px; inset-inline-end: 14px; background: var(--green-700); color: var(--white); }
.chip.status.completed { background: var(--gold); }
.chip.status.planned { background: #5b6b7b; }
.project-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-card h3 { margin: 0; font-size: 1.25rem; }
.project-card h3 a { color: var(--green-900); }
.project-card h3 a:hover { color: var(--green-600); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.meta i { color: var(--green-600); margin-inline-end: 5px; }
.project-card .summary { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; }
.project-card .actions .btn { flex: 1; }

/* ---------- Progress ---------- */
.progress-block .progress-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.progress-block .progress-head .pct { font-family: var(--font-display); color: var(--green-700); font-size: 1.15rem; }
.progress { height: 10px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--green-600));
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
[dir="rtl"] .progress-bar { background: linear-gradient(270deg, var(--lime), var(--green-600)); }
.progress.lg { height: 16px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font: 700 .97rem var(--font-body); color: var(--ink); cursor: pointer; transition: .2s; display: inline-flex; gap: 8px; align-items: center;
}
.filter-btn i { color: var(--green-600); }
.filter-btn:hover { border-color: var(--green-600); }
.filter-btn.active { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.filter-btn.active i { color: var(--lime); }
.filter-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.filter-row .filters { margin: 0; justify-content: flex-start; }
.select {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font: 500 .97rem var(--font-body); background: var(--white); color: var(--ink);
}
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Steps ---------- */
.step { position: relative; padding: 30px 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); height: 100%; }
.step .n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--lime); line-height: 1; margin-bottom: 12px; -webkit-text-stroke: 1px var(--green-700); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(36px, 6vw, 64px);
  background: var(--green-800) center/cover; color: var(--white); isolation: isolate;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(13,48,8,.95), rgba(13,48,8,.75)); }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #d6e3cd; margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page header ---------- */
.page-hero {
  position: relative; color: var(--white); padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px);
  background: var(--green-900) center/cover; isolation: isolate;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,38,6,.95), rgba(10,38,6,.6)); }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { color: #d6e3cd; max-width: 640px; font-size: 1.12rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 14px; font-size: .92rem; color: #b9cdb0; }
.breadcrumb a { color: #e3eedc; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 8px; opacity: .6; }
.page-hero .chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.page-hero .chip { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.page-hero .chip i { color: var(--lime); }

/* ---------- Project detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
@media (max-width: 1020px) { .detail-layout { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card + .card { margin-top: 28px; }
.card h2 { font-size: 1.5rem; }
.progress-card { background: var(--sand); border: 0; }
.progress-card .big { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.progress-card .big .pct { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.progress-card .big .lbl { color: var(--muted); font-weight: 500; }
.timeline { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ""; position: absolute; top: 28px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--sand-2); }
.timeline li:last-child::after { display: none; }
.timeline .dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--white); border: 2px solid var(--sand-2); color: var(--muted); z-index: 1; }
.timeline .done .dot { background: var(--green-700); border-color: var(--green-700); color: var(--white); }
.timeline .done::after { background: var(--green-600); }
.timeline .current .dot { background: var(--lime); border-color: var(--lime); color: var(--green-900); box-shadow: 0 0 0 6px rgba(95,211,28,.25); }
.timeline .t-title { font-weight: 700; }
.timeline .t-state { font-size: .85rem; color: var(--muted); }
.timeline .current .t-state { color: var(--green-600); font-weight: 700; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--muted); }
.facts .v { font-weight: 700; text-align: end; }
.sticky-side { position: sticky; top: 100px; display: grid; gap: 24px; }
.invest-box { background: var(--green-800); color: #dbe7d3; border: 0; }
.invest-box h3 { color: var(--white); }
.invest-box .btn { margin-top: 10px; }
.invest-box .note { font-size: .85rem; color: #a9c09d; margin: 14px 0 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery.large { grid-template-columns: repeat(4, 1fr); }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--green-800); }
.gallery a:first-child.feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery a::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 1.5rem; background: rgba(13,48,8,.45); opacity: 0; transition: .3s; }
.gallery a:hover::after { opacity: 1; }
.gallery .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 14px 10px; color: var(--white); font-size: .9rem; font-weight: 700; background: linear-gradient(0deg, rgba(10,38,6,.85), transparent); z-index: 1; }
@media (max-width: 900px) { .gallery.large { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery, .gallery.large { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,20,4,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 100%); border-radius: var(--radius); object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.lightbox button:hover { background: var(--lime); color: var(--green-900); }
.lightbox .lb-close { top: 16px; inset-inline-end: 16px; }
.lightbox .lb-prev { inset-inline-start: 16px; top: 50%; }
.lightbox .lb-next { inset-inline-end: 16px; top: 50%; }
.lightbox .lb-cap { position: absolute; bottom: 18px; inset-inline: 0; text-align: center; color: #dbe7d3; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--sand); border-radius: 999px; margin-bottom: 26px; }
.tab { border: 0; background: transparent; padding: 11px 8px; border-radius: 999px; font: 700 .97rem var(--font-body); color: var(--muted); cursor: pointer; transition: .2s; }
.tab i { margin-inline-end: 6px; }
.tab.active { background: var(--green-700); color: var(--white); box-shadow: var(--shadow); }
@media (max-width: 480px) { .tab { font-size: .8rem; padding: 10px 4px; white-space: nowrap; } .tab i { display: none; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fdfcf9;
  font: 500 1rem var(--font-body); color: var(--ink); transition: .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: var(--white); box-shadow: 0 0 0 4px rgba(95,211,28,.18); }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .85rem; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.form-note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.form-success { text-align: center; padding: 20px 6px; }
.form-success .icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--lime-soft); color: var(--green-700); font-size: 2rem; }
.form-success .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hidden { display: none !important; }

/* ---------- Contact ---------- */
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.info-card .icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green-700); color: var(--lime); font-size: 1.2rem; }
.info-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.info-card p, .info-card a { margin: 0; color: var(--muted); }
.info-card a:hover { color: var(--green-700); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius-lg); filter: saturate(.85); }

/* ---------- Values / timeline (about) ---------- */
.value { padding: 28px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); height: 100%; }
.value i { font-size: 1.6rem; color: var(--green-600); margin-bottom: 12px; }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); margin: 0; font-size: .97rem; }
.history { position: relative; display: grid; gap: 22px; }
.history::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 2px; background: rgba(255,255,255,.18); }
.history .item { width: calc(50% - 36px); position: relative; padding: 22px 24px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.history .item:nth-child(even) { margin-inline-start: auto; }
.history .item::before { content: ""; position: absolute; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(95,211,28,.25); }
.history .item:nth-child(odd)::before { inset-inline-end: -44px; }
.history .item:nth-child(even)::before { inset-inline-start: -44px; }
.history .year { font-family: var(--font-display); color: var(--lime); font-size: 1.6rem; font-weight: 700; }
.history h3 { color: var(--white); font-size: 1.15rem; margin: 4px 0; }
.history p { color: #c5d4bc; margin: 0; font-size: .97rem; }
@media (max-width: 760px) {
  .history::before { inset-inline-start: 7px; }
  .history .item { width: auto; margin-inline-start: 34px !important; }
  .history .item::before { inset-inline-start: -34px !important; inset-inline-end: auto !important; }
}
.loc-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.loc-list li { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; }
.loc-list i { color: var(--green-600); margin-inline-end: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #b9cdb0; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer img.flogo { height: 54px; width: auto; margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9cdb0; }
.site-footer a:hover { color: var(--lime); }
.site-footer .contact li { display: flex; gap: 10px; }
.site-footer .contact i { color: var(--lime); margin-top: 6px; width: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: var(--white); }
.socials a:hover { background: var(--lime); color: var(--green-900); border-color: var(--lime); }
.copyright { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp & back-to-top ---------- */
.float-wa {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--white); display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
}
.float-wa:hover { color: var(--white); transform: scale(1.06); }
.to-top {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--green-700); color: var(--white); cursor: pointer; opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .progress-bar { transition: none; }
  html { scroll-behavior: auto; }
}

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.center-actions { display: flex; justify-content: center; margin-top: 40px; }

/* =========================================================
   Language support (Arabic RTL / English LTR)
   ========================================================= */
/* Hide the page for a split second while English texts are applied (avoids a flash of Arabic) */
html.i18n-pending body { visibility: hidden; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--green-900); font-weight: 700; font-size: .95rem; background: var(--white);
  transition: .2s; white-space: nowrap;
}
.lang-btn i { color: var(--green-600); }
.lang-btn:hover { border-color: var(--green-600); color: var(--green-700); background: var(--lime-soft); }
.lang-btn[lang="ar"], .lang-btn.on-dark:lang(en) { font-family: var(--font-body); }
.lang-btn.on-dark { background: transparent; border-color: rgba(255,255,255,.25); color: #dfe9d8; padding: 5px 12px; font-size: .88rem; }
.lang-btn.on-dark i { color: var(--lime); }
.lang-btn.on-dark:hover { background: var(--lime); color: var(--green-900); border-color: var(--lime); }
.lang-btn.on-dark:hover i { color: var(--green-900); }
@media (max-width: 600px) { .lang-btn { padding: 7px 11px; font-size: .88rem; } }

/* Mirror direction-dependent visuals in English */
[dir="ltr"] .dir-arrow { transform: scaleX(-1); }
[dir="ltr"] .hero::before { background: linear-gradient(90deg, rgba(10,38,6,.92) 0%, rgba(10,38,6,.7) 45%, rgba(10,38,6,.25) 100%); }
[dir="ltr"] .cta-band::before { background: linear-gradient(90deg, rgba(13,48,8,.95), rgba(13,48,8,.75)); }
[dir="ltr"] .nav-links a.nav-link { font-size: .97rem; }
[dir="ltr"] .nav-links a.nav-link { padding-inline: 12px; }
[dir="ltr"] body { line-height: 1.7; }
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3 { line-height: 1.25; letter-spacing: -.005em; }
.cat-tile .en:lang(ar) { text-transform: none; letter-spacing: 0; font-size: .95rem; }

/* Map loads only on request (keeps the contact page fast) */
.map-box { margin-top: 24px; }
.map-placeholder {
  height: 260px; border-radius: var(--radius-lg); border: 1px dashed var(--sand-2);
  background: var(--sand) repeating-linear-gradient(45deg, transparent 0 18px, rgba(23,74,11,.04) 18px 36px);
  display: grid; place-items: center; align-content: center; gap: 16px; text-align: center;
}
.map-placeholder > i { font-size: 2.6rem; color: var(--green-600); }
.map-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Photo credits table */
table.credits { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
table.credits th, table.credits td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.credits th { background: var(--sand); font-weight: 700; color: var(--green-900); }
table.credits a { word-break: break-word; }

/* spam trap field (hidden from people) */
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
