/* RetroRides public site — tidy neutral defaults; a site's custom CSS layers on top. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #1a1d21;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #c8102e;      /* overridable via a site's custom CSS */
  --bg: #ffffff;
  --band: #f6f7f8;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body { font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2 { line-height: 1.2; letter-spacing: -.01em; }

.pb-wrap { max-width: 960px; margin: 0 auto; padding: 0 22px; }
.pb-muted { color: var(--muted); }
.pb-rte { font-size: 17px; }
.pb-rte p { margin: 0 0 1em; }

.pb-btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 999px; margin-top: 8px; }
.pb-btn:hover { filter: brightness(.93); }
.pb-link { display: inline-block; font-weight: 600; margin-top: 10px; }

/* section rhythm */
.pb { padding: 56px 0; }
.pb + .pb { border-top: 1px solid var(--line); }

/* header / footer */
.pub-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; position: sticky; top: 0; background: var(--band); z-index: 10; }
.pub-brand { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.pub-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.pub-nav a { color: var(--ink); font-weight: 600; }
.pub-nav a.pub-apply { background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 999px; }
.pub-nav a.pub-apply:hover { filter: brightness(.93); }
.pub-user { color: var(--muted); }
.pub-foot { padding: 28px 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* hero */
.pb-hero { position: relative; background-size: cover; background-position: center; color: #fff; text-align: center; padding: 120px 22px; }
.pb-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10,12,16,.5); }
.pb-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.pb-hero h1 { font-size: 46px; font-weight: 800; }
.pb-hero-sub { font-size: 20px; margin-top: 12px; opacity: .95; }
.pb-hero .pb-btn { margin-top: 22px; }

/* image + text */
.pb-it-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pb-imagetext.pb-image-right .pb-it-img { order: 2; }
.pb-it-img img { border-radius: var(--radius); width: 100%; }
.pb-it-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }

/* text */
.pb-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }

/* tickets */
.pb-tickets { background: var(--band); }
.pb-tickets-inner { text-align: center; max-width: 640px; }
.pb-tickets h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }

/* video */
.pb-video h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; text-align: center; }
.pb-video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; }
.pb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* gallery / faq / html */
.pb-gallery h2, .pb-faq h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }

/* public index */
.pub-index { padding: 60px 22px; }
.pub-index h1 { font-size: 40px; font-weight: 800; }
.pub-index > .pb-muted { margin-top: 6px; margin-bottom: 30px; }
.pub-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pub-site-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.pub-site-card:hover { box-shadow: 0 8px 24px rgba(16,24,40,.10); transform: translateY(-2px); }
.pub-site-card h2 { font-size: 20px; font-weight: 800; }
.pub-site-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pub-site-go { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 14px; }

@media (max-width: 720px) {
  .pb-it-grid { grid-template-columns: 1fr; gap: 22px; }
  .pb-imagetext.pb-image-right .pb-it-img { order: 0; }
  .pb-hero h1 { font-size: 34px; }
  .pb { padding: 40px 0; }
}

/* ---------- application forms ---------- */
.apply-wrap { max-width: 640px; margin: 0 auto; padding: 46px 22px 70px; }
.apply-wrap h1 { font-size: 32px; font-weight: 800; }
.apply-wrap .lead { color: var(--muted); margin-top: 6px; margin-bottom: 26px; }
.apply-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.af-error { background: #fbeaea; color: #b42318; border: 1px solid #f3c4c0; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.af-error ul { margin: 0; padding-left: 18px; }
.af-field { margin-bottom: 16px; }
.af-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.af-field input[type=text], .af-field input[type=email], .af-field input[type=number], .af-field select, .af-field textarea {
  width: 100%; font-family: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff;
}
.af-field input:focus, .af-field select:focus, .af-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.af-field textarea { min-height: 100px; resize: vertical; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af-check { display: flex; align-items: center; gap: 9px; font-size: 15px; }
.af-check input { width: 17px; height: 17px; }
.af-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.af-actions { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.apply-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.apply-type { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); font-weight: 700; transition: box-shadow .15s, transform .15s; }
.apply-type:hover { box-shadow: 0 8px 24px rgba(16,24,40,.10); transform: translateY(-2px); }
.apply-type span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 5px; }
.apply-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.apply-photo { width: 92px; height: 70px; border: 1px dashed var(--line); border-radius: 9px; display: grid; place-items: center; color: var(--muted); font-size: 12px; background-size: cover; background-position: center; cursor: pointer; }
.thanks { text-align: center; padding: 90px 22px; }
.thanks .tick { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ec; color: #16a34a; display: grid; place-items: center; margin: 0 auto 18px; font-size: 32px; }

/* ======================================================================
   Landing (Retro Rides home) — place-carries-it, warm heritage, racing red.
   Scoped under .rr-home so the microsites and apply forms keep the neutral
   defaults above. Font: Clash Grotesk (loaded via ViewData["FontLink"]).
   ====================================================================== */
.rr-home {
  --h-bg: #13222a;          /* forum dark-teal ground */
  --h-surface: #1b2e37;     /* cards / raised */
  --h-ink: #eef3f2;         /* headings / strong (off-white) */
  --h-body: #cdd9d9;        /* running text on dark */
  --h-muted: #9fb4bb;       /* secondary meta */
  --h-accent: #2ebfd4;      /* forum cyan — links, arrows, hovers */
  --h-btn: #fdbf4a;         /* forum amber — the primary button */
  --h-btn-strong: #f0b030;
  --h-btn-ink: #13222a;     /* dark text on amber */
  --h-line: #2a4049;        /* subtle border/divider on dark */
  --h-dark: #0f1c24;        /* deeper band (mailing list) */
  --h-dark-ink: #eef3f2;
  --h-dark-muted: #9fb4bb;
  /* faces + five type steps — bolder: Clash Display carries the marquee headings */
  --font-display: "Clash Display", "Clash Grotesk", Impact, sans-serif;
  --t-display: clamp(4rem, 2.2rem + 9vw, 13rem);
  --t-head: clamp(2.4rem, 1.6rem + 3vw, 4.25rem);
  --t-lead: 1.3125rem;      /* 21px */
  --t-body: 1.0625rem;      /* 17px */
  --t-small: 0.8125rem;     /* 13px */
  font-family: "Clash Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--h-body);
  background: var(--h-bg);
  font-size: var(--t-body);
}
.rr-home h1, .rr-home h2, .rr-home h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; line-height: 1.0; color: var(--h-ink); }
.rr-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.rr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--h-btn); color: var(--h-btn-ink); font-weight: 600; font-size: var(--t-body); text-transform: uppercase; letter-spacing: .03em; padding: 12px 26px; border: none; border-radius: 4px; cursor: pointer; }
.rr-btn:hover { background: var(--h-btn-strong); }

/* hero */
.rr-hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--h-dark); }
.rr-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rr-hero-art { position: absolute; inset: 0; display: flex; }
.rr-hero-art .rr-car { flex: 1; height: 100%; }
/* full-bleed background video (YouTube, injected by script); the poster layer behind it shows
   until it loads, in reduced-motion, or if the embed is blocked. */
.rr-hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rr-hero-video iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100%; border: 0; }
.rr-hero-scrim { position: absolute; inset: 0; background: rgba(7,14,18,.52); }
.rr-hero-inner { position: relative; max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 24px 60px; color: #fff; }
.rr-home .rr-hero-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--t-display); line-height: .82; letter-spacing: -.02em; color: #fff; }
.rr-hero-sub { font-size: var(--t-lead); font-weight: 500; margin-top: 18px; max-width: 34ch; color: #eef3f2; line-height: 1.3; }
.rr-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 46px; height: 46px; display: grid; place-items: center; color: #fff; z-index: 2; }
.rr-scroll svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rr-scroll:hover { color: var(--h-accent); }
.rr-hero-tag { font-size: var(--t-small); color: #bcccce; margin-top: 10px; letter-spacing: .02em; }
.rr-hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.rr-next { display: inline-grid; gap: 1px; background: var(--h-surface); color: var(--h-ink); padding: 14px 20px; border-radius: 6px; }
.rr-next-lbl { font-size: var(--t-small); color: var(--h-muted); }
.rr-next-name { font-size: var(--t-lead); font-weight: 500; letter-spacing: -.01em; }
.rr-next-date { font-size: var(--t-small); color: var(--h-muted); }
.rr-next-go { font-size: var(--t-small); font-weight: 500; color: var(--h-accent); margin-top: 6px; }

/* section + events grid */
.rr-section { padding: 76px 0; }
.rr-sec-head { margin-bottom: 32px; }
.rr-sec-head h2 { font-size: var(--t-head); text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; }
.rr-sec-head p { color: var(--h-body); margin-top: 8px; font-size: var(--t-lead); max-width: 48ch; }
.rr-empty { color: var(--h-body); font-size: var(--t-lead); max-width: 50ch; }
.rr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 28px; }
.rr-card { display: flex; flex-direction: column; background: var(--h-surface); border: 1px solid transparent; border-radius: 10px; overflow: hidden; color: var(--h-ink); transition: transform .15s, border-color .15s; }
.rr-card:hover { border-color: var(--h-accent); transform: translateY(-2px); }
.rr-card-media { position: relative; aspect-ratio: 16 / 10; background: #15252d; overflow: hidden; }
.rr-card-media img, .rr-card-media .rr-car { width: 100%; height: 100%; object-fit: cover; display: block; }
.rr-card.is-past .rr-card-media { opacity: .82; }
.rr-tag { position: absolute; left: 12px; top: 12px; background: rgba(7,14,18,.85); color: #eef3f2; font-size: var(--t-small); font-weight: 500; padding: 4px 10px; border-radius: 4px; }
.rr-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.rr-card-body h3 { font-size: var(--t-lead); }
.rr-card-date { font-size: var(--t-small); font-weight: 500; color: var(--h-muted); margin-top: 6px; }
.rr-card-desc { font-size: var(--t-body); color: var(--h-body); margin-top: 8px; line-height: 1.5; }
.rr-card-go { font-size: var(--t-body); font-weight: 500; color: var(--h-accent); margin-top: 14px; }

/* mailing-list band (the one dark break) */
.rr-join { background: var(--h-dark); color: var(--h-dark-ink); padding: 80px 0; text-align: center; }
.rr-join-inner { max-width: 640px; }
.rr-join h2 { font-size: var(--t-head); color: #fff; text-transform: uppercase; font-weight: 700; letter-spacing: -.01em; }
.rr-join-inner > p { color: var(--h-dark-muted); margin-top: 12px; font-size: var(--t-lead); }
.rr-join-form { display: flex; gap: 10px; justify-content: center; margin: 26px auto 0; flex-wrap: wrap; }
.rr-join-form input { font-family: inherit; font-size: var(--t-body); padding: 12px 15px; min-height: 46px; border: 1px solid var(--h-line); border-radius: 4px; background: var(--h-bg); color: var(--h-ink); width: 320px; max-width: 100%; }
.rr-join-form input::placeholder { color: var(--h-dark-muted); }
.rr-join-form input:focus { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px rgba(46,191,212,.35); }
.rr-join-note { font-size: var(--t-small); color: var(--h-dark-muted); margin-top: 16px; }

/* community / social — a large-type list, not a row of icon cards */
.rr-social { background: var(--h-bg); padding: 76px 0 48px; }
.rr-social-list { display: flex; flex-direction: column; }
.rr-social-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; padding: 20px 18px; border-radius: 10px; color: var(--h-ink); }
.rr-social-row:hover { color: var(--h-accent); background: var(--h-surface); }
.rr-social-name { font-family: var(--font-display); font-size: var(--t-head); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; }
.rr-social-meta { font-size: var(--t-body); color: var(--h-muted); }
.rr-social-arrow { font-size: var(--t-lead); color: var(--h-accent); }

/* with the header hidden the whole landing reads dark; carry it onto the page and the shared footer */
body.pub-bare { background: #13222a; scrollbar-gutter: stable both-edges; }
body.pub-bare .pub-foot { color: #8fa6ad; font-family: "Clash Grotesk", -apple-system, BlinkMacSystemFont, sans-serif; }

.hideonmobile {
    display: unset;
}

/* motion — only when JS runs and motion is welcome; content is never hidden otherwise */
@media (prefers-reduced-motion: no-preference) {
  .rr-anim .rr-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .rr-anim .rr-reveal.in { opacity: 1; transform: none; }
  .rr-grid .rr-reveal.in { transition-delay: calc(var(--i, 0) * 70ms); }
  .rr-hero-img { animation: rr-kenburns 22s ease-in-out infinite alternate; }
  .rr-scroll svg { animation: rr-bounce 1.6s ease-in-out infinite; }
}
@keyframes rr-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes rr-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 720px) {
  .rr-hero { min-height: 76vh; }
  .rr-hero-inner { padding-bottom: 36px; }
  .rr-section, .rr-join, .rr-social { padding: 52px 0; }
  .rr-grid { grid-template-columns: 1fr; gap: 20px; }
  .rr-join-form input { width: 100%; }
  .rr-social-row { grid-template-columns: 1fr auto; }
  .rr-social-name { font-size: var(--t-lead); }
    .hideonmobile {
        display: none;
    }
}
