/* ============================================================
   PAGE: Homepage — styles specific to index.html
   ============================================================ */

@layer pages {

/* ── Hero — 3-slide Swiper, aspect-ratio matches banner images (1800×650) ── */
.main-homepage-banner {
  width: 100%;
  aspect-ratio: 1800 / 650;
  max-height: 549px;
  overflow: hidden;
  position: relative;
}
.main-homepage-banner .swiper-slide {
  width: 100%;
  height: 100%;
}
.main-homepage-banner picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Category Pills Bar ── */
.category-bar {
  height: auto;
  min-height: 40px;
  width: 100%;
  display: block;
  margin: 31px 0 32px;
  overflow: visible;
  padding-left: 40px;
  padding-right: 40px;
}
.category-bar__inner {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 35px;
  flex-wrap: wrap;
}
.category-bar__label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-body);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
}
.category-bar__pills {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 148px));
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pill-bg);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7.2px 16px;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-family: var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.pill:hover { background: rgb(80, 80, 80); }

/* ── Two-column split banners ── */
.split-banners {
  display: flex;
  width: 100%;
  gap: 17px;
  margin: 17px 0 32px;
  aspect-ratio: 1387 / 354;
  max-height: 354px;
}
.split-banner {
  flex: 1;
  min-width: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Mission Banner: content width (max 1170px), so the whole picture shows ── */
.mission-banner { margin: 0 0 32px; }
.mission-banner a { display: block; cursor: pointer; }
.mission-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1800 / 650;
  object-fit: cover;
  object-position: center;
  display: block;
}

.learn-more-wrap { display: flex; justify-content: center; }

/* ── SEO Copy Block ── */
.seo-copy { background: #f6f5f3; padding: 40px 0; }
.seo-copy__heading {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-body);
  margin-bottom: 12px;
}
.seo-copy__text {
  font-size: var(--font-size-base);
  color: var(--color-body);
  line-height: var(--line-height-base);
  margin-bottom: 24px;
  max-width: none;
}
.seo-copy__text a { text-decoration: underline; color: var(--color-dark); }
.seo-copy .read-more { color: var(--color-dark); text-decoration: underline; }

}


/* Homepage banners are links holding a <picture> (desktop + phone file). */
.main-homepage-banner .swiper-slide > a { display: block; height: 100%; }
.split-banner { display: block; overflow: hidden; }
.split-banner picture,
.split-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Slider dots: Swiper's default blue active dot and faint grey dots vanished on the teal and red
   slides. White dots with a dark ring, and a dark active dot with a white ring, show on every slide,
   including the white ESV one. Unlayered, so it beats swiper-bundle.css (also unlayered, loaded first). */
.main-homepage-banner {
  --swiper-pagination-color: var(--tmme-ink, #1a1a1a);
  --swiper-pagination-bullet-inactive-color: #fff;
  --swiper-pagination-bullet-inactive-opacity: 0.95;
  --swiper-pagination-bullet-size: 9px;
  --swiper-pagination-bullet-horizontal-gap: 5px;
}
.main-homepage-banner .swiper-pagination-bullet { box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.5); }
.main-homepage-banner .swiper-pagination-bullet-active { box-shadow: 0 0 0 1.5px #fff; }

/* The hero and half banners reach both edges of the screen (owner, 16 Nov 2026). From about 1520px wide
   the hero stays 549px tall and the half banners 354px (the max-heights above); over 1800px index.html
   switches to the wide files (3840x549, 2744x508), made for those heights, so a wide monitor shows more
   background at the sides instead of an enlarged, cropped picture (owner's "D", 17 Nov 2026). */

/* The delivery banner lines up with the book rows, whose side padding (.container.product-section in
   responsive.css) differs from the plain .container's below 800px. On phones it runs edge to edge like the
   other banners. */
@media (max-width: 800px) {
  .mission-banner > .container { padding-left: 32px; padding-right: 32px; }
}
@media (max-width: 599px) {
  .mission-banner > .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 576px) {
  .mission-banner > .container { padding-left: 0; padding-right: 0; }
}
