/* Afribeat homepage / header revision, Dec 2026
   Load this AFTER assets/css/style.css. Do not replace the template stylesheet. */

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10000;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
}
.skip-link:focus {
  top: 0.75rem;
}

/* Screen-reader only (if needed on other pages) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile menu control is a <button>, not a bare <i> */
button.mobile-nav-toggle {
  background: transparent;
  border: 0;
  padding: 0.25rem;
  line-height: 1;
  color: #111;
  font-size: 28px;
  cursor: pointer;
}
button.mobile-nav-toggle.bi-x {
  color: #fff;
}

/* Highlighted Donate button in the header */
.navbar .header-donate {
  display: flex;
  align-items: center;
}
.navbar .btn-donate,
a.btn-donate {
  display: inline-block;
  background: #ffb717;
  color: #111 !important;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 4px;
  border: 2px solid #ffb717;
  line-height: 1.2;
  margin-left: 0.35rem;
  transition: 0.2s;
}
.navbar .btn-donate:hover,
.navbar .btn-donate:focus,
a.btn-donate:hover,
a.btn-donate:focus {
  background: #40e0d0;
  border-color: #40e0d0;
  color: #111 !important;
  text-decoration: none;
}
.navbar-mobile .btn-donate {
  margin: 12px 20px;
  text-align: center;
}

/* Keep six items plus Donate from overflowing on mid-width screens */
@media (max-width: 1199.98px) {
  #header .header-social-links {
    display: none !important;
  }
  .navbar > ul > li > a {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Short hero: one headline, one sentence, two or three buttons. Not 100vh, not a carousel. */
#hero.hero-simple {
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: #111;
}
#hero.hero-simple .hero-media {
  position: absolute;
  inset: 0;
}
#hero.hero-simple .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
#hero.hero-simple .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
#hero.hero-simple .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
  padding: 7rem 0 3rem;
}
@media (min-width: 768px) {
  #hero.hero-simple .hero-inner {
    min-height: 28rem;
    padding: 8rem 0 4rem;
  }
}
#hero.hero-simple .hero-content {
  background: rgba(4, 4, 4, 0.78);
  padding: 1.5rem 1.5rem 1.25rem;
  color: #fff;
  border-top: 5px solid #40e0d0;
  max-width: 40rem;
}
#hero.hero-simple .hero-content h1 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}
@media (min-width: 768px) {
  #hero.hero-simple .hero-content h1 {
    font-size: 2.15rem;
  }
}
#hero.hero-simple .hero-content p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #f3f3f3;
}
#hero.hero-simple .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
#hero.hero-simple .hero-ctas a {
  margin: 0;
}

/* Buttons work outside the old #hero carousel as well */
.btn-get-started {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  transition: 0.3s;
  line-height: 1;
  color: #fff;
  border: 2px solid #ffb717;
  text-decoration: none;
}
.btn-get-started:hover,
.btn-get-started:focus {
  background: #40e0d0;
  border-color: #40e0d0;
  color: #fff;
  text-decoration: none;
}
.btn-get-started.btn-donate-hero {
  background: #ffb717;
  color: #111;
  font-weight: 600;
}
.btn-get-started.btn-donate-hero:hover,
.btn-get-started.btn-donate-hero:focus {
  background: #40e0d0;
  color: #111;
}

/* Book cards: titles and buy links always visible (including on touch screens) */
.book-grid .book-card {
  margin-bottom: 1.75rem;
}
.book-card .book-cover img,
.book-card picture,
.book-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.book-card-body {
  background: #fff;
  border: 1px solid #eee;
  border-top: 0;
  padding: 1rem 1rem 1.15rem;
}
.book-card-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.book-card-body p {
  color: #444;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
}
.book-card-body .book-buy {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #000080;
  text-decoration: underline;
}
.book-card-body .book-buy:hover,
.book-card-body .book-buy:focus {
  color: #40e0d0;
}

/* About image */
.about-us picture,
.about-us img {
  width: 100%;
  height: auto;
  display: block;
}

/* Resource tiles */
.features .icon-box h3 a {
  word-break: break-word;
}

/* Footer newsletter: visible label + field row */
.footer-newsletter label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.footer-newsletter .newsletter-fields {
  display: flex;
  gap: 0;
}
.footer-contact a {
  color: inherit;
  text-decoration: underline;
}
.footer-contact a:hover {
  color: #40e0d0;
}

/* Social icon links in the footer already inherit template styles.
   Ensure Amazon/Bandcamp bootstrap icons line up. */
#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Logo: preserve the 600×156 aspect ratio when the header caps display height at 40px.
   style.css only sets max-height: 40px. Combined with width="600" on the <img>
   (and Bootstrap .img-fluid, which does not set width: auto), the browser kept
   the image 600px wide and squashed it to 40px tall. */
#header .logo picture {
  display: block;
  line-height: 0;
}
#header .logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
}
