:root {
  --ink: #0a2438;
  --ink-2: #17364b;
  --gold: #b88436;
  --gold-soft: #d7b878;
  --cream: #f7f2e9;
  --paper: #fffdf9;
  --stone: #e9e1d6;
  --muted: #6d6a65;
  --line: rgba(10, 36, 56, 0.14);
  --shadow: 0 18px 55px rgba(31, 24, 16, 0.12);
  --radius: 3px;
  --container: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
html[lang="fa"] body {
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.9;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed;
  inset-inline-start: 18px;
  top: -60px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(520px, 2.4fr) minmax(100px, 0.55fr);
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 50px;
  width: 50px;
  height: 66px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.brand-text { min-width: 0; }
.brand-name {
  display: block;
  font-size: clamp(1.55rem, 2.1vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
html[lang="fa"] .brand-name { font-weight: 700; letter-spacing: 0; }
.brand-tagline {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 34px);
  font-size: 0.9rem;
}
html[lang="fa"] .main-nav { font-size: 0.87rem; }
.main-nav a {
  position: relative;
  padding: 15px 0;
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 50%;
  bottom: 5px;
  height: 1px;
  background: var(--gold);
  transition: inset 0.25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { inset-inline: 0; }
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.82rem;
}
.lang-link {
  min-width: 38px;
  text-align: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  letter-spacing: 0.08em;
}
.icon-button, .menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-button svg, .menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 480px;
  background: #33271c;
  overflow: hidden;
}
html[dir="rtl"] .hero { grid-template-columns: 57% 43%; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 88px) max(48px, calc((100vw - 1180px) / 2));
  color: #fffaf2;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(135deg, #1f1812, #4a3929 115%);
}
html[dir="rtl"] .hero-copy {
  padding-inline: max(48px, calc((100vw - 1180px) / 2)) clamp(40px, 5vw, 70px);
}
.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(90deg, transparent 97%, rgba(255,255,255,0.2) 100%);
  background-size: 12px 12px;
  pointer-events: none;
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="fa"] .hero-kicker { letter-spacing: 0; }
.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.45rem, 4.7vw, 4.55rem);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}
html[lang="fa"] .hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.35;
}
.hero-rule { width: 58px; height: 3px; background: var(--gold); margin: 23px 0; }
.hero-copy p:not(.hero-kicker) {
  max-width: 510px;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255, 250, 242, 0.88);
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: var(--radius);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: white; }
.button-secondary { background: rgba(12, 20, 24, 0.25); }
.arrow { font-size: 1.25rem; line-height: 1; }
html[dir="rtl"] .arrow { transform: rotate(180deg); }
.hero-image {
  min-height: 480px;
  background-image: linear-gradient(90deg, rgba(50,37,25,0.34), transparent 25%), url("assets/hero.jpg");
  background-position: center;
  background-size: cover;
}
html[dir="rtl"] .hero-image {
  background-image: linear-gradient(270deg, rgba(50,37,25,0.34), transparent 25%), url("assets/hero.jpg");
}

.topic-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.topic {
  min-height: 105px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  border-inline-end: 1px solid var(--line);
}
.topic:last-child { border-inline-end: 0; }
.topic-icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
}
.topic h2 { margin: 0 0 2px; font-size: 0.94rem; font-weight: 500; }
.topic p { margin: 0; font-size: 0.72rem; color: var(--muted); line-height: 1.45; }
html[lang="fa"] .topic p { line-height: 1.75; }

.section { padding: 30px 0 0; }
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 13px;
}
.section-title {
  position: relative;
  margin: 0;
  padding-bottom: 9px;
  font-size: clamp(1.42rem, 2.1vw, 1.92rem);
  font-weight: 400;
}
html[lang="fa"] .section-title { font-weight: 700; }
.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.text-link { font-size: 0.8rem; color: var(--ink-2); }
.text-link:hover { color: var(--gold); }

.editorial-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr;
  gap: 28px;
}
.feature-card {
  min-height: 340px;
  display: grid;
  grid-template-columns: 52% 48%;
  border: 1px solid var(--line);
  background: #fbf8f3;
  overflow: hidden;
}
.feature-card img { height: 100%; object-fit: cover; }
.card-copy { padding: 26px 24px; }
.card-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
  font-weight: 400;
}
html[lang="fa"] .card-copy h3 { font-weight: 700; line-height: 1.65; }
.card-copy p { margin: 0 0 18px; font-size: 0.9rem; color: #43474a; }
.card-link { display: inline-flex; align-items: center; gap: 12px; font-size: 0.87rem; }
.card-link:hover { color: var(--gold); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-card {
  border: 1px solid var(--line);
  background: #fbf8f3;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.story-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,24,16,0.08); }
.story-card img { height: 145px; object-fit: cover; }
.story-card .card-copy { padding: 16px 14px 18px; }
.story-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
html[lang="fa"] .story-card h3 { font-size: 1rem; }
.story-card p { font-size: 0.78rem; min-height: 58px; }

.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.04fr;
  gap: 16px;
  padding-top: 24px;
}
.program-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
}
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,253,249,0.94) 0, rgba(255,253,249,0.72) 45%, rgba(255,253,249,0.06) 100%);
}
.program-content { position: relative; z-index: 2; padding: 23px 22px; }
.program-content h3 { margin: 0 0 7px; font-size: 1.35rem; font-weight: 400; }
html[lang="fa"] .program-content h3 { font-weight: 700; }
.program-content p { margin: 0 0 13px; max-width: 310px; font-size: 0.85rem; }
.aid-card {
  min-height: 255px;
  padding: 24px 24px 20px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
}
.aid-heading { display: flex; align-items: center; gap: 15px; }
.aid-heading svg { width: 48px; height: 48px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.aid-card h3 { margin: 0 0 7px; font-size: 1.4rem; font-weight: 400; }
html[lang="fa"] .aid-card h3 { font-weight: 700; }
.aid-card > p { margin: 10px 0 11px; color: rgba(255,255,255,0.78); font-size: 0.84rem; }
.aid-card .card-link { color: var(--gold-soft); }
.aid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.aid-service { text-align: center; font-size: 0.68rem; color: rgba(255,255,255,0.88); line-height: 1.35; }
.aid-service svg { width: 29px; height: 29px; margin: 0 auto 6px; fill: none; stroke: white; stroke-width: 1.45; }

.origins-wrap { padding: 25px 0 30px; }
.origins-panel {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.15fr;
  border: 1px solid var(--line);
  background: linear-gradient(110deg, #f8f3ea, #fffdf9);
}
.origins-column { padding: 24px; border-inline-end: 1px solid var(--line); }
.origins-column:last-child { border-inline-end: 0; }
.origins-column h2 { margin: 0 0 13px; font-size: 1.35rem; font-weight: 400; }
html[lang="fa"] .origins-column h2 { font-weight: 700; }
.name-block { display: grid; grid-template-columns: 60px 1fr; gap: 15px; }
.name-block .brand-mark { width: 58px; height: 74px; }
.origins-column p { margin: 0 0 15px; font-size: 0.82rem; color: #42484c; }
.origin-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.origin-person img { aspect-ratio: 1 / 1; object-fit: cover; filter: sepia(0.12); }
.origin-person h3 { margin: 8px 0 0; font-size: 0.78rem; text-align: center; font-weight: 500; line-height: 1.4; }
.newsletter p { max-width: 370px; }
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  outline: 0;
}
.newsletter-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,132,54,0.12); }
.newsletter-form button {
  border: 0;
  padding: 10px 22px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}
.socials { display: flex; gap: 16px; margin-top: 22px; }
.socials a { width: 28px; height: 28px; display: grid; place-items: center; }
.socials svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.82); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.7fr) 1.15fr;
  gap: 34px;
  padding: 34px 0 25px;
}
.footer-brand .brand { color: white; align-items: flex-start; }
.footer-brand .brand-mark { color: var(--gold); width: 44px; height: 58px; }
.footer-brand .brand-name { font-size: 1.35rem; }
.footer-brand .brand-tagline { color: rgba(255,255,255,0.72); font-size: 0.72rem; white-space: normal; }
.footer-brand p { max-width: 250px; font-size: 0.73rem; color: rgba(255,255,255,0.58); }
.footer-column h2 { margin: 0 0 12px; color: white; font-size: 0.88rem; font-weight: 400; }
html[lang="fa"] .footer-column h2 { font-weight: 700; }
.footer-column a { display: block; margin: 5px 0; font-size: 0.75rem; }
.footer-column a:hover { color: var(--gold-soft); }
.footer-letter p { font-size: 0.75rem; }
.footer-letter a { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.13);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
}
.footer-policy { display: flex; gap: 22px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(15px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 90px; }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: inline-grid; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .topic:nth-child(3) { border-inline-end: 0; }
  .topic:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .editorial-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .aid-card { grid-column: 1 / -1; }
  .origins-panel { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .origins-column:nth-child(2) { border-inline-end: 0; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 0.7fr); }
  .footer-letter { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 680px); }
  .header-inner { min-height: 80px; gap: 10px; }
  .main-nav { top: 80px; }
  .brand-mark { width: 38px; height: 52px; flex-basis: 38px; }
  .brand-name { font-size: 1.25rem; }
  .brand-tagline { display: none; }
  .header-tools { gap: 5px; }
  .icon-button { display: none; }
  .hero, html[dir="rtl"] .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy, html[dir="rtl"] .hero-copy { order: 2; padding: 40px 24px 46px; }
  .hero h1, html[lang="fa"] .hero h1 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .hero-image { order: 1; min-height: 330px; background-position: center; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic { min-height: 92px; padding: 14px 10px; }
  .topic:nth-child(2n) { border-inline-end: 0; }
  .topic:nth-child(3) { border-inline-end: 1px solid var(--line); }
  .topic:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card img { height: 260px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { display: grid; grid-template-columns: 42% 58%; }
  .story-card img { height: 100%; min-height: 190px; }
  .program-grid { grid-template-columns: 1fr; }
  .aid-card { grid-column: auto; }
  .origins-panel { grid-template-columns: 1fr; }
  .origins-column { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .origins-column:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-letter { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .topic:last-child { border-bottom: 0; }
  .story-card { grid-template-columns: 1fr; }
  .story-card img { height: 210px; }
  .aid-services { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .origin-people { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-column, .footer-letter, .footer-brand { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
