/* ══════════════════════════════════════════════════════════════════
   WHY HEALING HANDZ® — Section Styles
   ALL colours from the logo palette only:
     Blue   #2693cd  |  Green  #89bf39  |  Dark   #1a3a4a
   ══════════════════════════════════════════════════════════════════ */

/* ── SECTION WRAPPER ── */
.why-us-section {
  position: relative; overflow: hidden;
  padding: 100px 40px 80px;

  background: #ffffff;

  min-height: 100vh;
  isolation: isolate;
  font-family: 'Inter', sans-serif;
}

/* ── ANIMATED GRID BACKGROUND ── */
.why-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(38,147,205,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,147,205,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: why-grid-drift 20s linear infinite;
  pointer-events: none;
}
@keyframes why-grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}

/* ── AMBIENT GLOW ORBS (logo blue + logo green) ── */
.why-bg-glow-1 {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  /* Logo Blue glow */
  background: radial-gradient(circle,
    rgba(38,147,205,0.06) 0%,
    rgba(38,147,205,0.02) 45%,
    transparent 70%);
  top: -200px; left: -120px; z-index: 0;
  animation: why-glow-drift 14s ease-in-out infinite;
  pointer-events: none;
}
.why-bg-glow-2 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  /* Logo Green glow */
  background: radial-gradient(circle,
    rgba(137,191,57,0.05) 0%,
    rgba(137,191,57,0.02) 45%,
    transparent 70%);
  bottom: -120px; right: -100px; z-index: 0;
  animation: why-glow-drift 18s ease-in-out infinite reverse;
  animation-delay: -6s;
  pointer-events: none;
}
/* Extra mid-page blue glow to add depth */
.why-bg-glow-1::after {
  content: '';
  position: absolute;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(38,147,205,0.04) 0%, transparent 70%);
  bottom: -300px; right: -200px;
}
@keyframes why-glow-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.06); }
  66%      { transform: translate(-20px,35px) scale(0.96); }
}

/* ── MAGNETIC CURSOR AURA ── */
#why-aura {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  /* Logo blue aura follows cursor */
  background: radial-gradient(circle,
    rgba(38,147,205,0.20) 0%,
    rgba(137,191,57,0.06) 55%,
    transparent 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%,-50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

/* ── SECTION HEADER ── */
.why-header {
  position: relative; z-index: 5; text-align: center;
  max-width: 700px; margin: 0 auto 60px;
}
.why-label {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.20em; color: #5a8c1d; text-transform: uppercase;
  margin-bottom: 14px; opacity: 0;
  /* Logo green pill chip */
  background: rgba(137,191,57,0.14);
  border: 1px solid rgba(137,191,57,0.40);
  padding: 6px 14px; border-radius: 100px;
}
.why-headline {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900;
  color: #0f172a; line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 18px; opacity: 0;
}
/* GRADIENT SHIMMER on headline — deep navy → logo blue → rich green → logo blue → deep navy */
.why-headline span.shimmer-text {
  background: linear-gradient(90deg,
    #0f172a 0%,
    #2693cd 30%,
    #5a8c1d 55%,
    #2693cd 80%,
    #0f172a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: why-text-shimmer 4s linear infinite;
}
@keyframes why-text-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 220% center; }
}
.why-subtext {
  font-size: 1.05rem; color: #334155;
  line-height: 1.75; margin: 0; opacity: 0;
}

/* ── BENTO GRID ── */
.why-bento {
  position: relative; z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px; margin: 0 auto 50px;
}
.why-card.why-card-large { grid-column: span 2; }

/* ── BENTO CARD ── */
.why-card {
  position: relative; overflow: hidden;
  /* Logo dark + slight blue tint for glass effect */
  background: #ffffff;
  border: 1px solid rgba(38,147,205,0.18);
  border-radius: 20px; padding: 32px 28px 28px;
  cursor: default; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; transform: translateY(50px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(38,147,205,0.04);
}
.why-card:hover {
  /* On hover: stronger blue glass + green inset ring */
  background: #ffffff;
  border-color: rgba(38,147,205,0.40);
  box-shadow:
    0 20px 48px rgba(38,147,205,0.12),
    inset 0 0 0 1px rgba(137,191,57,0.18);
  transform: translateY(-6px);
}

/* ── ANIMATED SHIMMER BORDER (logo blue → green rotation) ── */
@property --border-angle {
  syntax: '<angle>'; inherits: false; initial-value: 0deg;
}
@keyframes why-border-rotate { to { --border-angle: 360deg; } }

.why-card-border {
  position: absolute; inset: 0; border-radius: 20px; z-index: 0;
  pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--border-angle, 0deg) at 50% 50%,
    transparent  0deg,
    #2693cd      70deg,
    #89bf39     130deg,
    transparent 180deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  transition: opacity 0.3s;
}
.why-card:hover .why-card-border {
  opacity: 1;
  animation: why-border-rotate 2.5s linear infinite;
}
@supports not (background: conic-gradient(red, blue)) {
  .why-card-border { display: none !important; }
}

/* ── ICON ── */
.why-icon-wrap {
  position: relative; width: 60px; height: 60px; border-radius: 16px;
  background: var(--icon-bg, #2693cd);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: white; flex-shrink: 0;
  z-index: 2;
  /* Glow shadow uses the icon's own bg color */
  box-shadow: 0 8px 28px color-mix(in srgb, var(--icon-bg, #2693cd) 55%, transparent);
}
/* PULSE RINGS — logo colours */
.why-pulse-ring {
  position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--icon-bg, #2693cd);
}
.why-pulse-ring.r1 { inset: -8px;  opacity: 0; animation: why-pulse 2.8s ease-out infinite; }
.why-pulse-ring.r2 { inset: -18px; opacity: 0; animation: why-pulse 2.8s ease-out infinite 0.6s; }
@keyframes why-pulse {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.why-card:hover .why-pulse-ring { animation-play-state: running; }
.why-card:not(:hover) .why-pulse-ring { animation-play-state: paused; }

/* ── CARD TEXT ── */
.why-card-body { position: relative; z-index: 2; flex: 1; }
.why-card-title {
  font-size: 1.05rem; font-weight: 700; color: #1a3a4a;
  margin: 0 0 8px; line-height: 1.25;
}
.why-card-text {
  font-size: 0.85rem; color: #4a5568;
  line-height: 1.65; margin: 0;
}

/* ── STAT BADGE ── */
.why-card-stat {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  background: rgba(137,191,57,0.12);
  border: 1px solid rgba(137,191,57,0.30);
  border-radius: 12px;
  width: fit-content; align-self: flex-end; margin-top: auto;
}
.why-stat-num {
  font-size: 1.6rem; font-weight: 900; color: #15803d; line-height: 1;
  display: block;
}
.why-stat-lbl {
  font-size: 0.68rem; color: #166534;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── HOVER REVEAL LAYER ── */
.why-card-hover-reveal {
  position: absolute; inset: 0; z-index: 1; border-radius: 20px;
  background: linear-gradient(135deg,
    rgba(38,147,205,0.10) 0%,
    rgba(137,191,57,0.06) 100%);
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.why-card:hover .why-card-hover-reveal { opacity: 1; transform: scale(1); }

/* ── STAT MARQUEE STRIP ── */
.why-stat-strip {
  position: relative; z-index: 5;
  overflow: hidden; padding: 26px 0;
  /* Logo blue tinted separator lines */
  border-top:    1px solid rgba(38,147,205,0.15);
  border-bottom: 1px solid rgba(38,147,205,0.15);
  margin-bottom: 40px;
  /* Very subtle blue wash behind the strip */
  background: rgba(38,147,205,0.03);
}
.why-stat-strip::before, .why-stat-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2;
}
/* Fade out at edges matching the section gradient */
.why-stat-strip::before { left:  0; background: linear-gradient(to right,  #ffffff, transparent); }
.why-stat-strip::after  { right: 0; background: linear-gradient(to left,   #ffffff, transparent); }
.why-stat-track {
  display: flex; gap: 60px; width: max-content;
  animation: why-marquee 18s linear infinite;
}
.why-stat-track:hover { animation-play-state: paused; }
@keyframes why-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.why-stat-item {
  display: flex; align-items: center; gap: 16px;
  white-space: nowrap; padding: 0 20px;
}
/* Alternating logo-color numbers */
.why-stat-item:nth-child(odd)  .why-stat-item-num { color: #2693cd; }
.why-stat-item:nth-child(even) .why-stat-item-num { color: #89bf39; }
.why-stat-item-num {
  font-size: 2.1rem; font-weight: 900; line-height: 1;
}
.why-stat-item-lbl { font-size: 0.78rem; color: #4a5568; font-weight: 600; }
/* Separator dot — logo blue */
.why-stat-sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(38,147,205,0.5);
  flex-shrink: 0;
}

/* ── CLOSING LINE ── */
.why-closing {
  position: relative; z-index: 5;
  text-align: center; font-size: 0.95rem;
  /* Logo green tint to close the section on brand */
  color: #5a8c1d;
  letter-spacing: 0.05em;
  font-style: italic; margin: 0;
}

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
  .why-bento { grid-template-columns: repeat(2,1fr); }
  .why-card:nth-child(1), .why-card:nth-child(6) { grid-column: span 2; }
}
@media(max-width: 600px) {
  .why-us-section { padding: 60px 20px 50px; }
  .why-bento { grid-template-columns: 1fr; gap: 12px; }
  .why-card:nth-child(1), .why-card:nth-child(6) { grid-column: span 1; }
  .why-headline { font-size: 1.8rem; }
}
@media(max-width: 480px) {
  .why-card { padding: 20px 16px !important; }
  .why-headline { font-size: 1.5rem !important; }
}

/* ── REDUCED MOTION ── */
@media(prefers-reduced-motion: reduce) {
  .why-bg-grid, .why-bg-glow-1, .why-bg-glow-2,
  .why-stat-track, .why-card-border { animation: none; }
  .why-card { opacity: 1; transform: none; }
  .why-label, .why-headline, .why-subtext { opacity: 1; }
}

/* ── Bento Card Upgrades ── */
.why-card-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.10; transition: opacity 0.3s, transform 0.4s;
  pointer-events: none;
}
.why-card:hover .why-card-bg-img {
  opacity: 0.18; transform: scale(1.04);
}
.why-card-btn {
  position: relative; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; width: fit-content; margin-top: 14px;
  padding: 8px 18px; border-radius: 30px;
  background: #2693cd; color: #fff !important;
  font-weight: 700; font-size: 0.78rem; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.25s;
}
.why-card-btn:hover {
  background: #89bf39;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(137,191,57,0.3);
}
.why-card-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}
.why-card-slide.active {
  opacity: 0.22;
}
.why-card:hover .why-card-slide.active {
  opacity: 0.35;
}

