/* ==========================================================================
   SECTION 03 — WHY SANMIGUEL HEALTH (approved)
   Desktop (>= 1024px): editorial two columns — headline, intro and three
   pillars on the left; nurses photograph on the right with a thin bronze arc.
   Phones/tablets: headline + intro, photograph, then the three pillars.
   ========================================================================== */

.why {
  position: relative;
  padding-block: 4rem 4.5rem;
  overflow: hidden;                  /* clips the decorative arc and glow */
  background-color: var(--color-ivory);
}

/* Soft warm light in the top-right corner (as in the mockup) */
.why::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

.why__inner {
  position: relative;
  display: grid;
  grid-template-areas:
    "head"
    "media"
    "pillars";
}

/* ---------- Headline + intro ---------- */
.why__head { grid-area: head; }

.why__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 1.25rem + 3.4vw, 4.125rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: wrap;
  color: var(--color-charcoal);
}

.why__title-line { display: block; }

.why__intro {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.1875rem);
  line-height: 1.7;
  color: var(--color-text-body);
}

/* ---------- Photograph + decorative arc ---------- */
.why__media {
  grid-area: media;
  position: relative;
  z-index: 0;
  width: min(100%, 36rem);
  margin: 2.25rem 0 0;
  justify-self: center;
}

/* Thin bronze arc behind the photo (purely decorative).
   Phones/tablets: a halo centered on the photo that never crosses the text.
   Desktop: offset to the right, as in the approved mockup. */
.why__media::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 140%;
  aspect-ratio: 1;
  border: 1px solid rgba(167, 131, 92, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.why__img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  background-color: var(--color-card);   /* placeholder tone while loading */
}

/* ---------- Pillars ---------- */
.pillars {
  grid-area: pillars;
  margin-top: 1.75rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.25rem;
}

/* Subtle separators between pillars */
.pillar + .pillar { border-top: 1px solid rgba(167, 131, 92, 0.22); }

.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background-color: var(--color-card);
}

.pillar__icon svg {
  width: 1.625rem;
  height: 1.625rem;
  fill: none;
  stroke: var(--color-bronze-ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar__title {
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--color-charcoal);
}

.pillar__text {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

/* ==========================================================================
   TABLET (600–1023px)
   ========================================================================== */
@media (min-width: 37.5em) {
  .why { padding-block: 5rem 5.5rem; }

  .why__media { margin-top: 2.75rem; }

  .pillars { margin-top: 2.25rem; }

  .pillar { gap: 1.5rem; }

  .pillar__icon { width: 4.5rem; height: 4.5rem; }

  .pillar__icon svg { width: 1.875rem; height: 1.875rem; }

  .pillar__title { font-size: 1.625rem; }

  .pillar__text { font-size: 1rem; }
}

/* ==========================================================================
   DESKTOP (>= 1024px): two columns
   ========================================================================== */
@media (min-width: 64em) {
  .why { padding-block: 6.5rem; }

  .why__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas:
      "head    media"
      "pillars media";
    grid-template-rows: auto 1fr;
    column-gap: clamp(2.5rem, 4vw, 4rem);
  }

  .why__title { margin-top: 1.75rem; }

  .why__intro {
    max-width: 28rem;
    margin-top: 1.75rem;
    font-size: clamp(1.0625rem, 0.6rem + 0.7vw, 1.25rem);
  }

  .why__media {
    width: 100%;
    margin: 0;
    align-self: center;
  }

  .why__media::before {
    top: 49.5%;
    left: 78%;
    width: 170%;
  }

  .pillars {
    max-width: 32rem;
    margin-top: 2rem;
  }

  .pillar {
    gap: 1.75rem;
    padding-block: 1.5rem;
  }

  .pillar__icon { width: 5.5rem; height: 5.5rem; }

  .pillar__icon svg { width: 2.5rem; height: 2.5rem; }

  .pillar__title { font-size: 1.875rem; }

  .pillar__text {
    max-width: 18rem;
    margin-top: 0.4rem;
    font-size: 1.0625rem;
  }
}
