/*
Theme Name: Ataa Al Samaa
Description: Bilingual website for Sky Tenders Organization for Human Rights.
Version: 1.9.1
Requires PHP: 8.3
Text Domain: ataa-samaa
*/

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("assets/fonts/noto-kufi-arabic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #243b2e;
  --muted: #5b685e;
  --forest: #23613f;
  --forest-deep: #123527;
  --forest-rule: #557b63;
  --light-text: #e5eee6;
  --tint: #f0f4eb;
  --gold: #f5b57d;
  --gold-dark: #a64d13;
  --accent: #b95412;
  --rule: #e0e6db;
  --body: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --heading-weight: 400;
  --section-space: clamp(3.1rem, 6.8vw, 7rem);
}
html[dir="rtl"] {
  --body: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --display: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  --heading-weight: 700;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--body); }
[dir="rtl"] body { line-height: 1.85; }
a { color: inherit; text-underline-offset: .24em; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--gold); }
.wrap { width: min(75rem, calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; inset-inline-start: 1rem; top: 1rem; transform: translateY(-200%); padding: .6rem 1rem; background: var(--white); }
.skip-link:focus { transform: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem 1.15rem; border: 1px solid transparent; border-radius: 2px; background: var(--forest); color: var(--white); text-decoration: none; font-weight: 700; line-height: 1.4; }
.button:hover { filter: brightness(1.09); }
.button.gold { background: var(--gold); color: #231f17; }
.button.outline { background: transparent; color: inherit; border-color: currentColor; }
.button.quiet { padding-inline: 0; background: transparent; color: inherit; text-decoration: underline; }
.button.quiet:hover { text-decoration-thickness: 2px; }
.buttons { display: flex; align-items: start; gap: .5rem 1.35rem; flex-wrap: wrap; }

.hero { background: var(--forest); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.75rem, 5.2vw, 5.1rem); }
.hero-copy { min-width: 0; }
.hero h1, .page-banner h1, .section-heading h2, .content h2, .participate h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: var(--heading-weight);
  text-wrap: balance;
}
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 7.65rem); line-height: .97; letter-spacing: -.03em; }
[dir="rtl"] .hero h1 { font-size: clamp(2.75rem, 6.15vw, 6.3rem); line-height: 1.13; letter-spacing: normal; }
.hero h1 span { display: block; }
.hero .hero-subtitle { color: var(--gold); font-size: .48em; line-height: 1.12; margin-block-start: .18em; letter-spacing: normal; }
[dir="rtl"] .hero .hero-subtitle { font-size: .62em; margin-block-start: .05em; }
.hero .location { color: var(--gold); font-weight: 700; font-size: .94rem; margin: 0 0 1.1rem; display: inline-flex; align-items: center; gap: .65rem; }
.hero .location::before { content: ""; width: 1.8rem; border-block-start: 1px solid currentColor; }
.hero-intro { color: var(--light-text); font-size: clamp(1rem, 1.35vw, 1.19rem); max-width: 32rem; margin-block: 1.4rem 1.7rem; }
.hero-intro p { margin: 0; }
.hero-intro p + p { margin-block-start: .75rem; }
.hero-portrait { margin: 0; min-width: 0; }
.portrait-frame { padding: .48rem; border: 1px solid var(--forest-rule); border-block-start: 3px solid var(--gold); background: var(--forest-deep); }
.portrait-frame img { width: 100%; aspect-ratio: 1.13; object-fit: cover; object-position: center 50%; }
.hero-portrait figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 1rem; padding-block-start: .65rem; font-size: .92rem; }
.hero-portrait figcaption span { color: var(--light-text); }

.ledger { background: var(--tint); border-block-end: 1px solid var(--rule); }
.ledger-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger a { min-height: 5.5rem; padding: .85rem clamp(.7rem, 2.6vw, 2rem); display: flex; align-items: center; gap: .45rem 1rem; text-decoration: none; }
.ledger a + a { border-inline-start: 1px solid var(--rule); }
.ledger a:first-child { padding-inline-start: 0; }
.ledger a:hover span { text-decoration: underline; }
.ledger strong { font: 400 clamp(2rem, 3.9vw, 3.75rem)/1 "Instrument Serif", Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.ledger span { color: var(--muted); font-size: .92rem; line-height: 1.4; }

.section { padding-block: var(--section-space); }
.section-tinted { background: var(--tint); border-block: 1px solid var(--rule); }
.editorial { display: grid; grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 7vw, 7rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.15rem; margin-block-end: 1.1rem; }
.editorial > .section-heading { display: block; }
.editorial > .section-heading .button { margin-block-start: .5rem; }
.section-heading h2, .participate h2 { font-size: clamp(2.1rem, 4.2vw, 4.3rem); line-height: 1.1; }
[dir="rtl"] .section-heading h2, [dir="rtl"] .participate h2 { font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.3; }
.entries { min-width: 0; }
.entries-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.75rem; }
.entry { min-width: 0; padding: 1.15rem 0 1.25rem; border-block-start: 1px solid var(--rule); }
.entry h3 { margin: 0 0 .45rem; font-size: clamp(1.12rem, 1.7vw, 1.42rem); font-weight: 700; line-height: 1.42; }
.entry h3 a { display: flex; align-items: baseline; justify-content: space-between; min-height: 44px; gap: .6rem; text-decoration: none; }
.entry h3 a::after { content: ""; flex: 0 0 .48rem; height: .48rem; border-inline-end: 1.5px solid var(--gold-dark); border-block-start: 1.5px solid var(--gold-dark); transform: rotate(45deg); }
[dir="rtl"] .entry h3 a::after { transform: rotate(-45deg); }
.entry h3 a:hover { text-decoration: underline; }
.entry p { color: var(--muted); margin: 0; }
.entries-rows .entry:last-child { border-block-end: 1px solid var(--rule); }
.dispatches { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: clamp(2.4rem, 6vw, 5rem); }
.news-column { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(1.2rem, 3vw, 2.5rem); }

.closing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.65rem, 6vw, 5.5rem); align-items: center; }
.president-quote { border-inline-start: 3px solid var(--gold-dark); margin: 0; padding-inline-start: clamp(1rem, 3vw, 2rem); }
.president-quote blockquote { margin: 0; font: var(--heading-weight) clamp(1.65rem, 3.1vw, 3.2rem)/1.35 var(--display); text-wrap: balance; }
.president-quote p { margin: 0; }
.president-quote figcaption { margin-block-start: .75rem; color: var(--muted); }
.president-quote a { display: inline-flex; align-items: center; min-height: 44px; }
.participate h2 { font-size: clamp(1.9rem, 3vw, 3rem); margin-block-end: 1rem; }

.page-banner { background: var(--forest); color: var(--white); }
.page-banner-inner { padding-block: clamp(2rem, 5.7vw, 5.1rem); }
.page-banner h1 { max-width: 65rem; font-size: clamp(2.7rem, 6vw, 6.3rem); line-height: 1.03; }
[dir="rtl"] .page-banner h1 { font-size: clamp(2rem, 4.5vw, 4.35rem); line-height: 1.25; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .75rem; margin: 0 0 .6rem; padding: 0; list-style: none; color: var(--gold); font-size: .9rem; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .75rem; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.page-banner :focus-visible { outline-color: var(--gold); }
.content { padding-block: clamp(2.2rem, 5vw, 4.7rem) var(--section-space); }
.prose { max-width: 50rem; }
.wide-content > :where(p, ul, ol) { max-width: 52rem; }
.content h2 { margin-block: 1.6em .5em; font-size: clamp(1.8rem, 3.3vw, 3.2rem); line-height: 1.2; }
[dir="rtl"] .content h2 { font-size: clamp(1.45rem, 2.5vw, 2.4rem); }
.content h2:first-child { margin-block-start: 0; }
.content p { margin-block: 0 1.15em; }
.content .entry p { margin: 0; }
.content .entries, .content .bank, .content .documents { margin-block: 1.5rem 2.25rem; }
.article-image { margin-block-end: 1.5rem; }
.documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; max-width: 61rem; }
.documents figure { margin: 0; background: var(--white); padding: 1rem; border: 1px solid var(--rule); }
.documents img { width: 100%; max-height: 26rem; object-fit: contain; }
.documents figcaption { margin-block-start: .75rem; }
.bank { background: var(--white); border: 1px solid var(--rule); border-block-start: 3px solid var(--gold-dark); padding: clamp(.85rem, 3vw, 1.6rem); }
.bank dl { margin: 0; }
.bank-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: .65rem; padding-block: .6rem; border-block-end: 1px solid var(--rule); }
.bank-row:last-child { border-block-end: 0; }
.bank-row dt { font-weight: 700; }
.bank-row dd { margin: 0; overflow-wrap: anywhere; }
.bank-row .button { min-height: 44px; padding: .35rem .65rem; }
.copy-status { min-height: 1.75em; margin: .5rem 0 0 !important; }
.contact-form label { display: block; font-weight: 650; }
.contact-form input:not([type="submit"]):not([type="checkbox"]), .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid #667d6e; border-radius: 2px; background: var(--white); color: var(--ink); }
.contact-form .wpcf7-list-item { margin: 0; }
.contact-form .wpcf7-submit { cursor: pointer; }

.footer { background: var(--forest-deep); color: var(--white); padding-block: 3.25rem 1.35rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .75fr; gap: 1.6rem; }
.footer h2 { margin: 0 0 .55rem; font-size: 1.05rem; }
.footer p { margin: 0; color: var(--light-text); }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-bottom { margin-block-start: 1.3rem; padding-block-start: .55rem; border-block-start: 1px solid var(--forest-rule); color: var(--light-text); font-size: .88rem; }

@media (max-width: 47rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .editorial, .dispatches, .closing { grid-template-columns: 1fr; }
  .hero-grid { gap: 1.75rem; }
  .hero-portrait { width: min(100%, 28rem); }
  .hero-intro { margin-block: 1rem 1.25rem; }
  .editorial { gap: .25rem; }
  .section-heading { gap: .25rem 1rem; margin-block-end: .65rem; }
  .editorial > .section-heading { display: flex; }
  .editorial > .section-heading .button { margin-block-start: 0; }
  .news-column { border-inline-start: 0; padding-inline-start: 0; }
  .entries-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger a { flex-direction: column; align-items: start; justify-content: center; gap: .25rem; }
}
@media (max-width: 36rem) {
  .entries-grid, .footer-grid { grid-template-columns: 1fr; }
  .ledger span { font-size: .81rem; }
  .documents { grid-template-columns: 1fr; }
  .bank-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bank-row dt { grid-column: 1 / -1; }
}

.ataa-icon { width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.page-banner { background: #eef3e9; color: var(--ink); border-bottom: 1px solid var(--rule); }
.breadcrumb { color: var(--forest); }
.page-banner :focus-visible { outline-color: var(--forest); }
.page-banner-inner { padding-block: 2.2rem 3rem; }
.page-banner h1 { font-family: var(--body); font-weight: 700; }
[dir="rtl"] .page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.7; }
.content .entry { padding: 1.3rem; border: 1px solid var(--rule); background: #fff; }
.content .entry h3 { font-family: var(--body); font-size: 1.05rem; }
.content .entry p { font-size: .9rem; }
.content .entries { gap: 1.2rem; }
.content .prose { line-height: 2; }
.footer { padding-block: 3.5rem 1rem; font-size: .82rem; }
.footer-grid { grid-template-columns: 1.45fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer .footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; text-decoration: none; }
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; }
.footer-brand strong { display: block; font-size: 1.1rem; }
.footer-brand small { color: #d0dfd0; }
.footer h2 { font-size: .9rem; margin-bottom: 1rem; }
.footer p { font-size: .8rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-summary { max-width: 22rem; }
.footer .footer-socials { display: flex; gap: .5rem; margin-top: .8rem; }
.footer-socials a { display: grid; place-items: center; width: 38px; min-height: 40px; border: 1px solid #ffffff40; }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: 2rem; padding-top: 1rem; font-size: .7rem; }
@media (max-width: 60rem) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; } .footer-bottom { align-items: start; flex-direction: column; } }
