/* ===== CSS Variables ===== */
:root {
  --heading-font: "Cinzel", serif;
  --subheading-font: "DM Sans", sans-serif;
  --text-font: "DM Sans", sans-serif;
  --primary-color: #F48220;   /* Brochure brand orange – buttons & headings */
  --primary-dark:  #c9661a;   /* Hover / active state */
  --gold-accent:   #895f1a;   /* Subtle gold accent – borders, secondary */
  --body-black: #231f20;
  --alternate-section-color-1: #f4f1ea;
  --alternate-section-color-2: #ffffff;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  overflow-x: hidden;
  font-family: var(--text-font);
  color: var(--body-black);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}
p { color: #231f20; }
.row { margin-left: 0 !important; margin-right: 0 !important; }

/* ===== Typography ===== */
.top-level-heading {
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 2px;
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-weight: 700;
}
.content-heading {
  font-size: clamp(18px, 2.5vw, 22px);
  font-family: var(--subheading-font);
  letter-spacing: 1px;
  font-weight: 300;
  margin-bottom: 1rem;
}
.para-text {
  font-size: 15px;
  font-family: var(--text-font);
  color: #231f20;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ===== Navigation ===== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.5rem 1rem;
}
.logo-div  { width: 24rem; }
.logo-nav  { max-width: 45%; }
.logo-about { max-width: 65%; }
.space { gap: 2rem; }
.nav-item {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  list-style: none;
}
.nav-achor-link {
  color: #231f20;
  font-weight: 300;
  text-decoration: none;
  font-size: 15px;
  font-family: var(--subheading-font);
}
.nav-achor-link.active { font-weight: 700; color: var(--primary-color); }
.nav-achor-link:hover  { color: var(--primary-color); text-decoration: underline; }
.hamburger { display: none; }
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

/* ===== Hero ===== */
.hero-section { margin-top: 4rem; }
.hero-section .carousel-item picture { line-height: 0; display: block; width: 100%; }
.hero-section .carousel-item img    { display: block; width: 100%; height: auto; }

/* ===== Section spacing ===== */
.space-section {
  padding: 3rem 3rem 0;
}
.alternate-sction { background-color: var(--alternate-section-color-1); }

/* ===== Buttons ===== */
.common-btn {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
  text-transform: uppercase;
  font-family: var(--subheading-font);
  font-weight: 600;
}
.common-btn:hover { background-color: var(--primary-dark); color: #fff; }
.common-btn img   { margin-right: 5px; vertical-align: middle; }

/* ===== Accordion ===== */
.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: #fff;
  box-shadow: none;
}
.accordion-button::after { display: none !important; }
.accordion-button {
  -webkit-tap-highlight-color: transparent;
}

/* ===== Table ===== */
.table { margin: auto; color: #212529; }

/* ===== Floor Plan ===== */
.floor-plan { width: 100%; height: auto; }
.floor-plan-img { border: 1px solid #ccc; filter: blur(3px); }
.floor-pan-div  { position: relative; }
.floor-plan-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
}
p.fvf { background: #c8c9d8; padding: 10px; }

/* ===== Highlights ===== */
.highlight-item {
  list-style: none;
  position: relative;
  padding-left: 40px;
  margin: 20px 0;
  cursor: default;
}
.highlight-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease-in-out;
}
.highlight-item:hover::before { transform: scale(1.2); }

/* ===== Connectivity ===== */
.connectivity-box   { height: -webkit-fill-available; margin: 0; padding: 1rem; }
.conectivity-heading { font-weight: 400; font-family: var(--text-font); color: #403f4b; }
.connectivity-img { cursor: zoom-in; }

/* ===== Amenities / Gallery carousel ===== */
.gallery-box {
  display: block;
  height: 300px;
  overflow: hidden;
}
.gallery-box picture {
  display: block;
  height: 100%;
}
.gallery-box picture img,
.gallery-box > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

/* ===== Gallery Section ===== */
.gallery-section-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.gallery-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-section-img:hover img { transform: scale(1.04); }

/* Owl Nav for gallery carousel */
#gallery .owl-nav,
#amenities .owl-nav { margin-top: 16px; }
#gallery .owl-prev,
#gallery .owl-next,
#amenities .owl-prev,
#amenities .owl-next {
  background: var(--primary-color) !important;
}

/* Amenities carousel uses local CSS/JS so production never depends on Owl JS */
#amenities .amenities-carousel {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  padding: 0;
}
#amenities .amenities-carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}
#amenities .amenities-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}
#amenities .amenities-carousel .item {
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 0;
}
#amenities .amenities-carousel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: left bottom;
  border-radius: 4px;
  display: block;
}
#amenities .amenities-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.92;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
#amenities .amenities-carousel-prev { left: 12px; }
#amenities .amenities-carousel-next { right: 12px; }
@media (max-width: 991.98px) {
  #amenities .amenities-carousel .item {
    flex-basis: calc((100% - 12px) / 2);
  }
}
@media (max-width: 575.98px) {
  #amenities .amenities-carousel .item {
    flex-basis: 100%;
  }
  #amenities .amenities-carousel img {
    aspect-ratio: 1 / 1;
    object-position: left bottom;
  }
  #amenities .amenities-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  #amenities .amenities-carousel-prev { left: 8px; }
  #amenities .amenities-carousel-next { right: 8px; }
}

/* ===== About / Sky section ===== */
#ashray-groups-sec {
  background-image: url("../images/advent/advent-about-us-sky.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.clientcontainer {
  height: 361px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.sliding-background {
  position: relative;
  top: 0;
  left: 0;
  background-image: url(../images/advent/advent-aboutus.webp);
  background-repeat: repeat-x;
  background-size: contain;
  height: 361px;
  width: calc(1920px * 3);
  animation: clientSlide 40s linear infinite;
}
@keyframes clientSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1920px); }
}

/* ===== Forms ===== */
.form-control { border: 1px solid #231f20 !important; border-radius: 0; }
.form-control:focus { outline: none; box-shadow: none !important; }
.modal-header { border-bottom: none; padding: 0; }

/* ===== Scroll Reveal ===== */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--sr-delay, 0ms);
}
.sr.sr--zoom  { transform: scale(0.93); }
.sr.sr--left  { transform: translateX(-28px); }
.sr.sr--right { transform: translateX(28px); }
.sr.is-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ===== Footer ===== */
.footer { background-color: #fafafa; padding: 3rem; }
.project-title { font-size: 18px; margin-bottom: 0.25rem; }
.lastfooter { display: none; }

/* ===== Sticky footer ===== */
.sticky-footer-form {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1050; background: #ebebeb;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
.sticky-footer-form .container   { padding-top: 10px; padding-bottom: 10px; }
.sticky-footer-form .form-row    { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sticky-footer-form .form-control { height: 44px; }
.sticky-footer-form .fld         { flex: 1 1 220px; min-width: 200px; }
.sticky-footer-form .submit-wrap { flex: 0 0 160px; }
.sticky-footer-form .common-btn  { width: 100%; height: 44px; }
.sticky-footer-form .error-message { margin: 4px 0 0; }
body.has-sticky-footer { padding-bottom: 92px; }

/* ===== Misc ===== */
.ab_num_title { font-size: 15px; }
.accordion-icon { width: 30px; height: 30px; object-fit: contain; }
.text-absolute  { position: absolute; bottom: 27px; left: 20px; color: #fff; font-weight: 300; font-size: 8px; }
.para-content   { background-color: var(--primary-color); color: #fff; font-size: 14px; padding: 8px 12px; margin: 0; }
.navitem        { display: flex; align-items: center; justify-content: center; }
.sign           { font-size: 25px; }

/* ===== Nav Pills (Floor Plan tabs) ===== */
button#pills-home-tab,
button#pills-profile-tab {
  margin: 5px;
  width: 300px;
  border-radius: 0;
  background-color: var(--body-black);
  border: none;
  color: #fff;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  margin: 5px;
  width: 300px;
  border: none;
  color: #fff;
  background-color: var(--primary-color) !important;
  border-radius: 0;
}
.nav-link:focus, .nav-link:hover { color: var(--primary-color); }
.m-0 { margin: auto 12px !important; }

/* ===== Owl Carousel ===== */
.owl-prev,
.owl-next {
  background: var(--primary-color) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  color: #fff !important;
  font-size: 1.5rem !important;
}
.owl-theme .owl-nav { margin-top: 12px; }

/* ===== Borders (footer columns) ===== */
@media (min-width: 768px) {
  .border-split       { border-right: 2px solid var(--body-black); border-left: 2px solid var(--body-black); }
  .border-split-right { border-right: 2px solid var(--body-black); }
  .gap_filler         { gap: 25px !important; display: flex; flex-direction: column; }
  .about_bg           { min-height: 75vh; }
  .connectivity-box   { margin-bottom: 2rem; }
  .accordion-button   { padding: 1rem 2rem; }
  .accordion-body     { padding: 1rem; }
}

/* ===== Mobile ===== */
@media screen and (max-width: 991.98px) {
  .logo-div   { width: 15rem; }
  .logo-nav   { max-width: 50%; }
  .logo-about { max-width: 65%; }
  .footer     { padding: 3rem 1rem; }
  .content-heading { font-size: 18px; }
  .nav-achor-link  { color: #ebebeb; }
  .space-section   { padding: 1.5rem 1rem 0; }
  .gap_filler      { gap: 0; }

  .nav-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: -100%;
    top: 70px;
    text-align: center;
    transition: 0.3s;
    background-color: var(--primary-color);
    color: #ebebeb;
    box-shadow: 0 10px 27px rgba(0,0,0,0.1);
    width: 100%;
    padding: 3rem;
    z-index: 99;
  }
  .nav-item.active { left: 0; }
  .nav-achor-link:hover { color: #ebebeb; }
  .hamburger { display: block; cursor: pointer; }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .lastfooter {
    background-color: var(--primary-color);
    display: flex;
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    color: #ebebeb;
    z-index: 999;
  }
  .lastfooter a   { color: #ebebeb; text-decoration: none; }
  .last-footer-btn { border-left: 1px solid #ebebeb; }
  .common-btn     { font-size: 13px; }
  .owl-carousel   { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
  .overview       { padding-top: 3rem; padding-bottom: 3rem; }
  .connectivity-box { margin-bottom: 1rem; }
  .accordion-button { padding: 0.5rem 1rem; font-size: 12px; }
  .accordion-body   { padding: 0.5rem; font-size: 12px; }
}

@media (max-width: 575.98px) {
  body.has-sticky-footer { padding-bottom: 110px; }
  .highlight-item { margin: 12px 0; padding-left: 35px; }
  .highlight-item::before { width: 20px; height: 20px; top: 5px; }
  .logo-div { width: 13rem; }
}
