/* ==========================================================================
   DaybreakCyclingClub.com — site styles
   Tokens derived from brand/tokens.css
   ========================================================================== */
:root {
  --navy: #0F2A43; --navy-800: #143352; --navy-700: #1E3D5F;
  --gold: #F7C948; --orange: #E85D26; --orange-700: #C74A1B;
  --lake: #3E92CC; --chalk: #FAF7F2; --pavement: #5C6670; --sand: #E7DFD2;
  --display: 'Barlow Condensed', 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--chalk); color: var(--navy);
  font-family: var(--body); font-size: 16px; line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
a { color: var(--lake); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}
section, footer { scroll-margin-top: 76px; }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 18px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

/* type helpers */
.eyebrow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.28em; font-size: 14px; color: var(--orange); margin: 0 0 8px;
}
h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: clamp(30px, 4.4vw, 44px);
  margin: 0 0 12px; line-height: 1.1; text-wrap: balance;
}
h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 23px; margin: 0 0 6px;
}
.lede { max-width: 42rem; color: var(--pavement); margin: 0 0 42px; font-size: 17px; }
.lede strong, .muted b { color: var(--navy); }
.muted { color: var(--pavement); }

/* buttons */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 17px;
  padding: 13px 30px; border-radius: 8px; text-decoration: none;
  transition: transform 150ms var(--ease), background 150ms;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-700); }
.btn-ghost { border: 2px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: rgba(247, 201, 72, 0.12); }
.btn-quiet { border: 2px solid var(--navy); color: var(--navy); }
.btn-quiet:hover { background: rgba(15, 42, 67, 0.06); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 42, 67, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-700);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav .home {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  color: var(--chalk); font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: 0.14em; white-space: nowrap;
}
.nav .home img { width: 52px; height: auto; display: block; }
.nav .links { margin-left: auto; display: flex; gap: 26px; }
.nav .links a {
  color: rgba(250, 247, 242, 0.85); text-decoration: none; text-transform: uppercase;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.14em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav .links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 700px) { .nav .links { gap: 16px; } .nav .links a { font-size: 13.5px; letter-spacing: .08em; } }
@media (max-width: 520px) { .nav .links .optional { display: none; } }

/* ---- hero ---- */
.hero { background: var(--navy); color: var(--chalk); text-align: center; padding: 84px 24px 0; }
.hero .lockup { width: min(400px, 76vw); margin: 0 auto 6px; }
.hero .tagline {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; font-size: clamp(16px, 2.6vw, 21px);
  color: var(--gold); margin: 22px 0 14px;
}
.hero .intro { max-width: 38rem; margin: 0 auto; color: rgba(250, 247, 242, 0.82); font-size: 17px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .meta {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 40px auto 0; padding-bottom: 56px;
}
.hero .meta span {
  font-family: var(--display); font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; font-size: 13.5px; color: rgba(250, 247, 242, 0.75);
  border: 1px solid var(--navy-700); border-radius: 999px; padding: 6px 16px;
}
.dawn { height: 12px; background: linear-gradient(90deg, var(--gold), var(--orange)); }

/* ---- sections ---- */
section { padding: 84px 0 8px; }

/* schedule */
.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 720px) { .sched { grid-template-columns: 1fr; } }
.sched .day {
  background: var(--navy); color: var(--chalk); border-radius: 12px; padding: 26px 30px;
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
}
.sched .day .dow {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 27px; color: var(--gold);
}
.sched .day .what { color: rgba(250, 247, 242, 0.8); font-size: 14.5px; }

/* ride cards */
.rides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ride {
  background: #fff; border: 1px solid var(--sand); border-radius: 12px;
  padding: 26px 26px 24px; border-top: 6px solid var(--accent, var(--gold));
}
.ride.social { --accent: var(--gold); }
.ride.endurance { --accent: var(--lake); }
.ride.tempo { --accent: var(--orange); }
.ride.race { --accent: var(--navy); }
.ride .tag {
  display: inline-block; font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px;
  padding: 3px 12px; margin-bottom: 12px; background: var(--accent); color: var(--navy);
}
.ride.endurance .tag, .ride.tempo .tag { color: #fff; }
.ride.race .tag { color: var(--gold); }
.ride p { margin: 0; color: var(--pavement); font-size: 14.5px; }
.schedule-note {
  margin: 28px 0 0; padding: 18px 22px; background: #fff;
  border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0;
  color: var(--pavement); font-size: 15px; max-width: 46rem;
}
.schedule-note b { color: var(--navy); }

/* expectations */
.expect { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.expect .item { background: #fff; border: 1px solid var(--sand); border-radius: 12px; padding: 24px 26px; }
.expect .item .num {
  font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--orange);
  letter-spacing: 0.1em; display: block; margin-bottom: 8px;
}
.expect .item p { margin: 0; color: var(--pavement); font-size: 14.5px; }

/* winter */
.winter {
  margin-top: 64px; background: var(--navy); border-radius: 16px; color: var(--chalk);
  padding: 40px; display: flex; gap: 36px; align-items: center; flex-wrap: wrap;
}
.winter .zbadge {
  flex: none; width: 92px; height: 92px; border-radius: 50%;
  background: var(--lake); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.08em;
  color: #fff; text-transform: uppercase;
}
.winter h3 { color: var(--chalk); }
.winter p { margin: 0; color: rgba(250, 247, 242, 0.78); max-width: 44rem; }
.winter > div:last-child { flex: 1; min-width: 260px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid .crest {
  max-width: 330px; margin: 0 auto; display: block;
  filter: drop-shadow(0 12px 32px rgba(15, 42, 67, 0.18));
}
.about-grid p { color: var(--pavement); max-width: 42rem; }
.about-grid p b { color: var(--navy); }

/* faq */
.faq { max-width: 46rem; }
.faq details { background: #fff; border: 1px solid var(--sand); border-radius: 10px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 22px;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 18px; display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--orange); font-weight: 700; font-size: 20px; line-height: 1; }
.faq details[open] summary::before { content: "\2013"; }
.faq details p { margin: 0; padding: 0 22px 18px 48px; color: var(--pavement); font-size: 15px; }

/* join */
.join { background: var(--navy); color: var(--chalk); margin-top: 84px; text-align: center; padding: 84px 24px 72px; }
.join h2 { color: var(--chalk); }
.join .eyebrow { color: var(--gold); }
.join p { max-width: 38rem; margin: 0 auto 34px; color: rgba(250, 247, 242, 0.8); }
.join .channels { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer { background: var(--navy); color: rgba(250, 247, 242, 0.65); border-top: 1px solid var(--navy-700); }
footer .wrap { display: flex; align-items: center; gap: 24px; padding: 30px 24px; flex-wrap: wrap; font-size: 13.5px; }
footer img { width: 84px; height: auto; }
footer a { color: rgba(250, 247, 242, 0.85); }
footer .fine { margin-left: auto; text-align: right; }
@media (max-width: 680px) { footer .fine { margin-left: 0; text-align: left; } }

/* ==== subpage header ==== */
.page-head { background: var(--navy); color: var(--chalk); padding: 56px 0 40px; }
.page-head h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; line-height: 1.05;
}
.page-head .eyebrow { color: var(--gold); }
.page-head .lede { color: rgba(250, 247, 242, 0.82); margin-bottom: 0; }
.page-head .lede strong { color: #fff; }

/* ==== calendar embed ==== */
.cal-embed {
  background: #fff; border: 1px solid var(--sand); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-md);
}
.cal-embed iframe { display: block; width: 100%; height: 620px; border: 0; }
@media (max-width: 640px) { .cal-embed iframe { height: 520px; } }

/* ==== ride form ==== */
.form-wrap { max-width: 760px; }
#ride-form { background: #fff; border: 1px solid var(--sand); border-radius: 14px; padding: 32px; }
@media (max-width: 520px) { #ride-form { padding: 22px; } }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.field { margin: 0 0 18px; display: flex; flex-direction: column; }
.field-grid .field { margin: 0; }
.field label {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 14px; color: var(--navy); margin-bottom: 6px;
}
.field .req { color: var(--orange); }
.field small { color: var(--pavement); font-size: 12.5px; margin-top: 5px; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 16px; color: var(--navy);
  background: var(--chalk); border: 1.5px solid var(--sand); border-radius: 8px;
  padding: 11px 13px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--lake); background: #fff;
  box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.18);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#ride-form button[type="submit"] { margin-top: 8px; border: 0; cursor: pointer; }
#ride-form button[disabled] { opacity: 0.6; cursor: default; transform: none; }
.form-status { margin: 16px 0 0; font-size: 15px; font-weight: 500; }
.form-status.ok { color: #2E7D46; }
.form-status.err { color: var(--orange-700); }

/* link-style schedule cards */
.day.linkcard { text-decoration: none; transition: transform 150ms var(--ease), background 150ms; }
.day.linkcard:hover { transform: translateY(-2px); background: var(--navy-800); }
.day.linkcard .what { color: rgba(250, 247, 242, 0.82); }

/* ==== sponsors ==== */
.sponsor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .sponsor-grid { grid-template-columns: 1fr; } }
.sponsor {
  background: #fff; border: 1px solid var(--sand); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.sponsor-logo {
  background: #fff; border-bottom: 1px solid var(--sand);
  display: grid; place-items: center; padding: 40px 32px; min-height: 150px;
}
.sponsor-logo img { max-height: 66px; width: auto; max-width: 82%; }
.sponsor-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.sponsor-body h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 26px; margin: 0 0 2px;
}
.sponsor-kind {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 13px; color: var(--orange); margin: 0 0 14px;
}
.sponsor-body p { color: var(--pavement); font-size: 14.5px; margin: 0 0 14px; }
.perk {
  background: var(--chalk); border-radius: 8px; padding: 12px 14px;
  font-size: 14px !important; color: var(--navy) !important;
}
.perk span {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--lake); margin-right: 8px;
}
.sponsor-body .btn { margin-top: auto; align-self: flex-start; }
.sponsor-cta {
  margin-top: 44px; text-align: center; background: var(--chalk);
  border: 1px dashed var(--sand); border-radius: 14px; padding: 40px 24px;
}
.sponsor-cta h2 { margin-bottom: 10px; }
.sponsor-cta p { color: var(--pavement); max-width: 40rem; margin: 0 auto 24px; }

/* ==== nav: small-screen fit ==== */
@media (max-width: 600px) {
  .nav .brandtext { display: none; }
  .nav .home img { width: 44px; }
  .nav .wrap { gap: 12px; }
}
@media (max-width: 430px) {
  .nav .links { gap: 12px; }
  .nav .links a { font-size: 12px; letter-spacing: 0.03em; }
}
