/* Fairview Park Firefighters Local 1057 Charity — Friends of Fairview style */
:root {
  --navy: #00205b;
  --navy-dark: #00153d;
  --red: #c8102e;
  --red-dark: #a50d25;
  --blue-btn: #0b3a7a;
  --ink: #222;
  --muted: #555;
  --white: #fff;
  --line: #e5e5e5;
  --max: 1170px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ===== TOP BAR (FoF) ===== */
.topbar {
  background: var(--navy);
  color: #fff;
}
.topbar-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #00102e;
}
.brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.brand span {
  font-size: .82rem;
  opacity: .9;
}
.top-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.5rem;
  font-size: .95rem;
}
.top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.top-contacts a:hover { opacity: .85; }
.top-contacts svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}

/* ===== RED NAV (FoF) ===== */
.site-nav {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem;
}
.nav-links a {
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .9rem .7rem;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: #fff;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: .4rem .7rem;
}

/* ===== HERO SLIDER (FoF full-bleed image) ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 68vh;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 68vh;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,20,60,.45), rgba(0,20,60,.62));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 3rem 0;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  text-transform: none;
  letter-spacing: .01em;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
  line-height: 1.05;
}
.hero-content .sub {
  margin: .35rem 0 0;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 600;
}
.hero-pill {
  margin-top: 1.35rem;
  display: inline-flex;
  align-items: center;
  background: var(--blue-btn);
  color: #fff;
  border-radius: 999px;
  padding: .7rem 1.35rem;
  font-weight: 700;
  font-size: .98rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.hero-pill:hover { background: #0a2f63; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }

/* ===== SECTIONS ===== */
.section { padding: 3.5rem 0; }
.section.alt { background: #f7f8fa; }

h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}

.welcome-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.welcome-photo {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.welcome-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.welcome-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.welcome-copy ul {
  margin: 1rem 0 1.25rem;
  padding-left: 1.15rem;
  list-style: disc;
  color: var(--muted);
}
.welcome-copy li { margin: .35rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1.25rem;
  border: 2px solid transparent;
  transition: .2s ease;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* programs */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.program-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.program-card h3 {
  margin: 0 0 .55rem;
  color: var(--navy);
  font-size: 1.2rem;
}
.program-card p {
  margin: 0;
  color: var(--muted);
}

/* gallery strip like FoF */
.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.gallery-track a,
.gallery-track figure {
  margin: 0;
  display: block;
  overflow: hidden;
  background: #111;
  aspect-ratio: 4 / 3;
}
.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-track a:hover img { transform: scale(1.06); }

/* page hero */
.page-hero {
  background:
    linear-gradient(rgba(0,32,91,.78), rgba(0,32,91,.78)),
    url("../assets/images/hero/fb-hero-01.jpg") center / cover;
  color: #fff;
  padding: 3.75rem 0;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
}
.page-hero p {
  margin: .6rem 0 0;
  max-width: 40rem;
  font-size: 1.08rem;
  opacity: .95;
}

/* leadership */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.leader-grid.six {
  grid-template-columns: repeat(3, 1fr);
}
.leader-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.leader-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--navy);
}
.leader-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  border: 3px solid var(--red);
}
.leader-card h3 {
  margin: 0;
  color: var(--navy);
}
.leader-role {
  margin: .3rem 0 .7rem;
  color: var(--red);
  font-weight: 700;
}
.leader-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* forms */
.form-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.25rem;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.4rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
}
form { display: grid; gap: .85rem; }
label {
  display: grid;
  gap: .3rem;
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
}
input, textarea, select {
  width: 100%;
  border: 1px solid #ccc;
  padding: .75rem .85rem;
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.amount-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}
.amount-row button {
  border: 1px solid #ccc;
  background: #fff;
  padding: .7rem .3rem;
  font-weight: 700;
  cursor: pointer;
}
.amount-row button.is-active,
.amount-row button:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.note { color: var(--muted); font-size: .92rem; }
.fact-list { display: grid; gap: .85rem; }
.fact-list div {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.fact-list strong {
  display: block;
  color: var(--navy);
  margin-bottom: .15rem;
}
.fact-list span, .fact-list a { color: var(--muted); }

/* CTA band — FoF red signup strip */
.cta-band {
  background: var(--red);
  color: #fff;
  padding: 1.6rem 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
}
.cta-band p {
  margin: .25rem 0 0;
  opacity: .95;
  font-size: 1rem;
}
.btn-cta-white {
  background: #fff;
  color: var(--red);
  border: 2px solid #fff;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1.4rem;
}
.btn-cta-white:hover {
  background: transparent;
  color: #fff;
}

/* footer — FoF 4-column navy + dark bottom */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.9);
  padding: 0;
}
.footer-main {
  padding: 2.75rem 0 2.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: .9fr 1.35fr 1.15fr .95fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 0;
  border-bottom: 0;
}
.footer-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  margin: 0 auto;
}
.footer-logo {
  text-align: center;
}
.site-footer h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem 1.25rem;
}
.footer-links-grid a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.92);
  font-size: .98rem;
}
.footer-links-grid a::before {
  content: "›";
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
.footer-links-grid a:hover { text-decoration: underline; }

.footer-contact-list {
  display: grid;
  gap: .9rem;
}
.footer-contact-list a,
.footer-contact-list span {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: rgba(255,255,255,.92);
  font-size: .98rem;
}
.footer-contact-list .icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: #1a4a8c;
  display: grid;
  place-items: center;
  border-radius: 2px;
}
.footer-contact-list svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  max-width: 220px;
}
.payment-badge {
  background: #fff;
  border-radius: 4px;
  height: 42px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.payment-badge.visa { color: #1a1f71; }
.payment-badge.mc { color: #eb001b; }
.payment-badge.discover { color: #ff6600; }
.payment-badge.amex { color: #2e77bc; }

.footer-bottom-bar {
  background: #0a1428;
  padding: 1rem 0;
  font-size: .9rem;
  color: rgba(255,255,255,.78);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding-top: 0;
  opacity: 1;
}
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.footer-legal .sep { opacity: .5; }
.footer-social {
  display: flex;
  gap: .45rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #1a4a8c;
  border-radius: 2px;
}
.footer-social a.fb { background: #1877f2; }
.footer-social a.mail { background: #f5b800; }
.footer-social svg { width: 16px; height: 16px; fill: #fff; }

/* sticky circular widgets like FoF */
.sticky-donate {
  position: fixed;
  right: .75rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  gap: .55rem;
}
.sticky-donate a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
  padding: 0;
  font-size: 0;
  letter-spacing: 0;
  text-transform: none;
}
.sticky-donate a.facebook { background: #1877f2; }
.sticky-donate a.top { background: #fff; color: #666; }
.sticky-donate svg { width: 22px; height: 22px; fill: currentColor; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .welcome-grid,
  .program-grid,
  .leader-grid,
  .form-grid,
  .gallery-track {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-grid,
  .form-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
}

/* ===== NEWS & BLOG ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.post-card {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}
.post-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card .body {
  padding: 1.15rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.post-meta {
  color: var(--red);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.post-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  flex: 1;
}
.post-card .read-more {
  margin-top: .55rem;
  color: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .04em;
}
.post-card .read-more:hover { color: var(--red); }

.article {
  max-width: 780px;
  margin: 0 auto;
}
.article-meta {
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 1.25rem;
}
.article-hero-img {
  margin: 0 0 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}
.article-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.article .prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.article .prose ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--muted);
}
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--red-dark);
  }
  .nav-links.is-open { display: flex; }
  .nav-inner { flex-wrap: wrap; padding: .35rem 0; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .gallery-track,
  .leader-grid,
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo img { width: 110px; height: 110px; }
  .hero-arrow { display: none; }
  .amount-row { grid-template-columns: 1fr 1fr; }
}
