/* ==========================================================================
   Probus Club of Burlington Lakeshore — Design A "Classic Refined"
   Vanilla CSS, no build step. Palette drawn from the club emblem
   (navy #0a1f5c / gold #f0b429). Serif display type + clean sans body.
   ========================================================================== */

/* ---- Reset (minimal) ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
img[src*="probus-emblem"] { aspect-ratio: 1200 / 1160; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button { font: inherit; }

/* ---- Palette & tokens ---- */
:root {
  --navy: #0a1f5c;
  --navy-deep: #061238;
  --navy-mid: #132a73;
  --gold: #f0b429;
  --gold-deep: #96650c;   /* meets AA on light backgrounds when used as text */
  --gold-pale: #fbe8bd;
  --ink: #1a2340;         /* primary body text on light backgrounds */
  --ink-soft: #3a4266;    /* secondary text, still >4.5:1 on white/cream */
  --cream: #faf7f0;
  --white: #ffffff;
  --line: rgba(10, 31, 92, 0.16);
  --line-on-dark: rgba(255, 255, 255, 0.28);
  --shadow: 0 18px 40px -20px rgba(10, 31, 92, 0.35);
  --radius: 6px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --wrap: 1120px;
}

/* ---- Base typography ---- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { max-width: 42em; }
p + p { margin-top: 1rem; }
strong { color: var(--navy); }

a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-deep); }

/* Visible, generous focus states everywhere (never hover-only) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}
.masthead :focus-visible,
.sitenav :focus-visible,
.sitefooter :focus-visible,
.hero :focus-visible,
.meeting-block :focus-visible {
  outline-color: #ffffff;
  box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.55);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 1.5rem; }
@media (max-width: 480px) { .wrap { padding-inline: 1.15rem; } }

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #f2f0e8; }
.section--navy h2, .section--navy h3 { color: #ffffff; }
.section--navy p { color: #dfe3f2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.85rem;
}
.section--navy .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
}

.section-head { max-width: 46em; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section--navy .section-head p { color: #dfe3f2; }

.rule {
  border: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0, var(--gold) 3.5rem, var(--line) 3.5rem);
  margin: 0;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.3rem;
  border-radius: 0 0 6px 0;
  font-weight: 600;
  z-index: 500;
}
.skip-link:focus {
  left: 0;
}

/* ---- Buttons / links-as-buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.25;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #e0a41f; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-mid); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ==========================================================================
   Masthead (letterhead — scrolls with the page)
   ========================================================================== */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.1rem;
}
.masthead__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.masthead__crest { width: 52px; height: 52px; flex: none; }
.masthead__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.masthead__name b {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.4rem;
  font-weight: 700;
}
.masthead__name span {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.masthead__tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.1rem;
  margin: 0;
}
@media (max-width: 640px) {
  .masthead__tag { display: none; }
}

/* ==========================================================================
   Persistent navigation — always visible, never hidden behind a toggle
   ========================================================================== */
.sitenav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
}
.sitenav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
}
.sitenav__list li { display: flex; }
.sitenav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  color: #f4f2ea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  white-space: nowrap;
}
.sitenav__list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sitenav__list a.is-current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
@media (max-width: 700px) {
  .sitenav__list { justify-content: flex-start; }
  .sitenav__list a { font-size: 1rem; padding: 0.7rem 0.9rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(ellipse 900px 500px at 85% -10%, var(--navy-mid) 0%, transparent 60%), var(--navy);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero__crest {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(46vw, 520px);
  opacity: 0.16;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 42em; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #ffffff; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  margin-top: 0.9rem;
}
.hero__lede {
  color: #e7e9f4;
  font-size: 1.2rem;
  margin-top: 1.4rem;
  max-width: 38em;
}

/* ==========================================================================
   Meeting-info block
   ========================================================================== */
.meeting-block {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: -3.25rem;
  position: relative;
  z-index: 2;
}
.meeting-block__item {
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
}
.meeting-block__item h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  font-family: var(--sans);
  margin-bottom: 0.35rem;
}
.meeting-block__item p { font-size: 1.15rem; color: var(--ink); }
@media (max-width: 860px) {
  .meeting-block { grid-template-columns: 1fr; margin-top: 2rem; }
}

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.section--navy .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--ink-soft); }
.section--navy .card p { color: #dfe3f2; }
.card--num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Tables (fees, leadership)
   ========================================================================== */
.table-scroll { width: 100%; overflow-x: auto; border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 480px;
}
caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
th, td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.02em;
}
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:last-child td { border-bottom: 0; }
td.is-muted { color: var(--ink-soft); font-style: italic; }
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.status-pill--confirmed { background: var(--gold-pale); color: #754c07; } /* darker than --gold-deep: gold-deep only clears AA (4.17:1) against pure white, not against this pale-gold pill background */
.status-pill--unconfirmed { background: #eceef5; color: var(--ink-soft); }

/* Below 640px, tables become stacked label/value cards instead of a wide
   table that needs horizontal scrolling -- easier to read on a phone. */
@media (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  table { min-width: 0; border: none; border-collapse: separate; }
  thead { display: none; }
  tbody { display: block; }
  tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    background: var(--white);
  }
  tr:last-child { margin-bottom: 0; }
  td {
    display: block;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  td:last-child { border-bottom: none; }
  td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   Archive lists (Hi-Lites / historical records — intentionally-broken links)
   ========================================================================== */
.archive-list { list-style: none; border-top: 1px solid var(--line); }
.archive-list li {
  border-bottom: 1px solid var(--line);
}
.archive-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  min-height: 48px;
}
.archive-list a:hover { color: var(--gold-deep); }
.archive-list a:hover .archive-list__label { text-decoration: underline; text-decoration-color: var(--gold-deep); }
.archive-list__meta { color: var(--ink-soft); font-weight: 400; font-size: 0.95rem; white-space: nowrap; }
.archive-list li.archive-list__year {
  border-bottom: none;
  padding: 1.5rem 0.25rem 0.4rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.archive-list li.archive-list__year:first-child { padding-top: 0.25rem; }

/* ==========================================================================
   Simple info notice boxes
   ========================================================================== */
.notice {
  background: var(--gold-pale);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--ink);
}
.notice p { color: var(--ink); }
.notice--outline {
  background: var(--cream);
  border: 1px solid var(--line);
}

/* PDF embed frame */
.pdf-embed {
  display: block;
  width: 100%;
  max-width: calc(80vh * 0.77273); /* keep width capped to match max-height at the correct US Letter ratio -- otherwise a wide container stays wide while height alone gets clamped, distorting the box */
  aspect-ratio: 612 / 792;
  height: auto;
  max-height: 80vh;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
@media (max-width: 700px) {
  /* An embedded PDF preview this narrow is more scrolling than it's worth --
     the "Open the Membership Application (PDF)" button above does the job
     better on a phone (opens full-screen in the device's own PDF viewer). */
  .pdf-preview-block { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sitefooter {
  background: var(--navy-deep);
  color: #dfe3f2;
  padding-block: 3.5rem 2rem;
}
.sitefooter h2 {
  color: #fff;
  font-size: 1.15rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.sitefooter a { color: #f4f2ea; text-decoration: underline; text-decoration-color: rgba(240,180,41,0.6); }
.sitefooter a:hover { text-decoration-color: var(--gold); color: #fff; }
.sitefooter__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
.sitefooter__brand { display: flex; align-items: flex-start; gap: 0.9rem; }
.sitefooter__brand img { width: 46px; height: 46px; }
.sitefooter__brand b { font-family: var(--serif); color: #fff; font-size: 1.2rem; display: block; }
.sitefooter__brand span { color: #b9beda; font-size: 0.95rem; }
.sitefooter address { font-style: normal; }
.sitefooter ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sitefooter p { font-size: 1rem; }
.sitefooter__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.95rem;
  color: #b9beda;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
@media (max-width: 860px) {
  .sitefooter__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sitefooter__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll-reveal animation
   Content is ALWAYS fully visible with no JS / with reduced-motion set.
   Only when JS has run AND the user has no motion-reduction preference do
   .reveal elements start faded/offset, then animate in via IntersectionObserver.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
  }
  html.js-anim .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  html.js-anim .reveal--stagger.is-visible { transition-delay: var(--stagger, 0s); }
}

/* Subtle hero parallax layer — disabled under reduced motion via JS gate */
.hero__crest { transition: transform 0.1s linear; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }
.list-plain { list-style: none; }
.list-check { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.list-check li { padding-left: 1.9rem; position: relative; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--gold-deep);
  transform: rotate(45deg);
}
.contact-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Print: keep it plain and legible */
@media print {
  .sitenav, .skip-link { display: none; }
}

/* ==========================================================================
   WordPress-specific additions
   ========================================================================== */

/* Keep the sticky nav below the WordPress admin bar when logged in */
body.admin-bar .sitenav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .sitenav { top: 46px; }
}

/* Content typed into the standard editor on a non-templated page still gets
   sensible spacing inside the design shell. */
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 2rem; }
