/* ==========================================================================
   El Manara International Schools — global stylesheet
   Brand: deep green, gold, cream. Mobile-first, LTR with RTL overrides.
   ========================================================================== */

:root {
  --green-900: #101f16;
  --green-800: #16291d;
  --green-700: #1b3022;
  --green-600: #24412e;
  --green-500: #35573f;

  --gold-600: #a9861d;
  --gold-500: #c9a227;
  --gold-400: #dcbb52;
  --gold-100: #f3e7c4;

  --cream-50: #fdfbf6;
  --cream-100: #f7f3ea;
  --cream-200: #efe8da;
  --cream-300: #e2d8c4;

  --ink-900: #1c1c19;
  --ink-700: #3d3f3a;
  --ink-500: #63665f;

  --white: #ffffff;

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1200px;
  --gutter: 1.25rem;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 31, 22, 0.06), 0 4px 12px rgba(16, 31, 22, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 31, 22, 0.1);

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background-color: var(--cream-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-600);
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-800);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-700);
  line-height: 1.75;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--green-700);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* --------------------------------------------------------- layout helpers */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 800px;
}

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

.section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.section--cream {
  background: var(--cream-100);
}

.section--dark {
  background: var(--green-800);
  color: var(--cream-100);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark p {
  color: rgba(247, 243, 234, 0.86);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.85rem;
}

.section--dark .eyebrow,
.hero .eyebrow {
  color: var(--gold-400);
}

.rule {
  width: 3.5rem;
  height: 2px;
  background: var(--gold-500);
  border: 0;
  margin: 0 0 1.4rem;
}

.section-head--center .rule {
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1000px) {
  .grid {
    gap: 1.75rem;
  }

  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--wide-text {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .split--media-first > .split__media {
    order: -1;
  }
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.frame {
  position: relative;
}

.frame::after {
  content: "";
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-400);
  border-radius: var(--radius-md);
  z-index: -1;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.95rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-600);
  color: var(--white);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--green-900);
}

.btn--gold:hover {
  background: var(--gold-400);
  color: var(--green-900);
}

.btn--ghost {
  border-color: var(--green-700);
  color: var(--green-700);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--green-700);
  color: var(--white);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--light:hover {
  background: var(--white);
  color: var(--green-800);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-700);
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-800);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  padding-block: 0.5rem;
}

.brand__mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.5);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.nav-lang {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  color: var(--gold-100);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-900);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.site-nav {
  display: none;
  width: 100%;
  padding-bottom: 1rem;
  order: 3;
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.75rem;
}

.site-nav__link {
  display: block;
  padding: 0.65rem 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.site-nav__link:hover {
  color: var(--gold-400);
}

.site-nav__link[aria-current="page"] {
  color: var(--gold-400);
  font-weight: 600;
}

.has-sub {
  position: relative;
}

.sub-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.65rem 0.25rem;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: start;
  cursor: pointer;
}

.sub-toggle::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s var(--ease);
}

.sub-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.sub-toggle:hover {
  color: var(--gold-400);
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 1rem;
  display: none;
}

.site-nav__sub.is-open {
  display: block;
}

.site-nav__sub .site-nav__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 0.5rem;
}

@media (min-width: 1100px) {
  .nav-toggle {
    display: none;
  }

  .lang-switch--tools {
    display: none;
  }

  .nav-lang {
    display: list-item;
  }

  .site-header__bar {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .site-nav {
    display: block;
    width: auto;
    padding-bottom: 0;
    flex: 1 1 auto;
    order: 0;
    min-width: 0;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    border-top: 0;
    padding-top: 0;
  }

  .site-nav__link,
  .sub-toggle {
    padding: 0.4rem 0.42rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .nav-lang .lang-switch {
    margin-inline-start: 0.35rem;
  }

  .site-nav__sub {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 13rem;
    padding: 0.4rem;
    background: var(--green-800);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .has-sub:hover .site-nav__sub,
  .has-sub:focus-within .site-nav__sub {
    display: block;
  }

  .site-nav__sub .site-nav__link {
    padding: 0.5rem 0.6rem;
  }
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 40rem);
  padding-block: clamp(3.5rem, 12vw, 7rem);
  background: var(--green-900);
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(16, 31, 22, 0.94) 0%,
      rgba(16, 31, 22, 0.72) 38%,
      rgba(16, 31, 22, 0.34) 70%,
      rgba(16, 31, 22, 0.5) 100%
    );
}

.hero__inner {
  position: relative;
  width: 100%;
}

.hero__content {
  max-width: 44rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5em;
}

.hero__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}

.hero--page {
  min-height: min(46vh, 24rem);
  align-items: center;
}

.hero--page h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

.hero--page .hero__media img {
  object-position: center 32%;
}

.hero--plain {
  min-height: 0;
  padding-block: clamp(2.75rem, 8vw, 4.5rem);
  background: var(--green-800);
}

/* ------------------------------------------------------------------- cards */

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.card--link:hover {
  transform: translateY(-3px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-200);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  color: var(--ink-700);
  font-size: 0.96rem;
}

.card__body .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

.card__flag {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.tile {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
  height: 100%;
}

.tile h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.tile p {
  font-size: 0.94rem;
  color: var(--ink-700);
  margin: 0;
}

.tile__index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-500);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.section--dark .tile {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 162, 39, 0.25);
}

.section--dark .tile p {
  color: rgba(247, 243, 234, 0.82);
}

.value {
  padding: 1.4rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-inline-start: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  height: 100%;
}

.value h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.value p {
  font-size: 0.92rem;
  color: var(--ink-700);
  margin: 0;
}

/* -------------------------------------------------------------------- lists */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 700px) {
  .check-list--2col {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

.check-list li {
  position: relative;
  padding-inline-start: 1.75rem;
  font-size: 0.97rem;
  color: var(--ink-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
}

.section--dark .check-list li {
  color: rgba(247, 243, 234, 0.86);
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.9rem;
}

.prose ul {
  padding-inline-start: 1.2rem;
  color: var(--ink-700);
}

.prose li {
  margin-bottom: 0.45rem;
}

/* -------------------------------------------------------------------- stats */

.stats {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    text-align: start;
  }
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--gold-400);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(247, 243, 234, 0.8);
}

/* -------------------------------------------------------------------- quote */

.quote {
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius-md);
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--green-700);
}

.quote footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.pull-quote {
  margin: 2rem 0;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--green-700);
}

/* ---------------------------------------------------------------- memorial */

.memorial {
  display: grid;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

@media (min-width: 900px) {
  .memorial {
    grid-template-columns: minmax(18rem, 28rem) 1fr;
    align-items: center;
  }
}

.memorial__portrait {
  margin: 0;
}

.memorial__frame {
  position: relative;
  background: var(--green-800);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.memorial__frame::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.55);
  pointer-events: none;
}

.memorial__frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0;
  box-shadow: none;
}

.memorial__portrait figcaption {
  margin-top: 1.1rem;
  text-align: center;
}

.memorial__portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-800);
  font-weight: 600;
}

.memorial__portrait figcaption span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.memorial__name {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.35;
  color: var(--green-800);
}

.memorial__name span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.memorial .quote {
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ gallery */

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream-200);
  border: 1px solid var(--cream-300);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-500);
  background: var(--white);
}

.gallery__wide {
  grid-column: 1 / -1;
}

.gallery__wide img {
  aspect-ratio: 16 / 7;
}

/* ------------------------------------------------------------------- ribbon */

.ribbon {
  background: var(--gold-500);
  color: var(--green-900);
  padding-block: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

.ribbon a {
  color: var(--green-900);
}

/* ---------------------------------------------------------------- cta strip */

.cta {
  background: var(--green-700);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 40rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
}

.cta .btn-row {
  justify-content: center;
}

/* ------------------------------------------------------------------ contact */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-list dt,
.contact-item__label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-size: 1.02rem;
  color: var(--ink-900);
  font-weight: 500;
}

.contact-item__value a {
  text-decoration: none;
}

.contact-item__value a:hover {
  text-decoration: underline;
}

.form-note {
  padding: 1.5rem;
  background: var(--cream-100);
  border: 1px dashed var(--cream-300);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--ink-700);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  background: var(--green-900);
  color: rgba(247, 243, 234, 0.72);
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(247, 243, 234, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
}

.footer__brand .brand__name {
  color: var(--white);
}

.footer__motto {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-400);
  margin-top: 1rem;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.83rem;
}

/* --------------------------------------------------------- floating contact */

.whatsapp-float {
  position: fixed;
  inset-block-end: 1.1rem;
  inset-inline-end: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: var(--green-700);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.whatsapp-float:hover {
  background: var(--gold-500);
  color: var(--green-900);
}

.whatsapp-float svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
  flex: none;
}

@media (max-width: 480px) {
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
  }
}

/* ------------------------------------------------------------ misc + states */

.notice {
  padding: 1.1rem 1.3rem;
  background: var(--cream-100);
  border-inline-start: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--ink-700);
}

.error-page {
  text-align: center;
  padding-block: clamp(4rem, 14vw, 8rem);
}

.error-page .btn-row {
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------- RTL support */

[dir="rtl"] {
  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "Cairo", "Segoe UI", sans-serif;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4 {
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

[dir="rtl"] body {
  line-height: 1.9;
}

[dir="rtl"] .hero__motto,
[dir="rtl"] .footer__motto,
[dir="rtl"] .quote p,
[dir="rtl"] .pull-quote {
  font-style: normal;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .footer__title,
[dir="rtl"] .contact-item__label,
[dir="rtl"] .quote footer,
[dir="rtl"] .brand__sub,
[dir="rtl"] .memorial__portrait figcaption span,
[dir="rtl"] .memorial__name span {
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .text-link::after {
  content: "\2190";
}

[dir="rtl"] .text-link:hover::after {
  transform: translateX(-3px);
}

[dir="rtl"] .sub-toggle::after {
  transform: rotate(45deg) translateY(-2px);
}

/* ------------------------------------------------------------- preferences */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------- project partners */

.partners .section-head {
  max-width: 46rem;
}

.partners .lead {
  color: rgba(247, 243, 234, 0.92);
}

.credit-banner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--green-900);
  border: 1px solid rgba(220, 187, 82, 0.22);
  border-radius: var(--radius-lg);
}

@media (min-width: 800px) {
  .credit-banner {
    grid-template-columns: auto 1fr;
    gap: 2.25rem;
    padding-inline: 2.5rem;
  }
}

.credit-banner__logo {
  width: min(11.5rem, 42vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: #061018;
  box-shadow: 0 0 0 3px rgba(220, 187, 82, 0.28), 0 12px 30px rgba(0, 0, 0, 0.28);
}

.credit-banner__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credit-banner__copy {
  text-align: center;
}

@media (min-width: 800px) {
  .credit-banner__copy {
    text-align: start;
  }
}

.credit-banner__copy h3 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 0.45rem;
}

.credit-banner__copy p {
  margin: 0;
  color: rgba(247, 243, 234, 0.82);
}

.partners__people {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .partners__people {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}

.partner {
  display: flex;
  flex-direction: column;
  background: var(--green-900);
  border: 1px solid rgba(220, 187, 82, 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.partner__media {
  position: relative;
  overflow: hidden;
  background: #061018;
}

.partner__media--portrait {
  height: 26rem;
  flex: none;
}

.partner__media--portrait > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.partner__badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(220, 187, 82, 0.55), 0 8px 18px rgba(0, 0, 0, 0.45);
  background: #111;
}

.partner__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner__media--mark {
  flex: 1;
  min-height: 16rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(220, 187, 82, 0.12), transparent 58%),
    var(--green-900);
}

.partner__monogram {
  width: 7.25rem;
  height: 7.25rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  color: var(--gold-400);
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.partner__body {
  padding: 1.35rem 1.4rem 1.6rem;
  text-align: center;
}

.partner__role {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.partner__body h3 {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: 1.2rem;
}

.partner__body p:last-child {
  margin: 0;
  color: rgba(247, 243, 234, 0.78);
  font-size: 0.95rem;
}

[dir="rtl"] .partner__badge {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .partner__monogram {
  letter-spacing: 0;
}

@media print {
  .site-header,
  .site-nav,
  .whatsapp-float,
  .ribbon,
  .cta {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
