/* ============================================================
   PCA UCR — Upper Canada Region
   Design tokens derived from the official club crest:
   black ring, red maple leaf / wordmark, gold starburst.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display&family=Kaushan+Script&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Brand */
  --black: #0a0a0a;
  --charcoal: #161513;
  --charcoal-2: #201f1c;
  --red: #a31e2e;
  --red-bright: #c9313f;
  --red-dark: #7d1622;
  --gold: #e2a020;
  --gold-bright: #f3bb45;
  --gold-soft: #f4dfb0;
  --white: #ffffff;
  --offwhite: #f7f4ee;
  --cream: #efe9dd;

  /* Text */
  --ink: #17140f;
  --ink-muted: #5b564c;
  --on-dark: #f5f2ea;
  --on-dark-muted: #b8b2a4;

  /* Borders */
  --border-light: #e4ddcb;
  --border-dark: rgba(245,242,234,0.12);

  /* Layout */
  --max-width: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;

  /* Spacing (8pt scale) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* Motion */
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --dur-fast: 150ms;
  --dur-med: 300ms;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ margin: 0; font-weight: 400; }
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

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

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow.on-dark{ color: var(--gold-bright); }

.display{
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1.display{ font-size: clamp(38px, 5.4vw, 68px); }
h2.display{ font-size: clamp(28px, 3.6vw, 44px); }
h3.display{ font-size: clamp(22px, 2.6vw, 30px); }

.lede{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 62ch;
  line-height: 1.65;
}
.on-dark .lede, .lede.on-dark{ color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover{ background: var(--red-bright); border-color: var(--red-bright); }
.btn-gold{ background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover{ background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-outline{ background: transparent; color: var(--on-dark); border-color: var(--border-dark); }
.btn-outline:hover{ border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-outline-dark{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover{ background: var(--ink); color: var(--white); }
.btn-block{ width: 100%; }
.btn[disabled]{ opacity: 0.5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23,20,15,0.06);
}
.header-bar{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: 12px var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand img{ width: 46px; height: 46px; flex-shrink: 0; }
.brand-word{ font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; line-height: 1; }
.brand-sub{ font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 3px; }

.main-nav{ display: flex; align-items: center; justify-self: center; }
.main-nav ul{ display: flex; gap: var(--space-3); }
.main-nav a{
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 2px;
  position: relative;
  transition: color var(--dur-fast);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--ink); }
.main-nav a[aria-current="page"]{ font-weight: 600; }
.main-nav a[aria-current="page"]::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.header-cta{ display: flex; align-items: center; gap: var(--space-2); justify-self: end; }
.site-header .btn-outline{ color: var(--ink); border-color: rgba(23,20,15,0.18); }
.site-header .btn-outline:hover{ border-color: var(--red); color: var(--red); }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(23,20,15,0.15); border-radius: 12px;
  color: var(--ink);
}
.nav-toggle svg{ width: 22px; height: 22px; }

.mobile-nav{
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}
.mobile-nav.open{ display: flex; }
.mobile-nav a{
  padding: 16px var(--space-3);
  border-bottom: 1px solid var(--border-light);
  color: var(--ink);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-nav .header-cta{ padding: var(--space-3); }

@media (max-width: 960px){
  .main-nav ul{ display: none; }
  .header-cta .btn-outline{ display: none; }
  .nav-toggle{ display: inline-flex; }
}
@media (max-width: 640px){
  .header-bar .header-cta .btn-primary{ display: none; }
  .brand-sub{ display: none; }
  .header-bar{ padding: 10px var(--space-2); }
  .brand img{ width: 40px; height: 40px; }
  .brand-word{ font-size: 20px; }
}

/* ---------- Hero (light, photo-led) ---------- */
.hero-light{
  position: relative;
  background: var(--offwhite);
  overflow: hidden;
}
.hero-ghost{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(64px, 12.5vw, 176px);
  line-height: 1;
  white-space: nowrap;
  color: rgba(23,20,15,0.12);
  pointer-events: none;
  user-select: none;
}
.hero-media{
  position: relative;
  margin-top: clamp(72px, 9vw, 132px);
}
.hero-media img{
  width: 100%;
  height: clamp(540px, 76vh, 720px);
  object-fit: cover;
  object-position: center 62%;
}
.hero-media::before{
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--offwhite) 0%, rgba(247,244,238,0) 32%),
    linear-gradient(0deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.38) 40%, rgba(10,10,10,0) 62%);
  pointer-events: none;
}
.hero-script{
  position: absolute;
  top: clamp(-6px, 1vw, 26px);
  right: 4%;
  z-index: 3;
  font-family: 'Kaushan Script', cursive;
  font-size: clamp(52px, 7.5vw, 116px);
  line-height: 1.1;
  color: var(--red);
  transform: rotate(-5deg);
  text-shadow: 0 2px 24px rgba(247,244,238,0.6);
  pointer-events: none;
  user-select: none;
}
.hero-copy{
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(112px, 15vh, 136px);
  z-index: 2;
  color: var(--white);
}
.hero-copy h1{ margin: var(--space-2) 0; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-copy .lede{ color: rgba(255,255,255,0.88); text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero-actions{ display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.hero-copy .badge-anniversary{
  background: rgba(255,255,255,0.92);
  border-color: rgba(163,30,46,0.25);
  color: var(--red);
  margin-bottom: 0;
}
.hero-copy .btn-outline{ border-color: rgba(255,255,255,0.55); color: var(--white); backdrop-filter: blur(4px); }
.hero-copy .btn-outline:hover{ border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.12); }

.hero-statbar{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-grid{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.stat{ text-align: center; }
.stat-num{ font-weight: 700; font-size: clamp(20px, 2.3vw, 28px); color: var(--white); line-height: 1.2; letter-spacing: -0.01em; }
.stat-label{ font-size: 14px; color: rgba(255,255,255,0.72); margin-top: 4px; }

@media (max-width: 900px){
  .hero-media img{ height: clamp(560px, 82vh, 760px); }
  .hero-copy{ bottom: clamp(160px, 22vh, 200px); }
  .hero-copy .lede{ font-size: 15px; }
  .stat-grid{ grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
}

/* ---------- Page header (non-home) ---------- */
.page-hero{
  background: var(--offwhite);
  color: var(--ink);
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero::before{
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 90% at 92% 0%, rgba(163,30,46,0.07), transparent 65%),
    radial-gradient(ellipse 45% 80% at 8% 100%, rgba(226,160,32,0.09), transparent 60%);
}
.page-hero .eyebrow{ color: var(--red); }
.page-hero .lede{ color: var(--ink-muted); }
.page-hero .btn-outline{ color: var(--ink); border-color: rgba(23,20,15,0.22); }
.page-hero .btn-outline:hover{ border-color: var(--red); color: var(--red); }
.page-hero .badge-anniversary{
  background: rgba(163,30,46,0.08);
  border-color: rgba(163,30,46,0.25);
  color: var(--red);
}
.breadcrumb{ font-size: 13px; color: var(--ink-muted); margin-bottom: var(--space-2); }
.breadcrumb a:hover{ color: var(--red); }

/* ---------- Sections ---------- */
section{ padding: var(--space-6) 0; }
.section-head{ max-width: 720px; margin-bottom: var(--space-5); }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-alt{ background: var(--cream); }
.section-dark{ background: var(--black); color: var(--on-dark); }

.grid{ display: grid; gap: var(--space-3); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: repeat(2,1fr); } .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card{
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 16px 32px rgba(23,20,15,0.1); border-color: var(--gold); }
.card-icon{
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  color: var(--red);
}
.card-icon svg{ width: 26px; height: 26px; }
.card h3{ font-family: var(--font-body); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p{ color: var(--ink-muted); font-size: 15px; }
.card .tag{
  display: inline-block; margin-top: var(--space-2);
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--red);
}

.card-dark{
  background: var(--charcoal);
  border: 1px solid var(--border-dark);
  color: var(--on-dark);
}
.card-dark:hover{ border-color: var(--gold); }
.card-dark p{ color: var(--on-dark-muted); }
.card-dark .card-icon{ background: rgba(245,242,234,0.06); color: var(--gold-bright); }

/* ---------- Event list ---------- */
.event-row{
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}
.event-date{
  background: var(--black);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 10px 4px;
}
.event-date .mon{ font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-bright); }
.event-date .day{ font-family: var(--font-display); font-size: 26px; line-height: 1; }
.event-title{ font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.event-meta{ font-size: 14px; color: var(--ink-muted); }
.event-meta svg{ width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.event-cat{
  justify-self: start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  white-space: nowrap;
}
.cat-driving{ background: #fbe6e6; color: var(--red); }
.cat-social{ background: #fbf0d8; color: #8a6408; }
.cat-anniversary{ background: #e9e2f5; color: #5b3fa0; }
@media (max-width: 640px){
  .event-row{ grid-template-columns: 64px 1fr; }
  .event-cat{ grid-column: 2; }
}

/* ---------- Forms ---------- */
.form-card{
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.field{ margin-bottom: var(--space-3); }
.field label{ display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint{ font-size: 13px; color: var(--ink-muted); margin-top: 6px; }
.field .req{ color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--offwhite);
  color: var(--ink);
  transition: border-color var(--dur-fast);
}
.field textarea{ min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(163,30,46,0.15); }
.field input:invalid:not(:placeholder-shown), .field.err input, .field.err textarea, .field.err select{ border-color: var(--red); }
.error-text{ display: none; color: var(--red); font-size: 13px; margin-top: 6px; }
.field.err .error-text{ display: block; }
.checkbox-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
@media (max-width: 560px){ .checkbox-grid{ grid-template-columns: 1fr; } }
.checkbox-item{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border-light); border-radius: var(--radius-sm); background: var(--offwhite); min-height: 44px; }
.checkbox-item input{ width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; }
.checkbox-item label{ font-size: 14px; font-weight: 500; margin: 0; }
.radio-row{ display: flex; gap: var(--space-2); flex-wrap: wrap; }

.form-success{
  display: none;
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.form-success.show{ display: block; }
.form-success .icon{ width: 56px; height: 56px; margin: 0 auto var(--space-2); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--black); color: var(--on-dark-muted); padding-top: var(--space-6); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); padding-bottom: var(--space-5); }
.footer-brand{ display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--space-2); }
.footer-brand img{ width: 44px; height: 44px; }
.footer-word{ font-family: var(--font-display); font-size: 20px; color: var(--on-dark); letter-spacing: 0.03em; }
.footer-col h4{ font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--space-2); }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size: 14px; transition: color var(--dur-fast); }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-social{ display: flex; gap: 10px; margin-top: var(--space-2); }
.footer-social a{
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.footer-social a:hover{ border-color: var(--gold-bright); color: var(--gold-bright); }
.footer-social svg{ width: 18px; height: 18px; }
.footer-bottom{
  border-top: 1px solid var(--border-dark);
  padding: var(--space-3) 0 var(--space-4);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  font-size: 13px;
}
@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.divider-flag{
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 24px, var(--gold) 24px 48px);
}
.callout{
  border-left: 4px solid var(--red);
  background: var(--cream);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.callout p{ font-size: 15px; color: var(--ink); }
.callout .quote{ font-family: var(--font-display); font-size: 22px; letter-spacing: 0.01em; }

.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: start; }
@media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; } }

.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: var(--white); padding: 12px 20px; z-index: 200;
  font-weight: 700;
}
.skip-link:focus{ left: var(--space-3); top: var(--space-1); }

.badge-anniversary{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(226,160,32,0.14);
  border: 1px solid rgba(226,160,32,0.4);
  color: var(--gold-bright);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.list-check{ display: flex; flex-direction: column; gap: var(--space-2); }
.list-check li{ display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-muted); }
.list-check svg{ width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }

/* ---------- Classified listings ---------- */
.listing-photo{
  height: 210px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
}
.listing-photo img{ width: 100%; height: 100%; object-fit: cover; }
.listing-photo svg{ width: 48px; height: 48px; opacity: 0.5; }
.listing-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.listing-price{ font-weight: 700; color: var(--red); font-size: 16px; }

.toc{ position: sticky; top: 90px; }
.toc a{ display: block; padding: 8px 0; font-size: 14px; color: var(--ink-muted); border-left: 2px solid var(--border-light); padding-left: 14px; }
.toc a:hover{ color: var(--red); border-color: var(--red); }
