/* ============================================================
   APTR GLOBAL — Homepage v2 (Finovate-inspired structure)
   Loads AFTER styles.css. Only v2-specific sections live here.
   ============================================================ */

/* type direction: inherits global Bricolage Grotesque from styles.css */
h1, h2, h3, h4, h5 { letter-spacing: -0.02em; }

/* ============================================================
   HERO v2 — minimal headline row + wide image w/ floating stats
   ============================================================ */
.hero-v2 { position: relative; background: var(--white); overflow: hidden; padding: clamp(44px,5.5vw,76px) 0 clamp(72px,7vw,108px); }
.hero-v2 .hero-glow { position: absolute; top: -180px; right: -150px; width: 540px; height: 540px; border-radius: 50%; background: var(--blue); opacity: .06; pointer-events: none; }
.hero-top { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px,4vw,64px); align-items: end; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--amber); }
.hero-v2 h1 { color: var(--navy); font-size: clamp(38px,5vw,70px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 15ch; }
.hero-v2 h1 .accent { color: var(--blue); }
.hero-side { padding-bottom: 8px; }
.hero-side .hero-lede { font-size: clamp(15.5px,1.4vw,18px); color: var(--ink-soft); }
.hero-side .hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stage { position: relative; margin-top: clamp(34px,4vw,52px); }
.hero-stage > image-slot { width: 100%; height: clamp(320px,40vw,480px); display: block; box-shadow: var(--shadow-md); }
.hero-stats { position: relative; z-index: 3; width: calc(100% - clamp(16px,4vw,64px)); margin: -76px auto 0; display: grid; grid-template-columns: 1.5fr 0.85fr 1fr 1fr; gap: 14px; }
.hcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 134px; }
.hcard .hc-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.hcard .hc-ic svg { width: 19px; height: 19px; }
.hcard .hc-num { font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px,2.5vw,34px); line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.hcard .hc-num .suffix { color: var(--amber-600); }
.hcard .hc-num .hc-star { color: var(--amber); font-size: 0.6em; vertical-align: 0.2em; margin-left: 4px; }
.hcard .hc-lbl { font-size: 12.5px; color: var(--muted); line-height: 1.36; margin-top: 7px; }
.hcard .hc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.hcard .hc-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--navy); background: var(--amber); padding: 6px 12px; border-radius: 100px; }
.hcard.lead { background: var(--navy); border-color: transparent; }
.hcard.lead .hc-ic { background: rgba(255,255,255,0.12); color: var(--amber); }
.hcard.lead .hc-num { color: #fff; }
.hcard.lead .hc-lbl { color: rgba(255,255,255,0.66); }
.hcard.media { padding: 0; overflow: hidden; }
.hcard.media image-slot { width: 100%; height: 100%; min-height: 134px; display: block; }

/* ============================================================
   WHO WE ARE v2 — heading + numbered statements
   ============================================================ */
.who-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.who-left h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 16px; }
.who-left .who-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.who-media { position: relative; margin-top: 44px; }
.who-media image-slot { width: 100%; height: 300px; box-shadow: var(--shadow-md); position: relative; z-index: 2; }
.who-media .accent-block { position: absolute; bottom: -18px; left: -18px; width: 130px; height: 130px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--amber), var(--amber-600)); z-index: 1; }
.who-points { display: grid; }
.who-point { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.who-point:first-child { border-top: none; padding-top: 6px; }
.who-point .wp-num { font-family: var(--ff-display); font-weight: 700; font-size: 17px; color: var(--amber-600); padding-top: 4px; }
.who-point .wp-num::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--amber); margin-top: 10px; }
.who-point p { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--ink); font-weight: 500; }

/* ============================================================
   SERVICES v2 — big interactive list rows
   ============================================================ */
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.svc-head .section-head { max-width: 560px; }
.svc-list { margin-top: 48px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.svc-item {
  display: grid; grid-template-columns: 84px 1.1fr 1.3fr 64px; gap: 24px; align-items: center;
  padding: 30px clamp(10px, 2vw, 28px); border-bottom: 1px solid var(--line);
  border-radius: 0; position: relative; overflow: hidden;
  transition: background .35s var(--ease), border-radius .35s var(--ease), transform .35s var(--ease);
}
.svc-item .si-num { font-family: var(--ff-display); font-weight: 700; font-size: 15px; color: var(--muted-2); transition: color .3s var(--ease); }
.svc-item h3 { font-size: clamp(20px, 2vw, 26px); color: var(--navy); transition: color .3s var(--ease); }
.svc-item .si-desc { font-size: 15.5px; color: var(--ink-soft); transition: color .3s var(--ease); }
.svc-item .si-arr {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--navy); justify-self: end;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .35s var(--ease);
}
.svc-item .si-arr svg { width: 19px; height: 19px; }
.svc-item:hover { background: var(--navy); border-radius: var(--radius-lg); border-bottom-color: transparent; transform: translateX(6px); }
.svc-item:hover .si-num { color: var(--amber); }
.svc-item:hover h3 { color: #fff; }
.svc-item:hover .si-desc { color: rgba(255,255,255,0.72); }
.svc-item:hover .si-arr { background: var(--amber); border-color: var(--amber); color: var(--navy); transform: rotate(-45deg); }

/* ============================================================
   WHY US v2 — oversized rotating statement
   ============================================================ */
.whyus { position: relative; background: var(--paper); overflow: hidden; padding: clamp(72px, 9vw, 130px) 0; }
.whyus .deco-ring { width: 220px; height: 220px; top: -70px; right: 6%; color: var(--blue); opacity: .18; }
.whyus .dotgrid { bottom: 40px; left: 5%; width: 150px; height: 110px; color: var(--blue); opacity: .25; }
.whyus-inner { position: relative; z-index: 2; max-width: 880px; }
.whyus h2 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.14; letter-spacing: -0.02em; }
.whyus .rotator {
  display: inline-grid; vertical-align: bottom; text-align: left;
  color: var(--amber-600); position: relative;
}
.whyus .rotator span {
  grid-area: 1 / 1; white-space: nowrap;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.whyus .rotator span.on { opacity: 1; transform: translateY(0); }
.whyus .whyus-sub { margin-top: 26px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 36em; }
.whyus .whyus-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 38px; }
.whyus .whyus-note { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ============================================================
   TRUST BAND v2 — ICAI credential
   ============================================================ */
.trustband { padding: clamp(20px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.trustband-inner {
  background: var(--blue-tint); border: 1px solid #d8e3f6; border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 56px) clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center;
  position: relative; overflow: hidden;
}
.trustband-inner .dotgrid { top: -20px; right: 22%; width: 130px; height: 100px; color: var(--blue); opacity: .3; }
.tb-seal {
  width: 108px; height: 108px; border-radius: 50%; background: var(--navy); color: var(--amber);
  display: grid; place-items: center; position: relative; z-index: 2; flex: none;
  box-shadow: var(--shadow-md);
}
.tb-seal svg { width: 48px; height: 48px; }
.tb-seal::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed var(--blue-500); opacity: .5; }
.tb-copy { position: relative; z-index: 2; }
.tb-copy h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); }
.tb-copy p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 44em; }
.trustband-inner .btn { position: relative; z-index: 2; }

/* ============================================================
   TESTIMONIALS v2 — rating header
   ============================================================ */
.tst-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tst-rating { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.tst-rating .tr-num { font-family: var(--ff-display); font-weight: 700; font-size: 34px; color: var(--navy); line-height: 1; }
.tst-rating .tr-stars { color: var(--amber); letter-spacing: 2px; font-size: 15px; }
.tst-rating .tr-lbl { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ============================================================
   BLOG / INSIGHTS v2
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; position: relative; z-index: 2; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.post image-slot { width: 100%; height: 210px; border-radius: 0; display: block; }
.post-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.post-tag { color: var(--blue); background: var(--blue-tint); padding: 4px 12px; border-radius: 100px; font-weight: 700; font-size: 12px; }
.post h3 { font-size: 19px; line-height: 1.35; margin-top: 14px; color: var(--navy); }
.post .link-arrow { margin-top: auto; padding-top: 22px; }

/* ============================================================
   FAQ v2 — accordion
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.faq-intro h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 16px; }
.faq-intro p { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }
.faq-intro .btn { margin-top: 30px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s var(--ease); }
.faq-item.open { box-shadow: var(--shadow-md); border-color: transparent; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--navy);
  padding: 22px 26px;
}
.faq-q .fq-ic {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-tint); color: var(--navy);
  display: grid; place-items: center; transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--ease);
}
.faq-q .fq-ic svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .fq-ic { background: var(--amber); color: var(--navy); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a-inner { padding: 0 26px 26px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; max-width: 60ch; }

/* ============================================================
   PROOF STRIP — subtle marquee
   ============================================================ */
.proof .container { justify-content: flex-start; gap: clamp(20px,3vw,40px); }
.proof-marquee { flex: 1; overflow: hidden; position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.proof-track { display: flex; align-items: center; gap: clamp(20px,3vw,44px); width: max-content; }
.proof-track span { font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--navy); opacity: .5; letter-spacing: -0.01em; white-space: nowrap; display: inline-flex; align-items: center; gap: clamp(20px,3vw,44px); }
.proof-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); opacity: .6; }

/* ============================================================
   HOMEPAGE AMBIENT MOTION  (subtle, reduced-motion safe)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-stats .hcard { animation: floaty 6.5s ease-in-out infinite; will-change: transform; }
  .hero-stats .hcard:nth-child(1) { animation-delay: 0s; }
  .hero-stats .hcard:nth-child(2) { animation-delay: .9s; }
  .hero-stats .hcard:nth-child(3) { animation-delay: 1.7s; }
  .hero-stats .hcard:nth-child(4) { animation-delay: 2.5s; }
  .hero-stats .hcard:hover { animation-play-state: paused; }

  .hero-v2 .hero-glow { animation: drift 18s ease-in-out infinite; }
  .sectors-band .sb-glow.g1 { animation: drift 22s ease-in-out infinite; }
  .sectors-band .sb-glow.g2 { animation: drift 26s ease-in-out infinite reverse; }

  .proof-track { animation: marquee 34s linear infinite; }
  .proof-marquee:hover .proof-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .proof-track { flex-wrap: wrap; }
}

/* ============================================================
   SECTORS band — rich graphical cards
   ============================================================ */
.sectors-band { position: relative; overflow: hidden; background: linear-gradient(165deg, var(--navy) 0%, #001b4a 100%); color: #fff; padding: clamp(64px,8vw,112px) 0; }
.sectors-band .sb-glow { position: absolute; border-radius: 50%; filter: blur(72px); pointer-events: none; }
.sectors-band .sb-glow.g1 { top: -130px; left: -110px; width: 360px; height: 360px; background: var(--blue); opacity: .34; }
.sectors-band .sb-glow.g2 { bottom: -170px; right: -120px; width: 440px; height: 440px; background: #0a3fa0; opacity: .4; }
.sb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; z-index: 2; }
.sb-head .sb-head-l { max-width: 640px; }
.sb-head h2 { color: #fff; font-size: clamp(28px,3.6vw,46px); margin-top: 16px; }
.sb-head h2 .accent { color: var(--amber); }
.sb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px,4vw,56px); position: relative; z-index: 2; }
.sbx { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 26px 26px 24px; min-height: 234px; display: flex; flex-direction: column; justify-content: space-between; color: var(--navy); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sbx:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.sbx .sb-swoosh { position: absolute; right: -28px; bottom: -36px; width: 195px; height: 195px; pointer-events: none; }
.sbx .sb-swoosh path { fill: none; stroke: currentColor; stroke-width: 30; stroke-linecap: round; }
.sbx .sb-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.sbx .sb-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; }
.sbx .sb-ic svg { width: 26px; height: 26px; }
.sbx .sb-arr { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--ease); }
.sbx .sb-arr svg { width: 17px; height: 17px; }
.sbx:hover .sb-arr { transform: rotate(-45deg); }
.sbx .sb-body { position: relative; z-index: 2; }
.sbx h3 { font-size: 22px; color: inherit; }
.sbx .sb-meta { font-size: 13.5px; margin-top: 7px; opacity: .82; }
.sbx .sb-stat { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 16px; font-size: 13px; font-weight: 600; opacity: .92; }
.sbx .sb-stat b { font-family: var(--ff-display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sbx.amber { background: var(--amber); }
.sbx.amber .sb-ic { background: rgba(0,39,106,0.12); color: var(--navy); }
.sbx.amber .sb-arr { background: var(--navy); color: var(--amber); }
.sbx.amber .sb-swoosh { color: var(--navy); opacity: .12; }
.sbx.light { background: #fff; }
.sbx.light .sb-ic { background: var(--blue-tint); color: var(--blue); }
.sbx.light .sb-arr { background: var(--navy); color: #fff; }
.sbx.light .sb-swoosh { color: var(--blue); opacity: .12; }
.sbx.blue { background: var(--blue); color: #fff; }
.sbx.blue h3 { color: #fff; }
.sbx.blue .sb-ic { background: rgba(255,255,255,0.18); color: #fff; }
.sbx.blue .sb-arr { background: var(--amber); color: var(--navy); }
.sbx.blue .sb-swoosh { color: #fff; opacity: .16; }

/* ============================================================
   RESPONSIVE v2
   ============================================================ */
@media (max-width: 1080px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-side { padding-bottom: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hcard.media { display: none; }
  .who-grid, .faq-grid { grid-template-columns: 1fr; }
  .trustband-inner { grid-template-columns: auto 1fr; }
  .trustband-inner .btn { grid-column: 2; justify-self: start; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .svc-item { grid-template-columns: 48px 1fr 52px; }
  .svc-item .si-desc { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: -56px; }
  .trustband-inner { grid-template-columns: 1fr; }
  .trustband-inner .btn { grid-column: 1; }
  .svc-item { padding-left: 0; padding-right: 0; }
  .svc-item:hover { transform: none; }
  .who-point { grid-template-columns: 52px 1fr; }
  .sb-grid { grid-template-columns: 1fr; }
}
