/* ============================================================
   campaign.css  —  Troy Brekke for Marshall County Sheriff
   Bootstrap 5 companion stylesheet
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --navy:   #0d1b2a;
  --red:    #c8102e;
  --gold:   #c9a84c;
  --cream:  #f5f0e8;
  --gray:   #5a6270;
  --light:  #eef1f5;
}

/* ── BASE ── */
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.display-font { font-family: 'Playfair Display', serif; }

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .4rem;
}
.section-label.light { color: var(--gold); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: .8rem;
}
.section-title.light { color: #fff; }
.section-title .accent { color: var(--red); }
.section-title .accent-gold { color: var(--gold); }

.divider {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.divider.light { background: rgba(255,255,255,.4); }

/* ── NAVBAR ── */
#mainNav {
  background: var(--navy);
  min-height: 64px;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
#mainNav .navbar-brand {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
}
#mainNav .navbar-brand .star { color: var(--gold); margin-right: .4rem; }
#mainNav .nav-link {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold); }
#mainNav .btn-donate {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s;
}
#mainNav .btn-donate:hover { background: #a50d25; color: #fff; }
#mainNav .navbar-toggler { border-color: rgba(255,255,255,.3); }
#mainNav .navbar-toggler-icon { filter: invert(1); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding-top: 5rem;
  background:
    linear-gradient(160deg, rgba(13,27,42,.93) 45%, rgba(200,16,46,.75) 100%),
    /* TODO: Replace with owned image -> url('images/hero-bg.jpg') */
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9c/Marshall_County%2C_Minnesota_Courthouse.jpg/1280px-Marshall_County%2C_Minnesota_Courthouse.jpg')
    center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 6px; height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--red)   0px,  var(--red)   40px,
    #fff        40px, #fff        80px,
    var(--navy)  80px, var(--navy) 120px
  );
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 3px;
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  margin-bottom: .3rem;
}
.hero-office {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 2rem;
}
.btn-hero-primary {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-hero-primary:hover { background: #a50d25; color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  padding: .83rem 2rem;
  border-radius: 5px;
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, color .2s, transform .15s;
}
.btn-hero-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.hero-badge {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: var(--navy);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.hero-badge .badge-year {
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 1.1rem; font-weight: 900;
}
.hero-badge .badge-sub {
  color: #fff; font-size: .6rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}

/* ── RIBBON ── */
.ribbon { background: var(--red); }
.ribbon-item {
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ribbon-item::before { content: '★ '; color: var(--gold); }

/* ── ABOUT ── */
#about { background: #fff; padding: 5rem 0; }
.about-img-wrap { position: relative; }
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 60%, var(--red));
  border-radius: 8px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
}
.about-img-placeholder svg { width: 72px; height: 72px; fill: rgba(255,255,255,.2); }
.about-frame {
  position: absolute;
  bottom: -16px; right: -16px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border: 3px solid var(--gold);
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
}
.about-img-placeholder { position: relative; z-index: 1; }
.about-text p { color: var(--gray); line-height: 1.8; font-size: 1rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  display: block;
}
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray);
}

/* ── PLATFORM ── */
#platform { background: var(--navy); padding: 5rem 0; }
.platform-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  transition: background .25s, transform .2s;
}
.platform-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.platform-icon { font-size: 2rem; margin-bottom: 1rem; }
.platform-card h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .7rem;
}
.platform-card p { color: rgba(255,255,255,.7); line-height: 1.7; font-size: .92rem; margin: 0; }

/* ── ENDORSEMENTS ── */
#endorsements { background: var(--cream); padding: 5rem 0; }
.endorse-card {
  background: #fff;
  border-radius: 6px;
  border-left: 5px solid var(--red);
  padding: 1.8rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  height: 100%;
}
.endorse-quote {
  font-size: 2.5rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: .25rem;
}
.endorse-card p { color: var(--gray); line-height: 1.7; font-size: .93rem; margin-bottom: 1rem; }
.endorse-name { font-weight: 700; color: var(--navy); font-size: .9rem; }
.endorse-title-sub { font-size: .82rem; color: var(--gray); }

/* ── VOLUNTEER ── */
#volunteer {
  background: linear-gradient(135deg, var(--red) 0%, #8b0d20 100%);
  padding: 5rem 0;
}
.volunteer-perks { list-style: none; padding: 0; margin: 0; }
.volunteer-perks li {
  color: rgba(255,255,255,.85);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .95rem;
  display: flex; align-items: center; gap: .75rem;
}
.volunteer-perks li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.form-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}
.form-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
.form-card .form-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-card .form-control,
.form-card .form-select {
  border: 2px solid #dde2ea;
  border-radius: 4px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--navy);
  transition: border-color .2s;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--red);
  box-shadow: none;
}
.btn-submit {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 100%;
  padding: .9rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--red); transform: translateY(-2px); }

/* ── CONTACT / DONATE ── */
#contact { background: #fff; padding: 5rem 0; }
.donate-box {
  background: var(--navy);
  border-radius: 8px;
  padding: 2.4rem;
  color: #fff;
  height: 100%;
}
.donate-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: .8rem;
}
.donate-box p { color: rgba(255,255,255,.8); line-height: 1.7; }
.donate-btn {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 4px;
  padding: .45rem 1.1rem;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.donate-btn:hover, .donate-btn.active { background: var(--gold); color: var(--navy); }
.btn-donate-action {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 5px;
  width: 100%;
  padding: .9rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.btn-donate-action:hover { background: #a50d25; }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  display: block;
}
.contact-value { color: var(--gray); font-size: .95rem; }
.btn-social {
  border: 2px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
  border-radius: 4px;
  padding: .45rem 1rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  transition: background .2s, color .2s;
}
.btn-social:hover { background: var(--navy); color: #fff; }

/* ── FOOTER ── */
#siteFooter { background: var(--navy); padding: 2.5rem 1rem; text-align: center; }
#siteFooter .footer-logo {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: .4rem;
}
#siteFooter p { color: rgba(255,255,255,.45); font-size: .8rem; line-height: 1.9; margin: 0; }
#siteFooter .text-gold { color: var(--gold); }

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── UTILITIES ── */
@media (max-width: 767.98px) {
  .hero-badge { display: none; }
  .about-frame { display: none; }
}
