/* =========================================================
   Senator Shehu Buba Umar — PRP Bauchi 2027
   Stylesheet. Mobile-first, PRP-branded.
   ========================================================= */

:root {
  --red: #E1251B;
  --red-dark: #B31910;
  --red-deep: #7C140C;
  --gold: #F4B400;
  --gold-light: #FFD34D;
  --gold-dark: #D89B00;
  --ink: #191410;
  --ink-2: #3a342e;
  --muted: #6f675e;
  --paper: #FAF6EF;
  --white: #ffffff;
  --line: #eae3d6;
  --charcoal: #17130f;

  --container: 1160px;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(25, 20, 16, 0.06);
  --shadow: 0 12px 32px rgba(25, 20, 16, 0.12);
  --shadow-lg: 0 24px 60px rgba(25, 20, 16, 0.22);
  --grad-red: linear-gradient(135deg, #F03B2E 0%, var(--red) 45%, var(--red-dark) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }

a { color: inherit; text-decoration: none; }

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

/* Slim, branded scrollbar (WebKit) */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9beac; border-radius: 8px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

/* Eyebrow kicker with gold rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 .8rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 2px;
}
.section__head .eyebrow::after {
  content: ""; width: 28px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}
.section__head--light .eyebrow { color: var(--gold); }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section__title { font-size: clamp(1.75rem, 4.4vw, 2.8rem); font-weight: 800; }
.section__head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vw, 3.6rem); text-align: center; }
.section__intro { color: var(--muted); font-size: 1.05rem; }
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__intro { color: rgba(255,255,255,.78); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .07em;
  padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--grad-red); color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 37, 27, .25);
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 26px rgba(225, 37, 27, .32); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn--red { background: var(--grad-red); }
.btn--gold { background: var(--grad-gold); color: var(--ink); box-shadow: 0 4px 14px rgba(244, 180, 0, .35); }
.btn--gold:hover { box-shadow: 0 10px 26px rgba(244, 180, 0, .42); }
.btn--ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.65); color: #fff; box-shadow: none; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; box-shadow: none; }
.btn--lg { padding: 1.05rem 2.1rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(25,20,16,.10); }
.nav__inner { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__logo { height: 44px; width: auto; border-radius: 4px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brand-text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.01em; }
.nav__brand-text small { color: var(--red); font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }

.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a { position: relative; font-weight: 600; font-size: .93rem; color: var(--ink-2); transition: color .2s; }
.nav__menu a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--grad-gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav__menu a:hover { color: var(--red); }
.nav__menu a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { color: var(--ink); }
.nav__cta:hover { color: var(--ink); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1.2rem;
    transform: translateY(-140%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav.open .nav__menu { transform: translateY(0); }
  .nav__menu a { padding: .95rem .2rem; border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: .8rem; text-align: center; border-bottom: 0 !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; display: flex; align-items: center; color: #fff; overflow: hidden;
  min-height: min(90vh, 780px);
  background:
    radial-gradient(860px 480px at 82% 18%, rgba(244,180,0,.14), transparent 60%),
    radial-gradient(700px 520px at 96% 92%, rgba(240,59,46,.28), transparent 65%),
    linear-gradient(118deg, var(--charcoal) 0%, #2a0d0a 46%, var(--red-deep) 100%);
}
/* Subtle diagonal texture over the coloured panel */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.016) 22px 23px);
}
/* Signature red–gold strip along the bottom */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--red) 0 34%, var(--gold) 34% 67%, var(--charcoal) 67% 100%);
}
/* Candidate photo, pronounced on the left beside the text */
/* Photo on the left with a diagonal right edge: starts high (near the flag)
   and slants down to where the seam previously sat, so the brown panel
   cuts in diagonally from the top-left. */
.hero__portrait {
  position: absolute; top: 0; left: 0; bottom: 0; width: 60%;
  clip-path: polygon(0 0, 72% 0, 92% 100%, 0 100%);
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 42% 15%;
  filter: brightness(1.08) contrast(1.03) saturate(1.04);
}
/* Soft shadow toward the diagonal edge for depth */
.hero__portrait::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(270deg, rgba(42,13,10,.6) 0%, rgba(42,13,10,0) 24%);
}
.hero__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(124,20,12,.2) 0%, rgba(23,19,15,0) 26%);
}
.hero__content { position: relative; z-index: 2; width: min(100% - 2.4rem, var(--container)); margin-inline: auto; padding: 4rem 0; }
/* Sit fully on the brown panel, clear of the diagonal edge at all widths */
.hero__text { margin-left: 58%; }
.hero__title { font-size: clamp(2.4rem, 7vw, 4.3rem); font-weight: 900; text-shadow: 0 4px 28px rgba(0,0,0,.45); }
.hero__title span { color: var(--gold); }
.hero__slogan {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.08rem, 3vw, 1.5rem);
  margin: .4rem 0 1rem; line-height: 1.4;
}
.hero__slogan-ha { color: var(--gold-light); font-weight: 600; font-size: .8em; }
.hero__lead { font-size: 1.07rem; color: rgba(255,255,255,.92); margin: 0 0 2rem; text-shadow: 0 1px 14px rgba(0,0,0,.6), 0 1px 3px rgba(0,0,0,.45); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
/* Offset frame behind the portrait */
.about__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244,180,0,.35), rgba(225,37,27,.25));
}
.about__media img { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about__badge {
  position: absolute; z-index: 2; bottom: -20px; right: -6px;
  background: var(--grad-red); color: #fff; padding: .8rem 1.2rem; border-radius: 12px;
  display: flex; flex-direction: column; line-height: 1.15; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.25);
}
.about__badge strong { font-family: var(--font-display); font-size: 1.05rem; }
.about__badge span { font-size: .72rem; color: var(--gold-light); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.about__body p { color: var(--ink-2); margin: 0 0 1.05rem; }

.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem .95rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.chip span { font-size: 1rem; }

/* =========================================================
   VISION — numbered pillar cards
   ========================================================= */
.vision { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; counter-reset: pillar; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .25s ease, border-color .25s;
}
/* Gold accent line that slides in on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
/* Large watermark number */
.cards .card::after {
  counter-increment: pillar;
  content: "0" counter(pillar);
  position: absolute; top: .6rem; right: 1rem;
  font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1;
  color: var(--ink); opacity: .06; letter-spacing: -.04em;
}
.card__icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800; font-family: var(--font-display);
  background: var(--grad-red); color: #fff; margin-bottom: 1.05rem;
  box-shadow: 0 6px 16px rgba(225,37,27,.28), inset 0 0 0 2px rgba(255,255,255,.18);
}
.card h3 { font-size: 1.13rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* =========================================================
   TRACK RECORD
   ========================================================= */
.record {
  background:
    radial-gradient(720px 420px at 12% 0%, rgba(225,37,27,.16), transparent 62%),
    radial-gradient(600px 420px at 95% 100%, rgba(244,180,0,.08), transparent 60%),
    var(--charcoal);
  color: #fff;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.stat {
  text-align: center; padding: 1.7rem 1rem 1.5rem; border-radius: var(--radius);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  transition: transform .2s ease, border-color .25s ease, background .25s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(244,180,0,.5); background: rgba(255,255,255,.07); }
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: .6rem; font-size: .84rem; color: rgba(255,255,255,.78); }
.stat__label::before { content: ""; display: block; width: 26px; height: 2px; margin: 0 auto .55rem; background: rgba(244,180,0,.55); border-radius: 2px; }

.record__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.record__photos figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.1); }
.record__photos img { width: 100%; height: 270px; object-fit: cover; transition: transform .5s ease; }
.record__photos figure:hover img { transform: scale(1.06); }
.record__photos figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .85rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.record__photos figcaption::before { content: ""; display: inline-block; width: 16px; height: 3px; margin-right: .55rem; vertical-align: middle; background: var(--grad-gold); border-radius: 2px; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--white); }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: .9rem; grid-auto-rows: 195px; }
.gallery__item { padding: 0; border: 0; cursor: pointer; overflow: hidden; border-radius: 12px; background: #eee; position: relative; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery__item::after {
  content: "View ＋"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, rgba(23,19,15,.15), rgba(23,19,15,.72));
  opacity: 0; transition: opacity .28s;
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
/* Make a couple of tiles span for visual rhythm */
.gallery__item:nth-child(1),
.gallery__item:nth-child(8) { grid-row: span 2; }

/* =========================================================
   FORMS (Involved + Voice)
   ========================================================= */
.involved { background: var(--paper); }
.involved__grid, .voice__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
.involved__intro p, .voice__intro p { color: var(--ink-2); }
.involved__note { font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.involved__intro .btn { margin-top: .4rem; }

.voice { background: var(--white); }
.voice__list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .65rem; }
.voice__list li { padding-left: 1.7rem; position: relative; color: var(--ink-2); }
.voice__list li::before {
  content: "✔"; position: absolute; left: 0; top: .1em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .6rem;
  background: var(--grad-gold); color: var(--ink); font-weight: 900;
}
.voice__list strong { color: var(--ink); }

.form {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.form__title { font-size: 1.28rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: .4rem; color: var(--ink-2);
}
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,37,27,.13); background: #fff;
}
.field textarea { resize: vertical; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,37,27,.13); }
.form__status { margin: .95rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: #1a7f37; }
.form__status.err { color: var(--red); }
.form__status a { color: var(--red); text-decoration: underline; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background:
    radial-gradient(680px 400px at 88% 0%, rgba(225,37,27,.14), transparent 60%),
    var(--charcoal);
  color: #fff;
}
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.15rem; }
.contact__card {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .2s, border-color .25s, background .25s;
}
a.contact__card:hover { transform: translateY(-4px); border-color: rgba(244,180,0,.55); background: rgba(255,255,255,.075); }
.contact__ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; margin-bottom: .5rem;
  background: rgba(244,180,0,.14); border: 1px solid rgba(244,180,0,.35);
}
.contact__card strong { font-family: var(--font-display); font-size: 1.05rem; }
.contact__card span:not(.contact__ic) { color: rgba(255,255,255,.78); font-size: .92rem; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.socials a {
  padding: .45rem .95rem; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--grad-gold); border-color: transparent; color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: #100d0a; color: rgba(255,255,255,.72); padding: 3rem 0 2.6rem; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 34%, var(--gold) 34% 67%, #2a2520 67% 100%); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.8rem; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__brand img { height: 50px; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; }
.footer__brand span { font-size: .85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; align-content: start; }
.footer__links a { font-size: .9rem; font-weight: 500; transition: color .2s; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; margin: .7rem 0 0; font-size: .8rem; line-height: 1.8; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 6, .94);
  display: none; align-items: center; justify-content: center; padding: 3rem 1rem;
}
.lightbox.open { display: flex; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* =========================================================
   Back-to-top + reveal animations
   ========================================================= */
.to-top {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-red); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: 0 8px 22px rgba(225,37,27,.4); border: 1px solid rgba(255,255,255,.25);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { filter: brightness(1.08); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Gentle stagger for grids of cards / stats / tiles */
.cards .card:nth-child(2), .stats .stat:nth-child(2), .gallery__item:nth-child(2), .record__photos figure:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .stats .stat:nth-child(3), .gallery__item:nth-child(3), .record__photos figure:nth-child(3) { transition-delay: .16s; }
.cards .card:nth-child(4), .stats .stat:nth-child(4), .gallery__item:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .stat:hover, .chip:hover, .contact__card:hover { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .hero { display: block; min-height: 0; }
  .hero__portrait { position: relative; width: 100%; height: 46vh; min-height: 300px; clip-path: none; }
  .hero__portrait img { object-position: 50% 12%; }
  .hero__portrait::before { background: linear-gradient(0deg, var(--charcoal) 0%, rgba(23,19,15,.3) 16%, rgba(23,19,15,0) 36%); }
  .hero__portrait::after { display: none; }
  .hero__content { padding: 2rem 0 3.2rem; }
  .hero__text { max-width: none; margin-left: 0; }

  .about__grid, .involved__grid, .voice__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .about__media::before { inset: 14px -12px -14px 12px; }
  .about__badge { right: 8px; }
  .record__photos { grid-template-columns: 1fr; }
  .record__photos img { height: 230px; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery__item:nth-child(1), .gallery__item:nth-child(8) { grid-row: span 1; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .hero__portrait { height: 42vh; min-height: 260px; }
  .hero__title { font-size: clamp(2rem, 10.5vw, 2.4rem); overflow-wrap: break-word; }
  .hero__content { padding: 1.8rem 0 2.8rem; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .btn--lg { width: 100%; }
  .hero__actions .btn { width: 100%; }
}
