

:root {
  --ivory: #f7f1e7;
  --sand: #dfc7a1;
  --terracotta: #a9492d;
  --flag-red: #c1272d;
  --flag-green: #006233;
  --deep-green: #043f35;
  --gold: #b58a45;
  --blue: #123d4a;
  --blue-dark: #082730;
  --ink: #1d1a17;
  --muted: #756b60;
  --line: rgba(29, 26, 23, 0.14);
  --paper: rgba(255, 252, 245, 0.84);
  --font-sans: "Inter", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-arabic: "Noto Naskh Arabic", serif;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans), Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--terracotta);
  color: white;
}

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.08), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(193, 39, 45, 0.15), transparent 18rem),
    radial-gradient(circle at 12% 88%, rgba(181, 138, 69, 0.16), transparent 20rem),
    var(--ivory);
}

.site-shell[dir="rtl"] {
  font-family: var(--font-arabic), var(--font-sans), sans-serif;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 241, 231, 0.82);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  inset-block-start: 0;
  min-height: 76px;
  padding: 0.85rem clamp(1rem, 4vw, 4.5rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar::after {
  background: linear-gradient(90deg, transparent, var(--flag-red), var(--flag-green), transparent);
  block-size: 2px;
  bottom: -1px;
  content: "";
  inset-inline: clamp(1rem, 4vw, 4.5rem);
  opacity: 0.55;
  position: absolute;
}

.brand,
.language-switcher,
.main-nav {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--blue-dark);
  font-weight: 700;
  gap: 0.7rem;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, rgba(0, 98, 51, 0.95) 0 21%, transparent 22%),
    var(--flag-red);
  color: var(--ivory);
  display: inline-flex;
  font-family: var(--font-display), serif;
  font-size: 0.95rem;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 42px;
}

.brand-mark::after {
  color: rgba(255, 255, 255, 0.56);
  content: "★";
  font-size: 0.62rem;
  inset-block-end: 0.1rem;
  inset-inline-end: 0.18rem;
  line-height: 1;
  position: absolute;
}

.main-nav {
  color: var(--muted);
  font-size: 0.88rem;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  justify-content: center;
}

.main-nav a {
  padding-block: 0.35rem;
}

.main-nav a:focus-visible,
.main-nav a:hover {
  color: var(--terracotta);
  outline: none;
}

.language-switcher {
  border: 1px solid var(--line);
  gap: 0.2rem;
  padding: 0.25rem;
}

.language-switcher a,
.language-card {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.language-switcher a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  height: 34px;
  min-width: 38px;
}

.language-switcher a.active,
.language-switcher a:focus-visible,
.language-switcher a:hover {
  background: var(--flag-green);
  color: var(--ivory);
  outline: none;
}

.language-card {
  border: 1px solid var(--line);
  color: var(--blue);
  font-weight: 700;
  min-height: 56px;
  min-width: 132px;
  padding: 0.85rem 1.3rem;
}

.language-card:hover,
.language-card:focus-visible {
  background: var(--flag-green);
  color: var(--ivory);
  outline: none;
}

.hero-section {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  min-height: calc(100vh - 76px);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 5vw, 6rem) clamp(4rem, 7vw, 7rem);
  position: relative;
}

.hero-section::after,
.glance-band::before {
  background:
    linear-gradient(45deg, transparent 45%, rgba(181, 138, 69, 0.5) 46%, rgba(181, 138, 69, 0.5) 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(0, 98, 51, 0.32) 46%, rgba(0, 98, 51, 0.32) 54%, transparent 55%),
    linear-gradient(90deg, transparent 47%, rgba(193, 39, 45, 0.2) 48%, rgba(193, 39, 45, 0.2) 52%, transparent 53%);
  background-size: 44px 44px;
  content: "";
  opacity: 0.26;
  pointer-events: none;
  position: absolute;
}

.hero-section::after {
  bottom: 2rem;
  height: 128px;
  inset-inline-start: clamp(1rem, 5vw, 6rem);
  width: min(420px, 44vw);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--flag-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.site-shell[dir="rtl"] .eyebrow {
  text-transform: none;
}

.hero-copy h1,
.content-section h2,
.glance-band h2,
.section-heading h2,
.media-contact h2,
.contact-section h2 {
  color: var(--blue-dark);
  font-family: var(--font-display), Georgia, serif;
  font-weight: 600;
  line-height: 0.95;
  margin: 0;
}

.site-shell[dir="rtl"] .hero-copy h1,
.site-shell[dir="rtl"] .content-section h2,
.site-shell[dir="rtl"] .glance-band h2,
.site-shell[dir="rtl"] .section-heading h2,
.site-shell[dir="rtl"] .media-contact h2,
.site-shell[dir="rtl"] .contact-section h2 {
  font-family: var(--font-arabic), serif;
  line-height: 1.18;
}

.hero-copy h1 {
  font-size: clamp(4rem, 12vw, 10.5rem);
  max-width: 980px;
}

.hero-copy > p:not(.eyebrow) {
  color: #4c453d;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.65;
  margin: 1.5rem 0 0;
  max-width: 750px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 1px solid var(--flag-green);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.2rem;
}

.button.primary {
  background: var(--flag-green);
  color: var(--ivory);
}

.button.secondary {
  color: var(--flag-green);
}

.button:hover,
.button:focus-visible {
  background: var(--flag-red);
  border-color: var(--flag-red);
  color: white;
  outline: none;
}

.hero-pattern {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.hero-pattern span {
  border: 1px solid rgba(181, 138, 69, 0.28);
  position: absolute;
  transform: rotate(45deg);
}

.hero-pattern span:nth-child(1) {
  height: 34vw;
  inset-inline-end: 12vw;
  top: 9vw;
  width: 34vw;
}

.hero-pattern span:nth-child(2) {
  height: 18vw;
  inset-inline-end: 4vw;
  top: 19vw;
  width: 18vw;
}

.hero-pattern span:nth-child(3) {
  background: rgba(193, 39, 45, 0.07);
  height: 26vw;
  inset-inline-end: 19vw;
  top: 24vw;
  width: 26vw;
}

.flag-star {
  background: var(--flag-green);
  clip-path: polygon(50% 0%, 61% 36%, 98% 36%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 36%, 39% 36%);
  height: clamp(84px, 12vw, 154px);
  inset-inline-end: clamp(2rem, 9vw, 9rem);
  opacity: 0.16;
  position: absolute;
  top: clamp(4.5rem, 12vw, 10rem);
  transform: rotate(18deg);
  width: clamp(84px, 12vw, 154px);
}

.portrait-panel {
  justify-self: end;
  position: relative;
  width: min(100%, 520px);
  z-index: 1;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(18, 61, 74, 0.96), rgba(8, 39, 48, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.1) 18px 19px);
  box-shadow: 0 34px 80px rgba(8, 39, 48, 0.22);
  overflow: hidden;
  position: relative;
}

.portrait-frame::before {
  border: 1px solid rgba(0, 98, 51, 0.48);
  content: "";
  inset: 1rem;
  position: absolute;
  z-index: 2;
}

.portrait-frame::after,
.media-grid figure::after {
  background:
    linear-gradient(180deg, transparent 48%, rgba(8, 39, 48, 0.58)),
    linear-gradient(135deg, rgba(193, 39, 45, 0.16), transparent 34%, rgba(0, 98, 51, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.portrait-frame img,
.media-grid img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.portrait-frame img {
  object-position: 58% center;
}

.glance-band,
.content-section,
.project-section,
.media-contact,
.contact-section,
.footer {
  padding-inline: clamp(1rem, 5vw, 6rem);
}

.glance-band {
  background:
    linear-gradient(135deg, rgba(193, 39, 45, 0.22), transparent 34rem),
    linear-gradient(315deg, rgba(0, 98, 51, 0.22), transparent 28rem),
    var(--blue-dark);
  color: var(--ivory);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 0.55fr) 1fr;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  position: relative;
}

.glance-band::before {
  height: 100%;
  inset-inline-end: 0;
  top: 0;
  width: min(320px, 34vw);
}

.glance-band .eyebrow {
  color: var(--sand);
  max-width: 680px;
  text-transform: none;
}

.glance-band h2,
.glance-grid strong {
  color: var(--ivory);
}

.glance-band h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.glance-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.glance-grid article {
  background: rgba(247, 241, 231, 0.08);
  min-height: 170px;
  padding: 1.25rem;
}

.glance-grid span,
.detail-card span {
  color: var(--flag-green);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.site-shell[dir="rtl"] .glance-grid span,
.site-shell[dir="rtl"] .detail-card span {
  text-transform: none;
}

.glance-grid strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
}

.content-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(1.5rem, 5vw, 5rem);
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.content-section h2,
.media-contact h2,
.contact-section h2,
.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
}

.section-body p,
.detail-card p,
.media-contact h2,
.contact-section h2,
.footer p,
.footer li {
  color: #4f463d;
  font-size: 1.03rem;
  line-height: 1.75;
}

.section-body p {
  margin: 0;
}

.section-body ul,
.footer ul {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.section-body li {
  border-top: 1px solid var(--line);
  line-height: 1.6;
  padding: 1rem 0;
}

.section-body li::before,
.footer li::before {
  color: var(--flag-red);
  content: "★";
  font-size: 0.7rem;
  margin-inline-end: 0.6rem;
}

.project-section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section-heading {
  max-width: 980px;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.card-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 270px;
  padding: clamp(1.1rem, 3vw, 1.7rem);
}

.detail-card h3 {
  color: var(--blue-dark);
  font-family: var(--font-display), serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.site-shell[dir="rtl"] .detail-card h3 {
  font-family: var(--font-arabic), serif;
  line-height: 1.2;
}

.detail-card small {
  border-top: 1px solid var(--line);
  color: var(--flag-red);
  display: block;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 1.2rem;
  padding-top: 1rem;
}

.media-contact {
  align-items: center;
  background: #fff9ee;
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.85fr 1fr;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.media-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr 0.72fr;
}

.media-grid span,
.media-grid figure {
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.88), rgba(193, 39, 45, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(247, 241, 231, 0.13) 18px 19px);
  margin: 0;
  min-height: 170px;
  overflow: hidden;
  position: relative;
}

.media-grid figure:first-child {
  grid-row: span 2;
  min-height: 350px;
}

.contact-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.18), transparent 38rem),
    var(--flag-red);
  color: white;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr minmax(240px, 0.48fr);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.contact-section .eyebrow,
.contact-section h2 {
  color: white;
}

.contact-placeholder {
  border: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 800;
  line-height: 1.6;
  margin: 0;
  padding: 1.2rem;
}

.footer {
  background: var(--blue-dark);
  color: var(--ivory);
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.7fr 1fr;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer h2 {
  color: var(--sand);
  font-size: 1rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.site-shell[dir="rtl"] .footer h2 {
  text-transform: none;
}

.footer p,
.footer li {
  color: rgba(247, 241, 231, 0.8);
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: white;
  outline: none;
}

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

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .site-shell[dir="rtl"] .main-nav {
    justify-content: flex-end;
  }

  .hero-section,
  .glance-band,
  .content-section,
  .media-contact,
  .contact-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    justify-self: start;
    width: min(100%, 460px);
  }

  .site-shell[dir="rtl"] .portrait-panel {
    justify-self: end;
  }

  .glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 1rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 36px;
  }

  .main-nav {
    font-size: 0.82rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .glance-grid,
  .card-grid,
  .card-grid.compact,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-grid figure:first-child {
    min-height: 220px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}

.language-home {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}
.language-home > div {
  margin: 0 auto;
  max-width: 980px;
}
.language-home h1 {
  color: var(--blue-dark);
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 2rem;
}
.language-home nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}
