/* Google Fonts */
/* Montserrat for all heading tags */

/* Lora font class */
.fontLora {
  font-family: "Lora", serif;
}

/* Avenir for paragraphs */
.fontAvenir {
  font-family:
    "Avenir",
    "Avenir Next",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* Default font for body */
body {
  font-family:
    "Avenir",
    "Avenir Next",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

*{
  /* background-color: rgba(79, 250, 0, 0.089); */
}

/* .fontLora {
  font-family: "Karin", serif;
  font-weight: bold;
  letter-spacing: normal;
} */

/* Avenir for paragraphs */
/* .fontAvenir {
  font-family: "Ubuntu", sans-serif;
} */

/* Default font for body */
/* body {
  font-family: "Ubuntu", sans-serif;
} */

/* Prevent horizontal scroll on mobile */

body {
  overflow-x: hidden;
  max-width: 100vw;
  letter-spacing: 1px;
}

/* Hero mobile: spacing like reference */
@media (max-width: 640px) {
  #home p.font-open-sans {
    line-height: 1.7;
  }
  #home .border-t.border-b p.font-montserrat {
    line-height: 1.9;
  }
}

/* Key Highlights: mobile – space for fixed Enquire Now button, avoid horizontal overflow */
@media (max-width: 640px) {
  #highlights [class*="justify-around"] {
    padding-right: 2.5rem;
  }
}

/* Key Highlights: small devices – bg.jpeg left or center */
@media (max-width: 767px) {
  .highlights-bg-panel {
    background-position: left center;
  }
}
/* gallery */
.swiper-pagination-bullet {
  background-color: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  width: 20px;
  border-radius: 10px;
}
.middle-controls {
  width: calc(var(--slide-width) + 5rem);
  height: 40px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.galBox.swiper-slide{
  width: 50%;
  @media (max-width: 640px) {
    width: 100%;
  }
}
.galBox.amenityBox.swiper-slide{
  width: 100%;
}

.galBox.swiper-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent, rgb(0 0 0 / 25%));
}
.galBox img {
  object-fit: cover;
  aspect-ratio: 5/3;
}

.galBox.amenityBox img {
  aspect-ratio: 16/7;
  @media (max-width: 1199.9px) {
    aspect-ratio: 5/3;
  }
  @media (max-width: 640px) {
    aspect-ratio: 1;
  }
}

.box-title {
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  inset: auto 1rem 1rem;
  transition: all 300ms ease-in-out;
  opacity: 0;
  @media (max-width: 768px) {
    bottom: 2rem
  }
}

.box-title .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.galBox.swiper-slide.swiper-slide-active .box-title {
  opacity: 1;
}

.box-title:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
}

.box-title i {
  transition: all 300ms ease-in-out;
}

.box-title:hover i {
  transform: scale(2, 2);
}

@media(max-width: 640px){
  .galBox img {
    aspect-ratio: 1;
  }

  .galBox .box-title {
    font-size: 14px;
    padding: 0.25rem 0.5rem;
  }
}

/* gallery */

/* 1024px devices (iPad Pro, small laptops) */
@media (min-width: 1024px) and (max-width: 1080px) {
  /* Prevent content sticking to edges */

  #home h1 {
    font-size: 56px !important;
    line-height: 1.1;
  }
  #home p {
    max-width: 380px;
  }

  #overview .container,
  #amenities .container,
  #location .container,
  #why-us .container {
    max-width: 920px;
  }

  /* Overview: add gap so "Gulshan Standard" doesn't stick to image */
  #overview .container {
    gap: 1.5rem !important;
  }

  /* Overview: flex children shrink to fit */
  #overview [class*="lg:w-[573px]"] {
    max-width: 52%;
    min-width: 0;
  }
  #overview [class*="lg:flex-shrink-0"] {
    flex-shrink: 1;
    min-width: 0;
  }
  #overview [class*="lg:w-[432px]"] {
    max-width: 100%;
  }

  /* Floor plan: two cards side-by-side */
  #floor-plan [class*="lg:w-[609px]"] {
    max-width: calc(50% - 0.5rem);
  }

  /* Amenities: flexible widths */
  #amenities [class*="lg:w-[415px]"] {
    max-width: 100%;
  }

  /* Location: fit cards and map */
  #location [class*="lg:w-[277px]"] {
    max-width: 210px;
  }
  #location [class*="lg:w-[562px]"] {
    max-width: 460px;
  }

  /* Why us: compact grid */
  #why-us > div > [class*="lg:flex"] {
    gap: 12px !important;
  }
  #why-us [class*="lg:w-[229px]"] {
    max-width: 175px;
  }

  /* Highlights: more room for content */
  #highlights [class*="lg:pl-8"] {
    padding-left: 1rem;
    padding-right: 4rem;
  }

  .nav-links {
    gap: 16px !important;
  }
  .nav-links a {
    font-size: 12px !important;
  }
}

/* Laptop (1081px+): constrain content width */
@media (min-width: 1081px) and (max-width: 1370px) {
  .container {
    max-width: 984px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1370px) {
  .container {
    margin: 0 auto;
  }
}

/* Hero: location icon orange (peach) to match design */
.icon-orange {
  filter: brightness(0) saturate(100%) invert(58%) sepia(42%) saturate(1200%)
    hue-rotate(330deg) brightness(92%) contrast(88%);
}

/* Scrolled header: inner content gets top spacing so nav links (Home, Overview etc.) aren’t stuck to top */
.navbar-scrolled > div {
  padding-top: 6px;
}

/* Hero banner slider */
.hero-slider-mobile,
.hero-slider-desktop {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hero slider dots – inactive: solid terracotta; active: white ring + white inner */
.hero-dots {
  pointer-events: none;
}
.hero-dots .hero-dot {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background-color: #ce816d;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.hero-dots .hero-dot:hover {
  background-color: #d4907a;
}
/* Active dot: white ring with white inner circle */
.hero-dots .hero-dot[aria-current="true"] {
  width: 18px;
  height: 18px;
  background-color: transparent;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-dots .hero-dot[aria-current="true"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
}

/* Hero dots: shift slightly lower on short viewports (e.g. 1366x650) */
@media (max-height: 700px) and (min-width: 1024px) {
  .hero-dots {
    bottom: 10px;
  }
}

/* Enquiry popup modal */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.enquiry-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.enquiry-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.enquiry-modal-box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.enquiry-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s;
}
.enquiry-modal-close:hover {
  background: #f0f0f0;
  color: #000;
}

/* Animated directional fill on button hover */
.btn-fill-hover {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}
.btn-fill-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: inherit;
  transform-origin: var(--mouse-x, 50%) var(--mouse-y, 50%);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.btn-fill-hover:hover::before {
  transform: scale(2.5);
}
.btn-fill-hover > * {
  position: relative;
  z-index: 1;
}
.btn-fill-hover:hover p,
.btn-fill-hover:hover span {
  color: #000 !important;
}
.btn-fill-hover:hover img {
  filter: brightness(0);
}
.btn-fill-hover:hover {
  border-color: #000;
}

/* Form validation */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-input.input-error {
  border-color: #c0392b !important;
}
.form-input.input-error:focus {
  outline: none;
}
.error-message {
  font-size: 12px;
  color: #c0392b;
  font-family: "Open Sans", sans-serif;
  min-height: 16px;
}
.form-status--success {
  color: #1e7e34;
}
.form-status--error {
  color: #c0392b;
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer background pattern */
footer {
  background-color: #000;
}

/* .galBox.swiper-slide::before {
  background-image: linear-gradient(transparent 80%, rgb(0 0 0 / 80%));
}
.galBox img {
  aspect-ratio: 3/2;
}
.gallery-slider .swiper-pagination {
  display: none;
} */

@media (min-width: 1024px) and (max-width: 1357px) {
  .div1 {
    width: 295px !important;
    height: 165px !important;
  }
  .div2 {
    width: 295px !important;
  }
  .div3 {
    height: 221px !important;
  }
  .div4 {
    width: 165px !important;
  }

  .div5 {
    width: 100% !important;
  }
  .div6 {
    width: 49.5% !important;
  }
}

@media (max-width:480px) {
  #home .open-enquiry-modal{width: 100%;}
}
