/* ============================================================
   Liz Grade Campaign — Site Styles
   Liz Grade for City Councillor — Ward 8 Eglinton–Lawrence
   ============================================================ */

:root {
  --blue:        #1CAADE;   /* primary brand colour */
  --blue-dark:   #1893c1;
  --blue-darker: #147ea6;
  --red:         #DC2032;   /* donate / CTA accent */
  --red-dark:    #b81a2a;
  --ink:         #33373b;
  --muted:       #5a6573;
  --line:        #e3e7ec;
  --page-bg:     #f1f2f4;
  --white:       #ffffff;
  --maxw:        1160px;
  --sans:        Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif:       Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* Spacing scale — use these everywhere for consistent rhythm */
  --space-xs:    8px;
  --space-sm:    16px;
  --space-md:    24px;
  --space-lg:    32px;
  --space-xl:    48px;
  --space-2xl:   64px;
  --section-y:   64px;   /* top/bottom padding of full-width sections */
  --card-pad:    28px;   /* interior padding of cards/panels */
  --grid-gap:    40px;   /* gap for 2-column content grids */
  --gutter:      20px;   /* horizontal page gutter */

  /* Elevation system — uniform "not-flat" depth */
  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 2px 10px rgba(17,40,55,.07);
  --shadow-md:   0 12px 30px -10px rgba(17,40,55,.18);
  --shadow-lg:   0 22px 50px -18px rgba(17,40,55,.24);
  --grad-cyan:      linear-gradient(140deg, #36b8e9 0%, #1497ca 100%);
  --grad-cyan-deep: linear-gradient(160deg, #1a98ca 0%, #11809e 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: stretch;
  height: 70px;
}
.brand {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .5px;
  color: #fff;
  margin-right: auto;
  display: flex;
  align-items: center;
}
.nav-links {
  display: flex;
  align-items: stretch;
}
.nav-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 0 26px;
  border-left: 1px solid rgba(255,255,255,.18);
}
/* inactive pages render as white tab boxes; active page is plain */
.nav-links a.tab {
  background: #fff;
  color: var(--blue);
  border-left: none;
  margin: 8px 4px;
  border-radius: var(--radius-sm);
}
.nav-links a:not(.tab) { border-left: none; }
.nav-links a.tab:hover { background: #f3f7fb; }

/* "Meet Liz AI" nav item with badge */
.nav-links a.tab-ai { gap: 7px; }
.ai-badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 5px;
  border-radius: 4px;
  line-height: 1;
}

.nav-actions { display: flex; align-items: stretch; margin-left: 18px; }
.login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 0 22px;
  white-space: nowrap;
}
.login::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: inline-block;
  flex: 0 0 auto;
}
.btn-donate {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  white-space: nowrap;
  margin: 8px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.btn-donate:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 2px;
  padding: 12px 26px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: background .15s ease;
}
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue  { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-block { width: 100%; }

/* ---------- Hero (Home) — overlap effect ---------- */
.hero { background: var(--page-bg); }
.hero-wrap { position: relative; }
.hero-left {
  width: 50%;
  padding-top: 34px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.hero-photo-wrap {
  position: absolute;
  top: 0;
  bottom: 110px;        /* anchor to content so the tiles always overlap the photo */
  right: 20px;
  width: 48%;
  z-index: 1;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-bluebox {
  background: var(--blue);
  color: #fff;
  padding: 36px 42px 38px;
}
.hero-bluebox h1 {
  font-size: 72px;
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hb-role { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: rgba(255,255,255,.92); }
.hb-ward { font-size: 23px; font-weight: 700; margin: 0 0 24px; }
.hb-tag  {
  font-size: 42px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.08;
  margin: 6px 0 0;
  color: #fff;
}
.hb-tag-red { color: var(--red); }

/* ---------- Signup card ---------- */
.signup-card {
  background: #fff;
  margin-top: 22px;
  padding: 22px 30px 26px;
}
.signup-card h3 {
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 20px;
  margin: 4px 0 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9d1da;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}
.input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.submit-bar {
  background: var(--red);
  color: #fff;
  border: none;
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}
.submit-bar:hover { background: var(--red-dark); }

/* ---------- Three CTA tiles ---------- */
.cta-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 3;
  margin-top: var(--space-lg);
}
.cta-tile { text-align: center; padding: 34px 26px 38px; }
.cta-tile.light { background: #fff; }
.cta-tile.light .cta-ico { border-color: var(--blue); color: var(--blue); }
.cta-tile.light h4 { color: var(--blue); }
.cta-tile.light p  { color: var(--muted); }
.cta-tile.dark  { background: var(--blue-darker); }
.cta-tile.dark .cta-ico { border-color: #fff; color: #fff; }
.cta-tile.dark h4 { color: #fff; }
.cta-tile.dark p  { color: #dbe8f6; }
.cta-ico {
  width: 64px; height: 64px;
  border: 2px solid;
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.cta-ico svg { width: 30px; height: 30px; }
.cta-tile h4 {
  margin: 0 0 10px;
  font-size: 19px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.cta-tile p { margin: 0; font-size: 14px; line-height: 1.5; }

/* ---------- My Vision section ---------- */
.vision {
  background: var(--grad-cyan);
  color: #fff;
  padding: var(--section-y) 0;
}
.vision h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: #fff;
}
.vision-body { max-width: 940px; margin: 0 auto; }
.vision-body p.vision-build {
  font-weight: 800;
  color: var(--red);
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1.4;
}
.vision-body p.vision-emph {
  font-weight: 800;
  color: #fff;
  font-size: 31px;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.3;
  text-align: left;
  margin: var(--space-lg) 0 var(--space-md);
}
.vision-body p {
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.vision-body p:last-child { margin-bottom: 0; }

/* ---------- Blog / recent posts ---------- */
.posts { background: var(--page-bg); padding: var(--section-y) 0; }
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}
.post-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--red);
  font-size: 13px;
  margin: 0 0 6px;
}
.post h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #2b2b2b;
}
.post p {
  font-family: var(--serif);
  font-size: 15px;
  color: #4a5562;
  margin: 0 0 14px;
}
.post .divider { height: 1px; background: #e6b9b7; margin-top: 18px; }
.updates-soon { text-align: center; max-width: 640px; margin: 0 auto; }
.updates-soon h2 { color: var(--blue); font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.updates-soon p { font-family: var(--serif); color: #4a5562; font-size: 16px; line-height: 1.6; margin: 0 0 22px; }

/* ---------- Events ---------- */
.events-section { padding: var(--section-y) 0; background: #eef6fb; }
.events-eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 800; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.events-title { font-size: 48px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; margin: 0 0 8px; }
.events-sub { font-size: 18px; color: var(--muted); margin: 0 0 var(--space-lg); }
.events-list { display: grid; gap: var(--grid-gap); }
.event-card {
  display: grid; grid-template-columns: 210px 1fr;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden;
}
.event-side { background: var(--grad-cyan); color: #fff; display: grid; place-items: center; padding: 24px; }
.event-side svg { width: 72px; height: 72px; opacity: .95; }
.event-body { padding: 32px 36px; }
.event-pill {
  display: inline-block; background: #e1f3fb; color: var(--blue);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.event-pill.is-now { background: #fdeceb; color: var(--red-dark); }
.event-pill.is-past { background: #eef1f4; color: var(--muted); }
.event-name { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.event-desc { font-size: 16px; color: var(--muted); line-height: 1.6; margin: 0 0 22px; max-width: 640px; }
.event-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 4px; }
.event-meta-item { background: #f4f8fb; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.event-meta-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); margin-bottom: 4px; }
.event-meta-val { font-size: 16px; font-weight: 700; color: var(--ink); }
.event-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.event-rsvp-btn { width: auto; }
.event-card.is-past .event-rsvp { display: none; }
.events-empty {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 40px 32px; text-align: center; color: var(--muted); font-size: 17px;
}
.events-empty a { color: var(--blue); font-weight: 700; }
.event-ended { margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* ---------- Interior page banner ---------- */
.page-band {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue);
}
.page-band.govote  { background-image: url("../images/placeholder-govote.svg?v=2"); }

/* ---------- Media banner (image w/ hover caption) ---------- */
.media-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #cdd5dd;
  border-top: 5px solid var(--blue);
}
.media-banner .mb-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Skyline variant: show the entire city (contained) over a blurred fill of itself */
.media-banner.skyline-banner { background: #cfe0ef; }
.media-banner.skyline-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/toronto-skyline.jpg") center/cover no-repeat;
  filter: blur(18px) brightness(.9);
  transform: scale(1.15);
  z-index: 0;
}
.media-banner.skyline-banner .mb-img {
  position: relative;
  z-index: 1;
  object-fit: contain;
}
.media-banner .mb-overlay {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .25s ease;
  background: rgba(233,240,248,.78);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 56px 52px;
  color: var(--blue);
}
.media-banner:hover .mb-overlay,
.media-banner:focus-within .mb-overlay { opacity: 1; }
.mb-overlay h3 { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.mb-overlay p { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin: 0 0 16px; max-width: 620px; }
.mb-icons { display: flex; gap: 22px; }
.mb-icons svg { width: 24px; height: 24px; }
.mb-next {
  position: absolute; right: 26px; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 46px; line-height: 1; font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  opacity: .9;
}

.page-section { padding: var(--section-y) 0; }
.page-title { color: var(--blue); font-size: 36px; font-weight: 800; margin: 0 auto 6px; max-width: 900px; }
.page-subtitle { color: var(--muted); font-size: 17px; margin: 0 auto var(--space-lg); max-width: 900px; }

/* ---------- Meet page ---------- */
.meet-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--grid-gap); align-items: start; }
.bio-card { background: var(--blue); color: #eaf2fb; padding: var(--card-pad); font-size: 14px; }
.bio-card p { margin: 0 0 16px; }
.bio-card .sig { font-family: "Brush Script MT", cursive; font-size: 28px; color: #fff; margin-top: 8px; }
.meet-photo img { width: 100%; height: 460px; object-fit: cover; object-position: center 12%; }
.video-placeholder {
  margin-top: 24px; background: #1d1d1d; aspect-ratio: 16/9;
  display: grid; place-items: center; color: #fff;
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.85); display: grid; place-items: center;
  color: #222; font-size: 26px;
}
.join-box { background: var(--blue); color: #fff; padding: var(--card-pad); }
.join-box h3 { text-transform: uppercase; letter-spacing: 1px; margin: 0 0 18px; font-size: 18px; }
.join-box label.field { color: #dbe8f6; }
.join-box textarea.input { resize: vertical; min-height: 70px; }
.register-strip {
  border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-sm) var(--space-md); margin-top: var(--space-xl);
}
.register-strip span { color: var(--red); font-weight: 700; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; }
.register-strip .arrow {
  background: var(--red); color: #fff; width: 42px; height: 42px;
  display: grid; place-items: center; font-size: 20px;
}

/* ---------- Platform ---------- */
.quote-card {
  background: #e9f1f9; border-left: 4px solid var(--blue);
  padding: var(--card-pad); color: #2c3e54; font-size: 16px; line-height: 1.7; margin-bottom: var(--space-lg);
}
.issues-head {
  background: var(--blue); color: #fff; text-align: center; padding: 12px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: var(--space-lg);
}
.issues-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.issue h3 {
  color: var(--blue); font-size: 19px; margin: 0 0 8px;
  border-bottom: 2px solid #f0c6c4; padding-bottom: 6px; display: inline-block;
}
.issue p { font-size: 14px; color: #4a5562; margin: 0 0 14px; }

/* ---------- Get Involved ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.involve-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue);
  padding: var(--card-pad); text-align: center;
}
.involve-card .ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: #eaf1fa; color: var(--blue); display: grid; place-items: center; font-size: 24px;
}
.involve-card h3 { color: var(--blue); margin: 0 0 8px; font-size: 18px; }
.involve-card p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.ward-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: center;
  background: #fff; border: 1px solid var(--line); padding: var(--card-pad);
}
.ward-block h3 { color: var(--blue); margin-top: 0; }

/* Get Involved form */
.involve-form {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 4px;
  padding: var(--card-pad);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.check-box {
  background: #eef3fa;
  border: 1px solid #dce6f2;
  border-radius: 6px;
  padding: 14px 22px;
  margin-bottom: 24px;
}
.check {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  padding: 10px 0;
  cursor: pointer;
}
.check input {
  width: 20px; height: 20px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}
.involve-form .form-row { margin-bottom: var(--space-sm); }
.involve-form .input { padding: 13px 14px; }
.form-row-full { margin-bottom: var(--space-sm); }
.involve-form .btn { margin: 8px auto 0; padding: 13px 34px; display: block; width: fit-content; }
.involve-form textarea.input { resize: vertical; min-height: 110px; }
.inline-link { color: var(--blue); text-decoration: underline; font-weight: 600; }
.inline-link:hover { color: var(--blue-dark); }

/* Contact section */
.contact-block { margin-top: var(--space-2xl); }
.contact-title { color: var(--blue); font-size: 30px; font-weight: 800; margin: 0 0 6px; }

/* Home "Chip In" donate section */
.donate-home-section { background: #e8f7fc; }
.donate-home {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 12px;
  padding: var(--card-pad) 36px 36px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.18);
}
.donate-home h2 { color: var(--ink); font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.donate-home > p:not(.donate-eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 24px; }
.donate-home .label-sm { text-align: left; }
.donate-home .donate-btn { margin-top: 8px; }
/* Donate card on the Get Involved page: match the form-card width */
.gi-donate { max-width: 900px; margin-left: auto; margin-right: auto; }
.gi-donate .donate-widget { max-width: 520px; margin-left: auto; margin-right: auto; }
.donate-eyebrow {
  color: var(--red); font-weight: 800; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 6px;
}
.donate-legal { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 14px 0 0; }

/* Thank-you page */
.thanks { max-width: 620px; margin: 0 auto; text-align: center; padding: var(--space-xl) 0; }
.thanks-check {
  width: 84px; height: 84px; margin: 0 auto var(--space-md);
  border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 44px; font-weight: 700;
}
.thanks h1 { color: var(--blue); font-size: 38px; margin: 0 0 var(--space-sm); }
.thanks p { font-family: var(--serif); color: #4a5562; font-size: 17px; line-height: 1.6; margin: 0 0 var(--space-lg); }
.thanks-actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* Meet Liz AI — coming-soon page */
.ai-soon {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  padding: 52px 40px;
  box-shadow: 0 26px 54px -22px rgba(28,117,189,.4);
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #eef3fa;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.ai-soon h1, .ai-soon h2 { color: var(--blue); font-size: 34px; margin: 0 0 14px; line-height: 1.15; font-weight: 800; }
.ai-soon p { font-family: var(--serif); color: #4a5562; font-size: 17px; line-height: 1.65; margin: 0 0 14px; }
.ai-soon .ai-note { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.ai-soon .btn { margin-top: 18px; }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); align-items: start; }
.donate-form h2 { color: var(--blue); font-size: 28px; margin: 0 0 10px; }
.donate-form p.lead { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.seg button, .amount-grid button {
  border: 1px solid #c9d1da; background: #fff; border-radius: 2px; padding: 12px;
  font-family: inherit; font-size: 14px; cursor: pointer; transition: .12s;
}
.seg button.active, .amount-grid button.active {
  border-color: var(--red); background: #fdeceb; color: var(--red-dark); font-weight: 700;
}
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.amount-link {
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #c9d1da; background: #fff; border-radius: var(--radius-sm);
  padding: 15px 12px; font-size: 16px; font-weight: 800; color: var(--ink);
  text-decoration: none; transition: .15s ease; box-shadow: var(--shadow-sm);
}
.amount-link:hover {
  border-color: var(--red); background: var(--red); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.donate-note { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.donate-etransfer {
  font-size: 13px; color: var(--ink); line-height: 1.5;
  background: #eef6fb; border-radius: var(--radius-sm); padding: 11px 14px; margin: 0 0 14px;
}
.donate-etransfer a { color: var(--blue); font-weight: 700; }

/* Cloudflare Turnstile widget spacing */
.cf-turnstile { margin: 4px 0 16px; }
.label-sm { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 8px; }
.custom-amount { display: flex; align-items: center; gap: 8px; }
.custom-amount span { font-size: 20px; font-weight: 700; color: var(--muted); }
.custom-amount .input { font-size: 16px; }
.donate-photo img { width: 100%; height: 480px; object-fit: cover; object-position: center 14%; }

/* ---------- Sub nav + footer ---------- */
.subnav { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: var(--space-sm); }
.subnav a { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 0 14px; }
.subnav a:hover { color: var(--blue); }
.subnav a.active { color: var(--red); }

.site-footer { background: var(--blue); color: #fff; text-align: center; padding: var(--space-xl) var(--gutter) var(--space-lg); }
.site-footer .join-conv { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: #d4e4f4; margin-bottom: 18px; }
.social { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.social a svg { width: 20px; height: 20px; }
.footer-links a { font-size: 12px; color: #dceaf7; margin: 0 8px; }
.footer-links a:hover { text-decoration: underline; }
.contact-email { margin-top: 4px; }
.contact-email a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.contact-email a:hover { text-decoration: underline; }
.copyright { font-size: 12px; color: #c4d8ee; margin-top: 14px; }
.powered { font-size: 12px; color: #aecbe8; margin-top: 6px; letter-spacing: .3px; }

/* ---------- Floating civic-info chat ---------- */
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.chat-fab {
  background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 22px; font-weight: 700; font-size: 14px;
  font-family: inherit;
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.chat-panel {
  position: absolute;
  right: 0; bottom: 56px;
  width: 320px; max-width: calc(100vw - 36px);
  background: #fff; border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
  overflow: hidden;
  border: 1px solid var(--line);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-weight: 700; font-size: 14px;
}
.chat-close {
  background: none; border: none; color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0 2px;
}
.chat-body { padding: 14px 16px 16px; }
.chat-intro { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.chat-link {
  display: block; padding: 11px 14px; margin-bottom: 8px;
  background: #eef3fa; border: 1px solid #dce6f2; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue);
}
.chat-link:hover { background: var(--blue); color: #fff; transform: translateX(2px); }
.chat-foot { font-size: 11px; color: #9aa4b0; margin: 10px 0 0; line-height: 1.5; }

/* ---------- UI/UX polish ---------- */
/* Smooth interactions */
.btn, .btn-donate, .submit-bar, .nav-links a, .social a, .cta-tile,
.involve-card, .post, .seg button, .amount-grid button, .chat-fab,
.register-strip, .input, .check { transition: all .18s ease; }

/* Accessible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, .check:focus-within {
  outline: 3px solid #ffd34d;
  outline-offset: 2px;
  border-radius: 3px;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,117,189,.18); }

/* Header lifts off the page */
.site-header { box-shadow: 0 2px 10px rgba(0,0,0,.10); }

/* Card hover lift */
.cta-tile { cursor: pointer; }
.cta-tile.light:hover { background: #f4faff; }
.cta-tile.dark:hover { filter: brightness(1.08); }
.involve-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.10); border-top-color: var(--red); }
.post:hover h3 { color: var(--blue); }

/* Buttons get a touch of depth + lift */
.btn { border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.submit-bar:hover { filter: brightness(1.04); }
.btn-donate:hover { filter: brightness(1.06); }

/* Social icons */
.social a:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,.22); }

/* Chat fab */
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.3); }

/* Register strip */
.register-strip { cursor: pointer; }
.register-strip:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.register-strip:hover .arrow { background: var(--red-dark); transform: translateX(3px); }

/* Checkbox rows */
.check:hover { color: var(--blue); }

/* Nicer text selection */
::selection { background: var(--blue); color: #fff; }

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Uniform depth / elevation (not-flat) ---------- */
/* Cyan fills get a subtle gradient for dimension */
.site-header { background: var(--grad-cyan); }
.hero-bluebox { background: var(--grad-cyan); border-radius: var(--radius); box-shadow: var(--shadow-md); }
.cta-tile.dark { background: var(--grad-cyan-deep); }
.site-footer { background: var(--grad-cyan-deep); }

/* Rounder, modern corners on interactive elements */
.btn, .seg button, .amount-grid button,
.input, .check-box, .chat-link { border-radius: var(--radius-sm); }

/* Cards float with consistent elevation */
.signup-card { border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.submit-bar { border-radius: var(--radius-sm); }
.cta-tiles { box-shadow: var(--shadow-md); border-radius: var(--radius); overflow: hidden; }
.ward-block, .donate-home, .donate-form, .ai-soon, .involve-form {
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.donate-form { background: #fff; padding: 32px; }
.quote-card { box-shadow: var(--shadow-sm); }
.ward-block img, .donate-photo img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.chat-panel { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { height: 60px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; background: var(--blue-dark); padding: 6px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links a.tab { width: 100%; padding: 14px 24px; margin: 0; border-left: none; background: transparent; color: #fff; }

  .hero-left { width: 100%; padding-top: 0; }
  .hero-photo-wrap {
    position: static;
    width: 100%;
    height: 360px;
    order: -1;
  }
  .hero-wrap { display: flex; flex-direction: column; }
  .hero { padding-bottom: var(--section-y); }
  .hero-bluebox h1 { font-size: 56px; }
  .cta-tiles { grid-template-columns: 1fr; margin-top: 22px; }
  .vision-lead { font-size: 22px; }

  .form-row, .posts-grid, .issues-grid, .meet-grid, .involve-grid, .ward-block, .donate-grid { grid-template-columns: 1fr; }

  .event-card { grid-template-columns: 1fr; }
  .event-side { padding: 22px; }
  .event-side svg { width: 52px; height: 52px; }
  .event-meta, .event-fields { grid-template-columns: 1fr; }
  .events-title { font-size: 38px; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  :root {
    --section-y: 44px;   /* tighter vertical rhythm */
    --card-pad: 20px;    /* more content width inside cards */
    --grid-gap: 28px;
    --gutter: 16px;
  }

  /* Banners take less vertical space on a phone */
  .page-band { height: 180px; }
  .media-banner { height: 210px; }

  /* Hero */
  .hero-photo-wrap { height: 320px; }
  .hero-bluebox { padding: 26px 22px 28px; }
  .hero-bluebox h1 { font-size: 46px; }
  .hb-role { font-size: 19px; margin-bottom: 14px; }
  .hb-ward { font-size: 21px; margin-bottom: 12px; }
  .hb-tag  { font-size: 28px; }
  .signup-card { padding: 20px 20px 22px; }
  .signup-card h3 { font-size: 18px; }
  .cta-tile { padding: 28px 20px 30px; }

  /* Headings scale down */
  .page-title { font-size: 28px; }
  .page-subtitle { font-size: 16px; }
  .vision h2 { font-size: 22px; }
  .vision-lead { font-size: 20px; }
  .vision-body p { font-size: 15px; }
  .contact-title,
  .donate-form h2,
  .updates-soon h2,
  .thanks h1 { font-size: 26px; }
  .quote-card { font-size: 15px; line-height: 1.6; }

  /* Comfortable tap targets / wrapping */
  .check { font-size: 16px; }
  .thanks-actions { flex-direction: column; }
  .thanks-actions .btn { width: 100%; }
  .register-strip span { font-size: 16px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .hero-bluebox h1 { font-size: 38px; }
  .page-title { font-size: 25px; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
}
