/* ============================================================
   SMOG MOG — Open Road Sunset Style
   Deep sky blues · Warm amber · Golden horizon
   ============================================================ */

/* ── Local Fonts ── */
@font-face {
  font-family: 'BebasNeue';
  src: url('../fonts/bebasneue-regular.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lobster';
  src: url('../fonts/Lobster-Regular.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'KenyanCoffee';
  src: url('../fonts/kenyancoffee-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'KenyanCoffee';
  src: url('../fonts/kenyancoffee-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'KenyanCoffee';
  src: url('../fonts/kenyancoffee-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'KenyanCoffee';
  src: url('../fonts/kenyancoffee-bolditalic.woff2') format('woff2');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm amber / golden – the sunset */
  --amber:        #E8920A;
  --amber-dark:   #B5700A;
  --amber-light:  #FFB340;
  --amber-glow:   rgba(232, 146, 10, 0.25);

  /* Deep sky blues – the upper sky */
  --sky-black:    #050810;
  --sky-1:        #0A1020;
  --sky-2:        #111A30;
  --sky-3:        #1C2840;
  --sky-4:        #28384E;
  --sky-5:        #364858;

  /* Text */
  --white:        #FFFFFF;
  --cream:        #F0E8D8;
  --grey-1:       #C8D4E0;
  --grey-2:       #8A9EAE;
  --grey-3:       #526070;

  --font-display: 'KenyanCoffee', 'Oswald', 'Impact', sans-serif;
  --font-heading: 'KenyanCoffee', 'Rajdhani', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-script:  'Lobster', cursive;

  --radius:       4px;
  --radius-lg:    12px;
  --transition:   0.3s ease;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-amber: 0 0 40px rgba(232,146,10,0.3);
  --nav-h:        72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--sky-1);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Paragraphs always use readable body font */
p, li, input, textarea,
.event-info p, .about-text p, .colours-info p, .contact-text p,
.value-item p, .badge-detail-item p, .about-constitution-card p,
.footer-brand p, .upcoming-event-time, .upcoming-event-location,
.no-events p, .events-cta p, .hero-badge {
  font-family: var(--font-body);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--sky-black); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-light); border-color: var(--amber-light); transform: translateY(-2px); box-shadow: var(--shadow-amber); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.full-width { width: 100%; justify-content: center; }

/* ── Section shared ── */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--amber); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 3px; color: var(--white); margin-bottom: 16px;
}
.title-bar { width: 60px; height: 4px; background: var(--amber); margin: 0 auto; border-radius: 2px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 8, 16, 0.96);
  box-shadow: 0 1px 0 rgba(232,146,10,0.3), 0 4px 24px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; height: 56px; }
.nav-logo img { height: 100%; width: auto; object-fit: contain; }
.logo-fallback { display: none; align-items: baseline; gap: 4px; }
.logo-text { font-family: var(--font-display); font-size: 2rem; letter-spacing: 4px; color: var(--white); }
.logo-sub  { font-family: var(--font-display); font-size: 1rem; color: var(--amber); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-1);
  padding: 8px 16px; border-radius: var(--radius); transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--amber); }
.nav-cta { background: var(--amber); color: var(--sky-black) !important; padding: 10px 20px; margin-left: 8px; font-weight: 700; }
.nav-cta:hover { background: var(--amber-light); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   HERO — SUNSET ROAD
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding: var(--nav-h) 0 0;
}
.hero-bg {
  position: absolute; inset: 0;
  /* Sunset sky: deep blue at top → warm golden horizon → dark road at bottom */
  background:
    radial-gradient(ellipse at 72% 68%, rgba(232,146,10,0.55) 0%, transparent 45%),
    radial-gradient(ellipse at 72% 78%, rgba(255,140,0,0.3)  0%, transparent 35%),
    radial-gradient(ellipse at 20% 90%, rgba(80,30,0,0.4)    0%, transparent 40%),
    linear-gradient(180deg,
      #050C1E 0%,
      #091428 18%,
      #0F1E3C 32%,
      #1A2A40 46%,
      #2E2010 62%,
      #4A2800 74%,
      #1A0E04 88%,
      #080604 100%
    );
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(5,8,16,0.88) 0%,
    rgba(5,8,16,0.55) 50%,
    rgba(5,8,16,0.30) 100%
  );
}
/* Subtle atmospheric haze */
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 60%, rgba(232,146,10,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 90%, rgba(180,80,0,0.12)   0%, transparent 40%);
}
/* Horizon glow line */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-dark), transparent);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
  padding: 60px 24px 60px calc((100vw - 1180px) / 2 + 24px);
  min-width: 0;
}
.hero-badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  white-space: nowrap; text-align: center;
  color: var(--amber); border: 1px solid rgba(232,146,10,0.5);
  padding: 6px 18px; border-radius: 40px; margin-bottom: 28px;
  background: rgba(232,146,10,0.06);
}
.hero-title { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; line-height: 0.9; }
.title-line {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  letter-spacing: 2px;
  text-shadow: 0 2px 40px rgba(232,146,10,0.18);
}
.title-cream  { color: var(--cream); }
.title-accent { color: var(--amber); }
.hero-tagline {
  font-family: var(--font-script); font-size: 2.2rem;
  color: var(--cream); margin-bottom: 44px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-scroll-hint {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--grey-3);
}
.scroll-line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; width: 48px; }
  50%       { opacity: 1;   width: 72px; }
}

.hero-emblem {
  position: absolute; right: calc((100vw - 1180px) / 2);
  top: 50%; transform: translateY(-50%);
  z-index: 2; width: 480px; height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.hero-emblem img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(232,146,10,0.25));
  animation: emblemFloat 7s ease-in-out infinite;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.emblem-fallback { display: none; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--sky-2);
  border-top: 1px solid rgba(232,146,10,0.25);
  border-bottom: 1px solid rgba(232,146,10,0.25);
  padding: 32px 24px;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; position: relative; z-index: 5;
}
.stat { text-align: center; padding: 12px 48px; }
.stat-number { font-family: var(--font-display); font-size: 3rem; color: var(--amber); line-height: 1; }
.stat-plus   { font-family: var(--font-display); font-size: 1.7rem; color: var(--amber); vertical-align: top; margin-left: 2px; line-height: 1; }
.stat-label  { display: block; font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-2); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(232,146,10,0.2); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--sky-1); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.lead-text { font-size: 1.15rem; font-weight: 500; color: var(--white); margin-bottom: 20px; }
.about-text p { color: var(--grey-1); margin-bottom: 20px; }
.about-values {
  list-style: none; display: flex; flex-direction: column; gap: 20px;
  margin: 36px 0; padding: 28px;
  background: var(--sky-2);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.value-item { display: flex; align-items: flex-start; gap: 16px; }
.value-icon { font-size: 1.4rem; flex-shrink: 0; width: 36px; text-align: center; }
.value-item h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; letter-spacing: 1px; color: var(--amber-light); margin-bottom: 2px; }
.value-item p  { font-size: 0.88rem; color: var(--grey-2); margin: 0; }
.about-visual { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.about-image-wrap {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sky-3); border: 1px solid var(--sky-4);
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { display: none; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; gap: 8px; color: var(--grey-3); font-size: 0.85rem; }
.image-placeholder span { font-size: 3rem; }
.about-constitution-card {
  background: var(--sky-2); border: 1px solid var(--sky-4); border-top: 3px solid var(--amber);
  border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card-icon { font-size: 1.8rem; }
.about-constitution-card h3 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--amber-light); }
.about-constitution-card p  { font-size: 0.9rem; color: var(--grey-1); }
.location-card {
  background: var(--sky-2); border: 1px solid var(--sky-4); border-radius: var(--radius-lg);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px;
}
.location-card .card-icon { font-size: 1.4rem; flex-shrink: 0; }
.location-card h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--amber-light); margin-bottom: 2px; }
.location-card p  { font-size: 0.85rem; color: var(--grey-2); margin: 0; }
.location-card .btn { margin-left: auto; flex-shrink: 0; }

/* ============================================================
   BADGE / COLOURS
   ============================================================ */
.colours {
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-2) 0%, var(--sky-1) 60%, var(--sky-black) 100%);
}
.colours-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(232,146,10,0.07) 0%, transparent 65%);
}
.colours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.colours-main { display: flex; justify-content: center; align-items: center; }
.patch-showcase { position: relative; display: flex; justify-content: center; align-items: center; }
.patch-wrap { width: 440px; height: 440px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.patch-wrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(232,146,10,0.4)); }
.patch-glow {
  position: absolute; inset: -40px;
  background: radial-gradient(circle, rgba(232,146,10,0.15) 0%, transparent 70%);
  z-index: 1; border-radius: 50%; animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.colours-info h3 { font-family: var(--font-display); font-size: 2.5rem; letter-spacing: 3px; color: var(--white); margin-bottom: 20px; }
.colours-info p  { color: var(--grey-1); margin-bottom: 16px; }
.badge-details   { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.badge-detail-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; background: var(--sky-2); border-radius: var(--radius-lg);
  border: 1px solid var(--sky-4); transition: border-color var(--transition);
}
.badge-detail-item:hover { border-color: var(--amber); }
.badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex-shrink: 0; margin-top: 6px; }
.badge-detail-item h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--amber-light); margin-bottom: 2px; }
.badge-detail-item p  { font-size: 0.85rem; color: var(--grey-2); margin: 0; }

/* ============================================================
   EVENTS
   ============================================================ */
.events {
  background: linear-gradient(180deg, var(--sky-black) 0%, var(--sky-1) 100%);
}
.recent-rides-header { margin-top: 64px; margin-bottom: 20px; }

.upcoming-rides-wrap {
  background: var(--sky-2); border: 1px solid var(--sky-4); border-top: 3px solid var(--amber);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 20px;
}
.upcoming-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.calendar-link { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 1px; color: var(--amber); transition: color var(--transition); }
.calendar-link:hover { color: var(--amber-light); }
.calendar-loading { display: flex; align-items: center; gap: 16px; padding: 32px; color: var(--grey-2); font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 1px; }
.calendar-spinner { width: 24px; height: 24px; border: 3px solid var(--sky-4); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.upcoming-event-item { display: flex; align-items: flex-start; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--sky-3); transition: all var(--transition); }
.upcoming-event-item:last-child  { border-bottom: none; padding-bottom: 0; }
.upcoming-event-item:first-child { padding-top: 0; }
.upcoming-event-item:hover .upcoming-event-title { color: var(--amber); }
.upcoming-date-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; height: 64px; background: var(--sky-3);
  border: 1px solid var(--sky-4); border-radius: var(--radius); flex-shrink: 0;
  transition: border-color var(--transition);
}
.upcoming-event-item:hover .upcoming-date-block { border-color: var(--amber); }
.upcoming-date-month { font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); }
.upcoming-date-day   { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); line-height: 1.1; }
.upcoming-event-details { flex: 1; }
.upcoming-event-title { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; letter-spacing: 0.5px; color: var(--white); margin-bottom: 4px; transition: color var(--transition); }
.upcoming-event-time     { font-size: 0.85rem; color: var(--grey-3); }
.upcoming-event-location { font-size: 0.85rem; color: var(--grey-2); margin-top: 4px; }
.no-events { padding: 32px; text-align: center; color: var(--grey-2); }
.no-events a { color: var(--amber); }
.teamup-embed-wrap { margin: 20px 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--sky-4); }
#calendarEmbed { display: none; }
.teamup-embed-wrap iframe { width: 100%; height: 600px; display: block; background: var(--sky-1); }
.calendar-actions { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.event-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--sky-2); border: 1px solid var(--sky-4);
  border-radius: var(--radius-lg); padding: 24px 28px;
  cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden;
}
.event-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--sky-4); transition: background var(--transition);
}
.event-card:hover::before, .event-card.featured::before { background: var(--amber); }
.event-card:hover { border-color: rgba(232,146,10,0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.event-card.featured { grid-column: 1 / -1; background: var(--sky-3); border-color: rgba(232,146,10,0.2); }
.event-date { display: flex; flex-direction: column; align-items: center; min-width: 60px; text-align: center; flex-shrink: 0; }
.event-month { font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); }
.event-day   { font-family: var(--font-display); font-size: 2.4rem; color: var(--white); line-height: 1.1; }
.event-info { flex: 1; }
.event-tag { display: inline-block; font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-2); margin-bottom: 6px; }
.event-card.featured .event-tag { color: var(--amber); }
.event-info h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.5px; color: var(--white); margin-bottom: 8px; }
.event-card.featured .event-info h3 { font-size: 1.5rem; }
.event-info p  { font-size: 0.88rem; color: var(--grey-1); margin-bottom: 12px; }
.event-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--grey-2); }
.upcoming { border-style: dashed; }
.upcoming-tag { color: var(--amber) !important; }
.events-cta {
  text-align: center; padding: 40px;
  background: var(--sky-2); border-radius: var(--radius-lg); border: 1px solid var(--sky-4);
}
.events-cta p { color: var(--grey-1); margin-bottom: 20px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-1) 0%, var(--sky-black) 100%);
}
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 5% 60%, rgba(232,146,10,0.06) 0%, transparent 55%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text .section-tag { display: block; margin-bottom: 12px; }
.contact-text .section-title { text-align: left; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.contact-text p { color: var(--grey-1); margin-bottom: 16px; }
.contact-links { list-style: none; padding: 0; margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.contact-link-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--sky-2); border: 1px solid var(--sky-4);
  border-radius: var(--radius-lg); transition: border-color var(--transition);
}
.contact-link-item:hover { border-color: var(--amber); }
.contact-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; }
.contact-icon.facebook { background: #1877F2; color: white; }
.contact-icon.location { background: var(--sky-3); border: 1px solid var(--sky-4); }
.contact-link-item h3   { font-family: var(--font-heading); font-size: 1rem; color: var(--white); margin-bottom: 2px; }
.contact-link-item span { font-size: 0.85rem; color: var(--grey-2); }
.contact-card {
  background: var(--sky-2); border: 1px solid var(--sky-4); border-top: 3px solid var(--amber);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 2px; margin-bottom: 28px; color: var(--white); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--grey-2); }
.form-group input, .form-group textarea {
  background: var(--sky-3); border: 1px solid var(--sky-4);
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 16px; border-radius: var(--radius); outline: none; resize: vertical;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,146,10,0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--grey-3); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--sky-black); border-top: 1px solid rgba(232,146,10,0.2); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; height: 52px; margin-bottom: 16px; }
.footer-logo img { height: 100%; width: auto; object-fit: contain; }
.footer-brand p  { color: var(--grey-3); font-size: 0.9rem; }
.footer-location { font-size: 0.82rem; color: var(--grey-3); margin-top: 4px; }
.footer-est      { font-family: var(--font-heading); font-size: 0.78rem; color: var(--grey-3); letter-spacing: 2px; margin-top: 12px; }
.footer-nav h2, .footer-social h2 { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--grey-3); margin-bottom: 16px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a  { font-size: 0.9rem; color: var(--grey-2); transition: color var(--transition); }
.footer-nav a:hover { color: var(--amber); }
.footer-fb-link { display: inline-flex; align-items: center; gap: 8px; color: var(--grey-2); font-size: 0.9rem; white-space: nowrap; transition: color var(--transition); }
.footer-fb-link svg { flex-shrink: 0; color: #1877F2; }
.footer-fb-link:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--sky-2); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p   { font-size: 0.82rem; color: var(--grey-3); }
.footer-disclaimer { font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase; color: var(--amber-dark) !important; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 32px; right: 32px;
  background: var(--sky-2); border: 1px solid var(--amber); border-radius: var(--radius-lg);
  padding: 16px 24px; z-index: 9999; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { font-size: 1.4rem; }
.toast-text { font-family: var(--font-heading); font-size: 0.95rem; color: var(--white); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-emblem { right: 24px; width: 360px; height: 360px; }
  .hero-content { padding-left: 24px; }
}
@media (max-width: 900px) {
  .hero-emblem { display: none; }
  .hero-content { max-width: 100%; }
  .about-grid, .colours-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { position: static; }
  .colours-main { order: -1; }
  .patch-wrap { width: 320px; height: 320px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-card.featured { grid-column: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat { padding: 12px 24px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,8,16,0.98); flex-direction: column; padding: 24px; gap: 4px;
    border-bottom: 1px solid rgba(232,146,10,0.2);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all var(--transition); backdrop-filter: blur(12px);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { font-size: 1rem; padding: 12px 16px; width: 100%; }
  .nav-cta { margin-left: 0; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RIDE GALLERY + LIGHTBOX
   ============================================================ */
.gallery-wrap { margin-top: 64px; }
.gallery-header { text-align: center; margin-bottom: 24px; }
.gallery-intro {
  color: var(--grey-1); max-width: 620px; margin: 8px auto 0;
}

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 28px;
}
.gallery-chip {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-1);
  background: var(--sky-3); border: 1px solid var(--sky-5);
  padding: 8px 16px; border-radius: 40px; cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.gallery-chip:hover { color: var(--white); border-color: var(--amber); }
.gallery-chip.active { background: var(--amber); color: var(--sky-black); border-color: var(--amber); }
.gallery-chip:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 10px;
}
.gallery-item {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: none; padding: 0; border-radius: var(--radius);
  background: var(--sky-3); cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.gallery-item-year {
  position: absolute; bottom: 6px; right: 8px;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; color: var(--white);
  background: rgba(5, 8, 16, 0.72); padding: 2px 8px; border-radius: 40px;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item-year,
.gallery-item:focus-visible .gallery-item-year { opacity: 1; }
.gallery-more { text-align: center; margin-top: 28px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(5, 8, 16, 0.92); backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 92vw; max-height: 88vh;
}
.lightbox-img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow);
}
.lightbox-counter {
  font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--grey-1);
}
.lightbox-close, .lightbox-nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--sky-5);
  color: var(--white); border-radius: 50%; cursor: pointer; line-height: 1;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: var(--amber-glow); border-color: var(--amber); color: var(--amber-light);
}
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lightbox-close { top: 18px; right: 22px; width: 44px; height: 44px; font-size: 1.7rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 560px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .gallery-grid { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-item img { transition: none; }
  .gallery-item:hover img { transform: none; }
}

/* ============================================================
   RIDE SNAPSHOTS
   ============================================================ */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}
.snapshot {
  margin: 0; display: flex; flex-direction: column;
  background: var(--sky-2); border: 1px solid var(--sky-4);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}
.snapshot:hover { transform: translateY(-4px); border-color: var(--amber); }
.snapshot-year {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: 3px;
  font-size: 1.1rem; color: var(--amber); text-align: center;
  padding: 10px 8px; background: var(--sky-3); border-bottom: 1px solid var(--sky-5);
}
.snapshot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: var(--sky-3);
}
.snapshot-actions { text-align: center; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  .snapshot { transition: none; }
  .snapshot:hover { transform: none; }
}

/* ============================================================
   CONSTITUTION SUBPAGE
   ============================================================ */
.con-hero {
  padding: calc(var(--nav-h) + 60px) 0 50px;
  background: linear-gradient(160deg, var(--sky-2) 0%, var(--sky-1) 70%);
  border-bottom: 1px solid var(--sky-4); text-align: center;
}
.con-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: 3px; color: var(--white); margin: 10px 0 8px;
}
.con-sub { color: var(--grey-2); font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
.con-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.con-section { padding-top: 56px; }
.con-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.con-toc {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--sky-2); border: 1px solid var(--sky-4);
  border-radius: var(--radius-lg); padding: 22px 20px;
}
.con-toc h4 { font-family: var(--font-heading); color: var(--amber-light); letter-spacing: 1px; margin-bottom: 12px; }
.con-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.con-toc li { counter-increment: toc; margin: 0 0 8px; }
.con-toc a { color: var(--grey-1); font-size: 0.85rem; text-decoration: none; display: block; transition: color var(--transition); }
.con-toc a::before { content: counter(toc) ". "; color: var(--amber); font-weight: 700; }
.con-toc a:hover { color: var(--amber); }
.con-content { max-width: 820px; }
.con-h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 2px; color: var(--amber-light); margin: 44px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--sky-4);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.con-content > .con-h2:first-child { margin-top: 0; }
.con-h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; color: var(--white); margin: 26px 0 8px; }
.con-content p { color: var(--grey-1); margin-bottom: 14px; line-height: 1.8; }
@media (max-width: 860px) {
  .con-wrap { grid-template-columns: 1fr; gap: 28px; }
  .con-toc { position: static; }
}

/* ============================================================
   TWEAKS — colours plaque, value icons, clickable snapshots
   ============================================================ */
/* (colours patch shows on its own — no plaque) */
.value-icon { color: var(--amber-light); display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 28px; height: 28px; }
.snapshot img { cursor: pointer; }

/* ============================================================
   HELMET+WINGS WATERMARK + SMOG 63 EMBLEM
   ============================================================ */
.contact .container { position: relative; z-index: 1; }
.contact::after { content: none; }
.footer-63 { width: 104px; height: auto; margin-top: 16px; opacity: 1; display: block; }

/* constitution figures (rocker patches) + summary note */
.con-note { color: var(--grey-2); font-style: italic; border-left: 3px solid var(--amber); padding-left: 14px; margin-bottom: 24px; }
.con-note a { color: var(--amber); }
.con-fig { margin: 6px 0 4px; text-align: center; }
.con-fig img { max-width: min(460px, 100%); height: auto; }
.con-fig figcaption { color: var(--grey-2); font-size: 0.78rem; margin-top: 10px; font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase; }

/* About-section rotating photo (crossfade) */
.about-photo { transition: opacity 0.5s ease; }
.about-photo.fading { opacity: 0; }

/* ============================================================
   UPCOMING RIDES — multi-column grid of event cards
   ============================================================ */
.upcoming-events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.upcoming-event-item { padding: 16px; gap: 16px; background: var(--sky-1); border: 1px solid var(--sky-4); border-radius: var(--radius); }
.upcoming-event-item:first-child { padding-top: 16px; }
.upcoming-event-item:last-child { padding-bottom: 16px; border-bottom: 1px solid var(--sky-4); }
.upcoming-event-item:hover { border-color: var(--amber); transform: translateY(-2px); }
@media (max-width: 600px) { .upcoming-events-list { grid-template-columns: 1fr; } }

/* About slideshow — year overlay */
.about-image-wrap { position: relative; }
.about-photo-year {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 2px;
  color: var(--white); background: rgba(5,8,16,0.72);
  border: 1px solid rgba(255,255,255,0.15); padding: 4px 14px; border-radius: 40px;
  backdrop-filter: blur(4px); transition: opacity 0.5s ease;
}
.about-photo-year.fading { opacity: 0; }

/* hero badge: allow wrap on very small screens */
@media (max-width: 480px) { .hero-badge { white-space: normal; letter-spacing: 2px; } }

/* ============================================================
   FULL-YEAR CALENDAR (native month-grouped cards)
   ============================================================ */
.calendar-link { background: none; border: none; cursor: pointer; }
.year-calendar { margin-top: 24px; border-top: 1px solid var(--sky-4); padding-top: 24px; }
.year-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.year-cal-header h3 { font-family: var(--font-display); letter-spacing: 2px; color: var(--white); font-size: 1.5rem; }
.year-cal-group { margin-bottom: 26px; }
.year-cal-month { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.year-cal-frame { width: 100%; height: 620px; border: 0; border-radius: var(--radius); background: var(--sky-1); }

/* ============================================================
   YEAR CALENDAR POPUP (month x day grid)
   ============================================================ */
.year-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,16,0.92); backdrop-filter: blur(6px); }
.year-modal[hidden] { display: none; }
.year-modal-inner { background: var(--sky-1); border: 1px solid var(--sky-4); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: min(1240px, 96vw); max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.year-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--sky-4); }
.year-modal-header h3 { font-family: var(--font-display); letter-spacing: 2px; color: var(--white); font-size: 1.4rem; }
.year-modal-close { background: none; border: none; color: var(--grey-1); font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 6px; transition: color var(--transition); }
.year-modal-close:hover { color: var(--amber); }
.year-modal-body { overflow: auto; padding: 14px; }
.year-cal-frame { width: 100%; height: 72vh; border: 0; border-radius: var(--radius); background: var(--sky-2); }

.ycal { min-width: 940px; font-family: var(--font-body); }
.ycal-row { display: grid; grid-template-columns: 60px repeat(37, minmax(24px, 1fr)); }
.ycal-head { position: sticky; top: 0; z-index: 3; background: var(--sky-1); }
.ycal-wd { text-align: center; font-size: 0.6rem; color: var(--grey-3); padding: 4px 0; border-bottom: 1px solid var(--sky-4); }
.ycal-mlabel { font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; padding: 2px 6px; border-right: 1px solid var(--sky-4); position: sticky; left: 0; background: var(--sky-1); z-index: 1; }
.ycal-yr { color: var(--grey-3); margin-left: 3px; }
.ycal-day, .ycal-empty { min-height: 42px; border: 1px solid var(--sky-2); padding: 2px; overflow: hidden; }
.ycal-empty { border-color: transparent; }
.ycal-dnum { display: block; color: var(--grey-3); font-size: 0.58rem; line-height: 1; margin-bottom: 1px; }
.ycal-today { outline: 2px solid var(--amber); outline-offset: -2px; }
.ycal-ev { display: block; color: #fff; font-size: 0.56rem; line-height: 1.25; border-radius: 3px; padding: 1px 3px; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ycal-more { display: block; color: var(--grey-3); font-size: 0.54rem; }
@media (max-width: 640px) { .year-modal { padding: 8px; } .year-modal-body { padding: 8px; } }

/* Year-calendar event detail popup */
.ycal-ev { cursor: pointer; }
.ycal-ev:hover { filter: brightness(1.15); }
.ev-detail-backdrop { position: fixed; inset: 0; z-index: 3500; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,16,0.78); backdrop-filter: blur(3px); }
.ev-detail { position: relative; background: var(--sky-2); border: 1px solid var(--sky-4); border-top: 4px solid var(--amber); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: min(460px, 94vw); padding: 26px 24px; }
.ev-detail-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--grey-1); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ev-detail-close:hover { color: var(--amber); }
.ev-detail-tag { display: inline-block; color: #fff; font-family: var(--font-heading); font-size: 0.62rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 10px; border-radius: 40px; margin-bottom: 12px; }
.ev-detail h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px; color: var(--white); margin-bottom: 8px; }
.ev-detail-when { color: var(--amber-light); font-family: var(--font-heading); letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 10px; }
.ev-detail-loc { color: var(--grey-1); margin-bottom: 10px; }
.ev-detail-notes { color: var(--grey-2); font-size: 0.9rem; line-height: 1.7; margin-bottom: 18px; max-height: 200px; overflow: auto; }
.ev-detail .btn { margin-top: 4px; }

/* ============================================================
   CONSTITUTION — ORG STRUCTURE CHART
   ============================================================ */
.orgchart { margin: 20px 0 12px; display: grid; gap: 22px; }
.org-group-title { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.org-cards { display: flex; flex-wrap: wrap; gap: 12px; }
.org-card { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; color: var(--white); padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent; }
.org-primary { background: var(--amber); color: var(--sky-black); box-shadow: var(--shadow-amber); }
.org-honorary { background: transparent; border-color: var(--amber); color: var(--amber-light); }
.org-secondary { background: var(--sky-3); border-color: var(--sky-5); color: var(--grey-1); }
.org-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sky-black); color: var(--amber); font-size: 0.7rem; margin-right: 8px; flex-shrink: 0; }

/* org-structure diagram */
.org-svg-wrap { margin: 20px 0 14px; }
.org-svg { width: 100%; height: auto; max-width: 860px; display: block; }

/* nav 63 emblem (right of Ride With Us) + SVG location icons */
.nav-63 { height: 38px; width: auto; display: block; margin-left: 10px; }
@media (max-width: 640px) { .nav-63-li { display: none; } }
.location-card .card-icon { color: var(--amber-light); display: inline-flex; align-items: center; }
.location-card .card-icon svg { width: 26px; height: 26px; }
.contact-icon.location { color: var(--amber); }
.contact-icon.location svg { width: 22px; height: 22px; }

/* contact-form honeypot (spam trap) */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

/* recent-ride cards linked to the calendar */
.event-card.has-link { cursor: pointer; }
.event-card.has-link:hover { border-color: var(--amber); }

/* ============================================================
   RECENT RIDE — detail modal
   ============================================================ */
.ride-modal { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,16,0.9); backdrop-filter: blur(6px); }
.ride-modal[hidden] { display: none; }
.ride-modal-inner { position: relative; width: min(640px, 96vw); max-height: 88vh; overflow: auto; background: var(--sky-2); border: 1px solid var(--sky-4); border-top: 4px solid var(--amber); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px 28px; }
.ride-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--grey-1); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.ride-modal-close:hover { color: var(--amber); }
.ride-modal-title { font-family: var(--font-display); font-size: clamp(1.6rem,4vw,2.4rem); letter-spacing: 1px; color: var(--white); margin: 10px 0 8px; }
.ride-modal-when { color: var(--amber-light); font-family: var(--font-heading); letter-spacing: 1px; font-size: .9rem; margin-bottom: 14px; }
.ride-modal-desc { color: var(--grey-1); line-height: 1.8; margin-bottom: 18px; }
.ride-modal-nophotos { color: var(--grey-3); font-size: .85rem; margin-top: 16px; }
.ride-modal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 20px; }
.ride-photo { padding: 0; border: none; background: var(--sky-3); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.ride-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.ride-photo:hover img { transform: scale(1.06); }

/* admin ride photo picker */
.photo-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; margin-top:6px; }
.photo-picker .pick { position:relative; margin:0; cursor:pointer; }
.photo-picker .pick img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius); border:2px solid transparent; opacity:.5; }
.photo-picker .pick input { position:absolute; top:6px; left:6px; }
.photo-picker .pick input:checked + img { opacity:1; border-color:var(--amber); }

/* admin photo management grid */
.pm-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:7px; margin-bottom:22px; }
.pm-item { position:relative; margin:0; cursor:pointer; display:block; }
.pm-item img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:var(--radius); border:2px solid transparent; display:block; }
.pm-item input { position:absolute; top:5px; left:5px; width:17px; height:17px; z-index:2; cursor:pointer; }
.pm-item img { cursor:zoom-in; }
.pm-item input:checked ~ img { border-color:#dc2626; outline:3px solid rgba(220,38,38,.4); }

/* admin photo enlarge popup */
.pm-pop { position:fixed; inset:0; z-index:4000; display:flex; align-items:center; justify-content:center; background:rgba(5,8,16,.92); padding:24px; cursor:zoom-out; }
.pm-pop[hidden]{ display:none; }
.pm-pop img { max-width:94vw; max-height:92vh; object-fit:contain; border-radius:var(--radius); box-shadow:var(--shadow); }

/* recent-ride card photo thumbnails */
.event-thumbs { display:flex; gap:6px; margin-top:14px; flex-wrap:wrap; align-items:center; }
.event-thumbs img { width:46px; height:46px; object-fit:cover; border-radius:4px; border:1px solid var(--sky-4); }
.event-thumbs-more { font-family:var(--font-heading); font-size:.72rem; letter-spacing:1px; color:var(--grey-2); }

/* recent rides — load more */
.recent-more { text-align:center; margin-top:24px; }
.recent-more button[hidden] { display:none; }

/* recent-ride card: featured image + smaller thumbs */
.event-media { margin-top: 14px; }
.event-featured { width:100%; height:190px; object-fit:cover; border-radius:var(--radius); display:block; border:1px solid var(--sky-4); }
.event-media .event-thumbs { margin-top:8px; gap:6px; }

/* floating back-to-top button */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 1500; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--amber); color: var(--sky-black); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-amber); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--amber-light); }
