/* ==========================================================================
   SWARAJ MHE INDIA — "BUILT ON TRUST" CINEMATIC ANIMATIONS & STYLING
   Precision engineered curtain reveal, frame assembly, and editorial stats
   Preserves 100% of existing typography, image aspect ratio, framing, and layout
   ========================================================================== */

.trust-section {
  position: relative;
  background: #f7f7f6;
  overflow: hidden;
  padding-top: 85px;
  padding-bottom: 85px;
}

.trust-wrap {
  position: relative;
  text-align: center;
}

/* Eyebrow & Main Heading */
.trust-wrap .section-kicker {
  font-family: var(--body, 'DM Sans', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #d4a017 !important;
  text-transform: uppercase;
  margin-bottom: 12px;
  will-change: transform, opacity;
}

.trust-wrap > h2 {
  font-family: var(--display, 'Barlow Condensed', -apple-system, sans-serif);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  color: #151613;
  text-transform: uppercase;
  will-change: transform, opacity;
}

.trust-wrap > h2 em {
  font-style: normal;
  color: #bf9b43;
}

/* Copy Block */
.trust-copy {
  max-width: 530px;
  margin: 18px auto 12px;
  will-change: transform, opacity;
}

.trust-copy h3 {
  font-family: var(--display, 'Barlow Condensed', -apple-system, sans-serif);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: #151613;
  margin: 0;
  will-change: transform, opacity;
}

.trust-copy p {
  font-family: var(--body, 'DM Sans', -apple-system, sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: #777;
  margin: 10px auto 16px;
  max-width: 440px;
  will-change: transform, opacity;
}

/* CTA Button Interaction */
.trust-copy .yellow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  will-change: transform, opacity;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trust-copy .yellow-pill span {
  display: inline-block;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trust-copy .yellow-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 186, 24, 0.35);
}

.trust-copy .yellow-pill:hover span {
  transform: translateX(5px);
}

/* ==========================================================================
   PREMIUM SCROLL-TRIGGERED IMAGE MORPH ANIMATION (OVAL TO WIDE RECTANGLE)
   ========================================================================== */
.trust-photo-stage {
  width: 100%;
  max-width: 1140px;
  height: 520px;
  margin: 20px auto 44px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .trust-photo-stage {
    height: 350px;
    margin: 16px auto 32px;
  }
}

.trust-photo-morph {
  position: relative;
  width: 280px;
  height: 160px;
  max-width: 100%;
  border-radius: 80px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
  border: none !important;
  outline: none !important;
  background: transparent !important;
  margin: auto;
  will-change: width, height, border-radius, box-shadow;
}

@media (max-width: 768px) {
  .trust-photo-morph {
    width: 200px;
    height: 120px;
    border-radius: 60px;
  }
}

.trust-photo-morph .trust-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: 50% 45% !important;
  transform-origin: center center;
  display: block;
  border: none !important;
  outline: none !important;
  will-change: transform;
}

/* Yellow Corner Accent on expanded morph */
.trust-corner-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 400ms ease, transform 400ms ease;
}

.trust-photo-morph.is-expanded .trust-corner-accent {
  opacity: 1;
  transform: scale(1);
}

.trust-corner-accent svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Statistics Grid */
.trust-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 38px 0 0;
  max-width: 880px;
  margin: auto;
}

.trust-stat {
  padding: 0 20px 23px;
  border-bottom: 1px solid #ddd;
  position: relative;
  will-change: transform, opacity;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.trust-stat:not(:last-child) {
  border-right: 1px solid #e2e2de;
}

/* Yellow Accent Dash above each Stat */
.stat-accent-bar {
  display: block;
  width: 34px;
  height: 3px;
  background: #ffc629;
  margin: 0 auto 14px;
  border-radius: 2px;
  will-change: transform, opacity;
  transition: transform 300ms ease, background-color 300ms ease;
}

.trust-stat strong {
  display: block;
  font-family: var(--display, 'Barlow Condensed', -apple-system, sans-serif);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: #151613;
  margin-bottom: 6px;
  will-change: transform, opacity;
}

.trust-stat span:not(.stat-accent-bar) {
  display: block;
  font-family: var(--body, 'DM Sans', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 500;
  color: #888;
  letter-spacing: 0.3px;
  will-change: transform, opacity;
}

@media (hover: hover) and (min-width: 769px) {
  .trust-stat:hover {
    transform: translateY(-2px);
  }

  .trust-stat:hover .stat-accent-bar {
    transform: scaleX(1.2);
    background: #f5ba18;
  }
}

/* Responsive Breakpoints */
@media (max-width: 800px) {
  .trust-wrap > h2 {
    font-size: clamp(32px, 5.5vw, 48px);
  }
  .trust-copy {
    margin-top: 20px;
  }
  .trust-photo {
    height: auto !important;
    aspect-ratio: 1448 / 1086;
  }
  .trust-side-chevron {
    width: 50px;
    height: 130px;
  }
}

@media (max-width: 560px) {
  .trust-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }
  .trust-wrap > h2 {
    font-size: clamp(26px, 8vw, 38px);
    white-space: normal;
  }
  .trust-copy {
    margin-top: 16px;
  }
  .trust-copy h3 {
    font-size: 31px;
  }
  .trust-photo {
    height: auto !important;
    aspect-ratio: 1448 / 1086;
  }
  .trust-side-chevron {
    width: 40px;
    height: 100px;
  }
  .trust-facts {
    gap: 0;
  }
  .trust-stat {
    padding: 0 8px 16px;
  }
  .trust-stat strong {
    font-size: 24px;
  }
  .trust-stat span:not(.stat-accent-bar) {
    font-size: 9px;
  }
  .stat-accent-bar {
    width: 24px;
    margin-bottom: 8px;
  }
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .trust-wrap .section-kicker,
  .trust-wrap > h2,
  .trust-copy,
  .trust-copy h3,
  .trust-copy p,
  .trust-copy .yellow-pill,
  .trust-photo,
  .trust-photo-mask,
  .trust-main-img,
  .trust-edge-trace,
  .trust-side-chevron,
  .trust-stat,
  .stat-accent-bar,
  .trust-stat strong,
  .trust-stat span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }
}
