/* ==========================================================================
   COMPONENT — Our Purpose
   Markup:  components/purpose.html   (section.purpose)
   Anchor:  #approach
   Images:  assets/purpose-left.png  → .purpose-image (wide left column)
            assets/purpose-right.png → .purpose-side  (narrow right column)
            Both are referenced as ../../assets/... because this file lives in
            styles/components/ — a plain "assets/..." path would resolve to
            styles/components/assets/... and 404.
   ========================================================================== */

/* =========================================================
   PURPOSE / OUR APPROACH
   ========================================================= */

.purpose {
  position: relative;

  padding: 90px 0;

  background: #F4F8FC;

  overflow: hidden;
}


/* =========================================================
   THREE COLUMN LAYOUT
   ========================================================= */

.purpose-grid {
  display: grid;

  grid-template-columns:
    1.05fr
    1.25fr
    .55fr;

  min-height: 330px;

  overflow: hidden;

  border-radius: 2px;
}


/* =========================================================
   LEFT IMAGE
   ========================================================= */

.purpose-image {
  min-height: 330px;

  background-image:
    linear-gradient(
      rgba(21, 62, 126, .04),
      rgba(21, 62, 126, .04)
    ),
    url("../../assets/purpose-left.png");

  background-size: cover;

  background-position: center;

  position: relative;
}


/* subtle image treatment */

.purpose-image::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 65%,
      rgba(244,248,252,.35) 100%
    );

  pointer-events: none;
}


/* =========================================================
   CENTER CONTENT
   ========================================================= */

.purpose-copy {
  position: relative;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 50px 55px;

  background: #F8FBFE;
}


/* small vertical brand accent */

.purpose-copy::before {
  content: "";

  position: absolute;

  left: 25px;

  top: 30px;

  bottom: 30px;

  width: 2px;

  background: linear-gradient(
    to bottom,
    #1E88E5 0%,
    rgba(30,136,229,.15) 100%
  );
}


/* =========================================================
   EYEBROW
   ========================================================= */

.purpose .eyebrow {
  margin-bottom: 12px;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: .14em;

  text-transform: uppercase;

  color: #153E7E;
}


.purpose .eyebrow a {
  color: inherit;

  text-decoration: none;
}


/* =========================================================
   HEADING
   ========================================================= */

.purpose h2 {
  margin: 0;

  max-width: 520px;

  color: #333333;

  font-family: "Manrope", sans-serif;

  font-size: clamp(32px, 3.5vw, 52px);

  line-height: 1;

  letter-spacing: -.045em;

  font-weight: 800;
}


.purpose h2 span {
  color: #153E7E;

  display: block;
}


/* =========================================================
   BODY COPY
   ========================================================= */

.purpose-copy > p {
  margin-top: 20px;

  max-width: 560px;

  color: #333333;

  font-size: 14px;

  line-height: 1.7;
}


.purpose-copy .purpose-small {
  margin-top: 10px;

  color: #5C6670;

  font-size: 13px;

  line-height: 1.65;
}


/* =========================================================
   SMALL LINK
   ========================================================= */

.purpose-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  width: fit-content;

  margin-top: 22px;

  color: #153E7E;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: .06em;

  text-decoration: none;

  text-transform: uppercase;

  transition:
    gap .25s ease,
    color .25s ease;
}


.purpose-link span {
  color: #1E88E5;

  font-size: 17px;
}


.purpose-link:hover {
  gap: 15px;

  color: #1E88E5;
}


/* =========================================================
   RIGHT IMAGE
   ========================================================= */

.purpose-side {
  min-height: 330px;

  background-image:
    linear-gradient(
      rgba(21,62,126,.12),
      rgba(21,62,126,.12)
    ),
    url("../../assets/purpose-right.png");

  background-size: cover;

  background-position: center;

  position: relative;
}


/* subtle dark overlay */

.purpose-side::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(21,62,126,.12),
      rgba(0,0,0,.12)
    );

  pointer-events: none;
}


/* =========================================================
   HOVER IMAGE EFFECT
   ========================================================= */

.purpose-image,
.purpose-side {
  transition:
    transform .7s cubic-bezier(.2,.7,.2,1);
}


.purpose-grid:hover .purpose-image {
  transform: scale(1.015);
}


.purpose-grid:hover .purpose-side {
  transform: scale(1.025);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .purpose {
    padding: 70px 0;
  }

  .purpose-grid {
    grid-template-columns:
      1fr 1.35fr;

    min-height: 360px;
  }

  .purpose-side {
    display: none;
  }

  .purpose-image {
    min-height: 360px;
  }

  .purpose-copy {
    padding: 45px 40px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .purpose {
    padding: 55px 0;
  }

  .purpose-grid {
    display: flex;

    flex-direction: column;

    min-height: auto;
  }

  .purpose-image {
    min-height: 240px;

    order: 1;
  }

  .purpose-copy {
    order: 2;

    padding: 40px 28px;
  }

  .purpose-copy::before {
    left: 14px;

    top: 25px;

    bottom: 25px;
  }

  .purpose-side {
    display: block;

    order: 3;

    min-height: 190px;
  }

  .purpose h2 {
    font-size: 38px;
  }

  .purpose-copy > p {
    font-size: 14px;
  }

}