/* ---------------------------------------------------------------------
 * The Year of Tolerance — site styles (LTR + RTL aware)
 * ------------------------------------------------------------------- */
:root {
  --c-bg:        #ffffff;
  --c-fg:        #1a2236;
  --c-muted:     #5a6580;
  --c-line:      #e5e9f1;
  --c-accent:    #1f6b5e;      /* ghaf green */
  --c-accent-2:  #c79a3a;      /* desert gold */
  --c-sand:      #f6f1e6;
  --c-bg-soft:   #f7f9fc;
  --radius:      12px;
  --shadow-sm:   0 1px 2px rgba(20,30,50,.04), 0 2px 8px rgba(20,30,50,.05);
  --shadow-md:   0 4px 20px rgba(20,30,50,.08);
  --font-en:     'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar:     'Cairo', 'Inter', system-ui, sans-serif;
  --font-display:'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locale-ar { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.narrow    { max-width: 760px; margin: 0 auto; }
.center    { text-align: center; }
.muted     { color: var(--c-muted); }

.skip-link {
  position: absolute; left: -9999px; top: 0; padding: 8px 14px;
  background: var(--c-fg); color: #fff; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; color: var(--c-fg); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-text {
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .2px;
}
body.locale-ar .brand-text { font-family: var(--font-ar); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: var(--c-fg); font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--c-accent); text-decoration: none; }
.site-nav .cta-submit {
  background: var(--c-accent); color: #fff !important;
  padding: 8px 14px; border-radius: 999px; font-weight: 600;
}
.site-nav .cta-submit:hover { background: #14463d; }
.lang-switch {
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: #14463d; color: #fff; }
.btn-ghost { background: transparent; color: var(--c-fg); border-color: var(--c-line); }
.btn-ghost:hover { background: var(--c-bg-soft); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(1200px 600px at 20% -10%, #e8f1ee 0%, transparent 50%),
    radial-gradient(900px 500px at 90% 10%, #f8efd6 0%, transparent 55%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  position: relative; overflow: hidden;
}
.hero--with-art {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 560px;
  display: flex; align-items: center;
  padding: 120px 0 100px;
}
.hero--with-art .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.78) 35%,
    rgba(255,255,255,0.10) 70%,
    rgba(255,255,255,0.00) 100%);
  pointer-events: none;
}
html[dir="rtl"] .hero--with-art .hero-overlay {
  background: linear-gradient(270deg,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.78) 35%,
    rgba(255,255,255,0.10) 70%,
    rgba(255,255,255,0.00) 100%);
}
.hero--with-art .container { position: relative; z-index: 1; }
.hero-grid { display: block; }
.hero-text { max-width: 620px; }
.hero-eyebrow {
  font-family: var(--font-ar); color: var(--c-accent-2);
  font-weight: 700; letter-spacing: 1px; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.12; margin: 0 0 18px;
}
body.locale-ar .hero-title { font-family: var(--font-ar); font-weight: 700; }
.hero-lede { font-size: 1.12rem; max-width: 760px; color: var(--c-muted); }
.hero-lede p { margin: .6em 0; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Section common ---------- */
section { padding: 72px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 12px;
}
body.locale-ar .section-title { font-family: var(--font-ar); font-weight: 700; }
.section-head { margin-bottom: 36px; }
.section-sub { color: var(--c-muted); margin: 0; }

/* ---------- Quotes ---------- */
.quotes { background: var(--c-bg-soft); }
.quote-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.quote-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px; margin: 0; box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-mark { width: 32px; height: 32px; margin-bottom: 8px; opacity: .85; }
.quote-card blockquote {
  margin: 0 0 14px; font-size: 1.05rem; line-height: 1.55;
  border-inline-start: 3px solid var(--c-accent-2); padding-inline-start: 14px;
  font-style: italic;
}
.quote-card figcaption strong { display: block; color: var(--c-fg); }
.quote-card figcaption .muted { font-size: .9rem; }

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.pillar-card {
  border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pillar-icon {
  width: 56px; height: 56px; display: block;
  margin-bottom: 14px;
  background: var(--c-sand);
  padding: 10px; border-radius: 12px;
}
.pillar-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-card h3 { font-family: var(--font-display); margin: 0 0 8px; color: var(--c-accent); }
body.locale-ar .pillar-card h3 { font-family: var(--font-ar); font-weight: 700; }

/* ---------- News ---------- */
.news-preview { background: var(--c-sand); }
.news-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.news-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-thumb { aspect-ratio: 16 / 9; background: var(--c-bg-soft); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.news-body time { color: var(--c-muted); font-size: .85rem; }
.news-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.news-body h3 a { color: var(--c-fg); }
.news-body h3 a:hover { color: var(--c-accent); }
.read-more {
  margin-top: auto; font-weight: 600; font-size: .9rem;
}

/* ---------- News article ---------- */
.news-article-head { padding: 64px 0 24px; background: var(--c-bg-soft); }
.news-hero-img { border-radius: var(--radius); margin: 24px auto; }
.news-article-body { padding: 32px 0 64px; font-size: 1.06rem; }
.news-article-body p { margin: 1em 0; }
.news-article-body h2, .news-article-body h3 {
  font-family: var(--font-display); margin: 1.6em 0 .5em;
}
body.locale-ar .news-article-body h2,
body.locale-ar .news-article-body h3 { font-family: var(--font-ar); font-weight: 700; }

/* ---------- Page generic ---------- */
.page-hero {
  padding: 80px 0 36px;
  background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line);
}
.brand-hero {
  background-size: cover; background-position: right center;
  text-align: center;
}
.brand-hero-mark {
  width: 80px; height: 80px; margin: 0 auto 14px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0;
}
body.locale-ar .page-hero h1 { font-family: var(--font-ar); font-weight: 700; }
.page-lede { color: var(--c-muted); margin-top: 14px; max-width: 760px; }
.page-body { padding: 56px 0 80px; font-size: 1.05rem; }
.page-body h2, .page-body h3 { font-family: var(--font-display); }
body.locale-ar .page-body h2,
body.locale-ar .page-body h3 { font-family: var(--font-ar); font-weight: 700; }
.page-body h2 { font-size: 1.5rem; margin: 2em 0 .4em; color: var(--c-accent); }
.page-body h3 { font-size: 1.2rem; margin: 1.6em 0 .3em; }
.page-body p { margin: 1em 0; }
.page-body ul { padding-inline-start: 22px; }
.page-body li { margin: .35em 0; }
.page-body blockquote {
  margin: 1.5em 0; padding: 16px 22px;
  border-inline-start: 3px solid var(--c-accent-2);
  background: var(--c-sand); border-radius: 6px; font-style: italic;
}

/* ---------- Brand traits ---------- */
.trait-grid-section { background: var(--c-sand); }
.trait-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trait-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.trait-card h3 { margin: 0 0 8px; font-family: var(--font-display); color: var(--c-accent); }
body.locale-ar .trait-card h3 { font-family: var(--font-ar); font-weight: 700; }

/* ---------- Pledge ---------- */
.pledge-list {
  list-style: none; counter-reset: pledge; padding: 0; margin: 32px 0;
}
.pledge-list li {
  counter-increment: pledge;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 18px 22px 18px 60px; margin-bottom: 12px; position: relative;
  box-shadow: var(--shadow-sm);
}
body.locale-ar .pledge-list li { padding: 18px 60px 18px 22px; }
.pledge-list li::before {
  content: counter(pledge);
  position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--c-accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
}

/* ---------- CTA section ---------- */
.initiatives-cta {
  text-align: center;
  background:
    linear-gradient(135deg, var(--c-accent) 0%, #14463d 100%);
  color: #fff;
}
.initiatives-cta .section-title { color: #fff; }
.initiatives-cta p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.initiatives-cta .btn-primary {
  background: var(--c-accent-2); color: #2b1f08;
}
.initiatives-cta .btn-primary:hover { background: #b3852a; color: #fff; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); margin: 24px 0;
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: .95rem; }
.req { color: #c0392b; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; font: inherit;
  border: 1px solid var(--c-line); border-radius: 8px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(31,107,94,.15);
}
.form-grid-2, .form-grid-3 {
  display: grid; gap: 14px;
}
.form-grid-2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.flashes { padding-top: 18px; }
.flash {
  padding: 12px 16px; border-radius: 8px; margin: 8px 0;
  background: var(--c-bg-soft); border: 1px solid var(--c-line);
}
.flash-error { background: #fff1f0; border-color: #f3c1ba; color: #862c20; }
.flash-success { background: #ecf7f3; border-color: #b7decd; color: #154f44; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0e1623; color: #c8cee0;
  padding: 56px 0 24px; margin-top: 0;
}
.site-footer a { color: #d6dcef; }
.site-footer a:hover { color: #fff; }
.footer-inner {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 24px;
}
.footer-col h4 {
  margin: 0 0 10px; font-family: var(--font-display); color: #fff; font-size: 1.05rem;
}
body.locale-ar .footer-col h4 { font-family: var(--font-ar); font-weight: 700; }
.footer-col .muted { color: #8c95ad; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 6px 0; }
.footer-meta {
  border-top: 1px solid #1c2638; padding-top: 18px;
  font-size: .85rem; color: #7a849c;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .site-nav { gap: 10px; font-size: .9rem; }
  .site-nav .cta-submit { padding: 6px 10px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 56px 0; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 12px; }
}

/* ---------- RTL tweaks ---------- */
html[dir="rtl"] .site-nav { flex-direction: row-reverse; }
html[dir="rtl"] .quote-card blockquote {
  border-inline-start: 0; border-inline-end: 3px solid var(--c-accent-2);
  padding-inline-start: 0; padding-inline-end: 14px;
}
