/**********************************************************************************************/
/******************************* HOME SECTION - METHOD ****************************************/
/*********************** Blue / Navy Hero-compatible premium version **************************/
/***************************** Reduced height by approx. 10% **********************************/
/**********************************************************************************************/

.apm-home-method,
.apm-home-method * {
  box-sizing: border-box;
}

.apm-home-method {
  --apm-method-bg-1: #001f3f;
  --apm-method-bg-2: #062f57;
  --apm-method-bg-3: #071a32;
  --apm-method-bg-4: #0b2948;

  --apm-method-text: #ffffff;
  --apm-method-text-soft: rgba(255, 255, 255, 0.78);

  --apm-method-gold: #f4b33d;
  --apm-method-gold-soft: rgba(244, 179, 61, 0.18);
  --apm-method-line: rgba(244, 179, 61, 0.72);

  --apm-method-blue-soft: rgba(69, 137, 191, 0.22);
  --apm-method-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);

  position: relative;
  overflow: hidden;
  padding: 99px 6vw 90px;
  background:
    radial-gradient(circle at 72% 18%, rgba(68, 139, 196, 0.28) 0%, rgba(68, 139, 196, 0) 34%),
    radial-gradient(circle at 22% 82%, rgba(0, 74, 132, 0.38) 0%, rgba(0, 74, 132, 0) 32%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(115deg, #001b37 0%, #062f57 42%, #071a32 100%);
  color: var(--apm-method-text);
  font-family: "Barlow", "Inter", Arial, sans-serif;
}

/* Dark blue overlay for Hero-like depth */
.apm-home-method::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 22, 45, 0.92) 0%,
      rgba(0, 32, 63, 0.76) 42%,
      rgba(5, 34, 60, 0.88) 100%
    );
  z-index: 0;
  pointer-events: none;
}

/* Premium golden arc */
.apm-home-method::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -130px;
  width: 620px;
  height: 620px;
  border: 2px solid rgba(244, 179, 61, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 46px rgba(244, 179, 61, 0.04),
    0 0 0 92px rgba(244, 179, 61, 0.025);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.apm-home-method__wrap {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
}

/* subtle dot patterns */
.apm-home-method__wrap::before,
.apm-home-method__wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.34;
  background-image: radial-gradient(rgba(244, 179, 61, 0.9) 1px, transparent 1px);
  background-size: 14px 14px;
}

.apm-home-method__wrap::before {
  top: -30px;
  left: 35%;
  width: 160px;
  height: 110px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

.apm-home-method__wrap::after {
  right: -10px;
  bottom: -10px;
  width: 170px;
  height: 130px;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}

/* Header */
.apm-home-method__header {
  max-width: 980px;
  margin: 0 auto 63px;
  text-align: center;
}

.apm-home-method__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--apm-method-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.apm-home-method__eyebrow-mark {
  font-size: 16px;
  line-height: 1;
  opacity: 0.95;
}

.apm-home-method__title {
  margin: 0;
  color: #ffffff !important;
  font-family: "Barlow", serif;
  font-size: clamp(40px, 3vw, 54px);
  line-height: 1.02;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.apm-home-method__subtitle {
  max-width: 860px;
  margin: 20px auto 0;
  color: var(--apm-method-text-soft);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.52;
  font-weight: 400;
}

.apm-home-method__divider {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.apm-home-method__divider span {
  position: relative;
  display: block;
  width: 170px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(244, 179, 61, 0) 0%,
    rgba(244, 179, 61, 0.95) 28%,
    rgba(244, 179, 61, 0.95) 72%,
    rgba(244, 179, 61, 0) 100%
  );
}

.apm-home-method__divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--apm-method-gold);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 0 6px rgba(0, 31, 63, 0.92);
}

/* Flow layout */
.apm-home-method__flow {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 82px minmax(170px, 1fr) 82px minmax(170px, 1fr) 82px minmax(170px, 1fr);
  align-items: start;
  gap: 0;
}

.apm-home-method__step {
  position: relative;
  text-align: center;
}

.apm-home-method__icon-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 29px;
}

.apm-home-method__icon-circle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 173px;
  height: 173px;
  border: 2px solid rgba(244, 179, 61, 0.92);
  border-radius: 50%;
  color: var(--apm-method-gold);
  background:
    radial-gradient(circle at 50% 35%, rgba(69, 137, 191, 0.26) 0%, rgba(69, 137, 191, 0) 68%),
    linear-gradient(180deg, rgba(7, 48, 86, 0.72) 0%, rgba(2, 23, 43, 0.72) 100%);
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.04),
    0 15px 32px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.apm-home-method__icon-circle::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.apm-home-method__icon-circle svg {
  width: 70px;
  height: 70px;
}

.apm-home-method__step-number {
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(244, 179, 61, 0.94);
  background: linear-gradient(180deg, #07345d 0%, #001f3f 100%);
  color: var(--apm-method-gold);
  font-family: "Barlow", serif;
  font-size: 25px;
  font-weight: 700;
  box-shadow: var(--apm-method-shadow);
}

.apm-home-method__step-title {
  margin: 0;
  color: var(--apm-method-text);
  font-family: "Barlow", serif;
  font-size: clamp(31px, 2.2vw, 47px);
  line-height: 1.02;
  font-weight: 700;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.apm-home-method__step-line {
  width: 48px;
  height: 3px;
  margin: 12px auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0a92f 0%, #f6c15d 100%);
}

.apm-home-method__step-text {
  max-width: 240px;
  margin: 0 auto;
  color: var(--apm-method-text-soft);
  font-size: 17px;
  line-height: 1.48;
  font-weight: 400;
}

/* Connectors */
.apm-home-method__connector {
  position: relative;
  align-self: start;
  margin-top: 86px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(244, 179, 61, 0.76) 0 8px,
    transparent 8px 14px
  );
}

.apm-home-method__connector::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid rgba(244, 179, 61, 0.95);
  border-right: 2px solid rgba(244, 179, 61, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

/* Medium */
@media (max-width: 1280px) {
  .apm-home-method {
    padding: 86px 4vw 79px;
  }

  .apm-home-method__header {
    margin-bottom: 56px;
  }

  .apm-home-method__flow {
    grid-template-columns: minmax(150px, 1fr) 58px minmax(150px, 1fr) 58px minmax(150px, 1fr) 58px minmax(150px, 1fr);
  }

  .apm-home-method__icon-circle {
    width: 151px;
    height: 151px;
  }

  .apm-home-method__icon-circle svg {
    width: 61px;
    height: 61px;
  }

  .apm-home-method__step-number {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  .apm-home-method__connector {
    margin-top: 75px;
  }

  .apm-home-method__step-title {
    font-size: clamp(29px, 2.2vw, 42px);
  }

  .apm-home-method__step-text {
    font-size: 16px;
    line-height: 1.45;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .apm-home-method {
    padding: 77px 24px 72px;
  }

  .apm-home-method__header {
    margin-bottom: 41px;
  }

  .apm-home-method__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .apm-home-method__connector {
    display: none;
  }

  .apm-home-method__step {
    padding: 0 10px;
  }

  .apm-home-method__icon-circle {
    width: 144px;
    height: 144px;
  }

  .apm-home-method__icon-circle svg {
    width: 58px;
    height: 58px;
  }

  .apm-home-method__step-title {
    font-size: clamp(28px, 4vw, 38px);
  }

  .apm-home-method__step-text {
    max-width: 270px;
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .apm-home-method {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 63px 0 67px !important;
    overflow-x: hidden !important;
  }

  .apm-home-method::after {
    top: -170px;
    right: -220px;
    width: 420px;
    height: 420px;
  }

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

  .apm-home-method__wrap::before,
  .apm-home-method__wrap::after {
    display: none;
  }

  .apm-home-method__header {
    margin-bottom: 34px;
    text-align: left;
  }

  .apm-home-method__eyebrow {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  .apm-home-method__title {
    font-size: clamp(36px, 11vw, 52px);
    line-height: 0.98;
  }

  .apm-home-method__subtitle {
    margin-top: 14px;
    font-size: 16.5px;
    line-height: 1.5;
  }

  .apm-home-method__divider {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .apm-home-method__divider span {
    width: 130px;
  }

  .apm-home-method__flow {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .apm-home-method__step {
    padding: 0;
  }

  .apm-home-method__icon-wrap {
    margin-bottom: 25px;
  }

  .apm-home-method__icon-circle {
    width: 130px;
    height: 130px;
  }

  .apm-home-method__icon-circle svg {
    width: 54px;
    height: 54px;
  }

  .apm-home-method__step-number {
    width: 46px;
    height: 46px;
    bottom: -13px;
    font-size: 22px;
  }

  .apm-home-method__step-title {
    font-size: 36px;
    line-height: 1;
  }

  .apm-home-method__step-line {
    margin: 11px auto 13px;
  }

  .apm-home-method__step-text {
    max-width: 320px;
    font-size: 15.5px;
    line-height: 1.46;
  }
}