@font-face {
  font-family: "Optima";
  src: url("../font/Optima.woff2") format("woff2"),
       url("../font/Optima.woff") format("woff");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Optima", sans-serif;
}

/* Header - Enquire Button Swipe Animation */
.btn-swipe {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-swipe::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #7E2936;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  z-index: -1;
}
.btn-swipe:hover::before {
  transform: translateX(0);
}
.btn-swipe:hover {
  color: #ffffff !important;
}

/* Hero Section Only */
.hero-subtitle {
  width: 672px;
  max-width: 100%;
  height: 25px;
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-heading {
  width: 608px;
  max-width: 100%;
  font-family: "Optima", sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 45px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 32px;
}

.btn-site-visit {
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 165px;
  height: 40px;
  padding: 10px 20px;
  border: 1px solid #ffffff;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: color 0.5s ease-in-out;
}
.btn-site-visit::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
  z-index: -1;
}
.btn-site-visit:hover::before {
  transform: translateX(0);
}
.btn-site-visit:hover {
  color: #560E19;
}

/* Hero Desktop Fixed Size */
@media (min-width: 1024px) {
  .hero-section-desktop {
    height: 672px !important;
    max-height: 672px !important;
    min-height: 672px !important;
  }
}

/* Floor Tabs Underline Animation */
.floor-tab {
  color: #6666667A;
}
.floor-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #7E2936;
  transition: width 0.5s ease-in-out;
}
.floor-tab:hover {
  color: #7E2936;
}
.floor-tab:hover::after {
  width: 100%;
}
.floor-tab.is-active {
  color: #7E2936;
}
.floor-tab.is-active::after {
  width: 100%;
}

.mySwiper1 {
  width: 100%;
}
.mySwiper1 .swiper-wrapper {
  align-items: stretch;
}
.mySwiper1 .swiper-slide.clubhouse-slide {
  height: auto !important;
}

/* Responsive utilities */
html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  .hero-heading {
    font-size: 28px;
    line-height: 36px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 20px;
    height: auto;
  }
}

@media (max-width: 639px) {
  .hero-heading {
    font-size: 22px;
    line-height: 30px;
  }
  .hero-subtitle {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.05em;
  }
  .overview-desc br {
    display: none;
  }
  .section-title {
    font-size: 28px !important;
    line-height: 34px !important;
  }
  .btn-site-visit {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 1536px) {
  .hero-heading {
    font-size: 42px;
    line-height: 52px;
  }
  .hero-subtitle {
    font-size: 20px;
    line-height: 28px;
  }
  .section-title {
    font-size: 40px !important;
    line-height: 44px !important;
  }
}

@media (min-width: 1920px) {
  .hero-heading {
    font-size: 48px;
    line-height: 58px;
  }
}

/* Gallery slides – responsive sizing */
.gallery-slide {
  width: min(1037px, 92vw);
  height: clamp(200px, 50vw, 542px);
}
@media (min-width: 640px) {
  .gallery-slide {
    width: min(1037px, 85vw);
    height: clamp(280px, 45vw, 542px);
  }
}
@media (min-width: 1024px) {
  .gallery-slide {
    width: min(1037px, 75vw);
  }
}
@media (min-width: 1536px) {
  .gallery-slide {
    width: 1037px;
    height: 542px;
  }
}

/* Clubhouse slides */
.clubhouse-slide {
  width: clamp(160px, 55vw, 218px);
  height: clamp(160px, 55vw, 218px);
}
@media (min-width: 640px) {
  .clubhouse-slide {
    width: 218px;
    height: 218px;
  }
}

.tab-content .flex.justify-between {
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 1.5rem;
}
.tab-content .flex.justify-between span:first-child {
  font-size: 14px;
  line-height: 22px;
}
.tab-content .flex.justify-between span:last-child {
  font-size: 14px;
  line-height: 22px;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .tab-content .flex.justify-between span:first-child,
  .tab-content .flex.justify-between span:last-child {
    font-size: 16px;
    line-height: 24px;
  }
}

.connectivity-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.connectivity-tabs::-webkit-scrollbar {
  display: none;
}

/* Central greens overlay */
.central-greens-overlay {
  position: absolute;
  inset: auto 0 8% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .central-greens-overlay {
    bottom: 12%;
  }
}
@media (min-width: 1280px) {
  .central-greens-overlay {
    bottom: 18%;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 91px;
}
@media (max-width: 639px) {
  html {
    scroll-padding-top: 70px;
  }
}

/* Hero fix: 533px - 639px gap */
@media (min-width: 533px) and (max-width: 639px) {
  .hero-section-desktop {
    height: 38vh !important;
    min-height: 280px !important;
  }
  .hero-subtitle {
    font-size: 13px !important;
    line-height: 19px !important;
    margin-bottom: 10px !important;
  }
  .hero-heading {
    font-size: 24px !important;
    line-height: 32px !important;
    margin-bottom: 14px !important;
  }
  .btn-site-visit {
    width: 145px !important;
    height: 34px !important;
    font-size: 10.5px !important;
    line-height: 18px !important;
  }
}
