/* Shell: top bar, header, footer, homepage modules */

.top-bar {
  background: var(--black-900);
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-xs);
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 40px;
  padding-block: var(--space-2);
}

.top-bar a { color: rgba(255, 255, 255, 0.86); }
.top-bar a:hover { color: var(--white); }

.top-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.top-actions button,
.lang-switch button {
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.top-actions button:hover,
.lang-switch button:hover,
.lang-switch button.is-active {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 84px;
  padding-block: var(--space-3);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, var(--green-700), var(--green-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 800;
  line-height: 1.3;
}

.brand-text span {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-xs);
  margin-top: 2px;
}

.gov-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--green-50);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: min(280px, 30vw);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.35rem 0.25rem 0.9rem;
}

.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 36px;
  font-size: var(--text-sm);
}

.header-search input:focus { outline: none; box-shadow: none; }

.nav-wrap {
  border-top: 1px solid var(--gray-100);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  padding-block: var(--space-2);
}

.main-nav a {
  color: var(--gray-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--green-50);
  color: var(--color-primary-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--color-ink);
}

/* Homepage Hero */
.home-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 720px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black-900);
}

.home-hero-media {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroKen 22s ease-out forwards;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 20, 25, 0.88) 0%, rgba(0, 77, 39, 0.72) 48%, rgba(15, 20, 25, 0.45) 100%),
    linear-gradient(0deg, rgba(15, 20, 25, 0.55), transparent 40%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-16);
}

.home-hero .flag-line {
  display: flex;
  width: 72px;
  height: 6px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.home-hero .flag-line span { flex: 1; }
.home-hero .flag-line span:nth-child(1) { background: var(--green-700); }
.home-hero .flag-line span:nth-child(2) { background: var(--white); }
.home-hero .flag-line span:nth-child(3) { background: var(--black-900); }
.home-hero .flag-line::after {
  content: "";
  /* visual accent via red mark nearby */
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(206, 17, 38, 0.18);
  border: 1px solid rgba(206, 17, 38, 0.35);
  color: #ffd4d8;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.home-hero h1 {
  color: var(--white);
  max-width: min(36rem, 100%);
  margin-bottom: var(--space-3);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.home-hero h1 a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-hero .lede {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.hero-stat strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-family: var(--font-display);
  font-weight: 800;
}

.hero-stat span {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.75);
}

.hero-search-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}

.hero-search-card h2 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.quick-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.quick-services a {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--green-50);
  color: var(--color-primary-dark);
}

/* Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.overview-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.overview-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-50);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  font-weight: 800;
}

.overview-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.overview-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* Minister */
.minister-block {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.minister-photo {
  min-height: 420px;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 77, 39, 0.55)),
    url("https://images.unsplash.com/photo-1560250097-0b93528c311a?auto=format&fit=crop&w=800&q=80") center/cover;
}

.minister-content { padding: var(--space-8); }
.minister-content h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.minister-content .role {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.minister-content blockquote {
  margin: var(--space-4) 0 var(--space-6);
  padding: 0;
  border: 0;
  color: var(--gray-600);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* Map */
.map-shell {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-6);
}

.map-canvas {
  position: relative;
  min-height: 460px;
  background:
    linear-gradient(160deg, #e8f5ee, #f7f9fb 40%, #eef2f6),
    radial-gradient(circle at 60% 45%, rgba(0, 122, 61, 0.12), transparent 40%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.map-syria {
  position: absolute;
  inset: 8% 18% 12% 22%;
  background: rgba(0, 122, 61, 0.12);
  border: 2px solid var(--green-700);
  border-radius: 38% 42% 45% 40% / 42% 38% 48% 40%;
  box-shadow: inset 0 0 40px rgba(0, 122, 61, 0.08);
}

.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.map-pin.oil { background: var(--color-accent); }
.map-pin.gas { background: var(--color-primary); }
.map-pin.refinery { background: #0369a1; }
.map-pin.terminal { background: #7c3aed; }

.map-legend {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.map-legend h3 { margin-bottom: var(--space-4); }
.map-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Projects */
.project-card .card-body { display: flex; flex-direction: column; gap: var(--space-3); }
.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Partners */
.partners-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.partner-logo {
  height: 88px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--gray-500);
  font-weight: 700;
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-3);
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.gov-seal-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--color-border);
  padding: 4px;
}

.partner-logo-img {
  padding: var(--space-3);
}

.partner-logo-img img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(0.15);
}

.cat-flow small {
  color: var(--color-muted);
  font-weight: 500;
}

.rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1100px) {
  .rail { grid-template-columns: 1fr; }
}

/* Newsletter */
.newsletter {
  background:
    linear-gradient(120deg, var(--green-900), var(--green-700));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.newsletter h2 { color: var(--white); margin-bottom: var(--space-3); }
.newsletter p { color: rgba(255, 255, 255, 0.85); }

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
}

.newsletter-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--white);
  min-height: 44px;
  padding-inline: var(--space-4);
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.65); }
.newsletter-form input:focus { outline: none; box-shadow: none; }

/* Contact CTA */
.contact-cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: var(--space-6);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  background: var(--black-900);
  color: rgba(255, 255, 255, 0.78);
  padding-top: var(--space-16);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--white); }
.site-footer h3 {
  color: var(--white);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.site-footer ul li { margin-bottom: var(--space-2); font-size: var(--text-sm); }

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 28rem;
  line-height: var(--leading-relaxed);
}

.social-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  font-size: var(--text-xs);
}

.footer-disclaimer {
  background: rgba(0, 0, 0, 0.25);
  padding: var(--space-4) 0;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}

/* Article */
.article-hero-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
  aspect-ratio: 21 / 9;
}

.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.article-body p {
  margin-bottom: var(--space-4);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

/* Reveal */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroKen {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@media (max-width: 1100px) {
  .hero-panel,
  .map-shell,
  .newsletter,
  .minister-block,
  .footer-grid,
  .contact-cta {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-row { grid-template-columns: repeat(3, 1fr); }
  .minister-photo { min-height: 280px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-search { display: flex; width: 100%; min-width: 0; }
  .gov-seal { display: none; }
  .partners-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .top-meta span:nth-child(n + 3) { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
