/* =========================================================
   REFER NOW SECTION
========================================================= */

.refer-section {
  position: relative;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  isolation: isolate;
  padding: 60px 20px;
}

/* =========================================================
   BACKGROUND IMAGE
========================================================= */

.refer-section .refer-section__image {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image: url("/assets/images/home/banner/img-3.png");
  background-size: cover;
  background-position: center;

  transform: scale(1.03);
  transition: transform 1.5s ease;
}

.refer-section:hover .refer-section__image {
  transform: scale(1);
}

/* =========================================================
   OVERLAY
========================================================= */

.refer-section .refer-section__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 35%,
    rgba(0, 0, 0, 0.42) 70%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

/* =========================================================
   TOP LABEL
========================================================= */

.refer-section .refer-section__top {
  display: flex;
  align-items: center;
  gap: 12px;

  padding-bottom: 24px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.28);

  animation: referFadeDown 0.8s ease both;
}

.refer-section .refer-section__number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.refer-section .refer-section__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.refer-section .refer-section__content {
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: 80px;

  padding-top: 80px;
}

/* =========================================================
   EYEBROW
========================================================= */

.refer-section .refer-section__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 25px;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.65);

  animation: referFadeUp 0.8s 0.1s ease both;
}

.refer-section .refer-section__eyebrow span {
  display: block;
  width: 32px;
  height: 1px;
  background: #fff;
}

/* =========================================================
   HEADING
========================================================= */

.refer-section .refer-section__info h2 {
  margin: 0;

  max-width: 700px;

  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;

  font-weight: 300;
  letter-spacing: -0.045em;

  text-transform: uppercase;

  animation: referFadeUp 0.8s 0.2s ease both;
}

.refer-section .refer-section__info h2 strong {
  font-weight: 600;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.refer-section .refer-section__description {
  max-width: 540px;

  margin: 28px 0 38px;

  font-size: 15px;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.7);

  animation: referFadeUp 0.8s 0.3s ease both;
}

/* =========================================================
   BENEFITS
========================================================= */

.refer-section .refer-section__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;

  max-width: 680px;

  animation: referFadeUp 0.8s 0.4s ease both;
}

.refer-section .refer-benefit {
  display: flex;
  gap: 16px;

  padding: 20px;

  border: 1px solid rgba(255, 255, 255, 0.22);

  background: rgba(255, 255, 255, 0.07);

  backdrop-filter: blur(8px);

  transition:
    background 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.refer-section .refer-benefit:hover {
  transform: translateY(-5px);

  background: rgba(255, 255, 255, 0.13);

  border-color: rgba(255, 255, 255, 0.55);
}

.refer-section .refer-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  border: 1px solid rgba(255, 255, 255, 0.6);

  font-size: 18px;
  font-weight: 300;
}

.refer-section .refer-benefit h4 {
  margin: 0 0 7px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.refer-section .refer-benefit p {
  margin: 0;

  font-size: 12px;
  line-height: 1.55;

  color: rgba(255, 255, 255, 0.62);
}

/* =========================================================
   CTA
========================================================= */

.refer-section .refer-section__cta-wrapper {
  display: flex;
  align-items: center;
  gap: 25px;

  margin-top: 42px;

  animation: referFadeUp 0.8s 0.5s ease both;
}

.refer-section .refer-section__cta {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  min-width: 180px;
  height: 58px;

  padding: 0 18px 0 24px;

  background: #fff;
  color: #000;

  text-decoration: none;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;

  overflow: hidden;

  transition:
    color 0.35s ease,
    background 0.35s ease;
}

.refer-section .refer-section__cta::before {
  content: "";

  position: absolute;
  inset: 0;

  background: #000;

  transform: translateX(-101%);

  transition: all 0.4s ease;

  z-index: 0;
}

.refer-section .refer-section__cta:hover::before {
  transform: translateX(0);
}

.refer-section .refer-section__cta:hover {
  color: #fff;
  border: 1px solid #fff;
}

.refer-section .refer-section__cta span {
  position: relative;
  z-index: 1;
}

.refer-section .refer-section__cta-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.refer-section .refer-section__cta:hover .refer-section__cta-arrow {
  transform: translate(4px, -4px);
}

.refer-section .refer-section__cta-caption {
  max-width: 210px;

  font-size: 11px;
  line-height: 1.5;

  text-transform: uppercase;
  letter-spacing: 0.1em;

  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   SIDE CARD
========================================================= */

.refer-section .refer-section__side-card {
  align-self: center;

  justify-self: end;

  width: 280px;
  min-height: 340px;

  padding: 30px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  background: rgba(0, 0, 0, 0.3);

  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;

  animation: referFadeRight 1s 0.4s ease both;
}

.refer-section .refer-section__side-number {
  font-size: 11px;
  letter-spacing: 0.15em;
}

.refer-section .refer-section__side-line {
  width: 100%;
  height: 1px;

  margin: 25px 0 auto;

  background: rgba(255, 255, 255, 0.3);
}

.refer-section .refer-section__side-card p {
  margin: 30px 0;

  font-size: 25px;
  line-height: 1.2;

  font-weight: 300;
  letter-spacing: -0.02em;
}

.refer-section .refer-section__side-card strong {
  font-weight: 600;
}

.refer-section .refer-section__side-arrow {
  font-size: 24px;

  animation: referArrow 1.8s infinite ease-in-out;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes referFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes referFadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes referFadeRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes referArrow {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {
  .refer-section {
    min-height: auto;
  }

  .refer-section .refer-section__content {
    /* grid-template-columns: 1fr; */
    gap: 50px;

    padding-top: 60px;
  }

  .refer-section .refer-section__benefits {
    grid-template-columns: 1fr;
  }

  .refer-section .refer-section__side-card {
    justify-self: start;

    width: 100%;
    min-height: auto;
  }

  .refer-section .refer-section__side-card p {
    margin: 20px 0;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (min-width: 0px) and (max-width: 767px) {
  .refer-section {
    min-height: auto;
  }

  .refer-section .refer-section__top {
    padding-bottom: 18px;
  }

  .refer-section .refer-section__content {
    padding-top: 55px;
  }

  .refer-section .refer-section__info h2 {
    font-size: clamp(38px, 12vw, 55px);
    line-height: 1;
  }

  .refer-section .refer-section__description {
    font-size: 14px;
    margin: 22px 0 30px;
  }

  .refer-section .refer-section__content {
    grid-template-columns: 1fr;
  }

  /* .refer-section .refer-section__benefits {
    grid-template-columns: 1fr;
  } */

  .refer-section .refer-benefit {
    padding: 18px;
  }

  .refer-section .refer-section__cta-wrapper {
    gap: 18px;
  }

  .refer-section .refer-section__cta {
    width: 100%;
  }

  .refer-section .refer-section__side-card {
    display: none;
  }

  .refer-section .refer-section__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.82) 50%,
      rgba(0, 0, 0, 0.94) 100%
    );
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (min-width: 0px) and (max-width: 575.98px) {
  .refer-section {
    min-height: auto;
    padding: 30px 0;
  }

  .refer-section .refer-section__cta-wrapper {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  
  .refer-section .refer-section__benefits,
  .refer-section .refer-section__content {
    grid-template-columns: 1fr;
  }

  .refer-section .refer-section__info h2 {
    font-size: 37px;
  }

  .refer-section .refer-section__eyebrow {
    font-size: 9px;
  }

  .refer-section .refer-benefit h4 {
    font-size: 13px;
  }

  .refer-section .refer-benefit p {
    font-size: 11px;
  }
}
