:root {
  --green: #147a4d;
  --deep-green: #0f2d22;
  --red: #c73535;
  --ink: #18201d;
  --muted: #6c7671;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: rgba(15, 45, 34, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }

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

.nav-shell,
.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep-green);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-copy strong { font-size: 0.93rem; letter-spacing: 0.13em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 0.78rem; }

.nav-actions {
  min-height: 46px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  color: #35413c;
  transition: color 180ms ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--green);
  transition: transform 180ms ease;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--deep-green); }
.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] {
  color: var(--deep-green);
  font-weight: 750;
}
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8f6;
  box-shadow: 0 1px 2px rgba(15, 45, 34, 0.05);
  white-space: nowrap;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 3px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 750;
  color: #35413c;
  transition: color 160ms ease;
}
.language-switch a:hover,
.language-switch a:focus-visible { color: var(--green); }
.language-switch .language-divider {
  color: rgba(15, 45, 34, 0.28);
  font-weight: 400;
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  background: var(--deep-green);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
}

.hero-title {
  position: absolute;
  z-index: 2;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(92%, 1100px);
  color: var(--white);
  text-align: center;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-shadow: 0 3px 16px rgba(0, 0,0,0.48);
  white-space: nowrap;
  pointer-events: none;
}

.hero-title-ar {
  position: absolute;
  z-index: 2;
  top: calc(9% + clamp(3.4rem, 6vw, 6.2rem));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: min(92%, 1100px);
  color: var(--white);
  text-align: center;
  font-size: clamp(1.45rem, 2.7vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.48);
  white-space: nowrap;
  pointer-events: none;
}

.intro-section { padding: 100px 0; background: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 70px;
  align-items: start;
}
.section-label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.intro-copy h2,
.language-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.intro-copy > p:last-child {
  margin: 26px 0 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.principles article {
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fbfcfa;
}
.principles article > span { display: inline-block; color: var(--red); font-weight: 850; font-size: 0.82rem; }
.principles h3 { margin: 52px 0 8px; font-size: 1.3rem; }
.principles p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.language-section { padding: 86px 0; border-top: 1px solid var(--line); }
.english-section { background: #f3f6f3; }
.arabic-section { background: #eef3f0; }
.language-section-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.language-section-inner > div { max-width: 760px; }
.language-section p:not(.section-label) { margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--deep-green);
  color: var(--white);
  text-decoration: none;
  font-weight: 750;
}

.places-block { margin-top: 38px; }
.places-heading {
  margin: 0 0 14px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.places-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.place-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}
.place-card h3 {
  margin: 0;
  font-size: 1.22rem;
}
.language-section .place-card p {
  margin: 8px 0 0;
  font-size: 0.94rem;
}
.place-card-link {
  display: block;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.place-card-link:hover,
.place-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20, 122, 77, 0.35);
  background: rgba(255, 255, 255, 0.82);
}

.site-footer { padding: 36px 0; background: #0c2119; color: rgba(255, 255, 255, 0.78); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-inner > div { display: flex; gap: 16px; align-items: center; }
.footer-inner strong { letter-spacing: 0.08em; }
.footer-inner p { margin: 0; font-size: 0.9rem; }
.footer-inner p::before { content: "© 2026 Free Syrians · "; }

[dir="rtl"] .main-nav a::after { transform-origin: right; }
[dir="rtl"] .footer-inner p::before { content: "© 2026 أحرار سوريا · "; }
[dir="rtl"] .intro-copy h2,
[dir="rtl"] .language-section h2,
[dir="rtl"] .places-heading,
[dir="rtl"] .section-label { letter-spacing: 0; }
[dir="rtl"] .section-label { text-transform: none; }

@media (max-width: 980px) {
  .intro-grid { grid-template-columns: 1fr; gap: 44px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: auto; }
  .principles h3 { margin-top: 30px; }
  .language-section-inner { align-items: flex-start; flex-direction: column; }
  [dir="rtl"] .main-nav a::after { left: auto; right: 4px; }
}

@media (max-width: 760px) {
  .nav-shell,
  .section-shell { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 70px; gap: 14px; }
  .brand { min-height: 42px; }
  .brand-copy small,
  .main-nav a:first-child { display: none; }
  .nav-actions { min-height: 42px; gap: 0; }
  .main-nav { gap: 14px; }

  .hero {
    min-height: calc(100vh - 70px);
    background: var(--green);
  }

  .hero-art {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    transform: translateY(-50%);
  }

  .hero-title {
    top: 33%;
    width: 92%;
    font-size: clamp(1.3rem, 5.8vw, 1.9rem);
    letter-spacing: 0.05em;
  }

  .hero-title-ar {
    width: 92%;
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  .intro-section,
  .language-section { padding: 68px 0; }
  .places-grid { grid-template-columns: 1fr; }
  .footer-inner,
  .footer-inner > div { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .hero-title {
    top: 42%;
    font-size: clamp(1.15rem, 5.2vw, 1.6rem);
    letter-spacing: 0.045em;
  }

  .hero-title-ar {
    font-size: clamp(0.95rem, 4.3vw, 1.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}