/* ===== Why Choose Us (full-width pale background) ===== */
.why {
  /* same soft bg tone as About section */
  background: rgba(24, 147, 105, 0.12); /* var(--color1) @ ~12% */
  padding: 72px 16px;
}

.why__container {
  max-width: 1200px;
  margin: 0 auto;
}

.why__wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

/* LEFT: text */
.why__title {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  color: var(--text-color-dark);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.why__lead {
  color: #93a3a0; /* softer, like screenshot */
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 20px;
}

.why__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  max-width: 760px;
}

.why__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}

.why__feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-color-dark);
}

.why__feature p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* green ring check */
.why__tick {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--color1);
  color: var(--color1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* RIGHT: staggered photo cards (same language as service cards:
   gradient ring, brand duotone wash, hover zoom, notched title tab) */
.why__media {
  --why-bg: color-mix(in srgb, var(--color1, #189369) 12%, #fff); /* solid twin of the section bg */
  --tab-r: 18px;
  position: relative;
  height: clamp(420px, 42vw, 540px);
}

.why__photo {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #e9f5f0;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  transition: transform .3s ease;
}
.why__photo:hover { transform: translateY(-4px); }

/* big photo: top-left */
.why__photo--a {
  top: 0;
  left: 0;
  width: 66%;
  height: 78%;
  z-index: 1;                 /* own stacking context: keeps its ring below photo b */
}
/* small photo: bottom-right, overlapping, cut out of the big one */
.why__photo--b {
  right: 0;
  bottom: 0;
  width: 54%;
  height: 64%;
  box-shadow: 0 0 0 8px var(--why-bg), 0 18px 36px rgba(0,0,0,.14);
  z-index: 2;
}

/* 2px brand gradient ring */
.why__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color5, #1D6E93), var(--color1, #189369));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.why__photo-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.why__photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  filter: saturate(.9);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
/* brand duotone wash */
.why__photo-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgb(from var(--color5, #1D6E93) r g b / .55) 0%,
    rgb(from var(--color1, #189369) r g b / .15) 55%,
    transparent 80%);
  mix-blend-mode: multiply;
  transition: opacity .4s ease;
  pointer-events: none;
}
.why__photo:hover .why__photo-img img { transform: scale(1.08); filter: saturate(1.05); }
.why__photo:hover .why__photo-img::after { opacity: .35; }

/* notched label tab */
.why__photo-tab {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  max-width: calc(100% - 40px);
  padding: 12px 18px 12px 18px;
  background: var(--why-bg);
  border-top-right-radius: var(--tab-r);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text-color-dark, #0f172a);
}
.why__photo-tab::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color1, #189369), var(--color5, #1D6E93));
  transition: width .35s ease;
}
.why__photo:hover .why__photo-tab::before { width: 52px; }
.why__photo-tab::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 0;
  width: var(--tab-r);
  height: var(--tab-r);
  background: radial-gradient(circle at 100% 0,
    transparent calc(var(--tab-r) - .5px), var(--why-bg) var(--tab-r));
}

@media (prefers-reduced-motion: reduce) {
  .why__photo, .why__photo-img img, .why__photo-tab::before { transition: none; }
  .why__photo:hover { transform: none; }
  .why__photo:hover .why__photo-img img { transform: scale(1.02); }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .why__wrap {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .why__media {
    order: -1;             /* show images first on mobile, like many landers */
    height: clamp(340px, 80vw, 480px);
    margin-bottom: 18px;
  }
  .why__features { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 520px) {
  .why { padding: 56px 14px; }
}
