@import url(./root.css);

/* ---------------------------------------------------------------
   Who We Serve pages (campus_store, k_12, libraries, corrections).
   Hero, Partner, Learn More and FAQ come from campus-story.css;
   this file adds the intro with product chips, one section per
   product the segment uses, and the "Who We Work With" cards.
   --------------------------------------------------------------- */

/* ---------- Intro ---------- */
.seg-intro {
  padding: 110px 20px 30px;

  @media (max-width: 991.99px) {
    padding: 72px 16px 10px;
  }
}

.seg-intro-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.seg-intro-lead {
  margin: 0;
  line-height: var(--leading-160);
  color: var(--white) !important;
}

.seg-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;

  a {
    padding: 10px 20px;
    border: 1px solid rgba(242, 74, 74, 0.6);
    border-radius: 999px;
    font-size: var(--fs-2xl);
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;

    &:hover,
    &:focus-visible {
      background-color: var(--red);
      border-color: var(--red);
      color: var(--white);
    }
  }

  @media (max-width: 575.99px) {
    gap: 8px;
    margin-top: 24px;

    a {
      padding: 8px 14px;
    }
  }
}

/* ---------- One section per product ---------- */
.seg-product {
  padding: 110px 20px;
  scroll-margin-top: 90px; /* chips jump here; keep the heading clear of the fixed nav */

  &.seg-product--flip {
    background-color: var(--light-black);
  }

  @media (max-width: 991.99px) {
    padding: 72px 16px;
  }
}

.seg-product-container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
  max-width: 1480px;
  margin: 0 auto;

  .seg-product--flip & {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);

    .seg-product-text {
      order: 2;
    }
  }

  @media (max-width: 991.99px) {
    grid-template-columns: 1fr !important;
    gap: 36px;

    .seg-product-text {
      order: 0 !important;
    }
  }
}

.seg-product-stage {
  margin: 0 0 12px;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.seg-product-title {
  margin: 0 0 20px;
  font-size: var(--fs-10xl);
  font-weight: 600;
  line-height: var(--leading-120);
  color: var(--white);
}

.seg-product-para {
  margin: 0 0 24px;
  font-size: var(--fs-3xl);
  font-weight: 500;
  line-height: var(--leading-160);
  color: var(--deep-gray);
}

.seg-product-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;

  li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--fs-2xl);
    font-weight: 600;
    line-height: var(--leading-150);
    color: var(--white);
  }
}

.seg-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: var(--red);
}

.seg-product-link {
  padding-bottom: 2px;
  border-bottom: 2px solid var(--red);
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;

  &:hover {
    color: var(--red);
  }
}

.seg-product-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Source in depth (Campus Stores) ---------- */
/* Intro paragraphs under "Why Campus Stores Choose Source", above the existing Source cards */
.seg-source-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 24px auto 56px;
  text-align: center;

  p {
    margin: 0;
    font-size: var(--fs-4xl);
    font-weight: 500;
    line-height: var(--leading-160);
    color: var(--deep-gray);

    span {
      font-weight: 700;
      color: var(--white);
    }
  }

  @media (max-width: 767.99px) {
    margin-bottom: 36px;
  }
}

/* ---------- Space above Want to Learn More ---------- */
/* The Source cards section sits directly above Learn More on these pages */
.why-campus-section {
  padding-bottom: 130px;

  @media (max-width: 991.99px) {
    padding-bottom: 64px;
  }
}
