/* =========================================================
   INDEX PAGE ONLY  (linked only from index.html)
   1. Section spacing
   2. Services cards  – pink/red  ->  blue theme
   3. Testimonials    – new card design
   ========================================================= */

:root {
  --ix-blue: #0f4c92;
  --ix-blue-2: #3a6ea5;
  --ix-navy: #0a1428;
  --ix-tint: #eaf1fb;
  --ix-line: #dbe5f2;
  --ix-space: clamp(60px, 7vw, 110px);
}

/* ---------------------------------------------------------
   1. SECTION SPACING  (space above & below every section)
   --------------------------------------------------------- */
main>section:not(.hero-v3):not(.about-v3) {
  padding-top: var(--ix-space);
  padding-bottom: var(--ix-space);
}

/* about section already has its own padding – just keep it balanced */
.about-v3 {
  padding-bottom: var(--ix-space);
}

/* team strip: heading has space, stats need a little air below strip */
.team .team__stats {
  margin-top: 60px;
}

/* ---------------------------------------------------------
   2. OUR SERVICES CARDS  (blue theme)
   --------------------------------------------------------- */
.sg {
  counter-reset: svc;
  gap: 24px;
}

.sc {
  counter-increment: svc;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  padding: 34px 28px 28px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ix-line);
  box-shadow: 0 8px 26px rgba(15, 76, 146, .07);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
}

/* top accent bar */
.sc::before {
  height: 4px;
  background: linear-gradient(90deg, var(--ix-blue), var(--ix-blue-2), #7fb3e3);
}

/* soft corner glow */
.sc .sc__glow {
  display: none;
}

/* card number 01 … 08 */
.sc::after {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c5d5ea;
  transition: color .35s ease;
}

/* icon tile */
.sc .sc__icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  font-size: 24px;
  color: var(--ix-blue);
  background: linear-gradient(135deg, #eef4fc, #d9e6f8);
  box-shadow: inset 0 0 0 1px rgba(15, 76, 146, .08);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}

.sc h3 {
  font-size: 19px;
  line-height: 1.3;
  color: #0a1428;
  transition: color .35s ease;
}

.sc p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #4a5a70;
  transition: color .35s ease;
}

.sc>a {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ix-blue);
  letter-spacing: 0;
  transition: color .35s ease, gap .3s ease;
}

.sc:hover {
  transform: translateY(-8px);
  background: linear-gradient(160deg, #0f4c92 0%, #0a2a5c 100%);
  border-color: var(--ix-blue);
  box-shadow: 0 24px 46px rgba(15, 76, 146, .30);
}

.sc:hover::after {
  color: rgba(255, 255, 255, .35);
}

.sc:hover .sc__icon {
  transform: scale(1.06) rotate(-4deg);
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.sc:hover h3 {
  color: #fff;
}

.sc:hover p {
  color: rgba(255, 255, 255, .8);
}

.sc:hover>a {
  color: #fff;
  letter-spacing: .4px;
}

/* ---------------------------------------------------------
   3. TESTIMONIALS
   --------------------------------------------------------- */
.testi {
  background: linear-gradient(180deg, #f4f8fd 0%, #e3ecf8 100%);
}

.tg {
  gap: 26px;
  margin-top: 0;
  align-items: stretch;
}

.tc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 26px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--ix-line);
  box-shadow: 0 10px 30px rgba(15, 76, 146, .07);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.tc:hover {
  background: #fff;
  transform: translateY(-8px);
  border-color: rgba(15, 76, 146, .35);
  box-shadow: 0 22px 44px rgba(15, 76, 146, .16);
}

/* big decorative quote mark */
.tc::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  right: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 110px;
  line-height: 1;
  color: #e3ecf8;
  pointer-events: none;
}

/* blue accent bar at the bottom */
.tc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ix-blue), #7fb3e3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.tc:hover::after {
  transform: scaleX(1);
}

/* order: stars -> text -> person */
.tc .st {
  order: 0;
  position: relative;
  margin-bottom: 16px;
  font-size: 17px;
  letter-spacing: 3px;
  color: #f5a623;
}

.tc p {
  order: 1;
  position: relative;
  flex: 1;
  margin: 0 0 24px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #2b3a4f;
}

/* NOTE: .who is also used in style.css for another section (big padding,
   white bg). Reset it here so the testimonial footer looks right. */
.tc .who {
  order: 2;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 0;
  margin: 0;
  overflow: visible;
  background: none;
  border-top: 1px solid var(--ix-line);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #0a1428;
}

.tc .av {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, var(--ix-blue), var(--ix-blue-2));
  box-shadow: 0 6px 14px rgba(15, 76, 146, .28);
}

/* ---------------------------------------------------------
   Misc – keep every accent blue on this page
   --------------------------------------------------------- */
.loc {
  background: var(--ix-blue);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .sc {
    padding: 28px 22px 24px;
  }

  .tc {
    padding: 30px 22px 22px;
  }

  .team .team__stats {
    margin-top: 40px;
  }
}

/* ---------------------------------------------------------
   Services: 3 cards per row (8 cards -> 3 + 3 + 2 centred)
   --------------------------------------------------------- */
.sg {
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.sg > .sc { grid-column: span 2; }
.sg > .sc:nth-child(7) { grid-column: 2 / 4; }
.sg > .sc:nth-child(8) { grid-column: 4 / 6; }

@media (max-width: 900px) {
  .sg { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .sg > .sc,
  .sg > .sc:nth-child(7),
  .sg > .sc:nth-child(8) { grid-column: auto; }
}
@media (max-width: 600px) {
  .sg { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   ABOUT: feature cards moved into the content column
   (compact list, uniform icon chips, less empty space)
   --------------------------------------------------------- */
.about-v3__grid { margin-bottom: 0; gap: clamp(36px, 4vw, 64px); }
.about-v3__media { padding: 24px 24px 24px 0; }

.about-v3__content .about-v3__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 22px 0 4px;
}
.about-v3__content .about-v3__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: 16px;
  box-shadow: 0 8px 22px -14px rgba(15, 76, 146, .25);
}
.about-v3__content .about-v3__feature::before {
  top: 0; bottom: 0; left: 0;
  width: 4px; height: auto;
  transform: scaleY(0);
  transform-origin: top;
}
.about-v3__content .about-v3__feature:hover::before { transform: scaleY(1); }
.about-v3__content .about-v3__feature:hover {
  transform: translateX(6px);
  box-shadow: 0 16px 34px -16px rgba(15, 76, 146, .35);
}
.about-v3__content .about-v3__feature-icon {
  flex: none;
  width: 46px; height: 46px;
  margin: 0;
  display: grid; place-items: center;
  border-radius: 13px;
  background: #eaf2fc;
}
.about-v3__content .about-v3__feature-icon img {
  width: 26px; height: 26px;
  object-fit: contain;
  mix-blend-mode: multiply;   /* hides the off-white box behind icons 2 & 3 */
  filter: none;
}
.about-v3__content .about-v3__feature:hover .about-v3__feature-icon { transform: none; background: #dbe9fa; }
.about-v3__content .about-v3__feature:hover .about-v3__feature-icon img { transform: scale(1.1); }
.about-v3__content .about-v3__feature h3 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  letter-spacing: -.2px;
}
.about-v3__content .about-v3__feature-num {
  position: static;
  order: 3;
  font-size: 15px;
}
.about-v3__content .about-v3__feature:hover .about-v3__feature-num { transform: none; }

@media (max-width: 600px) {
  .about-v3__content .about-v3__feature h3 { font-size: 15px; }
}

/* about: fine-tuning */
.about-v3__content .about-v3__desc { margin-bottom: 0; }
.about-v3__content .about-v3__features { margin: 20px 0 22px; }
.about-v3__content .about-v3__feature-icon { width: 50px; height: 50px; }
.about-v3__content .about-v3__feature-icon img { width: 32px; height: 32px; }
.about-v3__content .about-v3__stats { padding: 22px 0; margin-bottom: 26px; }


/* ---------------------------------------------------------
   ABOUT: fit the whole section in one screen + badge off the faces
   --------------------------------------------------------- */
section.about-v3 { padding-top: 14px !important; padding-bottom: 24px !important; }
.about-v3__grid { gap: clamp(28px, 3.5vw, 56px); }

/* image: height follows the screen so it never gets cut off */
.about-v3__media {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 34px 34px 10px 0;
}
.about-v3__img { width: fit-content; max-width: 100%; }
.about-v3__img img {
  width: auto;
  max-width: 100%;
  max-height: min(560px, calc(100vh - 190px));
}

/* 10+ badge: sits on the top-right corner, clear of the faces */
.about-v3__badge {
  width: 104px; height: 104px;
  top: 0; right: 0;
  box-shadow: 0 14px 30px -10px rgba(229, 162, 13, .6), 0 0 0 6px rgba(250, 251, 252, .95);
}
.about-v3__badge-icon { font-size: 26px; }

/* content column: tighter so everything is visible together */
.about-v3__content .about-v3__eyebrow { margin-bottom: 14px; }
.about-v3__content .about-v3__title { font-size: clamp(32px, 3.3vw, 50px); letter-spacing: -1.5px; margin-bottom: 14px; }
.about-v3__content .about-v3__desc { font-size: 15.5px; line-height: 1.65; }
.about-v3__content .about-v3__features { margin: 14px 0 14px; gap: 8px; }
.about-v3__content .about-v3__feature { padding: 8px 16px 8px 12px; }
.about-v3__content .about-v3__feature-icon { width: 44px; height: 44px; }
.about-v3__content .about-v3__feature-icon img { width: 28px; height: 28px; }
.about-v3__content .about-v3__feature h3 { font-size: 16px; }
.about-v3__content .about-v3__stats { padding: 14px 0; margin-bottom: 18px; gap: 16px; }
.about-v3__content .about-v3__stat strong { font-size: clamp(30px, 2.8vw, 40px); }
.about-v3__content .about-v3__cta { padding-top: 14px; padding-bottom: 14px; }

@media (max-width: 900px) {
  .about-v3__img img { max-height: none; width: 100%; }
  .about-v3__media { width: 100%; max-width: 560px; padding: 30px 20px 10px 0; }
  .about-v3__img { width: 100%; }
}

@media (max-width: 900px) {
  .about-v3__media { padding-top: 52px; }
  .about-v3__badge { width: 88px; height: 88px; top: 0; right: 0; }
  .about-v3__badge-icon { font-size: 22px; }
}
