/* AIMS PTO — concept site. Tokens first, then layout, then components. */
:root {
  --green-950: #0a2a20;
  --green-900: #0f3d2e;
  --green-800: #134c39;
  --green-700: #17624a;
  --green-500: #1f8a63;
  --green-100: #e3f1ea;
  --gold: #d9a441;
  --gold-600: #8a6417;
  --gold-100: #f8ecd2;
  --sand: #f6efe2;
  --paper: #fffdf8;
  --card: #ffffff;
  --ink: #17221d;
  --ink-2: #33423b;
  --muted: #5d6b64;
  --line: #e7e0d2;
  --focus: #1f8a63;
  --shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 8px 24px rgba(15, 61, 46, .08);
  --shadow-lg: 0 2px 6px rgba(15, 61, 46, .08), 0 20px 50px rgba(15, 61, 46, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-head: "Baloo Bhaijaan 2", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='27' y='27' width='30' height='30'/%3E%3Crect x='27' y='27' width='30' height='30' transform='rotate(45 42 42)'/%3E%3Ccircle cx='42' cy='42' r='7'/%3E%3Cpath d='M0 0L13 13M84 0L71 13M0 84L13 71M84 84L71 71M42 0v6M42 84v-6M0 42h6M84 42h-6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1714; --card: #13211c; --sand: #101d18; --ink: #eef4f0; --ink-2: #cfdad4;
    --muted: #9fb0a8; --line: #22342d; --green-100: #173328; --gold-100: #2b2413;
    --gold-600: #e0b560;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.35), 0 20px 50px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --gold-600: #e0b560;
  --paper: #0d1714; --card: #13211c; --sand: #101d18; --ink: #eef4f0; --ink-2: #cfdad4;
  --muted: #9fb0a8; --line: #22342d; --green-100: #173328; --gold-100: #2b2413;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) a { color: #6fd0a6; } :root:not([data-theme="light"]) .nav-links a:hover, :root:not([data-theme="light"]) .nav-links a[aria-current="page"] { color: #bff0d9; } :root:not([data-theme="light"]) .brand, :root:not([data-theme="light"]) .mobile-nav a, :root:not([data-theme="light"]) .linklist a { color: var(--ink); } }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--gold); color: #1b1300; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

/* Bilingual switch: every text pair renders both, CSS shows one. */
html[data-lang="en"] .t-ar { display: none !important; }
html[data-lang="ar"] .t-en { display: none !important; }
html[data-lang="ar"] body { font-size: 18px; }
[lang="ar"] { font-family: var(--font-body); }
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
html[data-lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.bg-sand { background: var(--sand); }

/* Concept banner */
.concept-bar { background: var(--gold); color: #231800; font-size: .86rem; text-align: center; padding: 7px 16px; font-weight: 600; }
.concept-bar a { color: #231800; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; background: var(--green-100); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--green-900); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-name { color: #eef4f0; } }
.brand-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: none; gap: 2px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { background: var(--green-100); color: var(--green-900); }
.nav-links a[aria-current="page"] { background: var(--green-100); color: var(--green-800); }
.lang-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 600 .9rem var(--font-body); cursor: pointer; min-height: 40px; }
.lang-btn:hover { border-color: var(--green-500); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.nav .btn-donate { display: none; }
@media (min-width: 1040px) {
  .nav-links { display: flex; }
  .menu-btn { display: none; }
  .nav .btn-donate { display: inline-flex; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 14px; width: 100%; justify-content: center; }
@media (min-width: 1040px) { .mobile-nav, .mobile-nav.open { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font: 700 1rem var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 46px; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-700); color: #fff !important; box-shadow: 0 6px 16px rgba(23, 98, 74, .28); }
.btn-primary:hover { background: var(--green-800); }
.btn-gold { background: var(--gold); color: #231800 !important; box-shadow: 0 6px 16px rgba(185, 133, 42, .3); }
.btn-gold:hover { background: #e3b257; }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-500); }
.btn-light { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
html[data-lang="ar"] .btn .arrow { transform: scaleX(-1); }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #1f8a63 0%, transparent 60%), linear-gradient(160deg, var(--green-900), var(--green-950)); overflow: hidden; padding: 56px 0 64px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 84px 84px; opacity: .12; pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero .wrap { grid-template-columns: 1.25fr .9fr; } }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { color: #d6e8df; }
.hero .eyebrow { color: var(--gold); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 22px; backdrop-filter: blur(6px); }
.hero-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.hero-mascot { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hero-mascot img { width: 70px; height: 70px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; flex: none; }
.hero-mascot p { margin: 0; color: #d6e8df; font-size: .95rem; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-weight: 600; font-size: .93rem; border: 1px solid rgba(255,255,255,.1); min-height: 56px; }
.quick:hover { background: rgba(255,255,255,.16); }
.quick .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: #231800; display: grid; place-items: center; flex: none; }
.quick .ico svg { width: 18px; height: 18px; }

/* Page hero (inner pages) */
.page-hero { position: relative; background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: #fff; padding: 48px 0 52px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 84px 84px; opacity: .1; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lede { color: #d6e8df; }
.page-hero .eyebrow { color: var(--gold); }
.crumbs { font-size: .88rem; color: #b8d3c6; margin-bottom: 8px; }
.crumbs a { color: #e5f2eb; }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .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: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 14px; }
.card-ico svg { width: 24px; height: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-ico { color: #6fd0a6; } }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-top: 8px; white-space: nowrap; }
.card-link svg { width: 16px; height: 16px; flex: none; }
html[dir="rtl"] .card-link svg.arrow { transform: scaleX(-1); }
.card-link:hover { text-decoration: underline; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); transition: opacity .2s; }
.check-item.done { opacity: .62; }
.check-item.done .check-title { text-decoration: line-through; }
.check-box { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border: 2px solid var(--green-500); border-radius: 8px; margin: 2px 0 0; flex: none; cursor: pointer; display: grid; place-items: center; background: var(--card); }
.check-box:checked { background: var(--green-500); }
.check-box:checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check-title { font-weight: 700; display: block; }
.check-meta { font-size: .9rem; color: var(--muted); display: block; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fde7e3; color: #9b2c1c; margin-inline-start: 6px; vertical-align: 2px; }
.tag.info { background: var(--gold-100); color: #7a5410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { background: #3a1d17; color: #ffb3a6; } :root:not([data-theme="light"]) .tag.info { color: #f1cf8a; } }
.progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.progress-bar { flex: 1; max-width: 260px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-500), var(--gold)); transition: width .3s; }

/* Pillars */
.pillar { position: relative; overflow: hidden; }
.pillar .num { position: absolute; inset-inline-end: 16px; top: 8px; font-family: var(--font-head); font-size: 4.2rem; font-weight: 800; color: var(--green-100); line-height: 1; }
.pillar > * { position: relative; }

/* Funding strip */
.fund { display: grid; gap: 22px; align-items: center; background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #fff; border-radius: 24px; padding: 28px; position: relative; overflow: hidden; }
.fund::before { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 84px 84px; opacity: .08; }
.fund > * { position: relative; }
.fund h2 { color: #fff; }
.fund p { color: #d6e8df; }
@media (min-width: 900px) { .fund { grid-template-columns: 1.2fr 1fr; padding: 44px; } }
.fund-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fund-list li { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.fund-list li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); flex: none; }

/* Events */
.events-list { display: grid; gap: 14px; }
.event { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.event-date { width: 64px; flex: none; text-align: center; border-radius: 12px; background: var(--green-100); padding: 8px 0; font-family: var(--font-head); }
.event-date .m { display: block; font-size: .78rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; }
.event-date .d { display: block; font-size: 1.6rem; font-weight: 800; color: var(--green-800); line-height: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .event-date .d { color: #eef4f0; } }
.empty { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; color: var(--muted); background: var(--card); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--green-100); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* Tiers */
.tiers { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.tier.featured { border: 2px solid var(--gold); position: relative; }
.tier.featured::after { content: attr(data-badge); position: absolute; top: -12px; inset-inline-start: 16px; background: var(--gold); color: #231800; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.tier .price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--green-800); line-height: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tier .price { color: #6fd0a6; } }
.tier ul { margin: 6px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: .93rem; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 70px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
html[dir="rtl"] .steps li { padding: 18px 70px 18px 18px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
html[dir="rtl"] .steps li::before { left: auto; right: 18px; }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fact b { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--green-800); line-height: 1.1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fact b { color: #6fd0a6; } }
.fact span { font-size: .9rem; color: var(--muted); }

/* Link lists */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { border-top: 1px solid var(--line); }
.linklist li:first-child { border-top: 0; }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; font-weight: 600; text-decoration: none; color: var(--ink); }
.linklist a:hover { color: var(--green-700); }
.linklist a::after { content: "↗"; color: var(--muted); font-size: .9rem; }
.linklist a.internal::after { content: "→"; }
html[dir="rtl"] .linklist a.internal::after { content: "←"; }
.linklist small { display: block; color: var(--muted); font-weight: 400; }

/* Notice */
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-100); border: 1px solid #ecd49f; border-radius: 14px; padding: 14px 16px; color: var(--ink); font-size: .95rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { border-color: #4a3c1c; } }
.notice svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); margin-top: 2px; }

/* Board */
.person { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 1.1rem; }
.role { font-size: .8rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .06em; }
html[data-lang="ar"] .role { letter-spacing: 0; }

/* FAQ */
.faq-search { position: relative; margin-bottom: 18px; }
.faq-search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 1rem var(--font-body); }
html[dir="rtl"] .faq-search input { padding: 14px 46px 14px 16px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
html[dir="rtl"] .faq-search svg { left: auto; right: 16px; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--font-body); cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"], .chip:hover { background: var(--green-700); color: #fff; border-color: var(--green-700); }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
details.qa summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; }
html[dir="rtl"] details.qa summary { padding: 16px 18px 16px 48px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-500); font-weight: 400; }
html[dir="rtl"] details.qa summary::after { right: auto; left: 18px; }
details.qa[open] summary::after { content: "−"; }
details.qa .ans { padding: 0 18px 18px; color: var(--ink-2); }
details.qa .ans ul { padding-inline-start: 20px; margin: 0 0 1em; }
.qa-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 6px 0 12px; }
.qa-table th, .qa-table td { text-align: start; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.qa-table th { color: var(--muted); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* Forms */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 1rem var(--font-body); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid color-mix(in srgb, var(--green-500) 35%, transparent); border-color: var(--green-500); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.form-status { font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #b3261e; }

/* Instagram / CTA band */
.cta-band { background: var(--gold-100); border-radius: 24px; padding: 30px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 40px; } }

/* Footer */
.site-footer { background: var(--green-950); color: #c7dbd1; padding: 52px 0 24px; margin-top: 0; }
.site-footer a { color: #e8f3ed; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: .86rem; color: #9fbcae; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.foot-brand b { font-family: var(--font-head); color: #fff; font-size: 1.2rem; display: block; }

/* Utility */
.stack > * + * { margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 44px; } .two-col.wide-left { grid-template-columns: 1.3fr 1fr; } }
.photo-frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--green-100); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
html[data-lang="ar"] .tier.featured::after { content: "معظم العائلات تبدأ هنا"; }
@media (max-width: 719px) { .gallery.home figure:nth-child(n+5) { display: none; } }
[hidden] { display: none !important; }
