/*=============================
 WHY CHOOSE BEXFORD
==============================*/

.why-bexford {
  padding: 60px 0;
  background: linear-gradient(180deg, #004225 0%, #001e10 100%);
  position: relative;
  overflow: hidden;
}

.why-bexford::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.why-container {
  width: min(1320px, 92%);
  margin: auto;
  position: relative;
  z-index: 1;
}

.why-heading {
  text-align: center;
  margin-bottom: 30px;
}

.why-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #D4AF37;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
}

.why-heading h2 {

  margin: 18px 0;

  font-family: var(--font-serif);

  color: #FFFFF0;

  font-size: 48px;

  font-weight: 500;

  line-height: 1.1;
}

.why-heading h2 span {

  color: #D4AF37;
}

.why-heading p {

  max-width: 760px;

  margin: auto;

  color: rgba(255, 255, 240, .75);

  font-size: 19px;

  line-height: 1.9;
}

/*=============================
 TABS
==============================*/

.why-tabs {

  position: relative;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 25px;

  border-bottom: 1px solid rgba(212, 175, 55, .15);

  margin-bottom: 30px;
}

.why-tab {

  position: relative;

  padding: 22px 0;

  background: none;

  border: none;

  color: #d8d8d8;

  font-size: 18px;

  cursor: pointer;

  transition: .35s;

  font-weight: 500;
}

.why-tab:hover {

  color: #FFFFF0;
}

.why-tab.active {

  color: #FFFFF0;
}

.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  background: #D4AF37;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
  /* transition is managed by GSAP now or smooth CSS */
  transition: none;
}

/*=============================
 CONTENT
==============================*/

.why-content {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;

  align-items: center;
}

/* IMAGE */

.why-image {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.25);
  width: 75%;
  margin: 0 auto;
  animation: floatImage 8s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.why-image img {

  width: 100%;
  object-fit: cover;

  display: block;

  transition:

    opacity .4s,

    transform .7s;
}

/* TEXT */

.why-text {

  position: relative;
}

.why-text h3 {

  font-family: var(--font-serif);

  font-size: 48px;

  color: #FFFFF0;

  margin-bottom: 30px;

  line-height: 1.15;

  transition: .35s;
}

.why-text p {
  color: rgba(255, 255, 240, .82);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 20px;
  max-width: 90%;
  transition: opacity .35s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

/*=====================================================
   WHY CHOOSE BEXFORD
   PART 2C - RESPONSIVE
======================================================*/

/*=============================
Large Tablets
=============================*/

@media (max-width:1200px) {

  .why-content {

    gap: 50px;
  }

  .why-text h3 {

    font-size: 40px;
  }

  .why-image img {

    height: 500px;
  }

}

/*=============================
Tablets
=============================*/

@media (max-width:992px) {

  .why-bexford {

    padding: 100px 0;
  }

  .why-heading {

    margin-bottom: 50px;
  }

  .why-heading h2 {

    font-size: 3rem;
  }

  .why-heading p {

    font-size: 17px;
  }

  .why-content {

    grid-template-columns: 1fr;

    gap: 45px;
  }

  .why-image {

    order: 1;
    width: 100%;

  }

  .why-text {

    order: 2;
  }

  .why-image img {

    height: 460px;
  }

  .why-text {

    text-align: center;
  }

  .why-text h3 {

    font-size: 34px;
  }

}

/*=============================
Mobile
=============================*/

@media (max-width:768px) {

  .why-bexford {

    padding: 80px 0;
  }

  .why-heading {

    margin-bottom: 40px;
  }

  .why-heading h2 {

    font-size: 2.3rem;
  }

  .why-heading p {

    font-size: 16px;

    line-height: 1.7;
  }

  .why-tabs {

    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    gap: 8px;

    padding-bottom: 15px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    max-width: 100%;
    box-sizing: border-box;
  }

  .why-tabs::-webkit-scrollbar {

    display: none;
  }

  .why-tab {

    flex: 0 0 auto;

    padding: 12px 18px;

    font-size: 15px;

    scroll-snap-align: start;
  }

  .tab-indicator {
    /* Ensure indicator shows on mobile */
    display: block;
  }

  .why-image {
    width: 100%;
    border-radius: 20px;
  }

  .why-image img {

    height: 320px;
  }

  .why-text h3 {

    font-size: 30px;

    margin-bottom: 20px;
  }

  .why-text p {

    font-size: 16px;

    line-height: 1.8;
  }

}

/*=============================
Small Mobile
=============================*/

@media (max-width:576px) {

  .why-bexford {

    padding: 70px 0;
  }

  .why-container {

    width: 92%;
  }

  .why-heading h2 {

    font-size: 2rem;
  }

  .why-label {

    font-size: 13px;
  }

  .why-image {

    border-radius: 18px;
  }

  .why-image img {

    height: 260px;
  }

  .why-text h3 {

    font-size: 26px;
  }

  .why-text p {

    font-size: 15px;

    line-height: 1.75;
  }

  .why-tab {

    padding: 10px 16px;

    font-size: 14px;
  }

}

/*=============================
Extra Small Devices
=============================*/

@media (max-width:400px) {

  .why-heading h2 {

    font-size: 1.8rem;
  }

  .why-image img {

    height: 220px;
  }

  .why-text h3 {

    font-size: 22px;
  }

  .why-text p {

    font-size: 14px;
  }

}

#whyImage,
#whyTitle,
#whyDesc1,
#whyDesc2 {
  /* Handled by GSAP now */
}