:root {
  --aghc-red: #cc3333;
  --aghc-gray: #6c757d;
  --aghc-beige: #fcf9f0;
}

/* ===========================
   Header brand & nav colors
   =========================== */

/* Brand block: prevent overflow and allow wrapping on mobile */
.brand {
  max-width: 100%;
}

/* Logo sizing */
.brand-logo {
  max-height: 36px;
  height: auto;
  width: auto;
}
@media (max-width: 575.98px) {
  .brand-logo {
    max-height: 60px; /* larger logo for mobile */
    max-width: 80vw;  /* shrink if viewport very narrow */
  }
}

/* “Archive” text — mobile first: stacked, no pipe */
.brand-archive {
  display: block;
  color: var(--aghc-red);
  font-weight: 600;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-left: 38px;
}
@media (min-width: 576px) {
  .brand-archive {
    display: inline-block;
    font-weight: 400;
    font-size: 1.125rem;
    margin-top: 0;
    margin-left: 21px;
    padding-left: 1rem;
    letter-spacing: 1px;
    border-left: 1px solid var(--aghc-gray);
  }
}

/* Nav links: muted by default */
.header .nav-link {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
}

/* ===========================
   Desktop nav underline (no flicker)
   =========================== */
@media (min-width: 992px) {
  .header .navbar-nav .nav-link {
    display: inline-block;
    line-height: 1.5;
    padding-bottom: .25rem;
    border-bottom: 0;
    background-image: linear-gradient(var(--aghc-red), var(--aghc-red));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: color .15s ease, background-size .15s ease;
  }

  .header .navbar-nav .nav-link:hover,
  .header .navbar-nav .nav-link:focus,
  .header .navbar-nav .nav-link.active,
  .header .navbar-nav .nav-link[aria-current="page"] {
    color: var(--aghc-red);
    background-size: 100% 2px;
  }

  /* Horizontal spacing between nav items */
  .navbar-nav .nav-item + .nav-item {
    margin-left: 1rem;
  }
}

/* ===========================
   Hero image
   =========================== */
.album-hero {
  margin-bottom: 2rem;
}
.album-hero .hero-img {
  display: block;
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 575.98px) {
  .album-hero .hero-img {
    height: 40vh;
  }
}

/* ===========================
   Header nav adjustments
   =========================== */
.header .navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: nowrap; /* keep brand/toggler/nav inline */
  min-height: 87px;
}
.header .navbar .brand {
  flex: 1 1 auto;
  min-width: 0;
}
.header .navbar .navbar-toggler {
  flex: 0 0 auto;
  margin-left: .5rem;
}

/* Remove outline/border from hamburger */
.navbar-toggler {
  border: none;
  box-shadow: none !important;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 1px #cccccc !important;
}

/* ===========================
   Offcanvas navigation (mobile)
   =========================== */
.offcanvas-body .navbar-nav .nav-link {
  font-size: 1.125rem;
  padding: 0.75rem 0 0 0;
  color: inherit;
}
.offcanvas-body .navbar-nav .nav-link:hover,
.offcanvas-body .navbar-nav .nav-link:focus {
  color: var(--aghc-red);
  border-bottom: none; /* no underline in offcanvas */
}
.offcanvas-body .navbar-nav .nav-link[aria-current="page"] {
  color: var(--aghc-red);
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
}
.footer .nav-link {
  color: inherit;
  text-decoration: none;
}
.footer .nav-link:hover,
.footer .nav-link:focus,
.footer .nav-link:active {
  color: var(--aghc-red);
  text-decoration: none;
}
.footer .nav-link[aria-current="page"] {
  color: var(--aghc-red);
  font-weight: 500;
}

/* ===========================
   Back-to-Top button
   =========================== */
.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--aghc-red);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .1s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.back-to-top:hover {
  transform: scale(1.06);
  background-color: #a52929;
}
.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(204, 51, 51, .5);
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .back-to-top:hover {
    transition: none;
    transform: none;
  }
}

/* ===========================
   Buttons (global red hover/active)
   =========================== */
.btn,
.btn-outline-secondary,
.btn-sm {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--aghc-red) !important;
  color: #fff !important;
  border-color: var(--aghc-red) !important;
}