/* -----------------------------------------------
  SITE

  Base text styles, the navbar, the full-height
  section layout, and the small pieces that belong
  to the home and about sections.
------------------------------------------------ */

/* -----------------------------------------------
  BASE TEXT
------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--rbm-font-heading);
  font-weight: bolder;
}

h1,
h2 {
  margin-bottom: 1.5rem;
}

/* Links use the current section's link colors (from theme.css).
   Outside of a section, such as in the event modal and logo
   popovers, they fall back to blue and yellow. */
a {
  color: var(--section-link, var(--rbm-blue));
  text-decoration: underline;
  overflow-wrap: anywhere;
}

a:hover,
a:focus {
  color: var(--section-link-hover, var(--rbm-yellow));
}

/* -----------------------------------------------
  NAVBAR
------------------------------------------------ */

#mainNav {
  /* Bootstrap's navbar link colors. These are set on #mainNav
     so they win over Bootstrap's own dark navbar colors. */
  --bs-navbar-color: var(--rbm-white);
  --bs-navbar-hover-color: var(--rbm-white);
  --bs-navbar-active-color: var(--rbm-orange);

  height: var(--nav-height);
  padding: 0.1rem 0.4rem;
  background: var(--rbm-black);
  font-family: var(--rbm-font-heading);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  font-weight: 600;
}

.navbar-toggler {
  display: flex;
  align-items: center;
  height: calc(var(--nav-height) - 10px);
  padding: 0.1rem 0.4rem;
  font-size: 1rem;
}

.navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
}

/* On small screens, the opened menu drops down as a black panel */
@media (max-width: 767.98px) {
  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--rbm-black);
  }
}

/* The logo and site name change color to match whichever
   section is on screen. nav.js updates data-section as
   the page scrolls. */
#mainNav[data-section="home"] {
  --nav-accent: var(--rbm-green);
}
#mainNav[data-section="calendar"] {
  --nav-accent: var(--rbm-yellow);
}
#mainNav[data-section="events"] {
  --nav-accent: var(--rbm-blue);
}
#mainNav[data-section="partners"] {
  --nav-accent: var(--rbm-orange);
}
#mainNav[data-section="about"] {
  --nav-accent: var(--rbm-pink);
}

.brand-name {
  color: var(--nav-accent);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-accent);
}

.brand-logo {
  width: auto;
  height: calc(var(--nav-height) - 10px);
  padding: 2px;
  user-select: none;
}

/* -----------------------------------------------
  SECTIONS

  Every section fills at least the full screen and
  leaves room at the top for the fixed navbar. The
  main content block centers itself vertically, and
  anything after it (like the footer) sits at the
  bottom. The content block has the same padding
  above and below in every section, so the spacing
  between sections is consistent.
------------------------------------------------ */

.page-section {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: var(--nav-height);
  text-align: center;
  background: var(--section-bg);
  color: var(--section-text);
}

.section-content {
  margin-block: auto;
  padding-block: 3rem;
}

/* -----------------------------------------------
  HOME: PASSPORT FEATURE
------------------------------------------------ */

.passport-feature-box {
  background: var(--rbm-orange);
  border: 3px solid var(--rbm-black);
  border-radius: 2rem;
  box-shadow: 10px 10px 0 var(--rbm-black);
}

.passport-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.passport-book-img {
  border-radius: 1rem;
  transition: transform 0.2s ease;
}

.passport-image-link:hover .passport-book-img,
.passport-image-link:focus .passport-book-img {
  transform: translateY(-4px);
}

/* Bootstrap buttons read their colors from these variables */
.passport-download-btn {
  --bs-btn-bg: var(--rbm-pink);
  --bs-btn-color: var(--rbm-black);
  --bs-btn-border-color: var(--rbm-black);
  --bs-btn-hover-bg: var(--rbm-yellow);
  --bs-btn-hover-color: var(--rbm-black);
  --bs-btn-hover-border-color: var(--rbm-black);
  --bs-btn-active-bg: var(--rbm-yellow);
  --bs-btn-active-color: var(--rbm-black);
  --bs-btn-active-border-color: var(--rbm-black);
  --bs-btn-font-weight: 700;

  border-width: 2px;
  border-radius: 999px;
  box-shadow: 6px 6px 0 var(--rbm-black);
}

.passport-download-btn:hover,
.passport-download-btn:focus {
  transform: translateY(-2px);
}

/* -----------------------------------------------
  ABOUT: LOGOS, CONTACT ICONS, FOOTER
------------------------------------------------ */

/* Icon-only contact links (website, Instagram, Discord, email) */
.os-contact a {
  text-decoration: none;
}

.os-logo {
  max-width: 160px;
}

@media (max-width: 768px) {
  .os-logo {
    max-width: 120px;
  }
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  background: var(--rbm-black);
  color: var(--rbm-white);
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.72rem, 0.6rem + 0.4vw, 0.875rem);
  line-height: 1.1;
}

.site-footer a {
  text-decoration: none;
}
