/* =========================================================
   BEXFORD HERO
   ========================================================= */

.bexford-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;

  overflow: hidden;

  display: flex;
  align-items: center;

  background: #002d1b;

  color: #ffffff;
}


/* =========================================================
   BACKGROUND IMAGE
   ========================================================= */

.bexford-hero__bg {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  z-index: 0;
}


/* =========================================================
   DARK GREEN OVERLAY
   ========================================================= */

.bexford-hero__overlay {
  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(90deg,
      rgba(0, 35, 20, 0.96) 0%,
      rgba(0, 45, 27, 0.90) 38%,
      rgba(0, 45, 27, 0.78) 68%,
      rgba(0, 35, 20, 0.82) 100%);
}


/* =========================================================
   CONTENT
   ========================================================= */

.bexford-hero__container {
  position: relative;

  z-index: 2;

  width: min(1400px, calc(100% - 100px));

  min-height: 100vh;

  margin: 0 auto;

  display: flex;
  align-items: center;
}


.bexford-hero__content {
  width: 900px;

  padding-top: 70px;
}


/* =========================================================
   HEADING
   ========================================================= */

.bexford-hero h1 {
  margin: 0 0 32px;

  max-width: 1550px;

  font-family: Inter, Arial, Helvetica, sans-serif;

  font-size: 60px !important;

  line-height: 0.98;

  letter-spacing: -4px;

  font-weight: 700;

  font-style: normal;

  color: #ffffff;
}


.bexford-hero h1 span {
  color: #d4af37;

  font-weight: 700;

  font-style: normal;
}


/* =========================================================
   PARAGRAPHS
   ========================================================= */

.bexford-hero__text {
  max-width: 900px;

  margin: 0 0 34px;
}


.bexford-hero__text p {
  margin: 0;

  color: rgba(255, 255, 255, 0.92);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  font-size: 18px;

  line-height: 1.6;

  font-weight: 400;
}


/* Small gap between paragraphs */

.bexford-hero__text p+p {
  margin-top: 10px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.bexford-hero__buttons {
  display: flex;

  align-items: center;

  gap: 18px;

  margin-top: 30px;
}


.bexford-btn {
  min-height: 58px;

  padding: 0 30px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  border-radius: 999px;

  text-decoration: none;

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  font-size: 16px;

  font-weight: 600;

  font-style: normal;

  transition: all 0.3s ease;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.bexford-btn--primary {
  background: #d4af37;

  border: 2px solid #d4af37;

  color: #00351f;
}


.bexford-btn--primary:hover {
  background: #ffffff;

  border-color: #ffffff;

  color: #00351f;

  transform: translateY(-3px);
}


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.bexford-btn--secondary {
  background: transparent;

  border: 2px solid #ffffff;

  color: #ffffff;
}


.bexford-btn--secondary:hover {
  background: #ffffff;

  border-color: #ffffff;

  color: #00351f;

  transform: translateY(-3px);
}


/* Arrow */

.bexford-btn span {
  font-size: 21px;

  transition: transform 0.3s ease;
}


.bexford-btn:hover span {
  transform: translateX(4px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .bexford-hero__container {
    width: calc(100% - 60px);
  }

  .bexford-hero__content {
    width: 750px;
  }

  .bexford-hero h1 {
    font-size: 54px !important;

    letter-spacing: -2px;
  }

  .bexford-hero__text p {
    font-size: 16px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

  .bexford-hero {
    min-height: 100svh;
  }

  .bexford-hero__container {
    width: calc(100% - 36px);

    min-height: 100svh;
  }

  .bexford-hero__content {
    width: 100%;

    padding-top: 70px;
  }

  .bexford-hero h1 {
    font-size: clamp(40px, 11vw, 56px) !important;

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin-bottom: 22px;
  }

  .bexford-hero__text {
    margin-bottom: 25px;
  }

  .bexford-hero__text p {
    font-size: 15px;

    line-height: 1.6;
  }

  .bexford-hero__text p+p {
    margin-top: 10px;
  }

  .bexford-hero__buttons {
    flex-direction: column;

    align-items: stretch;

    gap: 12px;
  }

  .bexford-btn {
    width: 100%;

    min-height: 55px;

    font-size: 15px;
  }

  .bexford-hero__bg {
    object-position: 60% center;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .bexford-hero__container {
    width: calc(100% - 28px);
  }

  .bexford-hero h1 {
    font-size: 38px !important;

    letter-spacing: -1px;
  }

  .bexford-hero__text p {
    font-size: 14px;
  }
}

/* =====================================================
   BEXFORD SERVICES SECTION
===================================================== */

.services-section {

  position: relative;

  width: 100%;

  min-height: 100vh;

  padding: 110px 5vw 130px;

  background: #004225;

  overflow: hidden;

}


/* =====================================================
   HEADER
===================================================== */

.services-header {

  position: relative;

  z-index: 5;

  max-width: 850px;

  margin: 0 auto 85px;

  text-align: center;

}


.services-eyebrow {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 9px 25px;

  background: #d4af37;

  color: #004225;

  border-radius: 50px;

  font-family: "Inter", sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 3px;

  margin-bottom: 30px;

}


.services-header h2 {

  margin: 0;

  color: #fffff0;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(55px, 6vw, 90px);

  font-weight: 500;

  font-style: normal;

  line-height: 0.95;

}


.services-header p {

  max-width: 720px;

  margin: 35px auto 0;

  color: rgba(255, 255, 240, 0.72);

  font-family: "Inter", sans-serif;

  font-size: 16px;

  line-height: 1.7;

}


/* =====================================================
   STAGE
===================================================== */

.services-stage {

  position: relative;

  width: 100%;

  max-width: 1150px;

  height: 500px;

  margin: 0 auto;

}


/* =====================================================
   CARD BASE
===================================================== */

.service-card {

  position: absolute;

  top: 50%;

  width: 31%;

  height: 590px;

  border-radius: 32px;

  overflow: hidden;

  cursor: pointer;

  border: 1px solid rgba(212, 175, 55, 0.35);

  transform-origin: center center;

  transition:

    left 0.8s cubic-bezier(.22, 1, .36, 1),

    transform 0.8s cubic-bezier(.22, 1, .36, 1),

    width 0.8s cubic-bezier(.22, 1, .36, 1),

    height 0.8s cubic-bezier(.22, 1, .36, 1),

    filter 0.7s ease,

    opacity 0.7s ease,

    box-shadow 0.8s ease;

}


/* =====================================================
   DEFAULT CARD POSITIONS
===================================================== */

.service-card--left {

  left: 0;

  transform:
    translateY(-50%);

}


.service-card--center {

  left: 34.5%;

  transform:
    translateY(-50%);

}


.service-card--right {

  left: 69%;

  transform:
    translateY(-50%);

}


/* =====================================================
   IMAGE
===================================================== */

.service-card__image {

  position: absolute;

  inset: 0;

  z-index: 0;

  overflow: hidden;

}


.service-card__image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:

    transform 1.2s cubic-bezier(.22, 1, .36, 1);

}


/* =====================================================
   OVERLAY
===================================================== */

.service-card__overlay {

  position: absolute;

  inset: 0;

  z-index: 1;

  background: linear-gradient(175deg,
      rgba(0, 20, 10, 0.22) 0%,
      rgba(0, 30, 15, 0.52) 35%,
      rgba(0, 18, 8, 0.86) 72%,
      rgba(0, 10, 4, 0.97) 100%);
  transition: background 0.55s ease;



}


/* =====================================================
   CONTENT
===================================================== */

.service-card__content {

  position: relative;

  z-index: 3;

  width: 100%;

  height: 100%;

  padding: 45px;

  display: flex;

  flex-direction: column;

  box-sizing: border-box;

}


/* =====================================================
   TOP
===================================================== */

.service-card__top {

  display: flex;

  align-items: center;

  justify-content: space-between;

}


.service-card__icon {

  width: 50px;

  height: 50px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #D4AF37;

  font-size: 38px;

}


.service-card__number {

  color: rgba(255, 255, 240, 0.4);

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 34px;

}


/* =====================================================
   MAIN CONTENT
===================================================== */

.service-card__main {

  margin-top: auto;

  margin-bottom: 25px;

  transition:

    transform 0.7s cubic-bezier(.22, 1, .36, 1);

}


.service-card__main h3 {

  margin: 0 0 18px;

  color: #fffff0;

  font-family:
    "Cormorant Garamond",
    serif;

  font-size: 35px;

  font-weight: 500;

  line-height: 1;

}


.service-card__main p {

  max-width: 320px;

  margin: 0;

  color:
    rgba(255, 255, 240, 0.78);

  font-family:
    "Inter",
    sans-serif;

  font-size: 15px;

  line-height: 1.6;

}


/* =====================================================
   HIDDEN SERVICES
===================================================== */

.service-card__hidden {

  max-height: 0;

  opacity: 0;

  overflow: hidden;

  transform: translateY(35px);

  transition:

    max-height 0.8s cubic-bezier(.22, 1, .36, 1),

    opacity 0.5s ease,

    transform 0.8s cubic-bezier(.22, 1, .36, 1);

}


/* =====================================================
   HIDDEN SERVICE
===================================================== */

.hidden-service {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 12px 0;

  border-top: 1px solid rgba(255, 255, 240, 0.2);

  color: #fffff0;

  text-decoration: none;

  font-family:
    "Inter",
    sans-serif;

  font-size: 14px;

}


.hidden-service strong {

  font-weight: 600;

}


.hidden-service>span {

  color: #d4af37;

  font-size: 18px;

}


.hidden-service small {

  display: block;

  margin-top: 4px;

  color:
    rgba(255, 255, 240, 0.55);

  font-size: 11px;

  line-height: 1.4;

}


/* =====================================================
   BUTTON
===================================================== */

.service-card__button {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  width: 100%;

  min-height: 62px;

  margin-top: 22px;

  border: 1px solid rgba(255, 255, 240, 0.35);

  border-radius: 999px;

  color: #fffff0;

  text-decoration: none;

  font-family:
    "Inter",
    sans-serif;

  font-size: 14px;

  font-weight: 600;

  transition:

    background 0.4s ease,

    color 0.4s ease,

    border-color 0.4s ease;

}


.service-card__button span:last-child {

  opacity: 0;

  transform:
    translate(-5px, 5px);

  transition: 0.4s ease;

}


.service-card__button:hover {

  background: #d4af37;

  color: #004225;

  border-color: #d4af37;

}


.service-card__button:hover span:last-child {

  opacity: 1;

  transform:
    translate(0, 0);

}


/* =====================================================
   HOVERED CARD
===================================================== */

.service-card.is-active {

  width: 31%;

  height: 680px;

  z-index: 20;

  filter: blur(0);

  opacity: 1;

  transform:
    translateY(-50%);

  box-shadow:

    0 35px 80px rgba(0, 0, 0, 0.4),

    0 0 0 1px rgba(212, 175, 55, 0.35);

}


/* =====================================================
   ACTIVE CARD IMAGE
===================================================== */

.service-card.is-active .service-card__image img {

  transform: scale(1.08);

}


/* =====================================================
   ACTIVE CARD CONTENT
===================================================== */

.service-card.is-active .service-card__main {

  transform:
    translateY(-8px);

}


/* =====================================================
   SHOW HIDDEN SERVICES
===================================================== */

.service-card.is-active .service-card__hidden {

  max-height: 300px;

  opacity: 1;

  transform:
    translateY(0);

}


/* =====================================================
   NON ACTIVE CARDS
===================================================== */

.services-stage.has-active .service-card:not(.is-active) {

  filter: blur(5px);

  opacity: 0.3;

  transform:
    translateY(-50%) scale(0.88);

}


/* =====================================================
   LEFT CARD ACTIVE
===================================================== */

.services-stage.has-active .service-card--left.is-active {

  left: 0;

}


/* =====================================================
   CENTER CARD ACTIVE
===================================================== */

.services-stage.has-active .service-card--center.is-active {

  left: 34.5%;

}


/* =====================================================
   RIGHT CARD ACTIVE
===================================================== */

.services-stage.has-active .service-card--right.is-active {

  left: 69%;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

  .services-section {

    padding:
      80px 20px 100px;

  }


  .services-header {

    margin-bottom: 50px;

  }


  .services-header h2 {

    font-size: 55px;

  }


  .services-stage {

    height: auto;

    display: flex;

    flex-direction: column;

    gap: 20px;

  }


  .service-card {

    position: relative;

    top: auto;

    left: auto !important;

    width: 100% !important;

    height: 500px;

    transform:
      none !important;

    filter: none !important;

    opacity: 1 !important;

  }


  .service-card.is-active {

    height: 650px;

  }


  .services-stage.has-active .service-card:not(.is-active) {

    filter: none;

    opacity: 1;

  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 500px) {

  .services-header h2 {

    font-size: 48px;

  }


  .services-header p {

    font-size: 14px;

  }


  .service-card__content {

    padding: 30px 25px;

  }


  .service-card__main h3 {

    font-size: 34px;

  }

}

/* =========================================================
   BEXFORD HERO - LARGE SCREEN POSITION FIX
========================================================= */

@media (min-width: 1600px) {

  /* HERO */
  .hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
  }


  /* MAIN HERO CONTAINER */
  .hero__container {
    width: 90%;
    max-width: 1800px;
    min-height: calc(100vh - 100px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 40px;

    padding: 120px 0 80px;
  }


  /* =========================================
       LEFT CONTENT
    ========================================= */

  .hero__left {
    width: 100%;
    max-width: 720px;

    justify-self: center;

    display: flex;
    flex-direction: column;

    gap: 24px;
  }


  .hero__heading {
    font-size: 42px;
    line-height: 1.15;

    max-width: 700px;
  }


  .hero__subtext {
    font-size: 18px;
    line-height: 1.7;

    max-width: 650px;
  }


  .hero__cta-row {
    display: flex;
    align-items: center;
    gap: 16px;

    flex-wrap: wrap;
  }


  /* =========================================
       RIGHT HERO AREA
    ========================================= */

  .hero__right {
    position: relative;

    width: 100%;
    height: 650px;

    display: flex;
    align-items: center;
    justify-content: center;

    isolation: isolate;
  }


  /* =========================================
       OUTER RING
    ========================================= */

  .hero__circle-ring {
    position: absolute;

    width: 600px;
    height: 600px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 1;

    pointer-events: none;
  }


  /* =========================================
       IMAGE CIRCLE
    ========================================= */

  .hero__circle-wrap {
    position: absolute;

    width: 500px;
    height: 500px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 3;
  }


  /* =========================================
       FLOATING CARDS
    ========================================= */

  .hero__info-card {
    position: absolute;

    z-index: 10;

    min-width: 210px;

    padding: 14px 18px;
  }


  /* TOP RIGHT CARD */

  .hero__info-card:nth-child(1) {
    top: 50px;
    right: 30px;
  }


  /* BOTTOM RIGHT CARD */

  .hero__info-card:nth-child(2) {
    bottom: 50px;
    right: 0;
  }


  /* =========================================
       NAVBAR
    ========================================= */

  .nav {
    width: 90%;
    max-width: 1800px;

    margin: 0 auto;

    padding: 0 20px;
  }
}


/* =========================================================
   2000PX+
========================================================= */

@media (min-width: 2000px) {

  .hero__container {
    width: 88%;
    max-width: 2000px;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
  }


  .hero__left {
    max-width: 820px;
  }


  .hero__heading {
    font-size: 50px;
    max-width: 800px;
  }


  .hero__subtext {
    font-size: 20px;
    max-width: 750px;
  }


  .hero__right {
    height: 750px;
  }


  .hero__circle-wrap {
    width: 580px;
    height: 580px;
  }


  .hero__circle-ring {
    width: 700px;
    height: 700px;
  }
}