/* ============================================================
   GreenLand Expo — greenlandexpo.net
   Single stylesheet for EN (LTR) and AR (RTL) pages.
   ============================================================ */

:root {
  --green-900: #0b3d26;
  --green-800: #11532f;
  --green-700: #14693a;
  --green-600: #177a3c;
  --green-500: #2bb35a;
  --lime-400: #8dc63f;
  --ink: #16201b;
  --ink-soft: #4b5a52;
  --paper: #ffffff;
  --mist: #f3f7f4;
  --line: #e1e9e3;
  --gold: #d9a13b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 61, 38, 0.10);
  --font-en: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", system-ui, sans-serif;
  --font: var(--font-en);
}

html[lang="ar"] { --font: var(--font-ar); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--green-900); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: .6rem;
}
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }

.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 46em; }

.section { padding-block: 4.5rem; }
.section.alt { background: var(--mist); }
.section-head { margin-bottom: 2.4rem; max-width: 50em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-outline { border-color: var(--green-600); color: var(--green-700); }
.btn-outline:hover { background: var(--green-600); color: #fff; }
.btn-whatsapp { background: #25d366; color: #06351f; }
.btn-whatsapp:hover { background: #1ebe5b; color: #06351f; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding-block: .4rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-600); }
.nav a.active { color: var(--green-600); border-bottom-color: var(--green-600); }

.lang-switch {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .35rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  color: var(--green-800);
  background: var(--mist);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--green-600); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--green-900);
  border-radius: 2px;
  transition: all .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--green-900);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides .slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slides .slide.on { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,42,26,.92) 25%, rgba(7,42,26,.55) 60%, rgba(7,42,26,.35));
  z-index: 1;
}
html[dir="rtl"] .hero::after {
  background: linear-gradient(-100deg, rgba(7,42,26,.92) 25%, rgba(7,42,26,.55) 60%, rgba(7,42,26,.35));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 14em; }
.hero .tagline {
  color: var(--lime-400);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .85rem;
  margin-bottom: 1rem;
}
html[lang="ar"] .hero .tagline { letter-spacing: 0; font-size: 1rem; }
.hero p.sub { margin-top: 1.2rem; max-width: 36em; color: rgba(255,255,255,.85); font-size: 1.15rem; }
.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--green-900);
  color: #fff;
  padding-block: 2.6rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--lime-400);
}
.stat .lbl { color: rgba(255,255,255,.8); font-size: .92rem; margin-top: .2rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.card p { color: var(--ink-soft); font-size: .97rem; }
.card .card-logo {
  height: 64px;
  display: flex;
  align-items: center;
  margin-bottom: .4rem;
}
.card .card-logo img { max-height: 64px; width: auto; max-width: 200px; object-fit: contain; }
.card .links { margin-top: auto; padding-top: .6rem; font-weight: 700; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: #1d2a16;
  font-size: .75rem;
  font-weight: 800;
  padding: .25rem .8rem;
  border-radius: 999px;
  width: fit-content;
}
.badge.green { background: var(--green-600); }

.event-meta { display: flex; flex-direction: column; gap: .35rem; font-size: .95rem; }
.event-meta strong { color: var(--green-800); }

.socials { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--green-800);
  transition: all .2s;
}
.socials a:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Split / feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split .pic {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split .pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Icon list (services) ---------- */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.icon-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.icon-list li::before {
  content: "✓";
  color: var(--green-600);
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- Icon grid (service items with brand icons) ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.icon-grid li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: var(--shadow);
}
.icon-grid img { height: 48px; width: auto; }

/* ---------- Card icon / photo ---------- */
.card-icon { height: 44px; width: auto; }
.card-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--mist);
}
.card-photo.fit-contain { object-fit: contain; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-inline-start: 1.8rem; display: grid; gap: 1.6rem; }
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  inset-inline-start: 5px;
  width: 2px;
  background: var(--line);
}
.timeline li { position: relative; }
.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: -1.8rem;
  top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-600);
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--green-600);
}
.timeline .year { font-weight: 800; color: var(--green-600); display: block; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery img {
  border-radius: 14px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(115deg, var(--green-900), var(--green-800) 60%, var(--green-600));
  color: #fff;
  padding-block: 4.2rem;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 44em; margin-top: .8rem; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: .8rem; }
.contact-card ul { display: grid; gap: .55rem; color: var(--ink-soft); }
.contact-card a { font-weight: 600; direction: ltr; unicode-bidi: embed; }

.map-frame {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.78);
  padding-block: 3.5rem 0;
  margin-top: 4rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--lime-400); }
.site-footer ul { display: grid; gap: .5rem; }
.footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: .02em;
}
.footer-brand span { color: var(--lime-400); }
.footer-socials { margin-top: 1rem; display: grid; gap: .6rem; }
.footer-socials .row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.footer-socials .row .who { font-weight: 700; color: #fff; min-width: 9.5em; }
.footer-socials a {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.footer-socials a:hover { background: var(--green-600); color: #fff; }
.footer-socials svg { width: 15px; height: 15px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.2rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.ltr-inline { direction: ltr; unicode-bidi: embed; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; border-radius: 2px; }
.site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .stats :focus-visible { outline-color: var(--lime-400); }

/* ---------- Reveal animation (hidden state only when JS is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset-block-start: 67px;
    inset-inline: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 6%;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: 76vh; }
}
