/* =========================================================
   CATHOLIC CHARITIES PHILADELPHIA
   CAREERS PAGE
   Scoped to .ccp-careers
   ========================================================= */


/* ---------------------------------------------------------
   Variables
   --------------------------------------------------------- */

.ccp-careers {
  --ccp-navy: #173b65;
  --ccp-navy-dark: #102f52;
  --ccp-gold: #cba54a;
  --ccp-gold-light: #e1c16b;
  --ccp-cream: #f7f5ef;
  --ccp-white: #ffffff;
  --ccp-text: #173b65;
  --ccp-text-light: #ffffff;

  --ccp-max-width: 1200px;

  --ccp-serif: Georgia, "Times New Roman", serif;
  --ccp-sans: Arial, Helvetica, sans-serif;

  color: var(--ccp-text);
  font-family: var(--ccp-sans);
  line-height: 1.6;
}


/* ---------------------------------------------------------
   Reset / Base
   --------------------------------------------------------- */

.ccp-careers *,
.ccp-careers *::before,
.ccp-careers *::after {
  box-sizing: border-box;
}

.ccp-careers h1,
.ccp-careers h2,
.ccp-careers h3,
.ccp-careers p,
.ccp-careers ul {
  margin-top: 0;
}

.ccp-careers img {
  display: block;
  max-width: 100%;
}

.ccp-careers a {
  text-decoration: none;
}


/* ---------------------------------------------------------
   Container
   --------------------------------------------------------- */

.ccp-careers-container {
  width: min(
    calc(100% - 80px),
    var(--ccp-max-width)
  );

  margin-left: auto;
  margin-right: auto;
}


/* ---------------------------------------------------------
   Intro Section
   --------------------------------------------------------- */

.ccp-careers-intro {
  position: relative;
  overflow: hidden;
  background: var(--ccp-cream);
  padding: 90px 0 85px;
}

.ccp-careers-intro-content {
  position: relative;
  z-index: 2;

  max-width: 720px;
}

.ccp-careers-intro h1 {
  margin-bottom: 25px;

  color: var(--ccp-navy);

  font-family: var(--ccp-serif);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.ccp-careers-intro p {
  max-width: 680px;

  margin-bottom: 0;

  color: var(--ccp-navy);

  font-size: 20px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   Benefit Sections
   --------------------------------------------------------- */

.ccp-careers-benefit {
  padding: 75px 0;
}

.ccp-careers-benefit--navy {
  background: var(--ccp-navy);
  color: var(--ccp-white);
}

.ccp-careers-benefit--light {
  background: var(--ccp-cream);
  color: var(--ccp-navy);
}

.ccp-careers-benefit-inner {
  display: grid;

  grid-template-columns: 190px minmax(0, 1fr);

  column-gap: 90px;

  align-items: center;
}


/* ---------------------------------------------------------
   Benefit Icons
   --------------------------------------------------------- */

.ccp-careers-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 180px;
}

.ccp-careers-icon img {
  width: 180px;
  height: auto;

  max-width: 100%;
}


/* ---------------------------------------------------------
   Benefit Typography
   --------------------------------------------------------- */

.ccp-careers-benefit-content {
  max-width: 800px;
}

.ccp-careers-benefit h2 {
  margin-bottom: 22px;

  font-family: var(--ccp-serif);
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
}

.ccp-careers-benefit--navy h2 {
  color: var(--ccp-white);
}

.ccp-careers-benefit--light h2 {
  color: var(--ccp-navy);
}


/* Gold rule */

.ccp-careers-rule {
  display: block;

  height: 3px;

  margin-bottom: 28px;

  background: var(--ccp-gold);
}


/* ---------------------------------------------------------
   Benefit Lists
   --------------------------------------------------------- */

.ccp-careers-benefit ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.ccp-careers-benefit li {
  position: relative;

  margin-bottom: 18px;
  padding-left: 27px;

  font-size: 18px;
  line-height: 1.7;
}

.ccp-careers-benefit li:last-child {
  margin-bottom: 0;
}

.ccp-careers-benefit li::before {
  content: "";

  position: absolute;

  left: 0;
  top: .7em;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: var(--ccp-gold);
}


/* ---------------------------------------------------------
   Ready To Join CTA
   --------------------------------------------------------- */

.ccp-careers-cta {
  display: grid;

  grid-template-columns: 1fr 1fr;

  min-height: 520px;
}


/* Image */

.ccp-careers-cta-image {
  min-height: 520px;
  overflow: hidden;
}

.ccp-careers-cta-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* CTA Content */

.ccp-careers-cta-content {
  display: flex;

  flex-direction: column;
  justify-content: center;

  padding: 80px;

  background: var(--ccp-cream);
}

.ccp-careers-cta-content h2 {
  margin-bottom: 25px;

  color: var(--ccp-navy);

  font-family: var(--ccp-serif);
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1px;
}

.ccp-careers-cta-content p {
  max-width: 500px;

  margin-bottom: 35px;

  color: var(--ccp-navy);

  font-size: 18px;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   CTA Button
   --------------------------------------------------------- */

.ccp-careers-button {
  display: inline-flex;

  width: fit-content;

  align-items: center;
  justify-content: center;
  gap: 25px;

  padding: 17px 30px;

  border-radius: 40px;

  background: var(--ccp-gold);

  color: var(--ccp-navy);

  font-family: var(--ccp-sans);
  font-size: 16px;
  font-weight: 700;

  transition:
    background-color .2s ease,
    transform .2s ease;
}

.ccp-careers-button span {
  font-size: 25px;
  line-height: 1;
  transition: transform .2s ease;
}

.ccp-careers-button:hover {
  background: var(--ccp-gold-light);
  color: var(--ccp-navy);

  transform: translateY(-2px);
}

.ccp-careers-button:hover span {
  transform: translateX(4px);
}


/* ---------------------------------------------------------
   Focus State
   --------------------------------------------------------- */

.ccp-careers-button:focus-visible {
  outline: 3px solid var(--ccp-navy);
  outline-offset: 4px;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .ccp-careers-container {
    width: min(
      calc(100% - 50px),
      var(--ccp-max-width)
    );
  }

  .ccp-careers-intro {
    padding: 70px 0;
  }

  .ccp-careers-benefit {
    padding: 60px 0;
  }

  .ccp-careers-benefit-inner {
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 50px;
  }

  .ccp-careers-icon {
    min-height: 150px;
  }

  .ccp-careers-icon img {
    width: 140px;
  }

  .ccp-careers-cta-content {
    padding: 60px 45px;
  }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 650px) {

  .ccp-careers-container {
    width: calc(100% - 40px);
  }

  .ccp-careers-intro {
    padding: 55px 0 60px;
  }

  .ccp-careers-intro h1 {
    font-size: 44px;
  }

  .ccp-careers-intro p {
    font-size: 17px;
  }


  /* Benefits */

  .ccp-careers-benefit {
    padding: 55px 0;
  }

  .ccp-careers-benefit-inner {
    display: block;
  }

  .ccp-careers-icon {
    display: block;

    min-height: 0;

    margin-bottom: 35px;
  }

  .ccp-careers-icon img {
    width: 110px;
  }

  .ccp-careers-benefit h2 {
    font-size: 40px;
  }

  .ccp-careers-benefit li {
    font-size: 17px;
  }


  /* CTA */

  .ccp-careers-cta {
    display: flex;
    flex-direction: column;
  }

  .ccp-careers-cta-image {
    min-height: 320px;
  }

  .ccp-careers-cta-content {
    padding: 55px 25px;
  }

  .ccp-careers-cta-content h2 {
    font-size: 44px;
  }

  .ccp-careers-button {
    width: 100%;
  }
}
