/* ==========================================================================
   Avani Abode - Main stylesheet
   ========================================================================== */

:root {
  --navy: #12213f;
  --navy-dark: #0b1830;
  --gold: #d9a441;
  --gold-dark: #b9872c;
  --muted-bg: #f4f5f7;
  --text-dark: #26314a;
  --text-muted: #6c7385;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-soft: 0 10px 30px rgba(18, 33, 63, .08);
  --shadow-strong: 0 20px 50px rgba(18, 33, 63, .18);
  --fp-a: #e2998c;
  --fp-a-dark: #c97a6d;
  --fp-b: #7fb88f;
  --fp-b-dark: #5f9a71;
  --fp-c: #e3a94a;
  --fp-c-dark: #c78d30;
  --fp-d: #9c8ac4;
  --fp-d-dark: #7d68a8;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: #fff;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.btn {
  border-radius: var(--radius);
  font-weight: 500;
  padding: 0.6rem 1.25rem;
}
.btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.btn-secondary {
  background-color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background-color: var(--navy-dark); border-color: var(--navy-dark); }
.btn-dark-navy {
  background-color: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.7rem 1.75rem;
  font-weight: 500;
  border: none;
}
.btn-dark-navy:hover { background-color: var(--navy-dark); color: #fff; }
.btn-enquire {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
}
.btn-enquire:hover, .btn-enquire:focus { background-color: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* ---------------- Top bar ---------------- */
.top-bar {
  background: var(--navy);
  padding: 0.7rem 0;
}
.top-bar__logo {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.top-bar__logo img { height: 52px; width: auto; display: block; }
.btn-topbar {
  text-align: left;
  border-radius: var(--radius);
  padding: 0.6rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.btn-topbar i { font-size: 1.05rem; }
.btn-topbar__text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-topbar__line1 {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.btn-topbar__line2 {
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .015em;
}
.btn-topbar--solid { background: #fff; color: var(--navy); border-color: #fff; }
.top-bar .btn-outline-light { border-color: rgba(255,255,255,.55); }
.top-bar__mobile-enquire {
  display: none;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .55rem 1.15rem;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
.top-bar__mobile-enquire:hover, .top-bar__mobile-enquire:focus { background: var(--gold-dark); color: #fff; }

@media (max-width: 991.98px) {
  .top-bar__mobile-enquire { display: inline-block; }
}

/* ---------------- Sticky section tabs ---------------- */
.section-tabs {
  background: #fff;
  border-bottom: 1px solid #eceef2;
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.section-tabs__nav { gap: 0.25rem; }
.section-tabs .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.9rem 0.85rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.section-tabs .nav-link.active,
.section-tabs .nav-link:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.section-tabs__phone {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  padding-left: 1rem;
}
.section-tabs__phone i { color: var(--gold); margin-right: 0.4rem; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background-size: cover;
  background-position: center 35%;
  min-height: 620px;
  padding-top: 3.5rem;
  padding-bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,16,36,.15) 0%, rgba(8,16,36,.1) 45%, rgba(8,16,36,.65) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 1rem; padding-bottom: 3rem; }
.hero__title {
  font-size: 3.1rem;
  font-weight: 800;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  opacity: .97;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero__subtitle i { color: var(--gold); margin-right: .3rem; }
.hero__form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-strong);
  border-top: 4px solid var(--gold);
}
.hero__form-card .form-control,
.hero__form-card .form-select {
  border-radius: var(--radius);
  padding: .65rem .9rem;
  border-color: #e2e4ea;
}
.hero__call-link { color: var(--navy); }

.hero__strip {
  position: relative;
  z-index: 1;
  background: rgba(8,16,36,.62);
  backdrop-filter: blur(2px);
  padding: 1.35rem 0 1.1rem;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 3px solid var(--gold);
}
.hero__strip-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-bottom: .3rem; }
.hero__strip-value { font-size: 1.35rem; font-weight: 700; }
.hero__strip-value--accent { color: var(--gold); }
.hero__rera { text-align: center; font-size: .95rem; color: rgba(255,255,255,.92); margin: .85rem 0 0; letter-spacing: .03em; font-weight: 500; }
.hero__rera--top {
  margin: 0 0 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.22);
}

/* Issue #1 (Desktop Hero, client feedback): desktop-only refinements to
   reduce image cropping, lighten/flatten the overlay, nudge the title
   down and slim the lead form card. Scoped to >=992px (Bootstrap lg) so
   tablet/mobile hero styling in responsive.css is completely untouched. */
@media (min-width: 992px) {
  .hero {
    /* Was `cover` (crops the image to fill the box). The hero box's
       aspect ratio is much wider than the source photo, so `cover` was
       cutting off a visible chunk top/bottom. Stretching to 100% 100%
       shows the full image with no cropping, at the cost of a small,
       barely-noticeable vertical stretch - the same trade-off the
       reference site makes (it renders the hero photo with
       object-fit:fill for the same reason). */
    background-size: 100% 100%;
  }
  .hero__overlay {
    /* Flatter, lighter tint (closer to the reference's uniform ~35-40%
       overlay) instead of the steep 15%->65% gradient, so the photo
       reads as more visible while still keeping the title/form legible. */
    background: linear-gradient(180deg, rgba(8,16,36,.32) 0%, rgba(8,16,36,.28) 45%, rgba(8,16,36,.42) 100%);
  }
  .hero__title {
    /* Moves the heading down slightly, matching the reference layout. */
    margin-top: 2rem;
    /* Refinement: reference title reads visually smaller/more balanced
       against the hero than our original 3.1rem. Scaled down to sit
       closer to the reference proportions; position (margin-top above)
       is unchanged. */
    font-size: 2.6rem;
  }
  .hero__form-card {
    /* Narrower, sleeker card (was full column width). Right-aligned
       within its column so it keeps the same right edge, opening up
       the middle of the hero image. */
    max-width: 380px;
    margin-left: auto;
    /* Refinement: trimmed vertical padding further (was 1.4rem) for a
       more compact/sleeker card; horizontal padding unchanged. */
    padding: 1rem 1.5rem;
  }
  /* Refinement: tighten the form's internal vertical spacing (field
     gaps and the "OR" divider) so the card reads shorter/sleeker.
     Overrides Bootstrap's .mb-3 / .my-2 utility spacing used on the
     existing hero form markup only - no fields, labels, buttons or
     markup are touched, and this only applies at >=992px. */
  .hero__form-card .mb-3 {
    margin-bottom: .65rem;
  }
  .hero__form-card .my-2 {
    margin-top: .35rem;
    margin-bottom: .35rem;
  }
  .hero__form-card .form-control,
  .hero__form-card .form-select {
    padding: .5rem .9rem;
  }
}

/* ---------------- Sections ---------------- */
.section { padding: 4rem 0; }
.section--muted { background: var(--muted-bg); }
.section-title {
  text-align: center;
  font-weight: 700;
  font-size: 2.1rem;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: 2.25rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--gold);
}
.section-body-text {
  max-width: 980px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ---------------- Info tiles ---------------- */
.info-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid #e6e8ee;
  border-radius: var(--radius);
  padding: 1.25rem .75rem;
  height: 100%;
  text-align: center;
  background: #fff;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.info-tile:hover { box-shadow: var(--shadow-soft); border-color: transparent; transform: translateY(-3px); }
.info-tile__label { font-size: .74rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; }
.info-tile__value { font-weight: 700; color: var(--gold-dark); font-size: 1.08rem; }

/* ---------------- Price table ---------------- */
.price-table-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
.price-table { background: #fff; margin-bottom: 0; }
.price-table thead th {
  background: var(--navy);
  color: #fff;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: none;
  padding: 1.05rem 1rem;
}
.price-table tbody tr { transition: background-color .2s ease; }
.price-table tbody tr:hover { background-color: #fbf8f2; }
.price-table tbody td { padding: 1.15rem 1rem; border-color: #eceef2; }
.price-table__price { color: var(--gold-dark); font-weight: 700; }

/* ---------------- Amenities carousel ---------------- */
.amenities-carousel { position: relative; display: flex; align-items: center; padding: 0 2.5rem; }
.amenities-carousel__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.amenities-carousel__track::-webkit-scrollbar { display: none; }
.amenity-card {
  position: relative;
  flex: 0 0 260px;
  height: 260px;
  overflow: hidden;
  margin-right: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.amenity-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amenity-card:hover img { transform: scale(1.07); }
/* Photo amenity cards: a dedicated color overlay covering the lower ~half
   of the image, with the name centered inside it. Always shown (covering
   the bottom half) so the name stays readable on touch devices; on
   hover-capable pointers it starts translated fully below the image and
   slides up to its resting position on hover/focus. */
.amenity-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(18,33,63,.88) 0%, rgba(18,33,63,.82) 55%, rgba(18,33,63,.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}
.amenity-card__overlay-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .01em;
}
@media (hover: hover) and (pointer: fine) {
  .amenity-card__overlay {
    transform: translateY(100%);
    transition: transform .4s ease;
  }
  .amenity-card:hover .amenity-card__overlay,
  .amenity-card:focus-within .amenity-card__overlay {
    transform: translateY(0);
  }
}
/* Icon-tile amenities (no photo): label stays static/inline as before. */
.amenity-card__label {
  position: static;
  background: none;
  padding: 0;
  font-weight: 600;
  letter-spacing: .01em;
}
.amenity-card--icon {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  text-align: center;
  padding: 1rem;
}
.amenity-card--icon .amenity-card__icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(217,164,65,.16);
  border: 1px solid rgba(217,164,65,.5);
  display: flex; align-items: center; justify-content: center;
}
.amenity-card--icon .amenity-card__icon i { font-size: 1.6rem; color: var(--gold); }
.amenity-card--icon .amenity-card__label {
  position: static;
  background: none;
  padding: 0;
  font-size: .95rem;
}
.amenities-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #dcdfe6;
  background: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenities-carousel__nav--prev { left: 0; }
.amenities-carousel__nav--next { right: 0; }

/* ---------------- Gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.gallery-grid__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}
.gallery-grid__item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(18,33,63,0);
  transition: background .3s ease;
}
.gallery-grid__item:hover::after { background: rgba(18,33,63,.12); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-grid__item:hover img { transform: scale(1.07); }

/* ---------------- Floor plans ---------------- */
.floorplan-card {
  display: block;
  border: 1px solid #e6e8ee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  position: relative;
  height: 100%;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}
.floorplan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.floorplan-card__badge {
  position: absolute;
  top: .65rem; left: .65rem;
  width: 30px; height: 30px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.floorplan-card__meta {
  background: var(--gold);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  padding: .45rem .5rem .45rem 2.4rem;
}
.floorplan-card__img-wrap { position: relative; overflow: hidden; }
.floorplan-card__img-wrap img { transition: transform .4s ease; }
.floorplan-card:hover .floorplan-card__img-wrap img { transform: scale(1.04); }
.floorplan-card__zoom {
  position: absolute;
  right: .6rem; bottom: .6rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(18,33,63,.75);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.floorplan-card:hover .floorplan-card__zoom { opacity: 1; }

/* Block color-coding, matching the reference site's A/B/C/D groups */
.floorplan-card--A .floorplan-card__meta, .floorplan-card--A .floorplan-card__badge { background: var(--fp-a); }
.floorplan-card--B .floorplan-card__meta, .floorplan-card--B .floorplan-card__badge { background: var(--fp-b); }
.floorplan-card--C .floorplan-card__meta, .floorplan-card--C .floorplan-card__badge { background: var(--fp-c); }
.floorplan-card--D .floorplan-card__meta, .floorplan-card--D .floorplan-card__badge { background: var(--fp-d); }
.floorplan-card--A .floorplan-card__badge { background: var(--fp-a-dark); }
.floorplan-card--B .floorplan-card__badge { background: var(--fp-b-dark); }
.floorplan-card--C .floorplan-card__badge { background: var(--fp-c-dark); }
.floorplan-card--D .floorplan-card__badge { background: var(--fp-d-dark); }

.master-plan-frame { position: relative; display: inline-block; cursor: zoom-in; }
.master-plan-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-strong); }
.master-plan-frame__zoom {
  position: absolute;
  right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(18,33,63,.8);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.master-plan-frame:hover .master-plan-frame__zoom { opacity: 1; }

/* ---------------- Location ---------------- */
.location-map { border-radius: var(--radius-lg); overflow: hidden; height: 420px; box-shadow: var(--shadow-soft); }
.location-map iframe { width: 100%; height: 100%; border: 0; }

.site-visit-banner {
  background: var(--navy);
  color: #fff;
  padding: 1.85rem 0;
  border-top: 3px solid var(--gold);
}
.site-visit-banner__icon { font-size: 1.75rem; color: var(--gold); }
.site-visit-banner p { color: rgba(255,255,255,.8); font-size: .9rem; }
.site-visit-banner h5 { text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }

/* ---------------- Developer ---------------- */
.developer-logo { max-height: 190px; width: auto; }
.developer-contact-card {
  background: var(--muted-bg);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-soft);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: 1.25rem 0;
}
.site-footer a { color: var(--gold); }
.site-footer__social { display: flex; justify-content: center; gap: .9rem; font-size: 1.1rem; }
.site-footer__social a { color: rgba(255,255,255,.85); }
.site-footer__social a:hover { color: var(--gold); }

/* ---------------- Lead modals ---------------- */
.lead-modal .modal-content { border-radius: 10px; border: none; }
.lead-modal .modal-body { padding: 2rem; }
.lead-modal__title { font-weight: 700; text-transform: uppercase; text-align: center; font-size: 1.1rem; margin-bottom: .5rem; }
.lead-modal__text { color: var(--text-muted); text-align: center; font-size: .88rem; margin-bottom: 1.25rem; }
.lead-modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: #f1f2f5; border-radius: 50%; opacity: 1; }
.lead-form__status { font-size: .85rem; min-height: 1.4em; margin-bottom: .5rem; }
.lead-form__status.text-success { color: #1e7e34; }
.lead-form__status.text-danger { color: #c0392b; }

/* ---------------- Mobile sticky CTA ---------------- */
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(0,0,0,.12);
}
.mobile-sticky-cta__enquire {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
}
.mobile-sticky-cta__row { display: flex; }
.mobile-sticky-cta__btn {
  flex: 1;
  border: none;
  background: var(--gold);
  color: #fff;
  padding: .8rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.mobile-sticky-cta__btn--dark { background: var(--navy); }
.mobile-sticky-cta__btn + .mobile-sticky-cta__btn { border-left: 1px solid rgba(255,255,255,.18); }

/* ---------------- Scroll reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Lightbox ---------------- */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  z-index: 2000; display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-overlay__close, .lightbox-overlay__prev, .lightbox-overlay__next {
  position: absolute;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.lightbox-overlay__close { top: 1.25rem; right: 1.25rem; }
.lightbox-overlay__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-overlay__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
