/* South Surrey–White Rock Liberals — Static Site
   Liberal Party of Canada · Electoral District Association
   Bright, modern, world-class design — official Liberal red palette */

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

:root {
  --red: #D71920;          /* Liberal Party of Canada official red */
  --red-bright: #EC1F27;   /* Vibrant accent red */
  --red-soft: #FBE9EA;     /* Soft pink wash */
  --ink: #0D1B2A;          /* Crisp near-black for text */
  --gray: #4a5568;
  --gray-soft: #718096;
  --light: #f8f6f3;        /* Warm off-white */
  --border: #e6e8eb;
  --shadow: 0 1px 3px rgba(13,27,42,0.04), 0 4px 16px rgba(13,27,42,0.06);
  --shadow-lg: 0 4px 12px rgba(13,27,42,0.06), 0 12px 32px rgba(215,25,32,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--red); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--red-bright); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }

/* NAV — bright, white, modern */
nav {
  background: #fff;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(13,27,42,0.04);
}
.nav-brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-brand:hover { text-decoration: none; color: var(--ink); }
.nav-brand .logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}
.nav-brand .brand-text {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  line-height: 1.25;
}
.nav-brand .brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-soft);
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Hamburger toggle (mobile) */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-burger:hover { background: var(--red-soft); }
.nav-burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--red); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--red); }

.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--red-soft); color: var(--red); text-decoration: none; }
.nav-links a.active { color: var(--red); font-weight: 700; }
.nav-links a.donate-btn {
  background: var(--red);
  color: #fff !important;
  margin-left: 6px;
  padding: 10px 20px;
}
.nav-links a.donate-btn:hover { background: var(--red-bright); color: #fff !important; }

/* HERO — bright, vibrant Liberal red, NOT dark */
.hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,0.12), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: #fff;
  text-align: center;
  padding: 110px 24px 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.06) 0%, transparent 35%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: rgba(255,255,255,0.18);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero h1 { font-size: 3.4rem; margin-bottom: 22px; line-height: 1.1; font-weight: 800; color: #fff; }
.hero p { font-size: 1.2rem; opacity: 0.95; max-width: 680px; margin: 0 auto 36px; line-height: 1.6; }
.btn {
  display: inline-block;
  background: #fff;
  color: var(--red);
  padding: 15px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  margin-left: 12px;
  box-shadow: none;
}
.btn-outline:hover { background: #fff; color: var(--red); border-color: #fff; }

/* SECTIONS */
.section { padding: 88px 24px; }
.section.gray { background: var(--light); }
.container { max-width: 1140px; margin: 0 auto; }
.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title { font-size: 2.2rem; color: var(--ink); margin-bottom: 14px; font-weight: 800; }
.section-sub { font-size: 1.05rem; color: var(--gray); margin-bottom: 48px; line-height: 1.65; max-width: 720px; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--red-bright);
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.card p { line-height: 1.65; color: var(--gray); font-size: 0.95rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--red);
}
.card .card-link:hover { gap: 8px; text-decoration: none; }

/* EVENT / NEWS ITEMS */
.items { display: flex; flex-direction: column; gap: 18px; }
.item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 30px;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--red); }
.item-date {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  min-width: 70px;
  font-weight: 800;
  line-height: 1.2;
  font-size: 1.4rem;
}
.item-date .month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; opacity: 0.95; }
.item-body h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 700; }
.item-body h3 a { color: var(--ink); }
.item-body h3 a:hover { color: var(--red); }
.item-body p { color: var(--gray); font-size: 0.95rem; line-height: 1.65; }
.item-tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* MP / REPRESENTATIVE SECTION */
.mp-section { background: var(--light); }
.mp-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 56px;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.mp-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 4px solid var(--red);
  background: var(--red-soft);
}
.mp-info .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  background: var(--red-soft);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.mp-info h2 { font-size: 2.2rem; margin-bottom: 6px; font-weight: 800; }
.mp-info .mp-title { color: var(--gray); font-size: 1rem; margin-bottom: 4px; font-weight: 500; }
.mp-info .mp-role { color: var(--red); font-size: 0.95rem; font-weight: 600; margin-bottom: 18px; }
.mp-info .mp-bio { color: var(--gray); line-height: 1.7; margin-bottom: 24px; font-size: 0.98rem; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mp-actions .btn-red { padding: 12px 24px; font-size: 0.95rem; }

/* SOCIAL ICONS */
.socials { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.socials a:hover { background: var(--red); color: #fff; transform: translateY(-2px); text-decoration: none; }
.socials a svg { width: 18px; height: 18px; fill: currentColor; }
footer .socials a { background: rgba(255,255,255,0.08); color: #fff; }
footer .socials a:hover { background: var(--red); color: #fff; }

/* CONTACT FORM */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
input, textarea, select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
textarea { resize: vertical; min-height: 130px; }
.btn-red {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(215,25,32,0.25);
}
.btn-red:hover { background: var(--red-bright); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(215,25,32,0.35); text-decoration: none; }

/* VALUES LIST */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.value h4 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 700; }
.value p { font-size: 0.92rem; color: var(--gray); line-height: 1.6; }

/* BANNER — bright red CTA */
.banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 40%);
}
.banner > * { position: relative; }
.banner h2 { font-size: 2.2rem; margin-bottom: 16px; color: #fff; font-weight: 800; }
.banner p { font-size: 1.1rem; opacity: 0.95; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* FOOTER */
footer {
  background: var(--ink);
  color: #a0aec0;
  padding: 64px 40px 32px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; max-width: 1140px; margin: 0 auto 40px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 0.95rem; font-weight: 700; }
.footer-col p, .footer-col a { font-size: 0.9rem; line-height: 1.9; color: #a0aec0; display: block; }
.footer-col a { transition: color 0.15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .logo { width: 40px; height: 40px; }
.footer-brand strong { color: #fff; font-size: 0.95rem; }
.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  border-top: 1px solid #2d3748;
  padding-top: 24px;
  max-width: 1140px;
  margin: 0 auto;
  color: #718096;
}

/* PAGE HEADER — bright Liberal red, not dark */
.page-header {
  background:
    radial-gradient(ellipse at 70% 0%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-bright) 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { font-size: 2.6rem; color: #fff; font-weight: 800; }
.page-header p { opacity: 0.95; margin-top: 10px; font-size: 1.1rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    padding: 10px 16px;
    min-height: 60px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav-brand { padding: 6px 0; gap: 10px; min-width: 0; flex: 1 1 auto; }
  .nav-brand .logo { width: 36px; height: 36px; }
  .nav-brand .brand-text { font-size: 0.95rem; }
  .nav-brand .brand-text span { display: none; }   /* hide subtitle on mobile */

  .nav-burger { display: flex; order: 2; }

  .nav-links {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 12px;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
  }
  .nav-links a.donate-btn {
    margin: 8px 0 4px;
    text-align: center;
    padding: 14px;
  }

  .hero { padding: 70px 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 20px; }
  .section-title { font-size: 1.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .item { flex-direction: column; gap: 14px; }
  .item-date { align-self: flex-start; }
  footer { padding: 40px 20px 24px; }
  .btn-outline { margin-left: 0; margin-top: 12px; }
  .page-header h1 { font-size: 1.9rem; }

  .mp-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px;
    text-align: center;
  }
  .mp-photo { max-width: 240px; margin: 0 auto; }
  .mp-info h2 { font-size: 1.7rem; }
  .mp-actions { justify-content: center; }
}
