/* =============================================================
   DUNSIN FAKOREDE — WARD 5 CAMPAIGN WEBSITE
   main.css — Design System & Global Styles
   Arise St. Catharines · Election: October 26, 2026
   ============================================================= */

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


/* -------------------------------------------------------------
   DESIGN TOKENS — CSS CUSTOM PROPERTIES
   ------------------------------------------------------------- */
:root {
  /* Colours */
  --navy:      #0C2340;
  --royal:     #1A4FA0;
  --teal:      #0A6E56;
  --gold:      #C49200;
  --white:     #FFFFFF;
  --light-bg:  #F5F5F5;
  --body-text: #2C2C2C;
  --muted:     #666666;
  --border:    #CCCCCC;
  --error:     #9B1C1C;
  --ltteal:    #D1EDE6;
  --ltblue:    #D6E4F7;

  /* Typography */
  --font-head:  'Montserrat', 'Arial Black', sans-serif;
  --font-body:  'DM Sans', Inter, Arial, sans-serif;
  --font-label: 'Barlow Condensed', Arial Narrow, sans-serif;

  /* Spacing */
  --xs:  4px;
  --sm:  8px;
  --md:  16px;
  --lg:  24px;
  --xl:  40px;
  --2xl: 64px;
  --3xl: 96px;

  /* Border Radius */
  --radius-btn:  6px;
  --radius-card: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(12, 35, 64, 0.10);
  --shadow-btn:  0 4px 16px rgba(10, 110, 86, 0.20);
  --shadow-nav:  0 2px  8px rgba(12, 35, 64, 0.15);

  /* Transitions */
  --transition: 0.22s ease;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--body-text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}


/* -------------------------------------------------------------
   TYPOGRAPHY SCALE
   ------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--navy);
}

/* On dark backgrounds, override via parent class */
.bg-navy h1,
.bg-navy .h1,
.hero h1,
.hero .h1 {
  color: var(--white);
}

h2, .h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy);
}

h3, .h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--teal);
}

h4, .h4 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--navy);
}

p {
  font-size: 17px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.7;
}

small,
.text-small {
  font-size: 14px;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--muted);
  line-height: 1.5;
}

/* Overline / section label */
.label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sm);
}

/* Lead / intro paragraph */
.text-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body-text);
}

.text-muted {
  color: var(--muted);
}

.text-white {
  color: var(--white);
}

.text-white-70 {
  color: rgba(255, 255, 255, 0.70);
}

.text-teal {
  color: var(--teal);
}

.text-gold {
  color: var(--gold);
}

.text-navy {
  color: var(--navy);
}

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


/* -------------------------------------------------------------
   LAYOUT — CONTAINER
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--lg);
  padding-right: var(--lg);
}

.container--narrow {
  max-width: 820px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding-top: var(--3xl);
  padding-bottom: var(--3xl);
}

.section--sm {
  padding-top: var(--2xl);
  padding-bottom: var(--2xl);
}

.section--lg {
  padding-top: 112px;
  padding-bottom: 112px;
}

/* Background helpers */
.bg-navy    { background-color: var(--navy); }
.bg-teal    { background-color: var(--teal); }
.bg-light   { background-color: var(--light-bg); }
.bg-white   { background-color: var(--white); }


/* -------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sm);
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  transition: background-color var(--transition),
              color var(--transition),
              border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary — teal fill */
.btn--primary {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #085c48;
  border-color: #085c48;
  box-shadow: 0 6px 20px rgba(10, 110, 86, 0.35);
}

/* Outline — white border, transparent fill (for dark backgrounds) */
.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--white);
  color: var(--navy);
}

/* Outline navy — for light backgrounds */
.btn--outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-navy:hover,
.btn--outline-navy:focus-visible {
  background-color: var(--navy);
  color: var(--white);
}

/* Gold */
.btn--gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(196, 146, 0, 0.25);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: #a87d00;
  border-color: #a87d00;
}

/* Teal outline (on light bg) */
.btn--outline-teal {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline-teal:hover,
.btn--outline-teal:focus-visible {
  background-color: var(--teal);
  color: var(--white);
}

/* Size modifiers */
.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Arrow suffix */
.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(4px);
}


/* -------------------------------------------------------------
   STAT PILL / BADGE
   ------------------------------------------------------------- */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-pill--teal {
  background-color: var(--ltteal);
  color: var(--teal);
}

.stat-pill--gold {
  background-color: #fdf3d0;
  color: #7a5900;
}

.stat-pill--navy {
  background-color: var(--ltblue);
  color: var(--navy);
}


/* -------------------------------------------------------------
   CARDS
   ------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--xl);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(12, 35, 64, 0.15);
  transform: translateY(-2px);
}

.card--teal-border {
  border-left: 4px solid var(--teal);
}

.card--top-border {
  border-top: 3px solid var(--teal);
}


/* -------------------------------------------------------------
   DIVIDERS & ACCENTS
   ------------------------------------------------------------- */
.accent-bar {
  display: block;
  width: 48px;
  height: 4px;
  background-color: var(--teal);
  border-radius: 2px;
  margin-bottom: var(--md);
}

.accent-bar--gold {
  background-color: var(--gold);
}

.accent-bar--center {
  margin-left: auto;
  margin-right: auto;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--lg) 0;
}


/* -------------------------------------------------------------
   SKIP-TO-CONTENT ACCESSIBILITY LINK
   ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--md);
  z-index: 9999;
  padding: 10px 20px;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 0 0 var(--radius-btn) var(--radius-btn);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}


/* -------------------------------------------------------------
   BACK-TO-TOP BUTTON
   ------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(12, 35, 64, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  font-size: 20px;
  line-height: 1;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: #085c48;
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* -------------------------------------------------------------
   COOKIE CONSENT BANNER
   ------------------------------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: var(--navy);
  color: var(--white);
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  font-size: 14px;
  box-shadow: 0 -2px 12px rgba(12, 35, 64, 0.20);
}

#cookie-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0;
}

#cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}


/* -------------------------------------------------------------
   ELECTION DAY MOBILE BANNER
   ------------------------------------------------------------- */
#election-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background-color: var(--teal);
  color: var(--white);
  padding: var(--sm) var(--md);
  text-align: center;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* -------------------------------------------------------------
   SCROLL REVEAL ANIMATION
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------------------------------------------------------------
   FOCUS STYLES — ACCESSIBILITY
   ------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* -------------------------------------------------------------
   SELECTION COLOUR
   ------------------------------------------------------------- */
::selection {
  background-color: var(--teal);
  color: var(--white);
}


/* -------------------------------------------------------------
   UTILITY CLASSES
   ------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.d-flex         { display: flex; }
.d-grid         { display: grid; }
.align-center   { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm         { gap: var(--sm); }
.gap-md         { gap: var(--md); }
.gap-lg         { gap: var(--lg); }

.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-sm  { margin-bottom: var(--sm); }
.mb-md  { margin-bottom: var(--md); }
.mb-lg  { margin-bottom: var(--lg); }
.mb-xl  { margin-bottom: var(--xl); }

.w-full { width: 100%; }


/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .section {
    padding-top: var(--2xl);
    padding-bottom: var(--2xl);
  }

  .container {
    padding-left: var(--md);
    padding-right: var(--md);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding-top: var(--xl);
    padding-bottom: var(--xl);
  }

  .btn--full-mobile {
    width: 100%;
    justify-content: center;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sm);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding-left: var(--md);
    padding-right: var(--md);
  }
}
