@charset "utf-8";
/* WPVFD Modern Theme — drop-in replacement while preserving existing HTML structure */

:root{
  --bg: #0f172a;            /* deep slate */
  --surface: #0b1226;
  --card: #ffffff;
  --text: #0b1226;
  --muted: #475569;
  --brand: #b91c1c;         /* firebrick-ish */
  --brand-dark:#7f1d1d;
  --line:#e5e7eb;
  --shadow: 0 10px 30px rgba(2,6,23,.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1040px;
}

/* Base reset */
*{ box-sizing:border-box; }
html, body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);

  /* Mirrored background so long pages don’t show a hard “restart” line */
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(185,28,28,.25), transparent 55%),
    radial-gradient(900px 600px at 95% 0%, rgba(2,132,199,.15), transparent 50%),
    radial-gradient(1200px 700px at 15% 110%, rgba(185,28,28,.18), transparent 55%),
    radial-gradient(900px 600px at 95% 100%, rgba(2,132,199,.10), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0b1020 55%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  padding: 18px 12px 40px;
}


/* Keep your existing container class but make it feel modern */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 12px;
}

/* Header & nav */
header{
  position: sticky;
  top: 12px; /* small breathing room from top of viewport */
  z-index: 1000;

  max-width: var(--max);
  margin: 0 auto 14px;

  /* More opaque for readability while staying modern */
  background: rgba(15,23,42,.88);
  border: 1px solid rgba(255,255,255,.16);

  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(2,6,23,.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;  
}


#logo{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px 0;
}

.wpimg{
  width: 70px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 6px 12px rgba(2,6,23,.35));
}

/* Top navigation */
.topnav{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 12px 14px 14px;
  background: transparent;
  overflow: visible;
}

.topnav a{
  float:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-size: 15px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}

.topnav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.topnav a.active{
  background: rgba(185,28,28,.20);
  border-color: rgba(185,28,28,.40);
  color: #fff;
  box-shadow: 0 10px 22px rgba(185,28,28,.22);
  position: relative;
}
.topnav a.active::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,.85);
}


.topnav .icon{
  display:none; /* your JS may toggle this for mobile; we'll show it below */
}

/* Mobile nav behavior (keeps your existing JS responsive class) */
@media screen and (max-width: 650px){
  .topnav a:not(:first-child){
    display:none;
  }
  .topnav a.icon{
    display:inline-flex;
    margin-left:auto;
    padding: 10px 14px;
    font-size: 18px;
  }
  .topnav.responsive{
    position: relative;
  }
  .topnav.responsive a{
    display:flex;
    width: 100%;
    justify-content:flex-start;
  }
  .topnav.responsive a.icon{
    position:absolute;
    right: 14px;
    top: 12px;
    width: auto;
  }
}

/* Main surface */
main{
  max-width: var(--max);
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 22px;
}

/* Type scale */
h1, h2, h3{
  margin: 14px 0 8px;
  letter-spacing: -.02em;
}
h1{ font-size: clamp(26px, 3vw, 34px); }
h2{ font-size: clamp(20px, 2.2vw, 26px); }
h3{ font-size: 18px; color: var(--text); }

p{
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.55;
}

.center{ text-align:center; }
address, tel{
  display:block;
  font-style: normal;
  color: var(--text);
  margin-bottom: 10px;
}

/* Homepage signature text */
#motto{
  font-family: 'Satisfy', cursive;
  font-size: clamp(34px, 6vw, 54px);
  text-align:center;
  margin: 10px 0 2px;
  color: var(--text);
  text-shadow: 0 6px 16px rgba(2,6,23,.12);
  font-weight: 500;
}
#year{
  font-family: 'Carrois Gothic SC', sans-serif;
  font-size: clamp(18px, 3.2vw, 28px);
  text-align:center;
  margin: 0;
  color: var(--muted);
  text-shadow:none;
}

/* Images */
#firetruck{ display:none; }

#firetrucksm{
  display:block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2,6,23,.18);
  border: 1px solid rgba(15,23,42,.10);
  margin-top: 10px;
  object-fit: cover;
}

#firetruck700, #firetruck1000{
  display:none;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2,6,23,.18);
  border: 1px solid rgba(15,23,42,.10);
  margin-top: 10px;
  object-fit: cover;
}

/* Responsive hero image selection */
@media (min-width: 641px){
  #firetrucksm{ display:none; }
  #firetruck700{ display:block; }
  #firetruck1000{ display:none; }
}

@media (min-width: 1080px){
  #firetrucksm{ display:none; }
  #firetruck700{ display:none; }
  #firetruck1000{ display:block; }
}

/* Donation / primary button (preserve class name) */
.donateBtn{
  width: min(520px, 92%);
  margin: 14px auto 8px;
  display:block;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 22px rgba(185,28,28,.25);
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.donateBtn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(185,28,28,.28);
}
.donateBtn:active{
  transform: translateY(0px);
}
.donateBtn a{
  color:#fff;
  text-decoration:none;
}

/* Remove underline from donate button links */
a:has(.donateBtn){
  text-decoration: none;
}

/* Remove underline from donate button links fallback */
a[href="donate.html"]{
  text-decoration: none;
}

/* Lists used on officers page */
ul.officers{
  list-style:none;
  padding: 0;
  margin: 0;
}
ul.officers > h2.officers{
  margin-top: 8px;
}
h3.position{
  margin-top: 16px;
  text-decoration:none;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .10em;
}
.lineOfficer{
  display:inline-block;
  margin: 6px 6px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: #f8fafc;
}

/* Apparatus headings feel like sections */
main > h2{
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
main > h2:first-of-type{
  border-top: 0;
  padding-top: 0;
}

/* Footer */
#footerNav{
  max-width: var(--max);
  margin: 14px auto 0;
  border-radius: var(--radius);
  padding: 14px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(2,6,23,.20);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 6px;
}
#footerNav p{
  margin: 6px 0 0;
  color: rgba(255,255,255,.85);
}
#footerNav a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  border-bottom: 1px dotted rgba(255,255,255,.35);
}
#footerNav a:hover{
  border-bottom-color: rgba(255,255,255,.70);
}
#btmMember{
  margin-top: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}


/* Prevent anchor links from hiding under sticky header */
:target{
  scroll-margin-top: 120px;
}


/* Accessibility: clear keyboard focus */
a:focus-visible,
button:focus-visible{
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

/* Ensure the mobile menu toggle button looks like the other nav pills */
.topnav button.icon{
  display:none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
@media screen and (max-width: 650px){
  .topnav button.icon{
    display:inline-flex;
    margin-left:auto;
    align-items:center;
    justify-content:center;
    font-size: 18px;
    line-height: 1;
  }
}


/* Accessibility: Skip to main content link */
.skip-link{
  position:absolute;
  left:-999px;
  top: 10px;
  z-index: 2000;
  background: #ffffff;
  color: #0b1226;
  border-radius: 10px;
  padding: 10px 12px;
  border: 2px solid #0b1226;
  box-shadow: 0 10px 22px rgba(2,6,23,.20);
  text-decoration:none;
  font-weight: 800;
}
.skip-link:focus,
.skip-link:focus-visible{
  left: 16px;
  outline: 3px solid #facc15;
  outline-offset: 3px;
}


/* Cleaner footer layout */
#footerNav{
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 18px;
}

#footerNav p{
  flex-basis: 100%;
  text-align: center;
  margin-top: 8px;
}

#btmMember,
#btmAccessibility{
  margin-top: 0;
}

#footerNav a{
  font-size: 15px;
  border-bottom: none;
  opacity: .9;
}

#footerNav a:hover{
  opacity: 1;
  text-decoration: underline;
}



/* --- Homepage expandable info grid (index) --- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin: 18px 0 10px;
}

.info-card{
  grid-column: span 12;
  text-align: left;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.info-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(2,6,23,.10);
  border-color: rgba(15,23,42,.18);
}

.info-card:focus-visible{
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

.info-card-title{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.01em;
}

.info-card-teaser{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.info-card-cta{
  display: inline-flex;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--brand-dark);
}

/* Responsive layout */
@media (min-width: 720px){
  .info-card{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .info-card{ grid-column: span 4; }
}

/* Modal */
.modal-root{ position: relative; }

.modal[hidden]{ display:none !important; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-panel{
  position: absolute;
  left: 50%;
  top: 14vh;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 28px));
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(2,6,23,.35);
  border: 1px solid rgba(15,23,42,.12);
  padding: 18px 18px 16px;
  outline: none;
  max-height: 74vh;
  overflow: auto;
}

.modal-title{
  margin: 4px 34px 10px 0;
  font-size: clamp(20px, 2.4vw, 28px);
}

.modal-body p{
  margin: 0;
  line-height: 1.6;
}

.modal-close{
  position: sticky;
  top: 0;
  float: right;
  margin-left: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: #f8fafc;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover{ filter: brightness(0.98); }

/* Prevent background scroll while modal open */
body.modal-open{
  overflow: hidden;
}
