﻿:root {
  --bg: #f2f5ef;
  --paper: #fbfcf8;
  --ink: #10231a;
  --muted: #66756c;
  --line: rgba(16, 35, 26, .12);
  --green-900: #08371f;
  --green-700: #0d6538;
  --green-500: #139755;
  --teal: #10969a;
  --gold: #b99451;
  --clay: #c66f3f;
  --purple: #884b8f;
  --shadow: 0 24px 70px rgba(7, 38, 22, .16);
  --radius: 10px;
}

body.dark {
  --bg: #09130f;
  --paper: #111e18;
  --ink: #eef8f1;
  --muted: #a9bbb0;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.topline {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 7px 18px;
  color: rgba(255,255,255,.86);
  background: var(--green-900);
  font-size: 13px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 286px;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(185,148,81,.5);
}
.brand strong, .brand small { display: block; }
.brand strong {
  color: var(--green-700);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}
.brand small {
  color: var(--muted);
  font-size: 12px;
}

html[lang="en"] .brand strong {
  color: var(--green-700);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}
html[lang="en"] .brand small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}
body.dark .main-nav { background: rgba(255,255,255,.04); }
.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.main-nav a:hover, .main-nav a.active {
  color: white;
  background: var(--green-700);
}

.header-tools { display: flex; gap: 8px; justify-content: end; }
.tool-button, .menu-button {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}
.menu-button { display: none; place-items: center; gap: 4px; border-radius: var(--radius); }
.menu-button span { display: block; width: 18px; height: 2px; background: currentColor; }
.tool-button.lang-switch { display: grid; place-items: center; font-size: 12px; font-weight: 900; text-decoration: none; }
.drawer a.lang-switch { color: var(--green-700, var(--green)); }

.drawer {
  position: fixed;
  top: 126px;
  left: 16px;
  right: 16px;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.drawer.open { display: grid; }
.drawer a {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  font-weight: 800;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: start center;
  padding: 12vh 18px;
  background: rgba(5, 20, 13, .56);
  backdrop-filter: blur(8px);
}
.search-panel.open { display: grid; }
.search-box {
  width: min(760px, 100%);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.search-box button {
  float: left;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--green-900);
  cursor: pointer;
}
.search-box label { display: grid; gap: 10px; font-weight: 900; }
.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg);
}
.search-results { display: grid; gap: 8px; margin-top: 12px; }
.search-results a {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--green-700);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(100vh - 110px);
  padding: clamp(44px, 6vw, 80px) clamp(18px, 5vw, 72px) 0;
  overflow: visible;
  padding-bottom: clamp(42px, 6vw, 84px);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242,245,239,.18), rgba(242,245,239,.92) 48%, rgba(242,245,239,.98)),
    linear-gradient(180deg, rgba(242,245,239,.62), var(--bg));
}
body.dark .hero-bg:after {
  background:
    linear-gradient(90deg, rgba(9,19,15,.22), rgba(9,19,15,.82) 52%, rgba(9,19,15,.98)),
    linear-gradient(180deg, rgba(9,19,15,.55), var(--bg));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .48fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}
.kicker, .section-title span {
  color: var(--green-700);
  font-weight: 900;
}
#programEyebrow {
  color: #fff;
  font-weight: 900;
}
.hero h1 {
  margin: 0;
  max-width: 980px;
  color: var(--green-900);
  font-size: clamp(40px, 5.7vw, 76px);
  line-height: 1.08;
  font-weight: 900;
}
body.dark .hero h1, body.dark .kicker, body.dark .section-title span { color: #9ce3b5; }
.hero-copy p:not(.kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--ink);
  font-size: clamp(17px, 2vw, 22px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.action, .submit-button, .contact-form button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.action.primary, .submit-button, .contact-form button {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-700), var(--teal));
  box-shadow: 0 16px 34px rgba(13,101,56,.22);
}
.action.secondary { color: white; background: var(--green-900); }
.action.ghost { background: var(--paper); color: var(--green-700); }

.hero-intel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.intel-logo { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.intel-logo img { width: 78px; height: 78px; border-radius: 50%; }
.intel-logo span { color: var(--muted); font-size: 13px; line-height: 1.5; direction: ltr; text-align: left; }
.hero-intel dl { margin: 0; display: grid; gap: 10px; padding-top: 16px; }
.hero-intel div { padding: 14px; border-radius: 8px; background: var(--bg); }
.hero-intel dt { color: var(--green-700); font-weight: 900; }
.hero-intel dd { margin: 4px 0 0; color: var(--muted); }

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(34px, 6vw, 82px);
  transform: none;
}
.hero-bottom article {
  min-height: 128px;
  padding: 22px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(145deg, var(--green-900), var(--green-700));
  box-shadow: var(--shadow);
}
.hero-bottom article:nth-child(2) { background: linear-gradient(145deg, var(--teal), var(--green-700)); }
.hero-bottom article:nth-child(3) { background: linear-gradient(145deg, var(--gold), var(--clay)); }
.hero-bottom article:nth-child(4) { background: linear-gradient(145deg, var(--purple), var(--green-900)); }
.hero-bottom strong { display: block; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.hero-bottom span { display: block; margin-top: 8px; color: rgba(255,255,255,.82); }

.section { padding: clamp(80px, 9vw, 128px) clamp(18px, 5vw, 72px); }
.section-title { margin-bottom: 30px; }
.section-title.horizontal {
  display: grid;
  grid-template-columns: minmax(160px, .25fr) 1fr;
  gap: 28px;
  align-items: start;
}
.section-title h2 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.16;
}
.identity { padding-top: 134px; }
.identity-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 14px;
}
.identity-grid article, .project-rail article, .library-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.identity-grid .large-statement {
  grid-row: span 2;
  color: white;
  background:
    linear-gradient(180deg, rgba(8,55,31,.86), rgba(8,55,31,.92)),
    url("assets/identity-cover.jpg") center/cover;
}
.identity-grid h3 { margin: 0 0 10px; color: var(--green-700); font-size: 22px; }
.identity-grid .large-statement h3 { color: #fff; }
.identity-grid p { margin: 0; color: var(--muted); }
.identity-grid .large-statement p { color: rgba(255,255,255,.88); font-size: 19px; }

.syria-today {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1fr);
  gap: 30px;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: white;
  background: linear-gradient(135deg, #082d1b, #0f6c3d 58%, #148b88);
}
.syria-today h2 { margin: 8px 0 0; font-size: clamp(30px, 4.5vw, 62px); line-height: 1.1; }
.syria-today p { color: rgba(255,255,255,.82); font-size: 18px; }
.signal-board { display: grid; gap: 12px; }
.signal-board article {
  display: grid;
  grid-template-columns: 14px 160px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}
.signal-board article span { width: 12px; height: 58px; border-radius: 999px; background: var(--gold); }
.signal-board strong { font-size: 20px; }
.signal-board p { margin: 0; }

.programs { background: var(--paper); }
.program-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.program-tabs button, .library-filter button, .gov-list button, .steps button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--muted);
  background: var(--bg);
  font-weight: 900;
  cursor: pointer;
}
.program-tabs button.active, .library-filter button.active, .gov-list button.active, .steps button.active {
  color: white;
  border-color: transparent;
  background: var(--green-700);
}
.program-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.program-panel h3 { margin: 8px 0 10px; max-width: 720px; font-size: clamp(28px, 4vw, 48px); line-height: 1.18; }
.program-panel p, .program-panel li { color: rgba(255,255,255,.82); }
.program-panel figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
}
.program-panel img { width: 100%; height: 100%; object-fit: cover; }

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr);
  gap: 18px;
}
.main-project {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.main-project img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.main-project div { padding: 26px; }
.main-project span { color: var(--clay); font-weight: 900; }
.main-project h3 { margin: 8px 0 10px; font-size: clamp(26px, 3vw, 40px); line-height: 1.22; }
.main-project p, .project-rail p { margin: 0; color: var(--muted); }
.project-rail { display: grid; gap: 12px; }
.project-rail strong { display: block; color: var(--green-700); font-size: 19px; margin-bottom: 8px; }

.observatory {
  color: white;
  background:
    linear-gradient(135deg, rgba(8,55,31,.94), rgba(16,150,154,.9)),
    url("assets/energy-infographic.png") center/cover;
}
.section-title.light span, .section-title.light h2 { color: white; }
.observatory-grid {
  display: grid;
  grid-template-columns: .9fr .8fr 1fr;
  gap: 16px;
}
.gauge-card, .metric-stack article, .mini-chart {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}
.gauge {
  --value: 72%;
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#fff var(--value), rgba(255,255,255,.18) 0);
}
.gauge span {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-900);
  font-size: 34px;
  font-weight: 900;
}
.gauge-card h3 { font-size: 24px; margin-bottom: 8px; }
.gauge-card p, .metric-stack span { color: rgba(255,255,255,.78); }
.metric-stack { display: grid; gap: 12px; }
.metric-stack strong { display: block; font-size: 34px; line-height: 1; }
.mini-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 260px;
}
.mini-chart span {
  flex: 1;
  min-height: 34px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.32));
}

.gov-layout {
  display: grid;
  grid-template-columns: minmax(240px, .38fr) 1fr;
  gap: 18px;
}
.gov-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}
.gov-detail {
  min-height: 340px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  color: white;
  background:
    linear-gradient(135deg, rgba(8,55,31,.88), rgba(13,101,56,.64)),
    url("assets/solar-cover.jpg") center/cover;
}
.gov-detail span { color: #b7f0c9; font-weight: 900; }
.gov-detail h3 { margin: 10px 0; font-size: clamp(30px, 4vw, 56px); line-height: 1.12; }
.gov-detail p { max-width: 720px; color: rgba(255,255,255,.84); font-size: 18px; }

.join-flow {
  display: grid;
  grid-template-columns: minmax(240px, .36fr) 1fr;
  gap: 18px;
}
.steps { display: grid; gap: 10px; align-content: start; }
.steps button {
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.join-form, .contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(7,38,22,.08);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
label { display: grid; gap: 7px; color: var(--ink); font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--bg);
}
textarea { min-height: 130px; resize: vertical; }
.wide { grid-column: 1 / -1; }
.submit-button { margin-top: 16px; border: 0; cursor: pointer; }

.media { background: var(--paper); }
.media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: repeat(2, 210px);
  gap: 12px;
}
.media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.media-grid img:first-child { grid-row: span 2; }
.media video {
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius);
  background: #000;
}

.library-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}
.library-filter { display: grid; gap: 8px; align-content: start; }
.library-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.library-card strong { display: block; color: var(--green-700); font-size: 19px; margin-bottom: 8px; }
.library-card p { margin: 0; color: var(--muted); }
.library-card em {
  display: inline-block;
  margin-top: 16px;
  color: var(--clay);
  font-style: normal;
  font-weight: 900;
}
.library-card .action {
  display: inline-flex;
  margin-top: 14px;
  min-height: 0;
  padding: 2px 15px;
  font-size: 13px;
}
.library-card.hidden { display: none; }

.contact {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(320px, .7fr);
  gap: 28px;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, var(--green-900), #123d30 52%, #0d6f68);
}
.contact h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 68px); line-height: 1.06; }
.contact p { color: rgba(255,255,255,.82); font-size: 18px; }
.contact .kicker { color: #b7f0c9; }
.contact-form { box-shadow: none; }
.contact-form button { width: 100%; margin-top: 16px; border: 0; cursor: pointer; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-footer div { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 48px; height: 48px; border-radius: 50%; }
.site-footer a { color: var(--green-700); font-weight: 900; }

@media (max-width: 1450px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 8px 10px; font-size: 13px; }
}

@media (max-width: 1140px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
  .identity-grid .large-statement { grid-row: auto; grid-column: 1 / -1; }
  .observatory-grid, .library-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .topline { display: none; }
  .site-header { grid-template-columns: 1fr auto; min-height: 72px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .drawer { top: 84px; }
  .hero { min-height: auto; }
  .hero-grid, .syria-today, .program-panel, .project-showcase, .observatory-grid, .gov-layout, .join-flow, .library-shell, .contact {
    grid-template-columns: 1fr;
  }
  .hero-bottom { grid-template-columns: repeat(2, 1fr); transform: none; margin-bottom: 24px; }
  .identity { padding-top: 80px; }
  .section-title.horizontal { grid-template-columns: 1fr; gap: 8px; }
  .signal-board article { grid-template-columns: 12px 1fr; }
  .signal-board p { grid-column: 2; }
  .media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .media-grid img, .media-grid img:first-child { grid-row: auto; aspect-ratio: 4/3; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 12px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { max-width: 190px; font-size: 13px; }
  .header-tools { gap: 5px; }
  .tool-button, .menu-button { width: 38px; height: 38px; }
  .hero h1 { font-size: 34px; }
  .hero-bottom, .identity-grid, .form-grid, .library-items, .media-grid { grid-template-columns: 1fr; }
  .hero-actions .action { width: 100%; }
  .section { padding-inline: 14px; }
}

