/* HOME-Section - Testimonials - Trusted by Agile professionals */
/* Premium font system: Sora + Inter */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@500;600;700;800&display=swap');

.apm-testimonials-section,
.apm-testimonials-section * {
  box-sizing: border-box;
}

.apm-testimonials-section {
  position: relative;
  overflow: hidden;
  padding: 104px 6vw 96px;
  background:
    radial-gradient(circle at 8% 6%, rgba(217, 154, 74, 0.18) 0%, rgba(217, 154, 74, 0) 30%),
    radial-gradient(circle at 92% 94%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, #061426 0%, #0B163F 44%, #12345A 72%, #156271 100%);
  color: #FFFFFF;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

.apm-testimonials-section::before {
  content: "";
  position: absolute;
  top: -190px;
  left: -190px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 28px rgba(217, 154, 74, 0.08);
  z-index: 0;
}

.apm-testimonials-section::after {
  content: "";
  position: absolute;
  right: -190px;
  bottom: -190px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 28px rgba(217, 154, 74, 0.08);
  z-index: 0;
}

.apm-testimonials-wrap {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  margin: 0 auto;
}

/* HEADER - aligned with Expertise section */

.apm-testimonials-header {
  max-width: 960px;
  margin: 0 0 62px;
  text-align: left;
}

.apm-testimonials-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: #F5A623 !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.apm-testimonials-eyebrow strong {
  color: #F5A623 !important;
  font-weight: 800;
}

.apm-testimonials-eyebrow-line {
  display: inline-block;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F5A623, #E8B46C);
  flex-shrink: 0;
}

.apm-testimonials-eyebrow-line--long {
  width: 52px;
}

.apm-testimonials-eyebrow-line--short {
  width: 28px;
}

.apm-testimonials-title {
  max-width: 920px;
  margin: 0;
  color: #FFFFFF !important;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(42px, 3.15vw, 56px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.apm-testimonials-title span {
  color: #F5A623 !important;
  font-family: 'Sora', system-ui, sans-serif;
}

.apm-testimonials-line {
  width: 78px;
  height: 3px;
  margin: 44px 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F5A623, #E8B46C);
}

/* GRID */

.apm-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* CARD */

.apm-testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 32px 26px;
  border: 1px solid rgba(217, 154, 74, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 241, 236, 0.96));
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.apm-testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 154, 74, 0.65);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.apm-testimonial-quote-mark {
  position: absolute;
  right: 24px;
  top: 20px;
  color: rgba(217, 154, 74, 0.16);
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 78px;
  line-height: 1;
  font-weight: 700;
}

.apm-testimonial-stars {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  color: #D99A4A;
  font-size: 21px;
  letter-spacing: 2px;
}

.apm-testimonial-text {
  position: relative;
  z-index: 2;
  margin: 0 0 28px;
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 19px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.apm-testimonial-footer {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #E7D7C2;
}

.apm-testimonial-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #FFFFFF;
  border: 2px solid rgba(217, 154, 74, 0.72);
  box-shadow: 0 10px 22px rgba(11, 22, 63, 0.22);
  overflow: visible;
}

.apm-testimonial-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
}

.apm-testimonial-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(11, 22, 63, 0.16));
  z-index: 2;
}

.apm-testimonial-monogram {
  position: relative;
  z-index: 3;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.32);
}

.apm-testimonial-avatar--fr::before {
  background: linear-gradient(135deg, #284F9E 0%, #667DB6 48%, #D94B57 100%);
}

.apm-testimonial-avatar--us::before {
  background: linear-gradient(135deg, #1D3D7A 0%, #4969A8 45%, #B43A45 100%);
}

.apm-testimonial-avatar--jp::before {
  background: linear-gradient(135deg, #BC002D 0%, #D66A7A 48%, #0B163F 100%);
}

.apm-testimonial-avatar--hu::before {
  background: linear-gradient(135deg, #CE2939 0%, #D99A4A 45%, #477050 100%);
}

.apm-testimonial-flag {
  position: absolute;
  right: -10px;
  bottom: -5px;
  z-index: 4;
  width: 30px;
  height: 20px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

.apm-testimonial-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.apm-testimonial-role {
  margin: 4px 0 0;
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.apm-testimonial-website {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  color: #D99A4A !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.apm-testimonial-website:hover {
  color: #0B163F !important;
  text-decoration: underline;
}

.apm-testimonial-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(217, 154, 74, 0.12);
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* TABLET */

@media (max-width: 1200px) {
  .apm-testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
  }

  .apm-testimonial-card {
    min-height: auto;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .apm-testimonials-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 68px 0 72px !important;
    overflow-x: hidden !important;
  }

  .apm-testimonials-wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin: 0 auto !important;
  }

  .apm-testimonials-section::before {
    top: -150px;
    left: -150px;
    width: 320px;
    height: 320px;
  }

  .apm-testimonials-section::after {
    right: -150px;
    bottom: -150px;
    width: 320px;
    height: 320px;
  }

  .apm-testimonials-header {
    max-width: 100%;
    margin-bottom: 38px;
    text-align: left;
  }

  .apm-testimonials-eyebrow {
    gap: 10px;
    margin-bottom: 24px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .apm-testimonials-eyebrow-line--long {
    width: 36px;
  }

  .apm-testimonials-eyebrow-line--short {
    width: 20px;
  }

  .apm-testimonials-title {
    max-width: 100%;
    font-size: clamp(36px, 11vw, 50px);
    line-height: 1.06;
    letter-spacing: -0.04em;
  }

  .apm-testimonials-line {
    width: 64px;
    margin-top: 30px;
  }

  .apm-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .apm-testimonial-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .apm-testimonial-text {
    font-size: 18px;
    line-height: 1.56;
  }

  .apm-testimonial-role {
    font-size: 15px;
    line-height: 1.4;
  }
}