/* ------------------------------------------------------------------
   Bay of Quinte Mutual – Special Meeting page
   Palette from the 2019 Brand Style Guide plus the live site's
   navy header/footer band and link blue.
   ------------------------------------------------------------------ */
:root {
  --brand-blue:      #1581AC;   /* style guide – primary */
  --brand-green:     #43BB90;   /* style guide – accent */
  --brand-deep:      #1C5C7B;   /* style guide – dark */
  --brand-black:     #000000;

  --site-navy:       #1D2539;   /* live site header / CTA band */
  --site-link:       #0D96D4;   /* live site link + button blue */
  --site-green:      #419644;   /* live site "Contact us" button */
  --text:            #242424;
  --text-muted:      #6B6B6B;
  --rule:            #E3E6EA;
  --bg:              #FFFFFF;
  --bg-soft:         #F5F7F9;

  /* The live site uses Gilroy + ModernoFB (licensed). When this page is
     embedded in the WordPress theme those fonts will be picked up first;
     otherwise the Google Fonts fallbacks below are used. */
  --font-sans: Gilroy, "Jost", Helvetica, Arial, sans-serif;
  --font-serif: ModernoFB, "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--site-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: var(--site-navy); padding: 10px 14px; border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons (outline style from the live site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 2px;
  background: transparent; color: var(--site-link);
  transition: background .2s, color .2s;
}
.btn:hover { text-decoration: none; background: var(--site-link); color: #fff; }
.btn--green { color: var(--site-green); }
.btn--green:hover { background: var(--site-green); color: #fff; }
.btn--white { color: #fff; }
.btn--white:hover { background: #fff; color: var(--site-navy); }

/* ---------- Header ---------- */
.site-header {
  background: var(--site-navy);
  color: #fff;
}
.site-header .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px;
}
.site-header__logo { padding: 18px 0; }
.site-header__logo img { width: 270px; }

/* On desktop the wrapper is transparent to layout: the utility links sit beside
   the logo and the nav drops to its own full-width row. */
.site-header__menu { display: contents; }
.site-header__toggle { display: none; }

.site-header__utility {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: flex-end;
  padding: 18px 0;
}
.site-header__utility > a:not(.btn) {
  color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
}
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; }
.site-header__phone svg { width: 16px; height: 16px; }
.site-header__divider { width: 1px; height: 44px; background: rgba(255,255,255,.25); }

.site-nav { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.18); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.site-nav a {
  display: inline-block; padding: 22px 0 18px;
  color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  border-top: 3px solid transparent;
  margin-top: -1px;
}
.site-nav a:hover { text-decoration: none; color: var(--brand-green); }
.site-nav a[aria-current="page"] { border-top-color: var(--site-link); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--site-navy);
  background-image: linear-gradient(135deg, #1D2539 0%, #1C5C7B 60%, #1581AC 100%);
  color: #fff;
  text-align: center;
  padding: 96px 0 104px;
}
.hero::after {
  /* faded brand icon watermark – approved use per the style guide */
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 532px;
  background: url("../images/icon.png") no-repeat center / contain;
  opacity: .12; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow {
  margin: 0 0 18px; font-size: 14px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: var(--brand-green);
}
.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(42px, 6vw, 64px); line-height: 1.1;
}
.hero__lead {
  max-width: 760px; margin: 0 auto;
  font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.9);
}
.hero__rule { border-bottom: 6px solid var(--site-link); }

/* ---------- Intro + documents ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }

.intro {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
}
/* While the meeting-details card is hidden, run the intro as a single readable column. */
.intro:has(.meeting-card[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-left: auto; margin-right: auto; }
.intro:has(.meeting-card[hidden]) h2 { text-align: center; }
.intro:has(.meeting-card[hidden]) .intro__copy { text-align: center; }
.intro h2, .documents h2, .cta h2 {
  font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 16px;
}
.intro h2 { font-size: 36px; color: var(--site-navy); }
.intro__copy p { margin: 0 0 16px; font-size: 17px; color: #3a3a3a; }
.intro__copy p:last-child { margin-bottom: 0; }
.intro__list { margin: 0 0 16px; padding-left: 22px; font-size: 17px; color: #3a3a3a; }
.intro__list li { margin-bottom: 8px; padding-left: 4px; }
.intro__list li::marker { color: var(--site-link); font-weight: 600; }
.meeting-card dd a { font-weight: 500; }

.meeting-card {
  background: #fff; border-left: 4px solid var(--brand-green);
  box-shadow: 0 10px 30px rgba(29,37,57,.08);
  padding: 28px 30px;
}
.meeting-card h3 {
  margin: 0 0 14px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); font-weight: 600;
}
.meeting-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.meeting-card dt { font-weight: 600; color: var(--site-navy); }
.meeting-card dd { margin: 0; }

/* Document list – modelled on the Resources page cards */
.documents__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.documents h2 { font-size: 36px; color: var(--site-navy); margin-bottom: 6px; }
.documents__hint { margin: 0; color: var(--text-muted); font-size: 15px; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: doc; }
.doc {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 10px 30px rgba(29,37,57,.07);
  padding: 22px 26px 22px 22px;
  transition: transform .15s, box-shadow .15s;
}
.doc:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(29,37,57,.12); }
.doc__num {
  counter-increment: doc;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--site-navy); color: #fff;
  font-family: var(--font-serif); font-size: 24px; line-height: 1;
}
.doc__num::before { content: counter(doc); }
.doc__body { min-width: 0; }
.doc__title {
  display: inline-block; font-size: 21px; font-weight: 500; color: var(--site-link); line-height: 1.3;
}
.doc__title::after { content: ""; position: absolute; inset: 0; }  /* whole card is clickable */
.doc__meta { display: inline-flex; align-items: center; gap: 10px; margin-left: 12px; font-size: 13px; color: var(--text-muted); vertical-align: 2px; }
.doc__badge {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  background: rgba(21,129,172,.1); color: var(--brand-deep); font-weight: 600; letter-spacing: 1px; font-size: 11px;
}
.doc__desc { margin: 6px 0 0; color: #4d4d4d; font-size: 15px; line-height: 1.5; }
.doc__download {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: var(--site-link); transition: background .15s;
}
.doc__download:hover { background: rgba(13,150,212,.1); text-decoration: none; }
.doc__download svg { width: 26px; height: 26px; }

.note {
  margin: 34px 0 0; padding: 18px 22px;
  border-left: 4px solid var(--brand-blue); background: rgba(21,129,172,.06);
  font-size: 15px; color: #3a3a3a;
}
.note p { margin: 0; }

/* ---------- CTA band (from the Resources page) ---------- */
.cta {
  background: var(--site-navy); color: #fff;
  border-bottom: 6px solid var(--site-link);
}
.cta .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-top: 72px; padding-bottom: 72px;
}
.cta h2 { font-size: 34px; margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255,255,255,.8); }
.cta p a { color: #fff; font-weight: 500; }
.cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer (mirrors the live site) ---------- */
.site-footer { padding: 56px 0 0; }
.site-footer__grid {
  display: grid; grid-template-columns: 1fr 1fr 2fr 2fr; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid var(--rule);
}
.site-footer h4 {
  margin: 0 0 20px; font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--text);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 12px; }
.site-footer p { margin: 0 0 12px; }
.site-footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 28px; font-size: 13px; color: var(--text-muted);
}
.site-footer__bottom img { width: 150px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Just above the collapse point the utility links may wrap under the logo: centre them. */
  .site-header .container { justify-content: center; }
  .site-header__utility { justify-content: center; }
}
@media (max-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Collapsed header (tablets and phones, same breakpoint as the main site):
   logo + "Menu" button, with the navigation and contact links in a drop-down panel. ----- */
@media (max-width: 1024px) {
  .site-header .container { justify-content: space-between; }
  .site-header__logo { padding: 12px 0; }
  .site-header__logo img { width: 200px; }

  .site-header__toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 4px; margin-right: -4px;
    background: none; border: 0; border-radius: 2px; cursor: pointer;
    color: #fff; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  }
  .site-header__toggle-icon { position: relative; width: 22px; height: 16px; }
  .site-header__toggle-icon::before, .site-header__toggle-icon::after, .site-header__toggle-icon span {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 1px;
    transition: transform .2s, opacity .2s;
  }
  .site-header__toggle-icon::before { top: 0; }
  .site-header__toggle-icon span { top: 7px; }
  .site-header__toggle-icon::after { top: 14px; }
  .is-open .site-header__toggle-icon::before { transform: translateY(7px) rotate(45deg); }
  .is-open .site-header__toggle-icon span { opacity: 0; }
  .is-open .site-header__toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .site-header__menu {
    display: flex; flex-direction: column; flex-basis: 100%;
    padding-bottom: 12px;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  /* Only hide the panel when the script that opens it is running. */
  .js .site-header__menu { display: none; }
  .js .site-header.is-open .site-header__menu { display: flex; }

  /* Main links first, then the account / contact links. */
  .site-nav { order: 1; border-top: 0; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block; padding: 14px 12px; margin: 0;
    font-size: 15px; border-top: 0; border-left: 3px solid transparent;
  }
  .site-nav a[aria-current="page"] { border-left-color: var(--site-link); }

  .site-header__utility {
    order: 2; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 0 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.18);
  }
  .site-header__utility > a:not(.btn) { padding: 13px 15px; font-size: 14px; }
  .site-header__utility .btn { min-height: 46px; margin: 6px 15px 0; }
  .site-header__divider { display: none; }
}
@media (max-width: 800px) {
  .section { padding: 52px 0; }
  .intro { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero::after { width: 320px; height: 327px; right: -90px; }
  .hero__lead { font-size: 17px; }
  .doc { grid-template-columns: 44px minmax(0,1fr) auto; gap: 14px; padding: 18px; }
  .doc__num { width: 44px; height: 44px; font-size: 20px; }
  .doc__title { font-size: 18px; }
  .doc__meta { display: flex; margin: 6px 0 0; }
  .cta h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .hero { padding: 44px 0 52px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .meeting-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .meeting-card dd { margin-bottom: 10px; }

  /* Stack the document cards: number + text on top, a text "Download" link below. */
  .doc { grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px 14px; padding: 18px 16px; }
  .doc__num { width: 40px; height: 40px; font-size: 18px; }
  .doc__title { font-size: 17px; }
  .doc__download {
    grid-column: 2; justify-self: start;
    width: auto; height: auto; padding: 0; border-radius: 0; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  }
  .doc__download:hover { background: none; text-decoration: underline; }
  .doc__download svg { width: 20px; height: 20px; }
  .doc__download::after { content: "Download"; }
}
@media print {
  .site-header, .cta, .site-footer, .doc__download { display: none; }
  .hero { background: none; color: #000; padding: 0; }
  .hero::after { display: none; }
  .doc { box-shadow: none; border: 1px solid #ccc; }
}
