/* Why Us — left copy + static 4×5 photo collage */

.why-us-arc {
  position: relative;
  /* Visible so hover-scale cells can breathe (About fan pattern) */
  overflow: visible;
  background:
    radial-gradient(ellipse 55% 50% at 12% 20%, rgba(240, 90, 20, 0.08) 0%, transparent 58%),
    linear-gradient(180deg, #faf7f4 0%, #ffffff 42%, #ffffff 100%);
  padding: 56px 0 72px;
  color: var(--color-text, #3F2A1E);
}

.why-us-arc__inner {
  display: block;
}

.why-us-arc__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.why-us-arc__content {
  position: relative;
  max-width: 36rem;
  text-align: left;
}

.why-us-arc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent, #F05A14);
  line-height: 1.2;
}

.why-us-arc__eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-accent, #F05A14);
  flex-shrink: 0;
}

.why-us-arc__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-text, #3F2A1E);
  text-wrap: balance;
  /* Override cms-breaks pre-line — markup whitespace was creating a blank line above H2 */
  white-space: normal !important;
}

.why-us-arc__title-accent {
  color: var(--color-accent, #F05A14);
}

.why-us-arc__desc {
  margin: 0 0 20px;
  max-width: 42ch;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.6;
  color: var(--color-text-muted, #8A6E5C);
}

.why-us-arc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.btn--why-us {
  background: var(--color-accent, #F05A14);
  color: #fff;
  border: 1.5px solid var(--color-accent, #F05A14);
  padding: 12px 24px;
  border-radius: var(--radius-btn, 4px);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--why-us:hover {
  background: var(--color-accent-hover, #D44C10);
  border-color: var(--color-accent-hover, #D44C10);
  color: #fff;
  transform: translateY(-1px);
}

.btn--why-us-ghost {
  background: transparent;
  color: var(--color-accent, #F05A14);
  padding: 12px 24px;
  border-radius: var(--radius-btn, 4px);
  border: 1.5px solid rgba(240, 90, 20, 0.45);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--why-us-ghost:hover {
  background: var(--color-accent, #F05A14);
  border-color: var(--color-accent, #F05A14);
  color: #fff;
  transform: translateY(-1px);
}

.why-us-arc__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: visible;
  isolation: isolate;
}

.why-us-arc__shot {
  margin: 0;
  position: relative;
  z-index: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--photo-frame-pad, #F0E6DC);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(63, 42, 30, 0.04);
  transform: scale(1);
  transform-origin: center center;
  /* 0s delay on leave — shrink immediately when pointer leaves */
  transition:
    transform 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) 0s,
    box-shadow 0.32s ease 0s,
    border-radius 0.32s ease 0s,
    z-index 0s 0s;
  will-change: transform;
}

.why-us-arc__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Desktop pointer only — enlarge after 1s hover hold (~2.25×); touch stays flat */
@media (hover: hover) and (pointer: fine) {
  .why-us-arc__shot:hover {
    z-index: 40;
    transform: scale(2.25);
    border-radius: 6px;
    box-shadow:
      0 4px 8px rgba(63, 42, 30, 0.12),
      0 22px 48px rgba(63, 42, 30, 0.32),
      0 0 0 1px rgba(255, 255, 255, 0.35);
    /* 1s delay before enlarge; leave early → never scales (CSS cancels pending delay) */
    transition:
      transform 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) 1s,
      box-shadow 0.32s ease 1s,
      border-radius 0.32s ease 1s,
      z-index 0s 0s;
  }
}

.why-us-arc__shot:focus-visible,
.why-us-arc__shot:focus-within {
  z-index: 40;
  transform: scale(2.25);
  border-radius: 6px;
  box-shadow:
    0 4px 8px rgba(63, 42, 30, 0.12),
    0 22px 48px rgba(63, 42, 30, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.35);
  outline: none;
  transition:
    transform 0.38s cubic-bezier(0.22, 1.15, 0.36, 1) 1s,
    box-shadow 0.32s ease 1s,
    border-radius 0.32s ease 1s,
    z-index 0s 0s;
}

.why-us-arc__points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 24px 0 0;
  text-align: left;
  list-style: none;
  padding: 0;
}

.why-us-arc__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text, #3F2A1E);
}

.why-us-arc__points svg {
  color: var(--color-accent, #F05A14);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (min-width: 640px) {
  .why-us-arc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
}

@media (min-width: 1024px) {
  .why-us-arc {
    padding: 72px 0 96px;
  }

  .why-us-arc__split {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 40px 44px;
    align-items: center;
  }

  .why-us-arc__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (min-width: 1200px) {
  .why-us-arc__split {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 48px 52px;
  }

  .why-us-arc__grid {
    gap: 9px;
  }
}

@media (max-width: 639px) {
  .why-us-arc {
    padding: 40px 0 48px;
  }

  .why-us-arc__split {
    gap: 22px;
  }

  .why-us-arc__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .why-us-arc__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Mobile: 2×3 collage only — hide surplus (desktop keeps full 4×5 / 20) */
  .why-us-arc__grid {
    gap: 5px;
  }

  .why-us-arc__shot:nth-child(n + 7) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn--why-us,
  .btn--why-us-ghost,
  .why-us-arc__shot {
    transition: none;
    will-change: auto;
  }

  .btn--why-us:hover,
  .btn--why-us-ghost:hover {
    transform: none;
  }

  /* No enlarge animation / scale for reduced-motion users */
  .why-us-arc__shot:hover,
  .why-us-arc__shot:focus-visible,
  .why-us-arc__shot:focus-within {
    z-index: 0;
    transform: none;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(63, 42, 30, 0.04);
    transition: none;
  }
}
