/* =========================================================================
   Villas in Bangalore — Base Stylesheet
   Design language follows the prestigenewlaunches.info format: Rubik
   typeface, blue/white real-estate-portal palette, sticky pill sub-nav,
   card-based listings with a price badge and icon quick-facts.
   ========================================================================= */

:root {
  /* Brand colors */
  --color-primary: #3764e3;      /* portal blue - CTAs, links, active states */
  --color-primary-dark: #2a4fb8;
  --color-accent: #ff5e00;       /* warm accent for hover/highlight moments */
  --color-text: #262626;
  --color-text-muted: #5f6368;
  --color-heading: #1d1d1f;
  --color-body-bg: #f7f7f7;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-soft: #ddd;
  --color-badge-bg: #000000;
  --color-footer-bg: #1d1d1f;
  --color-footer-text: #c7c7c7;
  --color-whatsapp: #25d366;
  --color-danger: #d64545;

  /* Layout */
  --container-max: 1320px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --header-height: 72px;
  --sticky-cta-height: 46px;
  --subnav-height: 50px;

  /* Type */
  --font-base: "Rubik", Arial, Helvetica, sans-serif;
  --font-size-base: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-body-bg);
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
a:hover, a:focus { color: var(--color-primary-dark); }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); font-weight: 700; }
h2 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Site header ---------- */
.site-header {
  background: var(--color-surface);
  box-shadow: 0 0 16px rgba(17,17,26,.1);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-height);
  padding: 10px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-header__logo { flex: none; }
.site-header__logo img { height: 44px; width: auto; }
.site-header__search {
  flex: 1 1 auto;
  display: flex;
  max-width: 520px;
  margin: 0 24px;
}
.site-header__search input[type="search"] {
  flex: 1 1 auto;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
}
.site-header__search button {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 500;
}
.site-header__cta {
  white-space: nowrap;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .3s ease;
}
.site-header__cta:hover { background: var(--color-primary-dark); color: #fff; }
/* Keeps the call link and Enquire Now button paired as one unit, so they
   never get separated by header wrapping at narrower widths. */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.site-header__phone {
  white-space: nowrap;
  color: var(--color-heading);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-header__phone:hover { color: var(--color-primary); }
.nav-toggle {
  display: none;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 22px;
  line-height: 1;
  color: var(--color-heading);
}

/* Primary nav */
.site-nav { background: var(--color-surface); }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.site-nav__item { position: relative; margin-left: 4px; }
.site-nav__item:first-child { margin-left: 0; }
.site-nav__list > .site-nav__item > a {
  display: block;
  padding: 10px 14px;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
}
.site-nav__list > .site-nav__item > a:hover,
.site-nav__item.is-open > a { color: var(--color-primary); background: #eef2fd; }
.site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 270px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  z-index: 600;
  display: none;
}
.site-nav__item.is-open > .site-nav__submenu { display: block; }
.site-nav__submenu a {
  display: block;
  padding: 9px 18px;
  color: var(--color-text);
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
}
.site-nav__submenu li:last-child a { border-bottom: none; }
.site-nav__submenu a:hover { background: #eef2fd; color: var(--color-primary); }

/* ---------- Sticky in-page sub-nav (pill tabs) ---------- */
.subnav {
  position: relative;
  width: 100%;
  z-index: 480;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.subnav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.subnav-placeholder { display: none; }
.subnav-placeholder.active { display: block; }
.subnav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: var(--subnav-height);
}
.subnav__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  width: 100%;
}
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a {
  flex: none;
  scroll-snap-align: start;
  color: #446e99;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}

/* Prev/next buttons for scrolling the pill menu — JS (subnav.js) shows
   these only when the menu actually overflows, and disables/hides each
   one at its respective scroll end. */
.subnav__arrow {
  flex: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--color-border-soft);
  background: #fff;
  color: var(--color-primary);
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.subnav__arrow.is-visible { display: flex; }
.subnav__arrow:hover { background: var(--color-primary); color: #fff; }
.subnav__arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.subnav__arrow--prev { margin-right: 8px; }
.subnav__arrow--next { margin-left: 8px; }
.subnav__links a:hover { color: #fff; background: #446e99; }
.subnav__links a.is-active { color: #fff; font-weight: 700; background: var(--color-primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 14px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}
.breadcrumb li:not(:last-child)::after { content: "\203A"; margin: 0 8px; color: #b7b7b7; }
.breadcrumb a { font-weight: 400; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li[aria-current] { color: var(--color-text); font-weight: 600; }

/* ---------- Page shell ---------- */
.page-header {
  text-align: left;
  padding: 28px 20px 8px;
}
.page-header .breadcrumb { justify-content: flex-start; }
.page-header h1 { margin-bottom: 4px; }
.page-header__location { font-size: 15px; color: var(--color-text-muted); margin: 0 0 10px; }
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  padding: 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}
/* Matches the reference site's Bootstrap .container width (1140px at
   desktop) now that there's no sidebar column to share the row with. */
.main-layout--full { grid-template-columns: minmax(0, 1fr); max-width: 1320px; }
.main-content { min-width: 0; }

/* ---------- Fixed side enquiry tab (replaces the old sidebar form) ---------- */
.side-enquiry-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 16px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  z-index: 850;
  cursor: pointer;
}
.side-enquiry-tab:hover { background: #e05400; }
@media (max-width: 767px) {
  .side-enquiry-tab { display: none; } /* sticky bottom bar already covers mobile */
}

/* aboutproject: the reusable card wrapper used by every content section
   (Overview, Configuration, Location, Amenities, Gallery, FAQs, Enquiry) */
.aboutproject {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  scroll-margin-top: calc(var(--subnav-height) + 16px);
}
.aboutproject > h2:first-child,
.section-heading {
  border-bottom: 1px solid var(--color-border-soft);
  padding-bottom: 12px;
  margin-bottom: 16px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  background: #28292a;
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  transition: background-color .3s ease, transform .15s ease;
}
.btn:hover { background: #000; color: #fff; }
.btn-primary { background: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 140px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-row--compact { justify-content: center; }
.btn-row--compact .btn { flex: 0 1 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); font-size: 13px; }
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  padding: 40px 20px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}
.site-footer__links h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { border-bottom: 1px solid #333; padding: 8px 0; font-size: 12px; }
.site-footer__links a { color: var(--color-footer-text); font-weight: 400; }
.site-footer__links a:hover { color: #fff; }
.site-footer__disclaimer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 20px;
  font-size: 12px;
  color: #9a9a9a;
  border-top: 1px solid #333;
  padding-top: 16px;
}
.site-footer__bottom {
  background: #000;
  padding: 14px 20px;
}
.site-footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #999;
  font-size: 12px;
}

/* ---------- Sticky bottom CTA bar (Call / WhatsApp / Enquiry) ---------- */
/* Mobile-only bottom bar (desktop uses the fixed side enquiry tab instead). */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--sticky-cta-height);
  z-index: 900;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.sticky-cta a, .sticky-cta button {
  flex: 1 1 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid rgba(255,255,255,.25);
}
.sticky-cta a:last-child, .sticky-cta button:last-child { border-right: none; }
.sticky-cta .cta-call { background: var(--color-primary); color: #fff; }
.sticky-cta .cta-whatsapp { background: var(--color-whatsapp); color: #fff; }
.sticky-cta .cta-enquire { background: var(--color-accent); color: #fff; }
.sticky-cta a:hover, .sticky-cta button:hover { filter: brightness(.92); color: #fff; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: calc(var(--sticky-cta-height) + 18px);
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  display: none;
  z-index: 899;
}
.back-to-top.is-visible { display: block; }
.back-to-top:hover { background: var(--color-primary); }

/* ---------- Enquiry modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-dialog {
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 28px 24px 24px;
}
.modal-dialog .modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #888;
}
.modal-dialog .modal-close:hover { color: var(--color-heading); }
.modal-dialog h2 { text-align: center; margin-bottom: 16px; }
