/* ── PPF SHARED STYLES ── */

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

body {
  background-color: #606468;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #313335;
  text-align: center;
}

.page-wrapper {
  width: 824px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 5px 5px 6px rgba(0,0,0,0.25);
  min-height: 100vh;
  text-align: left;
}

/* ── NAV ── */
/* Desktop: full button bar */
.site-nav {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 824px;
  background-color: #41A8E1;
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 4px;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Desktop: links shown inline */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.site-nav a {
  display: inline-block;
  padding: 5px 10px;
  background: #002868;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.site-nav a.red  { background: #B22234; }
.site-nav a:hover { opacity: 0.85; }
/* Desktop: hamburger hidden */
.nav-toggle { display: none; }

/* ── HEADER PHOTO ── */
.header-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  margin-top: 46px;
}

/* ── LOGO BAND ── */
.logo-band {
  background: #ffffff;
  padding: 16px 30px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 4px solid #41A8E1;
}
.logo-band img.ppf-logo  { height: 68px; width: auto; }
.logo-band img.water-drop { height: 52px; width: auto; }
.logo-band-text h1 { font-size: 20px; font-weight: 900; color: #002868; margin-bottom: 3px; }
.logo-band-text p  { font-size: 13px; color: #494949; }

/* ── CONTENT SECTIONS ── */
.section { padding: 28px 36px; border-bottom: 1px solid #e8e8e8; }
.section h2 {
  font-size: 19px; color: #002868; margin-bottom: 14px;
  padding-bottom: 6px; border-bottom: 3px solid #41A8E1; display: inline-block;
}
.section p { font-size: 14px; line-height: 1.75; color: #494949; margin-bottom: 10px; }

/* ── INFO GRID ── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.info-card { background: #f5faff; border-left: 4px solid #41A8E1; border-radius: 3px; padding: 13px 15px; }
.info-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #41A8E1; margin-bottom: 5px; }
.info-card p  { margin-bottom: 0; font-size: 13px; color: #494949; }

/* ── SECTION HEADER ── */
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-icon { width: 40px; height: 40px; background: #e8f4fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.section-icon.green { background: #e8f5e9; }
.section-icon.gold  { background: #fffde7; }
.section-header h2  { font-size: 19px; color: #002868; margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.section-header .sub { font-size: 12px; color: #888; margin-top: 2px; }

/* ── PROJECT CARDS ── */
.project-card { display: flex; align-items: flex-start; gap: 13px; background: #f5faff; border-left: 4px solid #41A8E1; border-radius: 3px; padding: 14px; margin-bottom: 10px; }
.project-card.green-card { background: #f5fff6; border-left-color: #2e7d32; }
.card-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.card-body h3 { font-size: 14px; font-weight: bold; color: #002868; margin-bottom: 4px; }
.card-body p  { font-size: 13px; color: #494949; line-height: 1.65; margin: 0; }
.card-tag { display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 8px; border-radius: 10px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-active   { background: #41A8E1; color: #fff; }
.tag-planning { background: #e8f4fd; color: #002868; }
.tag-future   { background: #e8f5e9; color: #2e7d32; }

/* ── EVENTS GRID ── */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.event-card { background: #f5faff; border: 1px solid #c5dff0; border-radius: 4px; padding: 14px; }
.event-card h3 { font-size: 14px; font-weight: bold; color: #002868; margin-bottom: 5px; }
.event-card p  { font-size: 12px; color: #494949; line-height: 1.5; margin: 0; }

/* ── CAUSE ITEMS ── */
.cause-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #494949; }
.cause-item:last-child { border-bottom: none; }
.cause-check { color: #41A8E1; font-size: 15px; flex-shrink: 0; }

/* ── SPONSOR BOXES ── */
.sponsor-cta { background: #002868; color: #fff; border-radius: 6px; padding: 20px 24px; margin-top: 16px; }
.sponsor-cta h3 { font-size: 16px; color: #FFD700; margin-bottom: 8px; }
.sponsor-cta p  { color: rgba(255,255,255,0.88); font-size: 13px; margin-bottom: 6px; }
.sponsor-cta a  { color: #FFD700; }

/* ── DONATE CTA ── */
.donate-cta { background: #002868; color: #fff; padding: 28px 36px; text-align: center; }
.donate-cta h2 { font-size: 21px; color: #FFD700; margin-bottom: 10px; }
.donate-cta p  { font-size: 14px; opacity: 0.9; max-width: 480px; margin: 0 auto 16px; line-height: 1.65; }
.donate-cta a.donate-btn { display: inline-block; background: #B22234; color: #fff; font-size: 16px; font-weight: bold; padding: 14px 36px; border-radius: 5px; text-decoration: none; }
.donate-cta a.donate-btn:hover { background: #8b0000; }
.donate-cta .venmo-note { margin-top: 10px; font-size: 13px; opacity: 0.8; }
.donate-cta .venmo-note a { color: #9DD4F3; }

/* ── REGISTER BAR ── */
.register-bar { background: #f5f5f5; border-bottom: 3px solid #41A8E1; padding: 20px; text-align: center; }
.register-bar a.reg-btn { display: inline-block; background: #B22234; color: #fff; font-size: 17px; font-weight: bold; padding: 14px 40px; border-radius: 5px; text-decoration: none; }
.register-bar a.reg-btn:hover { background: #8b0000; }
.register-bar p { margin-top: 8px; font-size: 13px; color: #666; }

/* ── MISSION BAR ── */
.mission-bar { background: #41A8E1; color: #fff; padding: 13px 30px; font-size: 14px; font-style: italic; font-weight: bold; text-align: center; }
.tradition-box { background: #f5faff; border-left: 4px solid #41A8E1; border-radius: 3px; padding: 16px 18px; margin-top: 14px; font-size: 13px; color: #494949; line-height: 1.75; font-style: italic; }

/* ── IMAGES ── */
.banner-img  { width: 100%; display: block; border-radius: 4px; margin-top: 14px; }
.tshirt-img  { display: block; max-width: 500px; margin: 16px auto 0; border: 1px solid #ddd; border-radius: 4px; }
.route-map   { width: 100%; display: block; border-radius: 4px; border: 1px solid #ddd; margin-top: 14px; }

/* ── RACE HERO ── */
.race-hero { background: linear-gradient(135deg, #002868 0%, #B22234 50%, #002868 100%); padding: 24px 30px; color: #fff; text-align: center; }
.race-hero .anniversary { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; }
.race-hero .big5k { font-size: 50px; font-weight: 900; color: #FFD700; line-height: 1; }
.race-hero .race-title { font-size: 17px; font-weight: bold; margin: 5px 0 4px; }
.race-hero .race-details { font-size: 14px; opacity: 0.9; }
.race-detail-boxes { display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.rdb { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.35); border-radius: 6px; padding: 9px 16px; min-width: 110px; }
.rdb .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; }
.rdb .val { font-size: 15px; font-weight: bold; margin-top: 3px; }

/* ── PARADE HERO ── */
.parade-hero { background: linear-gradient(135deg, #002868 0%, #B22234 50%, #002868 100%); padding: 28px 30px; color: #fff; text-align: center; }
.parade-hero .sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; margin-bottom: 10px; }
.parade-hero h2 { font-size: 32px; font-weight: 900; color: #FFD700; line-height: 1.15; }
.parade-hero .tagline { font-size: 15px; opacity: 0.9; margin-top: 8px; }
.detail-boxes { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.dbox { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.35); border-radius: 6px; padding: 9px 16px; min-width: 110px; }
.dbox .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.75; }
.dbox .val { font-size: 15px; font-weight: bold; margin-top: 3px; }

/* ── FOOTER ── */
.site-footer { background: #494949; color: rgba(255,255,255,0.75); text-align: center; padding: 20px; font-size: 13px; }
.site-footer a { color: #9DD4F3; text-decoration: none; }
.site-footer p + p { margin-top: 6px; }


/* ════════════════════════════════════════════
   MOBILE — screens 824px and under
   ════════════════════════════════════════════ */
@media (max-width: 824px) {

  body { background-color: #fff; }

  .page-wrapper {
    width: 100%;
    box-shadow: none;
  }

  /* ── MOBILE NAV ── */
  .site-nav {
    width: 100%;
    left: 0;
    transform: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }
  /* Show hamburger, hide links by default */
  .nav-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
  }
  .nav-toggle .nav-brand {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
  }
  .nav-toggle .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .nav-toggle .nav-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
  }
  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    padding: 6px 12px 12px;
    gap: 6px;
    background: #41A8E1;
  }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
  }
  .site-nav a {
    font-size: 16px;
    padding: 13px 16px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    display: block;
    white-space: normal;
  }

  /* ── HEADER PHOTO ── */
  .header-photo {
    height: 200px;
    margin-top: 50px;
  }

  /* ── LOGO BAND ── */
  .logo-band {
    padding: 14px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .logo-band img.ppf-logo  { height: 52px; }
  .logo-band img.water-drop { height: 38px; }
  .logo-band-text h1 { font-size: 17px; }
  .logo-band-text p  { font-size: 12px; }

  /* ── MISSION BAR ── */
  .mission-bar { padding: 12px 16px; font-size: 13px; }

  /* ── SECTIONS ── */
  .section { padding: 20px 16px; }
  .section h2 { font-size: 17px; }
  .section p  { font-size: 14px; }

  /* ── ALL 2-COLUMN GRIDS → SINGLE COLUMN ── */
  .info-grid    { grid-template-columns: 1fr; }
  .events-grid  { grid-template-columns: 1fr; }

  /* ── RACE HERO ── */
  .race-hero { padding: 20px 16px; }
  .race-hero .big5k { font-size: 40px; }
  .race-hero .race-title { font-size: 15px; }
  .race-detail-boxes { gap: 8px; }
  .rdb { min-width: 80px; padding: 8px 10px; }
  .rdb .val { font-size: 13px; }

  /* ── REGISTER BAR ── */
  .register-bar { padding: 16px; }
  .register-bar a.reg-btn { font-size: 15px; padding: 14px 24px; width: 100%; display: block; }

  /* ── PARADE HERO ── */
  .parade-hero { padding: 20px 16px; }
  .parade-hero h2 { font-size: 26px; }
  .detail-boxes { gap: 8px; }
  .dbox { min-width: 80px; padding: 8px 10px; }

  /* ── PROJECT CARDS ── */
  .project-card { padding: 12px; gap: 10px; }
  .card-body h3 { font-size: 14px; }

  /* ── DONATE CTA ── */
  .donate-cta { padding: 24px 16px; }
  .donate-cta h2 { font-size: 19px; }
  .donate-cta a.donate-btn { width: 100%; display: block; padding: 16px; font-size: 17px; }

  /* ── SPONSOR SECTION ── */
  .tshirt-img { max-width: 100%; }

  /* ── FOOTER ── */
  .site-footer { padding: 20px 16px; font-size: 13px; }
  .site-footer p { line-height: 1.8; }

  /* ── TRADITION BOX ── */
  .tradition-box { padding: 14px; font-size: 14px; }
}
