/* ============================================================
   MAIN CSS — Anthony A. Adeoye for Mayor · St. Catharines 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Barlow+Condensed:wght@400;600;700;900&family=DM+Sans:wght@400;500;700&display=swap');

/* ==========================================
   CSS RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--body-text);
  line-height: 1.65;
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--royal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold); }

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
  --navy:        #0D2040;
  --royal:       #1A4FA0;
  --gold:        #C49A00;
  --gold-light:  #D4920A;
  --white:       #FFFFFF;
  --off-white:   #F8F9FA;
  --body-text:   #1A1A2E;
  --muted:       #5A6070;
  --border:      #D0D5DD;
  --error:       #9B1C1C;
  --success:     #0A6E56;
  --ltgold:      #FDF5DC;
  --ltblue:      #EEF3FB;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-head:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', Inter, Arial, sans-serif;
  --xs:4px; --sm:8px; --md:16px;
  --lg:24px; --xl:40px; --2xl:64px; --3xl:96px;
  --radius-btn:  6px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 16px rgba(13,32,64,0.10);
  --shadow-btn:  0 4px 16px rgba(196,154,0,0.25);
  --shadow-nav:  0 2px 8px  rgba(13,32,64,0.15);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1 {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}

h2 {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--royal);
}

h4 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

h5, h6 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-text);
  margin-bottom: var(--md);
}

p:last-child { margin-bottom: 0; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding      { padding: 80px 0; }
.section-padding--sm  { padding: 48px 0; }
.section-padding--lg  { padding: 112px 0; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary,
.btn-gold,
.btn-outline,
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}
.btn-primary:hover {
  background-color: #153d80;
  border-color: #153d80;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,79,160,0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-btn);
}
.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

/* ==========================================
   LABEL TAG
   ========================================== */
.label-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sm);
}

/* ==========================================
   CARD
   ========================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ==========================================
   STAT PILLS
   ========================================== */
.stat-pill {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
}

.stat-pill--gold {
  background: rgba(196,154,0,0.15);
  color: #8B6D00;
  border: 1px solid rgba(196,154,0,0.3);
}

.stat-pill--royal {
  background: rgba(26,79,160,0.1);
  color: var(--royal);
  border: 1px solid rgba(26,79,160,0.2);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-navy   { color: var(--navy) !important; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.text-muted  { color: var(--muted) !important; }
.text-royal  { color: var(--royal) !important; }

.bg-navy      { background-color: var(--navy); }
.bg-royal     { background-color: var(--royal); }
.bg-gold      { background-color: var(--gold); }
.bg-off-white { background-color: var(--off-white); }
.bg-ltgold    { background-color: var(--ltgold); }
.bg-ltblue    { background-color: var(--ltblue); }
.bg-white     { background-color: var(--white); }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.mt-xs { margin-top: var(--xs); }
.mt-sm { margin-top: var(--sm); }
.mt-md { margin-top: var(--md); }
.mt-lg { margin-top: var(--lg); }
.mt-xl { margin-top: var(--xl); }

.mb-xs { margin-bottom: var(--xs); }
.mb-sm { margin-bottom: var(--sm); }
.mb-md { margin-bottom: var(--md); }
.mb-lg { margin-bottom: var(--lg); }
.mb-xl { margin-bottom: var(--xl); }

.flex              { display: flex; }
.flex-col          { flex-direction: column; }
.items-center      { align-items: center; }
.justify-center    { justify-content: center; }
.justify-between   { justify-content: space-between; }
.gap-md            { gap: var(--md); }
.gap-lg            { gap: var(--lg); }
.gap-xl            { gap: var(--xl); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--lg); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--lg); }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: var(--lg); }

/* ==========================================
   SKIP LINK
   ========================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  font-weight: 700;
  font-family: var(--font-body);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.animate-fade-in.visible { opacity: 1; }

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================
   COOKIE CONSENT
   ========================================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  z-index: 9998;
  border-top: 3px solid var(--gold);
  flex-wrap: wrap;
}
#cookie-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 14px;
}
#cookie-banner p a { color: var(--gold); }
#cookie-banner button {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
#cookie-banner button:hover { background: var(--gold-light); }

/* ==========================================
   ELECTION ALERT BAR
   ========================================== */
.election-alert-bar {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 10px var(--md);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.election-alert-bar a { color: var(--navy); text-decoration: underline; font-weight: 700; }
.election-alert-bar a:hover { color: var(--white); }

body.nav-open { overflow: hidden; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .section-padding { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .grid-4 { grid-template-columns: 1fr; }
}
