
/* ------------------------------------------------------------------
   Amoud Al-Deen Foundation — site styles
   Identity: navy + green from the official logo, on a warm paper base.
   Signature motif: the arch (a nod to the column in the logo).
------------------------------------------------------------------ */

:root {
  --navy: #0d3157;
  --navy-deep: #08223d;
  --green: #17914a;
  --green-deep: #0f6e37;
  --leaf: #8fd08a;
  --mint: #e4f3e6;
  --amber: #f2b84b;
  --paper: #f8f5ee;
  --cream: #fffdf9;
  --ink: #12283c;
  --muted: #55677a;
  --line: #e4dfd2;
  --white: #fff;
  --on-navy: #cfe0ee;
  --on-navy-soft: #a9c1d6;
  --mint-light: #f1f8ef;
  --green-ink: #2f4a3d;
  --sun-soft: #fdf1d6;
  --sun-ink: #8a5a00;
  --danger: #b3261e;
  --display: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --sans: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  --radius: 22px;
  --arch: 999px 999px 26px 26px;
  --shadow-sm: 0 6px 20px rgba(13, 49, 87, .07);
  --shadow: 0 22px 60px rgba(13, 49, 87, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body[dir="rtl"] {
  --display: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  --sans: "IBM Plex Sans Arabic", "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[dir="ltr"] { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
/* A lone last card in a 3-column grid spans the full row. */
@media (min-width: 901px) { .grid-3 > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.35; color: var(--navy); }
body[dir="ltr"] :is(h1, h2, h3) { font-weight: 800; line-height: 1.12; letter-spacing: -.03em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green); color: var(--white); }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -5rem; background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 238, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { background: rgba(255, 253, 249, .95); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 92px; transition: height .3s var(--ease); }
.scrolled .nav { height: 74px; }
.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand-logo { width: 68px; height: auto; transition: width .3s var(--ease); }
.scrolled .brand-logo { width: 54px; }
.brand-text { display: grid; line-height: 1.3; }
.brand-text strong { font-family: var(--display); font-size: 1.12rem; color: var(--navy); }
.brand-text small { font-size: .78rem; color: var(--green-deep); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: .2rem; font-size: .9rem; font-weight: 600; }
.nav-links > a:not(.btn):not(.lang-link) { position: relative; padding: .5rem .7rem; color: var(--ink); border-radius: 10px; transition: color .2s, background .2s; }
.nav-links > a:not(.btn):not(.lang-link)::after {
  content: ""; position: absolute; inset-inline: .7rem; bottom: .2rem; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-links > a:not(.btn):not(.lang-link):hover { color: var(--green-deep); }
.nav-links > a:hover::after, .nav-links > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links > a[aria-current="page"]:not(.btn) { color: var(--green-deep); }
.lang-link { margin-inline-start: .5rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--navy); background: var(--cream); transition: border-color .2s; }
.lang-link:hover { border-color: var(--navy); }
.nav-links .btn { margin-inline-start: .5rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); color: var(--navy); cursor: pointer; place-items: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background .2s; }
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--white); font-weight: 700; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 145, 74, .26);
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(23, 145, 74, .32); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .text-link:hover .arr { transform: translateX(-5px); }
[dir="ltr"] .btn:hover .arr, [dir="ltr"] .text-link:hover .arr { transform: translateX(5px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .86rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(13, 49, 87, .28); box-shadow: none; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: none; }
.btn-light { background: var(--white); color: var(--green-deep); border-color: var(--white); box-shadow: none; }
.btn-light:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-deep); box-shadow: none; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-outline-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--green-deep); border-bottom: 2px solid var(--leaf); padding-bottom: .15rem; transition: border-color .2s; }
.text-link:hover { border-color: var(--green-deep); }
.text-link .arr { transition: transform .25s var(--ease); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 700; color: var(--green-deep); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--amber); }
[dir="ltr"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--mint); color: var(--green-deep); transition: background .3s, color .3s, transform .3s var(--ease); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-tint { background: var(--cream); border-block: 1px solid var(--line); }
.section-mint { background: linear-gradient(180deg, var(--mint), var(--mint-light)); }
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2, .copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.sec-head .lead { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-head-row .sec-head { margin-bottom: 0; }
.copy p { color: var(--muted); }
.copy p + p { margin-top: 1rem; }
.copy h2 + p { margin-top: 1.2rem; }
.copy .kicker { color: var(--navy); font-weight: 600; font-size: 1.12rem; }
.copy .text-link, .copy .btn-row { margin-top: 1.8rem; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split.flip > :first-child { order: 2; }

/* ---------- Photos ---------- */
.photo { position: relative; border-radius: 28px; overflow: hidden; background: var(--mint); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo.arch { border-radius: var(--arch); }
.photo-stack { position: relative; padding-block-end: 3.5rem; padding-inline-end: 3rem; }
.photo-stack .photo.main { aspect-ratio: 4 / 3.4; }
.photo-stack .photo.small { position: absolute; inset-inline-end: 0; bottom: 0; width: 44%; aspect-ratio: 1; border: 7px solid var(--paper); box-shadow: var(--shadow); }
.section-tint .photo-stack .photo.small { border-color: var(--cream); }
.photo-stack .stamp {
  position: absolute; inset-inline-start: -1rem; bottom: 0; z-index: 2;
  background: var(--navy); color: var(--white); border-radius: 18px; padding: .8rem 1.2rem; text-align: center; line-height: 1.3;
  box-shadow: var(--shadow); transform: rotate(-4deg);
}
[dir="ltr"] .photo-stack .stamp { transform: rotate(4deg); }
.stamp strong { display: block; font: 800 1.7rem/1.1 "Manrope", sans-serif; color: var(--amber); }
.stamp span { font-size: .78rem; font-weight: 600; }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(6rem, 9vw, 8rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38rem 30rem at 12% 20%, rgba(143, 208, 138, .38), transparent 70%),
    radial-gradient(30rem 26rem at 92% 88%, rgba(242, 184, 75, .16), transparent 70%);
}
[dir="ltr"] .hero::before { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.7rem); line-height: 1.35; }
[dir="ltr"] .hero h1 { line-height: 1.08; font-size: clamp(2.3rem, 4.4vw, 3.7rem); }
[dir="ltr"] .hero h1 em { white-space: normal; }
.hero-grid > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .02em; height: .2em; z-index: -1; border-radius: 999px;
  background: var(--amber); opacity: .55; transform-origin: right; animation: sweep 1s .7s var(--ease) both;
}
[dir="ltr"] .hero h1 em::after { transform-origin: left; }
.hero-lead { margin: 1.5rem 0 2rem; font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.hero-places { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; align-items: center; font-size: .86rem; color: var(--muted); }
.hero-places li { padding: .3rem .85rem; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.hero-places li:first-child { background: none; border: 0; padding-inline-start: 0; color: var(--muted); font-weight: 500; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

.collage { position: relative; display: flex; align-items: flex-end; gap: 1rem; height: clamp(380px, 44vw, 540px); }
.collage .photo { flex: 1; border-radius: var(--arch); animation: grow 1s var(--ease) both; }
.collage .photo:nth-child(1) { height: 70%; animation-delay: .25s; }
.collage .photo:nth-child(2) { height: 100%; flex: 1.25; animation-delay: .1s; }
.collage .photo:nth-child(3) { height: 82%; animation-delay: .4s; }
.collage::before {
  content: ""; position: absolute; z-index: -1; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(23, 145, 74, .35); inset-inline-start: 13%; top: -6%; animation: spin 60s linear infinite;
}
.float-badge {
  position: absolute; inset-inline-end: -1rem; bottom: 2.2rem; z-index: 2;
  display: flex; align-items: center; gap: .8rem; background: var(--cream); border-radius: 20px; padding: .8rem 1.1rem;
  box-shadow: var(--shadow); animation: rise .8s .7s var(--ease) both, bob 6s 1.6s ease-in-out infinite;
}
.float-badge .icon-tile { width: 46px; height: 46px; border-radius: 14px; background: var(--green); color: var(--white); }
.float-badge strong { display: block; font: 800 1.25rem/1.2 "Manrope", sans-serif; color: var(--navy); }
.float-badge span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.leaf-deco { position: absolute; inset-inline-start: -1.6rem; top: 8%; width: 74px; color: var(--green); z-index: 2; animation: sway 7s ease-in-out infinite; transform-origin: bottom center; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.9rem 1.5rem; text-align: center; color: var(--on-navy); position: relative; }
.stat + .stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 25%; height: 50%; width: 1px; background: rgba(255, 255, 255, .16); }
.stat strong { display: block; font: 800 clamp(2rem, 3.6vw, 2.9rem)/1.1 "Manrope", sans-serif; color: var(--white); font-variant-numeric: tabular-nums; }
.stat:nth-child(odd) strong { color: var(--leaf); }
.stat span { font-size: .92rem; font-weight: 500; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.9rem; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card h3 { font-size: 1.28rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover .icon-tile { background: var(--green); color: var(--white); transform: rotate(-6deg) scale(1.06); }
.card .num { position: absolute; inset-inline-end: 1.3rem; top: .9rem; font: 800 2.6rem/1 "Manrope", sans-serif; color: var(--mint); transition: color .3s; }
.card:hover .num { color: var(--leaf); }
.card .more { margin-top: auto; display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; font-weight: 700; color: var(--green-deep); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.card:hover .more, .card:focus-visible .more { opacity: 1; transform: none; }
.card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--leaf)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
[dir="ltr"] .card::after { transform-origin: left; }
.card:hover::after { transform: scaleX(1); }
.card.dark { background: var(--navy); border-color: var(--navy); }
.card.dark h3 { color: var(--white); }
.card.dark p { color: var(--on-navy); font-size: 1.05rem; }
.card.dark .icon-tile { background: rgba(255, 255, 255, .12); color: var(--leaf); }
.card.soft { background: var(--mint); border-color: transparent; }
.card.soft p { color: var(--green-ink); font-size: 1.05rem; }
.card.soft .icon-tile { background: var(--white); }
.tag { align-self: flex-start; padding: .2rem .75rem; border-radius: 999px; background: var(--sun-soft); color: var(--sun-ink); font-size: .76rem; font-weight: 700; }

/* ---------- Vision band ---------- */
.band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(34rem 24rem at 85% 0%, rgba(23, 145, 74, .55), transparent 70%), radial-gradient(26rem 20rem at 0% 100%, rgba(143, 208, 138, .18), transparent 70%); }
.band::after { content: ""; position: absolute; z-index: -1; width: 30rem; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); inset-inline-end: -8rem; bottom: -14rem; box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .03), 0 0 0 7rem rgba(255, 255, 255, .025); }
.band .eyebrow { color: var(--leaf); }
.band-quote { font: 700 clamp(1.6rem, 3.3vw, 2.7rem)/1.6 var(--display); max-width: 26ch; color: var(--white); }
[dir="ltr"] .band-quote { line-height: 1.25; letter-spacing: -.02em; font-weight: 800; }
.band-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem; align-items: center; }
.band-mark { justify-self: center; width: min(240px, 100%); background: var(--white); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 2.2rem; box-shadow: 0 0 0 14px rgba(255, 255, 255, .08), 0 0 0 30px rgba(255, 255, 255, .04); animation: bob 7s ease-in-out infinite; }

/* ---------- Tracks ---------- */
.mini-tracks { display: grid; gap: .6rem; margin-top: 1.6rem; counter-reset: t; }
.mini-tracks li { counter-increment: t; display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px; font-weight: 600; color: var(--navy); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mini-tracks li::before { content: counter(t); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--green-deep); font: 800 .9rem "Manrope", sans-serif; flex-shrink: 0; transition: background .3s, color .3s; }
.mini-tracks li:hover { transform: translateX(-8px); border-color: var(--leaf); box-shadow: var(--shadow-sm); }
[dir="ltr"] .mini-tracks li:hover { transform: translateX(8px); }
.mini-tracks li:hover::before { background: var(--green); color: var(--white); }

.timeline { position: relative; display: grid; gap: 1.3rem; counter-reset: t; max-width: 900px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 1rem; bottom: 1rem; width: 2px; background: linear-gradient(var(--green), var(--leaf)); }
.timeline li { counter-increment: t; position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem; align-items: start; }
.timeline li::before { content: counter(t, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--white); font: 800 1rem "Manrope", sans-serif; box-shadow: 0 0 0 7px var(--paper); position: relative; z-index: 1; }
.section-mint .timeline li::before { box-shadow: 0 0 0 7px var(--mint-light); }
.timeline .card { gap: .5rem; }

/* ---------- Marquee gallery ---------- */
.marquee { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.1rem; width: max-content; animation: marquee 70s linear infinite; padding-block: 1rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .photo { width: clamp(220px, 24vw, 320px); aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.marquee .photo:nth-child(3n + 1) { border-radius: var(--arch); }
.marquee .photo:nth-child(even) { margin-top: 1.6rem; }

/* ---------- Partners ---------- */
.partner { align-items: flex-start; }
.partner .mono, .partner-row .mono { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1.2rem var(--display); }
.partner:nth-child(even) .mono, .partner-row:nth-child(even) .mono { background: var(--green); }
.partner h3 { font-size: 1.1rem; }
.partner p { font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { padding: .5rem 1.1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); }

/* ---------- CTA + footer ---------- */
.cta-wrap { padding: 0 0 clamp(4rem, 7vw, 6rem); }
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.2rem, 5vw, 4rem); border-radius: 34px; background: linear-gradient(120deg, var(--green-deep), var(--green)); color: var(--white); box-shadow: var(--shadow); }
.cta::before, .cta::after { content: ""; position: absolute; z-index: -1; border-radius: var(--arch); border: 1.5px solid rgba(255, 255, 255, .2); bottom: 0; }
.cta::before { width: 190px; height: 82%; inset-inline-end: 6%; }
.cta::after { width: 120px; height: 55%; inset-inline-end: calc(6% + 210px); }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 20ch; }
.cta p { color: var(--mint); margin-top: .5rem; }
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 4rem 0 1.6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.footer-brand img { width: 74px; background: var(--white); border-radius: 18px; padding: 8px; }
.footer-brand strong { font: 700 1.2rem var(--display); color: var(--white); }
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-nav { display: grid; gap: .45rem; }
.site-footer a { transition: color .2s, padding .25s var(--ease); }
.footer-nav a:hover { color: var(--leaf); padding-inline-start: .4rem; }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .icon { width: 20px; height: 20px; margin-top: .35rem; color: var(--leaf); flex-shrink: 0; }
.footer-contact a:hover { color: var(--leaf); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 3rem; padding-top: 1.3rem; font-size: .84rem; color: var(--on-navy-soft); }
.to-top { position: fixed; inset-inline-end: 1.4rem; bottom: 1.4rem; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), background .2s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--green); }
.to-top .icon { width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36rem 24rem at 100% 0%, rgba(23, 145, 74, .6), transparent 70%), radial-gradient(24rem 18rem at 30% 120%, rgba(143, 208, 138, .22), transparent 70%); }
[dir="ltr"] .page-hero::before { transform: scaleX(-1); }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; padding-top: clamp(3rem, 6vw, 5rem); }
.page-hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-hero-copy > * { animation: rise .8s var(--ease) both; }
.page-hero-copy > :nth-child(2) { animation-delay: .1s; }
.page-hero-copy > :nth-child(3) { animation-delay: .2s; }
.crumbs { display: flex; gap: .5rem; font-size: .86rem; color: var(--on-navy-soft); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-current] { color: var(--leaf); font-weight: 600; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero p { margin-top: 1rem; font-size: 1.15rem; color: var(--on-navy); max-width: 52ch; }
.page-hero .photo { justify-self: center; width: min(300px, 100%); aspect-ratio: 3 / 3.5; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); animation: grow 1s .15s var(--ease) both; }

/* ---------- Story / features ---------- */
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.story-side { position: sticky; top: 120px; }
.story-year { font: 800 clamp(5rem, 12vw, 10rem)/.9 "Manrope", sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--green); background: linear-gradient(180deg, rgba(23, 145, 74, .18), transparent); -webkit-background-clip: text; background-clip: text; }
.story-side .photo { margin-top: 1.5rem; aspect-ratio: 4 / 3; }
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature:nth-child(even) > .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media .photo { aspect-ratio: 4 / 3.1; }
.feature:nth-child(odd) .feature-media .photo { border-radius: 999px 28px 28px 28px; }
.feature:nth-child(even) .feature-media .photo { border-radius: 28px 999px 28px 28px; }
.feature-media .big-num { position: absolute; bottom: -1.4rem; inset-inline-end: 1.4rem; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--amber); color: var(--navy-deep); font: 800 1.6rem "Manrope", sans-serif; box-shadow: 0 0 0 8px var(--paper); }
.feature h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1rem; }
.feature p { color: var(--muted); }
.feature p + p { margin-top: .9rem; }
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.jump a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy); transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease); }
.jump a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-3px); }
.jump .icon { width: 18px; height: 18px; }

/* ---------- Forms & contact ---------- */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; background: var(--white); padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: .75rem .95rem; min-height: 50px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.form textarea { min-height: 120px; resize: vertical; }
.form :is(input, select, textarea):focus { outline: 0; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 4px rgba(23, 145, 74, .15); }
.full { grid-column: 1 / -1; }
.check { display: flex !important; align-items: flex-start; gap: .7rem; font-weight: 500 !important; color: var(--muted) !important; flex-wrap: wrap; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .4rem; accent-color: var(--green); flex-shrink: 0; padding: 0; }
.check > span:not(.error) { flex: 1; }
.check .error { flex-basis: 100%; }
.error { font-size: .8rem; color: var(--danger); font-weight: 500; }
.error:empty { display: none; }
.form button { justify-self: start; }
#form-status { font-size: .9rem; font-weight: 600; color: var(--navy); }
#form-status:empty { display: none; }
#form-status:not(:empty) { padding: .8rem 1rem; border-radius: 14px; background: var(--sun-soft); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; align-items: stretch; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { flex-direction: row; align-items: center; gap: 1.1rem; padding: 1.4rem 1.6rem; }
.contact-card h3 { font-size: 1.02rem; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .98rem; }
.contact-card a { color: var(--green-deep); font-weight: 700; }
.map { position: relative; border-radius: 28px; overflow: hidden; min-height: 420px; background: var(--mint); box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map .btn { position: absolute; inset-inline-start: 1rem; bottom: 1rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes grow { from { opacity: 0; transform: translateY(60px) scale(.94); } }
@keyframes sweep { from { transform: scaleX(0); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes sway { 50% { transform: rotate(9deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .nav-links { position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem 1.25rem 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1rem; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.btn):not(.lang-link) { padding: .7rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links > a:not(.btn):not(.lang-link)::after { display: none; }
  .lang-link, .nav-links .btn { margin: .8rem 0 0; align-self: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .split, .story, .feature, .form-layout, .contact-grid, .band-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child, .feature:nth-child(even) > .feature-media { order: 0; }
  .story-side { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .band-mark { display: none; }
  .page-hero .photo { display: none; }
  .float-badge { inset-inline-end: .5rem; }
  .leaf-deco { inset-inline-start: 0; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav { height: 76px; }
  .brand-logo { width: 54px; }
  .brand-text strong { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .form, .footer-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .collage { height: 340px; gap: .6rem; }
  .photo-stack { padding-inline-end: 1.5rem; }
  .photo-stack .stamp { inset-inline-start: .6rem; }
  .timeline li { grid-template-columns: 44px 1fr; gap: .9rem; }
  .timeline li::before { width: 44px; height: 44px; font-size: .85rem; }
  .timeline::before { inset-inline-start: 21px; }
  .cta::before, .cta::after { display: none; }
  .card .more { opacity: 1; transform: none; }
  .hero h1 em { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- WordPress additions ---------- */
.rich > p:first-child { color: var(--navy); font-weight: 600; font-size: 1.12rem; }
.copy h2 + .rich { margin-top: 1.2rem; }
.rich :is(ul, ol) { margin: 1rem 0; padding-inline-start: 1.4rem; list-style: revert; color: var(--muted); }
.rich a, .entry a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rich img, .entry img { border-radius: 20px; margin-block: 1rem; }
.closing { max-width: 820px; margin: 2.5rem auto 0; text-align: center; color: var(--muted); }
.closing.strong { font-weight: 600; color: var(--navy); }
.card .value-num { font: 800 2.4rem/1 "Manrope", sans-serif; color: var(--green); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.entry { max-width: 820px; margin-inline: auto; }
.entry :is(h2, h3) { margin: 2rem 0 .8rem; }
.entry .nav-links { position: static; display: flex; opacity: 1; visibility: visible; flex-direction: row; background: none; box-shadow: none; border: 0; padding: 2rem 0 0; transform: none; gap: .6rem; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Language switch: next to the logo on phones/tablets, inside the menu on desktop. */
.lang-mobile { display: none; }
@media (max-width: 1180px) {
  .nav > .lang-mobile { display: inline-flex; align-self: center; margin: 0; margin-inline-start: .3rem; margin-inline-end: auto; padding: .3rem .8rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
  .nav-links .lang-link { display: none; }
}
@media (max-width: 400px) {
  .nav { gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-logo { width: 46px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: .92rem; line-height: 1.25; }
  .nav > .lang-mobile { padding: .25rem .65rem; font-size: .75rem; }
  .menu-toggle { width: 42px; height: 42px; flex-shrink: 0; }
}
@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.2rem); }
  .brand-logo { width: 40px; }
  .brand-text strong { font-size: .8rem; }
  .nav > .lang-mobile { padding: .2rem .5rem; }
  .menu-toggle { width: 38px; height: 38px; }
}

/* ---------- Page compositions: intro columns, editorial rows, statement, ways, form panel ---------- */
.lead-in { max-width: 820px; margin-bottom: 3rem; }
.center-block { text-align: center; }
.ruled { border-top: 1px solid var(--line); }
.closing.start { margin-inline: 0; text-align: start; }
.closing-btn { margin-top: 1.6rem; }

.intro-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intro-cols .sec-head { margin-bottom: 0; }
.wide-photo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.wide-photo .photo { aspect-ratio: 21 / 8; border-start-start-radius: 180px; }

.statement { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.statement h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 22ch; }
.statement .rich { columns: 2 22rem; column-gap: 3rem; }
.statement .rich > p { break-inside: avoid; }
.statement .rich > p + p { margin-top: 1rem; }

.rows { display: grid; border-top: 2px solid var(--navy); }
.row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem; align-items: baseline; padding: 1.6rem .5rem; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.row:hover { background: var(--cream); padding-inline: 1.2rem; }
.row-key { font: 800 1.05rem "Manrope", sans-serif; color: var(--green); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 1.3rem; }
.row p { color: var(--muted); }
.rows.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); border-top: 0; }
.rows.cols-2 .row { border-top: 1px solid var(--line); border-bottom: 0; }
.row.partner-row { grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
.partner-row h3 { font-size: 1.1rem; }
.partner-row p { font-size: .92rem; }

.pending { display: grid; gap: 1.1rem; justify-items: start; }
.pending + .grid-2, .grid-2 + .pending { margin-top: 1.6rem; }

.track-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.track-layout .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
.track-layout .timeline { max-width: none; margin-inline: 0; }

.involved-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ways { display: grid; margin-top: 2rem; border-top: 2px solid var(--navy); }
.way { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; padding: 1.2rem .3rem; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s var(--ease); }
.way:hover { background: var(--cream); padding-inline: 1rem; }
.way h3 { font-size: 1.15rem; }
.way p { grid-column: 1; margin: 0; font-size: .95rem; }
.way .arr { grid-column: 2; grid-row: 1 / span 2; font-size: 1.4rem; color: var(--green); }
.form-panel > .eyebrow + h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-panel > p { color: var(--muted); }
.form-panel .form { margin-top: 1.6rem; }
.form-alt { margin-top: 1.4rem; font-size: .95rem; }

@media (max-width: 900px) {
  .intro-cols, .track-layout, .involved-layout { grid-template-columns: 1fr; }
  .track-layout .sec-head { position: static; }
  .row { grid-template-columns: 3rem minmax(0, 1fr); gap: .4rem 1rem; }
  .row p { grid-column: 2; }
  .rows.cols-2 { grid-template-columns: 1fr; }
  .wide-photo .photo { aspect-ratio: 16 / 9; border-start-start-radius: 90px; }
}
