/* ============================================================
   wanas.charity — جمعية ونس الخيرية الاجتماعية
   Static site stylesheet · RTL · self-contained (no CDNs)
   Palette: plum #4B1949 · gold #E0C46F · validated chart set
   ============================================================ */

:root {
  --plum: #4B1949;
  --plum-deep: #38123B;
  --plum-soft: #6B3A69;
  --gold: #E0C46F;
  --gold-deep: #A4790E;
  --gold-tint: #F5EAD0;
  --ink: #2E2331;
  --muted: #7E7283;
  --line: #E9E2EA;
  --bg: #FFFFFF;
  --bg-soft: #FAF7FB;
  --ch1: #7A3D7C; /* equipment */
  --ch2: #BA8A1F; /* vehicle  */
  --ch3: #B565B8; /* building */
  --ch4: #678A2E; /* rent     */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(56, 18, 59, 0.10);
  --shadow-sm: 0 4px 14px rgba(56, 18, 59, 0.08);
  --container: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { html, body { overflow-x: hidden; } }

body {
  font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

h1, h2, h3, .display { font-family: "Amiri", "Almarai", serif; font-weight: 700; line-height: 1.45; }

section { padding-block: 88px; }
@media (max-width: 760px) { section { padding-block: 60px; } }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-tint); color: var(--plum);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.2px;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--plum); }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .name { font-weight: 800; color: var(--plum); font-size: 1.02rem; line-height: 1.3; }
.brand .name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 700; font-size: 0.95rem; color: var(--ink); position: relative; padding-block: 6px; }
.nav a:hover, .nav a.active { color: var(--plum); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: 0.98rem; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px; padding: 12px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--plum-deep); box-shadow: 0 6px 18px rgba(224, 196, 111, 0.45); }
.btn-gold:hover { background: #E9D084; }
.btn-outline { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-outline:hover { background: var(--plum); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.menu-btn { display: none; background: none; border: 0; color: var(--plum); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 22px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--bg-soft); }
  .nav .btn { margin-top: 12px; }
  .brand .name small { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 55%, #5C2159 100%);
  color: #fff; padding-block: 0;
}
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; min-height: min(88vh, 760px); padding-block: 64px;
}
.hero .watermark {
  position: absolute; inset-inline-start: -120px; bottom: -140px;
  width: 520px; opacity: 0.05; pointer-events: none; user-select: none;
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 100%;
  border: 1px solid rgba(224, 196, 111, 0.65); color: var(--gold);
  font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 7px 16px;
  margin-bottom: 22px;
}
@media (max-width: 420px) { .hero-chip { font-size: 0.78rem; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.35; margin-bottom: 18px; }
.hero .lead { color: #E7DDE8; font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 34rem; margin-bottom: 30px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-media img { width: 100%; height: 460px; object-fit: cover; }
.hero-media .badge {
  position: absolute; inset-inline-start: -14px; bottom: 26px;
  background: #fff; color: var(--plum); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px 20px; display: flex; gap: 12px; align-items: center;
}
.hero-media .badge svg { width: 26px; height: 26px; color: var(--gold-deep); flex: none; }
.hero-media .badge b { display: block; font-size: 1rem; }
.hero-media .badge span { font-size: 0.8rem; color: var(--muted); }

/* ghost secondary link (both viewports) */
.link-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  color: #fff; font-weight: 800; font-size: 0.98rem;
  padding: 12px 4px; opacity: 0.92; transition: color 0.15s ease, gap 0.15s ease;
}
.link-ghost:hover { color: var(--gold); gap: 13px; }

/* full-bleed photo hero background — mobile only */
.hero-bg { display: none; }

@media (max-width: 960px) {
  .hero-bg { display: block; position: absolute; inset: 0; z-index: 0; }
  .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
  .hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
      rgba(56, 18, 59, 0.45) 0%,
      rgba(56, 18, 59, 0.55) 34%,
      rgba(59, 19, 62, 0.86) 66%,
      rgba(50, 14, 53, 0.97) 100%);
  }
  .hero .watermark, .hero-media { display: none; }
  .hero .container {
    position: relative; z-index: 1;
    grid-template-columns: 1fr; gap: 0;
    min-height: 100vh; min-height: 100svh;
    align-content: end;
    padding-block: 0 clamp(84px, 12vh, 110px);
  }
  .hero-copy { max-width: 34rem; }
  .hero-chip {
    border: 0; padding: 0; background: none; border-radius: 0;
    font-size: 0.8rem; letter-spacing: 0.3px; gap: 7px; margin-bottom: 16px;
  }
  .hero h1 { font-size: clamp(2.05rem, 8.8vw, 2.7rem); margin-bottom: 14px; }
  .hero .lead { font-size: 1rem; line-height: 1.95; color: #EFE5F0; margin-bottom: 28px; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero .actions .btn-gold { width: 100%; padding-block: 16px; font-size: 1.05rem; }
  .hero .actions .link-ghost { justify-content: center; }
}

/* ---------- stats band ---------- */
.stats { background: var(--plum-deep); color: #fff; padding-block: 44px; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-family: "Amiri", serif; font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--gold); }
.stats .lbl { color: #D9CBDB; font-size: 0.92rem; }
@media (max-width: 760px) { .stats .grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- verse ---------- */
.verse {
  background: var(--plum); color: var(--gold);
  border-radius: var(--radius); padding: 34px 30px; text-align: center;
  box-shadow: var(--shadow);
}
.verse .aya { font-family: "Amiri", serif; font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; }
.verse .ref { color: #D9CBDB; font-size: 0.85rem; margin-top: 10px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; margin-top: 44px; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { height: 100%; width: 100%; object-fit: cover; min-height: 380px; }
.fact-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: 0; }
.fact-row .ic {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-tint); display: grid; place-items: center; color: var(--plum);
}
.fact-row .ic svg { width: 24px; height: 24px; }
.fact-row b { color: var(--plum); display: block; margin-bottom: 2px; }
.fact-row p { color: var(--ink); font-size: 0.97rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-media img { min-height: 260px; } }

/* ---------- project summary ---------- */
.project { background: var(--bg-soft); }
.project-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage img { border-radius: 14px; box-shadow: var(--shadow-sm); height: 200px; width: 100%; object-fit: cover; }
.collage img:nth-child(1) { grid-column: 1 / -1; height: 230px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 700; font-size: 0.88rem; color: var(--plum);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 17px; height: 17px; color: var(--gold-deep); }
@media (max-width: 960px) { .project-grid { grid-template-columns: 1fr; } }

/* ---------- target groups ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tcard img { height: 210px; width: 100%; object-fit: cover; }
.tcard .body { padding: 20px 22px 24px; }
.tcard b { color: var(--plum); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.tcard p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr; } .tcard img { height: 230px; } }

/* ---------- transparency ---------- */
.budget-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.donut-wrap { display: grid; place-items: center; gap: 22px; }
.donut {
  --p1: 82.09%; --p2: 90.33%; --p3: 97.38%;
  width: min(320px, 76vw); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--ch1) 0 var(--p1), var(--ch2) var(--p1) var(--p2), var(--ch3) var(--p2) var(--p3), var(--ch4) var(--p3) 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 58.6%);
  mask: radial-gradient(circle at 50% 50%, transparent 58%, #000 58.6%);
  position: relative;
}
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.donut-center b { font-family: "Amiri", serif; font-size: 2rem; color: var(--plum); display: block; line-height: 1.2; }
.donut-center span { color: var(--muted); font-size: 0.85rem; }
.donut-box { position: relative; display: grid; place-items: center; }
.legend { display: grid; gap: 10px; width: 100%; max-width: 340px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.legend .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.legend .val { margin-inline-start: auto; font-weight: 800; color: var(--plum); direction: ltr; }
.budget-note {
  background: var(--gold-tint); border-radius: 14px; padding: 16px 20px;
  color: var(--plum); font-size: 0.95rem; margin-top: 26px;
}
.budget-summary { width: 100%; border-collapse: collapse; margin-top: 8px; }
.budget-summary th, .budget-summary td { padding: 13px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.budget-summary th { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.budget-summary td.v { text-align: left; font-weight: 800; color: var(--plum); direction: ltr; }
.budget-summary tr.total td { background: var(--plum); color: #fff; font-size: 1.05rem; border-radius: 0; }
.budget-summary tr.total td.v { color: var(--gold); }
@media (max-width: 960px) { .budget-grid { grid-template-columns: 1fr; } }

/* ---------- sustainability ---------- */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.scard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.scard .ic {
  width: 58px; height: 58px; border-radius: 50%; background: var(--gold-tint);
  display: grid; place-items: center; color: var(--plum); margin-bottom: 18px;
}
.scard .ic svg { width: 26px; height: 26px; }
.scard b { font-size: 1.12rem; color: var(--plum); display: block; margin-bottom: 8px; }
.scard p { color: var(--ink); font-size: 0.98rem; }
@media (max-width: 860px) { .cards-2 { grid-template-columns: 1fr; } }

/* ---------- donate / contact ---------- */
.donate { background: linear-gradient(135deg, var(--plum-deep), var(--plum)); color: #fff; }
.donate .inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.donate h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.donate p { color: #E7DDE8; max-width: 34rem; }
.donate .goal { font-family: "Amiri", serif; color: var(--gold); font-size: 2.4rem; font-weight: 700; }
.contact-cards { display: grid; gap: 14px; }
.ccard {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.ccard .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--plum-deep); display: grid; place-items: center; flex: none; }
.ccard .ic svg { width: 22px; height: 22px; }
.ccard b { display: block; font-size: 0.85rem; color: var(--gold); }
.ccard span { font-size: 0.98rem; }
.bank-note { margin-top: 20px; background: rgba(224, 196, 111, 0.12); border: 1px dashed rgba(224, 196, 111, 0.5); border-radius: 14px; padding: 14px 18px; font-size: 0.92rem; color: #F3E8C9; }
@media (max-width: 960px) { .donate .inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--plum-deep); color: #CDBBCF; padding-block: 54px 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer .logo { height: 84px; width: auto; margin-bottom: 14px; }
.site-footer b { color: #fff; display: block; margin-bottom: 12px; font-size: 1rem; }
.site-footer a { display: block; padding-block: 5px; font-size: 0.94rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 20px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.site-footer .fine .verse-line { color: var(--gold); font-family: "Amiri", serif; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- project page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--plum-deep), var(--plum));
  color: #fff; padding-block: 72px; position: relative; overflow: hidden;
}
.page-hero .crumb { color: var(--gold); font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; display: inline-flex; gap: 8px; align-items: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 12px; }
.page-hero p { color: #E7DDE8; max-width: 40rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.pcard { border-radius: var(--radius); padding: 30px 28px; }
.pcard.challenge { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pcard.solution { background: var(--plum); color: #F3ECF4; }
.pcard h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.2rem; }
.pcard.challenge h3 { color: var(--plum); }
.pcard.solution h3 { color: var(--gold); }
.pcard .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pcard.challenge .ic { background: var(--gold-tint); color: var(--plum); }
.pcard.solution .ic { background: var(--gold); color: var(--plum-deep); }
.pcard .ic svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.numlist { display: grid; gap: 14px; margin-top: 36px; }
.numlist li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.numlist .n {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--plum); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 1rem;
}
.numlist p { padding-top: 6px; }

.obj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.obj {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.obj .ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--gold-tint); color: var(--plum); display: grid; place-items: center; }
.obj .ic svg { width: 26px; height: 26px; }
.obj p { font-size: 0.97rem; font-weight: 700; color: var(--ink); }
@media (max-width: 860px) { .obj-grid { grid-template-columns: 1fr; } }

.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.sector {
  border-radius: var(--radius); padding: 34px 24px; text-align: center;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.sector.mid { background: var(--plum); color: #fff; border: 0; }
.sector .ic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; background: var(--gold-tint); color: var(--plum); display: grid; place-items: center; }
.sector.mid .ic { background: var(--gold); color: var(--plum-deep); }
.sector .ic svg { width: 36px; height: 36px; }
.sector b { font-size: 1.15rem; }
.sector.mid b { color: #fff; }
@media (max-width: 860px) { .sector-grid { grid-template-columns: 1fr; } }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 26px 16px; box-shadow: var(--shadow-sm);
}
.stat-card .ic { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: var(--gold-tint); color: var(--plum); display: grid; place-items: center; }
.stat-card .ic svg { width: 24px; height: 24px; }
.stat-card .num { font-family: "Amiri", serif; font-size: 2rem; font-weight: 700; color: var(--plum); line-height: 1.3; }
.stat-card b { color: var(--plum); display: block; }
.stat-card span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 960px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }

.cost-hero {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 36px;
}
.cost-panel {
  background: var(--plum); color: #fff; border-radius: var(--radius);
  padding: 40px 30px; text-align: center; box-shadow: var(--shadow);
}
.cost-panel .big { font-family: "Amiri", serif; color: var(--gold); font-size: 3rem; font-weight: 700; line-height: 1.2; }
.cost-panel b { display: block; margin-top: 8px; font-size: 1.05rem; }
.cost-panel small { color: #D9CBDB; display: block; margin-top: 12px; font-size: 0.85rem; }
@media (max-width: 860px) { .cost-hero { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); margin-top: 28px; background: #fff; }
table.budget { width: 100%; border-collapse: collapse; min-width: 640px; }
table.budget th {
  background: var(--plum); color: #fff; font-size: 0.92rem;
  padding: 13px 16px; text-align: center; white-space: nowrap;
}
table.budget th:first-child { text-align: right; }
table.budget td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: 0.95rem; }
table.budget td:first-child { text-align: right; font-weight: 700; }
table.budget tbody tr:nth-child(even) { background: var(--bg-soft); }
table.budget td.money { direction: ltr; font-weight: 700; color: var(--plum); }
table.budget tr.subtotal td { background: var(--gold-tint); color: var(--plum); font-weight: 800; font-size: 1rem; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tcard:hover { transform: none; }
}

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.wa-fab:hover { transform: scale(1.07); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab[hidden] { display: none; }
@media (max-width: 960px) {
  .wa-fab { width: 52px; height: 52px; inset-inline-start: 16px; bottom: 16px; }
  .wa-fab svg { width: 26px; height: 26px; }
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 22px; }
.err-wrap .code { font-family: "Amiri", serif; font-size: 6rem; color: var(--plum); font-weight: 700; line-height: 1; }
.err-wrap p { color: var(--muted); margin: 14px 0 26px; }

::selection { background: var(--gold); color: var(--plum-deep); }
