/* =========================================================
   HOME
   Styles only the homepage (index.html) uses. Loaded after
   theme.css and site.css.
   ========================================================= */

/* ---------------------------------------------------------
   ABOUT
   --------------------------------------------------------- */

/* Leave room for the sticky navbar when jumping to #about */
#about {
  scroll-margin-top: 100px;
}

/* The Fix / Teach / Give badges */
.motto-logo {
  width: 120px;
}

@media (max-width: 768px) {
  .motto-logo {
    width: 80px;
  }
}

/* ---------------------------------------------------------
   TICKER
   The big counting-up numbers (bikes fixed, etc.);
   js/scripts.js animates the values.
   --------------------------------------------------------- */

#ticker-container {
  font-family: var(--rck-font-display);
  text-align: center;
}

#ticker-container h3 {
  font-size: clamp(1rem, 10vw, 1.5rem);
  margin: clamp(0.5rem, 10vw, 1rem);
}

.ticker-value {
  font-size: clamp(3rem, 10vw, 8rem);
  margin: calc(-0.4 * clamp(3rem, 10vw, 8rem)); /* pulls the label in close to the big number */
  letter-spacing: 0.1em;
  color: var(--rck-teal);
}

/* ---------------------------------------------------------
   UPCOMING EVENTS AGENDA
   The look comes from calendar.css; js/calendar.js sets the
   height so the first 3 events show and the rest scroll.
   --------------------------------------------------------- */

#agenda {
  overflow-y: auto;
  scrollbar-color: var(--rck-teal) var(--rck-black); /* teal handle on a black track */
}

/* ---------------------------------------------------------
   DONATE
   --------------------------------------------------------- */

/* The $5 / $20 / $25 donate badges */
.donate-img {
  height: 80px;
  display: block;
  margin-bottom: 2em;
}

/* ---------------------------------------------------------
   CONTACT
   The three cards at the bottom (Social Media, Email, Donate).
   --------------------------------------------------------- */

.contact-section {
  padding-top: 5rem;
}

/* Cards are borderless except a colored bar along the bottom */
.contact-section .card {
  border: 0;
  border-bottom: 4px solid var(--rck-orange);
}

/* The Email and Donate cards get a teal / black bar instead of orange */
.contact-section .card.card-teal {
  border-color: var(--rck-teal);
}

.contact-section .card.card-black {
  border-color: var(--rck-black);
}

.contact-section .card h4 {
  font-family: var(--rck-font-display);
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
}

.contact-section .card img {
  user-select: none;
  height: 8rem;
}
