/* =========================================================
   VELAVAN PROPERTIES
   VILLAS PROJECT PAGE - FINAL CSS
========================================================= */


/* ================= GLOBAL RESET ================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background: #f8f9fb;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
   HEADER
========================================================= */

header {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;

  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);

  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);

  z-index: 1000;
}

.header-flex {
  width: 100%;
  height: 85px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 25px;
}

.logo img {
  height: 58px;
  width: auto;
}


/* ================= NAVIGATION ================= */

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav > a,
.nav-dropdown-link {
  color: #8c0001;
  font-size: 16px;
  font-weight: 600;
  position: relative;
}

nav > a::after,
.nav-dropdown-link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -6px;

  width: 0;
  height: 2px;

  background: linear-gradient(
    90deg,
    #144a9a,
    #8b0000
  );

  transition: width 0.3s ease;
}

nav > a:hover::after,
nav > a.active::after,
.nav-dropdown-link:hover::after {
  width: 100%;
}


/* ================= CONNECT BUTTON ================= */

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #8b0000,
    #c62828
  );

  color: #ffffff;

  padding: 12px 26px;

  border-radius: 30px;

  font-size: 15px;
  font-weight: 600;

  white-space: nowrap;

  box-shadow: 0 6px 18px rgba(139, 0, 0, 0.35);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-header:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 25px rgba(139, 0, 0, 0.45);
}

.menu-toggle {
  display: none;
}


/* =========================================================
   PROJECT DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;

  display: inline-flex;
  align-items: center;
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 6px;

  cursor: pointer;
}

.nav-dropdown-link i {
  font-size: 11px;

  transition: transform 0.3s ease;
}


/* ================= SUB MENU ================= */

.nav-submenu {
  position: absolute;

  top: 100%;
  left: 50%;

  width: 220px;

  padding: 8px;

  background: #ffffff;

  border-radius: 12px;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.15);

  transform:
    translateX(-50%)
    translateY(12px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 9999;

  transition: all 0.3s ease;
}

.nav-submenu a {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 11px 14px;

  color: #8c0001;

  font-size: 14px;
  font-weight: 600;

  border-radius: 8px;

  white-space: nowrap;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.nav-submenu a::after {
  display: none !important;
}

.nav-submenu a i {
  width: 20px;

  text-align: center;

  color: #8c0001;
}

.nav-submenu a:hover {
  background: #8c0001;
  color: #ffffff;
}

.nav-submenu a:hover i {
  color: #ffffff;
}


/* Desktop dropdown */

@media (min-width: 1025px) {

  .nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
      translateX(-50%)
      translateY(8px);
  }

  .nav-dropdown:hover .nav-dropdown-link i {
    transform: rotate(180deg);
  }

}


/* =========================================================
   PROJECT PAGE BANNER
========================================================= */

.banner-section {
  width: calc(100% - 50px);
  max-width: 1900px;

  height: 820px;

  margin: 0 auto 0;

  background-image:
    url('../images/Project Page banner img.png');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  position: relative;

  overflow: hidden;
}


/* =========================================================
   VILLAS DEVELOPMENT SECTION
========================================================= */

.project-strip {
  width: 100%;

  position: relative;

  padding: 75px 40px 90px;

  background-color: #f8f9fb;

  background-image:
    url('../images/sectionbgimg.png');

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  overflow: hidden;
}

.project-strip > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   DEVELOPMENT HEADING
========================================================= */

.project-header {
  width: 100%;

  text-align: center;

  position: relative;

  margin-bottom: 55px;
}

.project-header .bg-text {
  margin: 0;

  font-size: 120px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 4px;

  color: transparent;

  -webkit-text-stroke:
    1px rgba(140, 0, 1, 0.25);
}

.project-header .main-text {
  position: absolute;

  top: 50%;
  left: 50%;

  transform:
    translate(-50%, -55%);

  margin: 0;

  font-size: 42px;
  font-weight: 700;

  color: #8c0001;

  white-space: nowrap;
}


/* =========================================================
   VILLAS CARD WRAPPER
========================================================= */

#villas-desktop {
  display: block;
  width: 100%;
}

.villas-wrap {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 0;

  margin: 0 auto;
}


/* =========================================================
   VILLA PROJECT CARD
========================================================= */

.villa-project-card {
  position: relative;

  display: block;

  width: 100%;
  max-width: 620px;

  height: 330px;

  overflow: hidden;

  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.15);

  cursor: pointer;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.villa-project-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.22);
}


/* ================= VILLA IMAGE ================= */

.villa-project-card > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.6s ease,
    filter 0.5s ease;
}

.villa-project-card:hover > img {
  transform: scale(1.06);
}


/* =========================================================
   NORMAL CARD INFORMATION
========================================================= */

.villa-project-card .strip-info {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;

  padding: 50px 25px 22px;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.90) 0%,
      rgba(0, 0, 0, 0.58) 45%,
      rgba(0, 0, 0, 0) 100%
    );

  color: #ffffff;

  z-index: 3;
}

.villa-project-card .strip-info > h3 {
  margin: 0 0 4px;

  color: #ffffff;

  font-size: 21px;
  font-weight: 700;

  line-height: 1.3;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.villa-project-card .strip-info > p {
  margin: 0;

  color: rgba(255, 255, 255, 0.92);

  font-size: 15px;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


/* =========================================================
   VILLA HOVER PANEL
========================================================= */

.villa-project-card .villa-details {
  position: absolute;

  left: 0;
  bottom: -150px;

  width: 100%;

  min-height: 125px;

  padding: 20px 22px;

  background:
    linear-gradient(
      135deg,
      #780001,
      #a90002
    );

  display: flex;

  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  opacity: 0;

  transform: translateY(20px);

  transition:
    bottom 0.45s ease,
    opacity 0.35s ease,
    transform 0.45s ease;

  z-index: 5;
}

.villa-project-card:hover .villa-details {
  bottom: 0;

  opacity: 1;

  transform: translateY(0);
}


/* Hide normal information on hover */

.villa-project-card:hover
.strip-info > h3,

.villa-project-card:hover
.strip-info > p {

  opacity: 0;

  transform: translateY(8px);
}


/* Hover heading */

.villa-project-card
.villa-details h4 {

  margin: 0 0 13px;

  color: #fff7c5;

  font-size: 20px;
  font-weight: 700;
}


/* =========================================================
   VILLA BADGES
========================================================= */

.villa-badges {
  width: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  flex-wrap: wrap;
}

.villa-badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  margin: 0 !important;

  padding: 9px 15px;

  border-radius: 50px;

  font-size: 13px !important;
  font-weight: 600;

  line-height: 1;

  white-space: nowrap;
}

.villa-badge i {
  font-size: 13px;
}


/* Premium */

.premium-villa {
  background: #fff1b8;

  color: #8c0001 !important;
}


/* Coming Soon */

.coming-soon {
  background:
    rgba(255, 255, 255, 0.08);

  border:
    1px solid rgba(255, 247, 197, 0.8);

  color: #fff7c5 !important;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
  width: 100%;

  margin: 0;

  padding-top: 55px;

  background: #292929;

  color: #ffffff;
}

.footer-container {
  width: 100%;

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 20px 45px;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 25px;
}

.footer-col h3 {
  margin-bottom: 18px;

  color: #fff7c5;

  font-size: 20px;
}

.footer-col ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;

  font-size: 14px;
}

.footer-col ul li a {
  color:
    rgba(255, 255, 255, 0.85);

  text-decoration: none;

  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff7c5;

  padding-left: 4px;
}


/* Footer logo */

.footer-logo {
  width: 140px;

  margin-bottom: 15px;
}


/* Footer description */

.footer-about {
  margin: 0;

  color:
    rgba(255, 255, 255, 0.85);

  font-family:
    Arial,
    sans-serif;

  font-size: 16px;

  line-height: 1.6;
}


/* Business information */

.footer-info li {
  opacity: 0.9;
}


/* Footer bottom */

.footer-bottom {
  width: 100%;

  padding: 18px 10px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.15);

  background:
    rgba(0, 0, 0, 0.15);

  text-align: center;

  font-size: 13px;
}

.footer-bottom a {
  margin: 0 5px;

  color: #ffffff;

  text-decoration: none;
}


/* =========================================================
   FLOATING BUTTONS
========================================================= */

.vp-desktop-actions {
  position: fixed;

  right: 20px;
  bottom: 20px;

  display: flex;

  flex-direction: column;

  gap: 14px;

  z-index: 100000;
}

.vp-action-btn {
  width: 60px;
  height: 60px;

  border: none;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-size: 26px;

  cursor: pointer;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28);

  transition:
    transform 0.25s ease;
}

.vp-action-btn:hover {
  transform: scale(1.08);
}

.vp-whatsapp {
  background: #25d366;
}

.vp-call {
  background: #0d6efd;
}

.vp-chat {
  background: #b30000;
}


/* =========================================================
   DIALOGFLOW
========================================================= */

#vpDfMessenger {
  --df-messenger-button-titlebar-color: #8c0000;
  --df-messenger-chat-background-color: #ffffff;
  --df-messenger-font-color: #222222;
  --df-messenger-send-icon: #8c0000;
  --df-messenger-chat-icon: none;

  position: fixed !important;

  right: 20px !important;
  bottom: 95px !important;

  z-index: 99999 !important;
}

#vpDfMessenger::part(chat-button),
df-messenger::part(chat-button),
df-messenger-chat-bubble,
df-messenger-button {
  display: none !important;
}

df-messenger {
  --df-messenger-chat-icon:
    none !important;
}


/* =========================================================
   MOBILE BOTTOM BAR
========================================================= */

.vp-mobile-bottom-bar {
  display: none;
}

.mobile-only-social {
  display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

  /* Header */

  header {
    position: relative;

    background: #ffffff;

    border-radius: 0 0 18px 18px;
  }

  .header-flex {
    height: 65px;

    padding: 0 14px;
  }

  .logo img {
    height: 45px;
  }


  /* Mobile menu */

  nav {
    position: absolute;

    top: 65px;
    left: 0;

    width: 100%;

    display: none;

    flex-direction: column;

    gap: 0;

    background: #ffffff;

    text-align: center;

    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.10);

    z-index: 9999;
  }

  nav.show {
    display: flex;
  }

  nav > a {
    width: 100%;

    padding: 14px;

    border-bottom:
      1px solid #eeeeee;
  }

  nav > a::after,
  .nav-dropdown-link::after {
    display: none;
  }


  /* Menu button */

  .menu-toggle {
    display: block;

    color: #8b0000;

    font-size: 26px;

    cursor: pointer;
  }

  .btn-header {
    display: none;
  }


  /* Dropdown */

  .nav-dropdown {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: stretch;
  }

  .nav-dropdown-link {
    width: 100%;

    padding: 14px;

    justify-content: center;

    border-bottom:
      1px solid #eeeeee;
  }

  .nav-submenu {
    position: static;

    width: 100%;

    padding: 0;

    display: none;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;

    background: #f8f8f8;

    border-radius: 0;

    box-shadow: none;
  }

  .nav-dropdown.open
  .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    justify-content: center;

    padding: 11px 15px;

    border-bottom:
      1px solid #eeeeee;
  }

  .nav-dropdown.open
  .nav-dropdown-link i {

    transform: rotate(180deg);
  }


  /* Banner */

  .banner-section {
    width: calc(100% - 30px);

    height: 520px;

    margin:
      0 auto 35px;

    background-image:
      url('../images/project banner mobile.png');

    background-size: cover;

    background-position: center;
  }


  /* Development */

  .project-strip {
    padding:
      55px 25px 70px;
  }

  .project-header {
    margin-bottom: 40px;
  }

  .project-header .bg-text {
    font-size: 80px;
  }

  .project-header .main-text {
    font-size: 34px;
  }


  /* Villa card */

  .villa-project-card {
    max-width: 580px;

    height: 320px;
  }


  /* Footer */

  .footer-container {
    grid-template-columns:
      repeat(2, 1fr);

    gap: 35px;
  }


  /* Floating */

  .vp-desktop-actions {
    display: none !important;
  }


  /* Mobile bottom action bar */

  .vp-mobile-bottom-bar {
    position: fixed;

    left: 50%;
    bottom: 8px;

    transform:
      translateX(-50%);

    width:
      calc(100% - 24px);

    max-width: 360px;

    display: flex;

    justify-content:
      space-evenly;

    align-items: center;

    padding:
      4px 8px
      calc(
        4px +
        env(safe-area-inset-bottom)
      );

    background: #c61f26;

    border-radius: 16px;

    box-shadow:
      0 -4px 16px
      rgba(0, 0, 0, 0.18);

    z-index: 100002;
  }

  .vp-mobile-bar-item {
    width: 52px;
    height: 52px;

    border: none;

    display: flex;

    align-items: center;
    justify-content: center;

    background: transparent;

    color: #ffffff;

    font-size: 24px;

    border-radius: 50%;

    cursor: pointer;
  }

  #vpDfMessenger {
    right: 10px !important;

    bottom: 125px !important;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

  .header-flex {
    height: 62px;

    padding: 0 10px;
  }

  .logo img {
    height: 43px;
  }

  nav {
    top: 62px;
  }


  /* Banner */

  .banner-section {
    width:
      calc(100% - 20px);

    height: 390px;

    margin:
      0 auto 25px;

    background-image:
      url('../images/project banner mobile.png');

    background-size: cover;

    background-position: center;
  }


  /* Development section */

  .project-strip {
    padding:
      45px 15px 60px;
  }

  .project-header {
    margin-bottom: 30px;
  }

  .project-header .bg-text {
    font-size: 43px;

    letter-spacing: 1px;
  }

  .project-header .main-text {
    font-size: 25px;
  }


  /* Villa card */

  .villa-project-card {
    width: 100%;

    max-width: 100%;

    height: 245px;

    border-radius: 15px;
  }

  .villa-project-card
  .strip-info {

    padding:
      45px 17px 17px;
  }

  .villa-project-card
  .strip-info > h3 {

    font-size: 18px;
  }

  .villa-project-card
  .strip-info > p {

    font-size: 13px;
  }


  /* On mobile keep details visible
     because hover is not reliable */

  .villa-project-card
  .villa-details {

    min-height: 100px;

    padding: 14px;

    bottom: 0;

    opacity: 1;

    transform: none;
  }

  .villa-project-card
  .villa-details h4 {

    font-size: 17px;

    margin-bottom: 9px;
  }

  .villa-project-card
  .strip-info > h3,

  .villa-project-card
  .strip-info > p {

    opacity: 0;
  }

  .villa-badge {
    padding: 7px 10px;

    font-size: 11px !important;
  }


  /* Footer */

  .footer {
    padding-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr;

    gap: 30px;

    text-align: center;

    padding:
      0 20px 35px;
  }

  .footer-logo {
    margin:
      0 auto 15px;
  }

  .footer-about {
    font-size: 14px;
  }

  .footer-bottom {
    padding:
      16px 10px 90px;
  }


  /* Social */

  .mobile-only-social {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 15px;
  }

  .mobile-only-social a {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #8c0001;

    color: #ffffff;

    border-radius: 50%;

    font-size: 16px;
  }

}
/* ==================================================
   SHOW DESKTOP ONLY ON DESKTOP
================================================== */

.project-strip {
  display: block;
}

.project-strip-mobile {
  display: none;
}


/* ==================================================
   TABLET + MOBILE
================================================== */

@media (max-width: 991px) {

  .project-strip {
    display: none !important;
  }

  .project-strip-mobile {
    display: block !important;
  }

}
