/* =========================================================================
   AGRITEX - International Exhibition of Agricultural and Veterinary Supplies
   Layout uses CSS logical properties so the same rules serve LTR and RTL.
   ========================================================================= */

:root {
  --green-900: #04381d;
  --green-800: #065c2e;
  --green-700: #077a3c;
  --green-600: #0a8f42;
  --green-500: #17a854;
  --green-100: #e4f3ea;
  --green-050: #f2f9f5;

  --orange-600: #d97706;
  --orange-500: #f28b0c;
  --orange-400: #f9a72b;
  --orange-100: #fdf0dc;

  --ink-900: #10201a;
  --ink-700: #2c3f36;
  --ink-500: #5c6f66;
  --ink-300: #97a49e;

  --paper: #ffffff;
  --sand: #f7f7f4;
  --line: #e4e7e4;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, .06), 0 4px 12px rgba(16, 32, 26, .05);
  --shadow-md: 0 10px 30px rgba(16, 32, 26, .09);
  --shadow-lg: 0 24px 60px rgba(16, 32, 26, .14);

  --wrap: 1200px;
  --font-en: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --font: var(--font-en);
}

html[lang="ar"] { --font: var(--font-ar); }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html { overflow-x: clip; }

/* Scroll lock for the mobile drawer and the lightbox. It sits on <html> so the
   body never becomes a scroll container - that would stop .site-header from
   sticking, dropping the drawer's close button out of view on a scrolled page.
   The body padding stands in for the scrollbar that overflow:hidden removes. */
html.is-scroll-locked { overflow: hidden; }
html.is-scroll-locked body { padding-inline-end: var(--scrollbar-gap, 0px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  /* `clip` rather than `hidden`: the closed mobile nav is a fixed element
     translated 110% off-screen, which escapes an ancestor's `hidden` and
     added ~350px of pannable width on phones. `clip` also avoids making the
     body a scroll container, which would break the sticky header. */
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.4; }

p { margin: 0 0 1em; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--orange-600); }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -100px;
  z-index: 200;
  background: var(--green-700);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 0; color: #fff; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 17px; height: 17px; }
.icon--lg { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 22px rgba(10, 143, 66, .28); }
.btn--primary:hover { background: var(--green-700); color: #fff; }
.btn--accent { background: var(--orange-500); color: #23160a; box-shadow: 0 8px 22px rgba(242, 139, 12, .32); }
.btn--accent:hover { background: var(--orange-400); color: #23160a; }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--green-800); border-color: #fff; }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { color: var(--orange-600); }
.btn--outline { border-color: var(--green-600); color: var(--green-700); }
.btn--outline:hover { background: var(--green-600); color: #fff; }
.btn__arrow { transition: transform .2s ease; }
[dir="rtl"] .btn__arrow { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: scaleX(-1) translateX(3px); }

/* ------------------------------------------------------------------ Top bar */
.topbar {
  background: var(--green-900);
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar__event { display: flex; align-items: center; gap: .45rem; margin: 0; }
.topbar__right { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.topbar__link, .topbar__lang {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255, 255, 255, .82);
}
.topbar__link:hover, .topbar__lang:hover { color: var(--orange-400); }
.topbar__lang {
  border-inline-start: 1px solid rgba(255, 255, 255, .2);
  padding-inline-start: 1.2rem;
  font-weight: 600;
}
@media (max-width: 800px) {
  .topbar__event { display: none; }
  .topbar__inner { justify-content: center; }
}
@media (max-width: 480px) {
  .topbar__link span { display: none; }
}

/* ------------------------------------------------------------------ Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* No backdrop-filter here: it would make the header a containing block for
     the position:fixed mobile drawer, anchoring the drawer to the header box
     (40px down, and moving as the header sticks) instead of the viewport.
     The background is opaque anyway, so the blur bought nothing. */
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: flex; align-items: center; }
.brand__logo { width: auto; height: 46px; object-fit: contain; }
@media (max-width: 420px) { .brand__logo { height: 38px; } }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__list { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  display: block;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-700);
  position: relative;
}
.nav__link:hover { color: var(--green-700); background: var(--green-050); }
.nav__link.is-active { color: var(--green-700); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: .7rem;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange-500);
}

.nav-toggle {
  display: none;
  /* Positioned and stacked so the button stays above the open nav panel:
     .nav is fixed, and a static toggle would be painted over by it, leaving
     no visible way to close the menu. */
  position: relative;
  z-index: 2;
  background: var(--green-050);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem;
  color: var(--green-800);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1080px) {
  .nav__link { padding: .5rem .45rem; font-size: .88rem; }
  .nav { gap: .8rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 7rem 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(110%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
  }
  [dir="rtl"] .nav { transform: translateX(-110%); }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .3s ease, visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link { padding: .8rem .6rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.is-active::after { display: none; }
  .nav__cta { justify-content: center; margin-top: .5rem; }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 30, 18, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 99;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--sand { background: var(--sand); }
.section--green {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: rgba(255, 255, 255, .85);
}
.section--green h2, .section--green h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: .8rem;
}
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: .85rem; }
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}
.section--green .kicker { color: var(--orange-400); }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-lead { font-size: 1.06rem; color: var(--ink-500); margin: 0; }
.section--green .section-lead { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(242, 139, 12, .28), transparent 60%),
    linear-gradient(155deg, #04381d 0%, #076134 48%, #0a8f42 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: .38rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.hero__badge b { color: var(--orange-400); }
.hero__title {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.hero__full {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  color: var(--orange-400);
  margin-bottom: 1.1rem;
}
.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .84);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__meta-item { display: flex; align-items: flex-start; gap: .65rem; }
.hero__meta-item .icon { color: var(--orange-400); margin-top: .15rem; }
.hero__meta-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
html[lang="ar"] .hero__meta-label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.hero__meta-value { font-weight: 600; color: #fff; }

.hero__card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero__card-logo {
  /* White panel on purpose: the field mark is mid-green and loses contrast
     against the hero's own green. */
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem;
}
.hero__card-logo img { margin-inline: auto; max-height: 104px; width: auto; object-fit: contain; }
.hero__card-title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.hero__card-list { display: grid; gap: .6rem; }
.hero__card-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; color: rgba(255, 255, 255, .88); }
.hero__card-list .icon { color: var(--orange-400); margin-top: .2rem; }

.countdown { display: flex; gap: .6rem; margin-top: 1.5rem; }
.countdown__cell {
  flex: 1;
  background: rgba(0, 0, 0, .22);
  border-radius: 12px;
  padding: .7rem .3rem;
  text-align: center;
}
.countdown__num { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.countdown__label { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
html[lang="ar"] .countdown__label { letter-spacing: 0; text-transform: none; font-size: .75rem; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero__card { max-width: 480px; }
}

/* ------------------------------------------------------------------ Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--orange-500));
}
.stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat__label { font-size: .9rem; color: var(--ink-500); }
.stats-note { margin-top: 1.25rem; font-size: .87rem; color: var(--ink-300); text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split--wide-start { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split--wide-start { grid-template-columns: 1fr; } }

.figure-stack { position: relative; }
.figure-stack__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  box-shadow: var(--shadow-lg);
  padding: 3rem 2rem;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.figure-stack__main img { max-width: 100%; max-height: 190px; width: auto; }
.figure-stack__tag {
  position: absolute;
  inset-block-end: -22px;
  inset-inline-start: 24px;
  background: var(--orange-500);
  color: #23160a;
  font-weight: 700;
  border-radius: 12px;
  padding: .8rem 1.2rem;
  box-shadow: var(--shadow-md);
}
.figure-stack__tag span { display: block; font-size: .72rem; font-weight: 600; opacity: .8; }

/* ------------------------------------------------------------------ Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  scroll-margin-top: 120px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 1.1rem;
}
.card--accent .card__icon { background: var(--orange-100); color: var(--orange-600); }
.card__title { font-size: 1.1rem; margin-bottom: .45rem; }
.card__text { margin: 0; font-size: .95rem; color: var(--ink-500); }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Timeline */
.timeline { position: relative; display: grid; gap: 1.6rem; padding-inline-start: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: .6rem;
  inset-inline-start: .42rem;
  width: 2px;
  background: linear-gradient(var(--green-500), var(--orange-400));
  border-radius: 2px;
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -2.2rem;
  top: .5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-600);
}
.timeline__year { font-weight: 800; color: var(--orange-600); font-size: 1.05rem; }
.timeline__text { margin: .2rem 0 0; color: var(--ink-500); font-size: .96rem; }

/* ------------------------------------------------------------------ Lists */
.check-list { display: grid; gap: .75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; }
.check-list .icon {
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 50%;
  padding: 3px;
  width: 22px;
  height: 22px;
  margin-top: .18rem;
}
.check-list--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .check-list--two { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.step::before {
  content: counter(step);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-600);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.step p { margin: .3rem 0 0; }

/* ------------------------------------------------------------------ Info table */
.info-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.info-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-row__label { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink-900); }
.info-row__label .icon { color: var(--green-600); }
.info-row__value { color: var(--ink-500); }
@media (max-width: 560px) { .info-row { grid-template-columns: 1fr; gap: .2rem; } }

/* ------------------------------------------------------------------ News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--green-700), var(--green-500));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .5);
  overflow: hidden;
}
.news-card__media .icon { width: 44px; height: 44px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }

/* Full article blocks on news.php: image beside the text, stacked on mobile. */
.news-article {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  scroll-margin-top: 120px;
}
.news-article:only-child, .news-article:not(:has(.news-article__media)) { grid-template-columns: 1fr; }
.news-article__media { background: linear-gradient(140deg, var(--green-700), var(--green-500)); min-height: 220px; }
.news-article__media img { width: 100%; height: 100%; object-fit: cover; }
.news-article__body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.news-article__title { font-size: clamp(1.15rem, 2.4vw, 1.45rem); margin-bottom: .45rem; }
.news-article__lead { font-weight: 600; color: var(--ink-700); }
@media (max-width: 780px) {
  .news-article { grid-template-columns: 1fr; }
  .news-article__media { aspect-ratio: 16 / 9; min-height: 0; }
}
.news-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; font-size: .8rem; color: var(--ink-300); }
.tag {
  background: var(--orange-100);
  color: var(--orange-600);
  border-radius: 999px;
  padding: .15rem .65rem;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
}
.news-card__title { font-size: 1.08rem; margin-bottom: .4rem; }
.news-card__lead { font-size: .93rem; color: var(--ink-500); flex: 1; }
.news-card__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; margin-top: .8rem; }
[dir="rtl"] .news-card__link .icon { transform: scaleX(-1); }

.article { max-width: 760px; }
.article__body { font-size: 1.05rem; }
.article__meta { color: var(--ink-300); font-size: .9rem; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------ Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--green-800), var(--green-500));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__open {
  all: unset;
  display: block;
  position: absolute;
  inset: 0;
  cursor: zoom-in;
}
.gallery__open:focus-visible { outline: 3px solid var(--orange-500); outline-offset: -3px; }
.gallery__ph { color: rgba(255, 255, 255, .45); display: grid; place-items: center; gap: .5rem; text-align: center; padding: 1rem; }
.gallery__ph .icon { width: 36px; height: 36px; }
.gallery__ph span { font-size: .82rem; }
.gallery__caption {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(4, 40, 22, .85));
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
}
.gallery-hint { margin-top: 1.2rem; font-size: .87rem; color: var(--ink-300); }

/* ------------------------------------------------------------------ Lightbox */
/* The author `display` below outranks the UA sheet's `[hidden]{display:none}`,
   so the hidden state has to be restated explicitly. */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 24, 14, .93);
  backdrop-filter: blur(4px);
}
.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #0b1f14;
}
.lightbox__caption { color: rgba(255, 255, 255, .85); font-size: .95rem; text-align: center; }
.lightbox__close,
.lightbox__nav {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--orange-500); color: #23160a; transform: scale(1.06); }
.lightbox__close { position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; }
.lightbox__nav--prev .icon { transform: scaleX(-1); }
[dir="rtl"] .lightbox__nav--prev .icon { transform: none; }
[dir="rtl"] .lightbox__nav--next .icon { transform: scaleX(-1); }
@media (max-width: 640px) {
  .lightbox { gap: .4rem; padding: 1rem .5rem; }
  .lightbox__close, .lightbox__nav { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------------ Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: rgba(255, 255, 255, .85);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.contact-card h3 { color: #fff; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .icon { color: var(--orange-400); margin-top: .25rem; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--orange-400); }
.contact-list__label { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
html[lang="ar"] .contact-list__label { letter-spacing: 0; text-transform: none; font-size: .82rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink-900); }
.field label .opt { font-weight: 400; color: var(--ink-300); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field.has-error input, .field.has-error textarea { border-color: #d64545; box-shadow: 0 0 0 3px #fbe4e4; }
.field__error { display: block; color: #c53030; font-size: .82rem; margin-top: .3rem; }

.alert { display: flex; gap: .7rem; align-items: flex-start; border-radius: 12px; padding: .95rem 1.1rem; margin-bottom: 1.4rem; font-size: .94rem; }
.alert--ok { background: var(--green-100); color: var(--green-800); }
.alert--err { background: #fdecec; color: #a52a2a; }
.alert .icon { margin-top: .15rem; flex: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ------------------------------------------------------------------ Page hero */
.page-hero {
  background:
    radial-gradient(800px 420px at 85% -30%, rgba(242, 139, 12, .25), transparent 62%),
    linear-gradient(150deg, #04381d, #077a3c);
  color: #fff;
  padding-block: clamp(2.8rem, 6vw, 4.5rem);
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .84rem; color: rgba(255, 255, 255, .6); margin-bottom: .9rem; }
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: var(--orange-400); }

/* ------------------------------------------------------------------ CTA band */
.cta-band { background: var(--orange-500); color: #23160a; padding-block: 2.8rem; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__title { color: #23160a; font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: .35rem; }
.cta-band__text { margin: 0; max-width: 62ch; color: #4a3312; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .7); padding-top: 3.5rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer__logo { width: auto; max-width: 260px; max-height: 104px; object-fit: contain; margin-bottom: 1.2rem; }
.footer__desc { color: #fff; font-weight: 600; margin-bottom: .3rem; }
.footer__tagline { color: rgba(255, 255, 255, .6); font-size: .88rem; }
.footer__heading { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
html[lang="ar"] .footer__heading { letter-spacing: 0; text-transform: none; font-size: 1.02rem; }
.footer__list { display: grid; gap: .55rem; }
.footer__list a { color: rgba(255, 255, 255, .7); }
.footer__list a:hover { color: var(--orange-400); }
.footer__list--contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__list--contact .icon { color: var(--orange-400); margin-top: .2rem; }

.socials { display: flex; gap: .55rem; margin-top: 1.2rem; }
.social {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.social:hover { background: var(--orange-500); color: #23160a; transform: translateY(-2px); }

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-partner { display: flex; align-items: center; gap: .9rem; }
.footer-partner__label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
html[lang="ar"] .footer-partner__label { letter-spacing: 0; text-transform: none; font-size: .84rem; }
.footer-partner__name { color: #fff; font-weight: 700; }
.footer-partner img { height: 46px; width: auto; object-fit: contain; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.1rem; font-size: .85rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------ Floating WhatsApp */
.wa-float {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #06341a;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); color: #06341a; }

/* ------------------------------------------------------------------ Reveal */
/* Scoped to .js (set by an inline script in the head) so that if JavaScript
   is blocked or main.js fails to load, every section is simply visible
   instead of the whole page rendering blank. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
