/* ============================================================================
   option4/index-2.php only (body.o4-100vh): full-screen sections, desktop.

   Each converted section is exactly one screen tall, with its content
   centred in the space below the fixed header. Pairs with
   option4-100vh-scroll.js, which lands each scroll on a converted section's
   top edge and publishes --o4-header-h / --o4-footer-h.

   Same desktop condition as the scroll script, so phones, tablets and touch
   devices keep the normal layout.

   Converted so far: Hero (+ marquee as the first screen), About Us,
   Project Highlights, Location Highlights,
   Amenities, Pricing, Master Plan, Gallery, About Maduram,
   Testimonials, Schedule a Visit (+ footer as the last screen).
   ========================================================================= */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body.o4-100vh #about-us,
  body.o4-100vh #project-highlights-section,
  body.o4-100vh #location-highlights,
  body.o4-100vh #amenities-section,
  body.o4-100vh #pricing,
  body.o4-100vh #master-plan,
  body.o4-100vh #gallery,
  body.o4-100vh #about-maduram,
  body.o4-100vh #testimonials,
  body.o4-100vh #schedule-visit {
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center; /* never push tall content under the header */
    padding-top: calc(var(--o4-header-h, 61px) + 20px);
    padding-bottom: 20px;
  }

  /* Keep every direct child as wide as it was before the flex switch:
     - min-width:0 -- flex items default to min-width:auto, so a wide
       carousel track (Owl stage) would stretch its wrapper;
     - width:100% -- a "max-w-[..] mx-auto" wrapper without w-full would
       otherwise shrink/grow to its content in a flex column (auto margins),
       instead of filling the row up to its max-width. */
  body.o4-100vh #about-us > *,
  body.o4-100vh #project-highlights-section > *,
  body.o4-100vh #location-highlights > *,
  body.o4-100vh #amenities-section > *,
  body.o4-100vh #pricing > *,
  body.o4-100vh #master-plan > *,
  body.o4-100vh #gallery > *,
  body.o4-100vh #about-maduram > *,
  body.o4-100vh #testimonials > *,
  body.o4-100vh #schedule-visit > * {
    min-width: 0;
    width: 100%;
  }

  /* First screen = hero banner + marquee strip together. The banner's own
     sizing (calc(100vh-64px), capped 440-640px / 460px on short screens)
     left the first screen short on tall monitors; here it fills whatever
     the hero's 61px header spacing and the marquee (--o4-marquee-h, its
     real height) leave. */
  body.o4-100vh #hero-banner-b {
    height: calc(100vh - 61px - var(--o4-marquee-h, 44px));
    min-height: 0;
    max-height: none;
  }
  /* index.php's hero on desktop: the first screen is the banner image
     (filling whatever height is left) + the marquee strip below it.
     Banner + 61px header spacing + marquee = 100vh. The enquiry form now
     lives in its own section (#hero-form-section) after the marquee. */
  body.o4-100vh #hero-banner-b.hero-natural {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 61px - var(--o4-marquee-h, 44px));
    background: #0e1f12;
  }
  body.o4-100vh #hero-banner-b.hero-natural > picture {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.o4-100vh #hero-banner-b.hero-natural > picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  /* No form in the banner any more, so the chevron drops back near the
     image's bottom edge (the shared CSS lifts it 100px to clear the form). */
  body.o4-100vh #hero-banner-b.hero-natural #scroll-down-btn {
    bottom: 20px;
  }

  /* Last screen = Schedule a Visit + footer together: Visit fills whatever
     the footer leaves (--o4-footer-h is the footer's real height, published
     by option4-100vh-scroll.js), so the final stop is exactly one screen. */
  body.o4-100vh #schedule-visit {
    min-height: calc(100vh - var(--o4-footer-h, 151px));
  }

  /* Project Highlights panels: the shared CSS sizes them as 65% / 56%,
     which only resolved against the viewport through this page's quirks
     mode. Inside a flex section with just a min-height the % has nothing to
     resolve against and the panels collapse to 0 -- so use the equivalent
     vh values here. */
  body.o4-100vh #project-highlights-section .ph-panels {
    height: 65vh;
  }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 600px) {
  body.o4-100vh #project-highlights-section .ph-panels {
    height: 56vh;
  }
  /* Master Plan: the Unit Plan tab's images are 17px taller than the
     master plan's; tightening the gap under the tabs (24 -> 12px) lets
     both tabs fit one short screen. */
  body.o4-100vh #master-plan > * > :first-child {
    margin-bottom: 12px;
  }
  /* Location: the longest tab (Schools & Colleges, 7 items) is ~33px taller
     than a short screen. Tighten the list spacing (text size unchanged). */
  body.o4-100vh #location-highlights .lh-list {
    row-gap: 3px;
  }
  body.o4-100vh #location-highlights .lh-image-wrap {
    margin-bottom: 8px;
  }
  body.o4-100vh #location-highlights .lh-divider {
    margin-bottom: 10px;
  }
  /* Schedule a Visit shares the screen with the footer; its 56px title gap
     is what doesn't fit on short screens. */
  body.o4-100vh #schedule-visit h2 {
    margin-bottom: 32px;
  }
  /* The footer disclaimer (2 lines) made Schedule a Visit + footer ~45px
     taller than a 1280x551 screen; tighter footer padding/row gaps here
     (40/32 -> 20/16px, 16 -> 10px) bring the pair back to one screen. */
  body.o4-100vh #site-footer > div {
    padding-top: 20px;
    padding-bottom: 16px;
  }
  body.o4-100vh #site-footer > div > div {
    gap: 10px;
  }
}

/* ============================================================================
   Hero enquiry form section (option4/index.php, #hero-form-section):
   its own band between the hero and About Us, natural height (not 100vh).
   Shown from lg (the markup's "hidden lg:block"); a scroll stop via
   data-o4-stop.
   ========================================================================= */
/* Same container as About Us below it (max-w-[1440px] + lg:px-[80px]), so
   the form lines up with the outer edges of the About Us photos: 80px side
   padding and a 1280px max width (1440 minus 2 x 80). */
#hero-form-section {
    /* background: #0e1f12; */
    padding: 12px 80px;
}
#hero-form-section #hero-form {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  background: #0e1f12;
}

/* Hero form band + About Us = ONE screen / one scroll stop (desktop,
   option4/index.php: #hero-form-section carries data-o4-merge-next).
   The scroll lands on the band's top edge, so the band clears the fixed
   header itself, and About Us fills whatever height the band leaves
   (--o4-merge-h = the band's height, from option4-100vh-scroll.js) instead
   of a full 100vh of its own. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body.o4-100vh #hero-form-section[data-o4-merge-next] {
    padding-top: calc(var(--o4-header-h, 61px) + 20px);
  }
  body.o4-100vh #hero-form-section[data-o4-merge-next] + #about-us {
    min-height: calc(100vh - var(--o4-merge-h, 0px));
    padding-top: 20px;
  }
  /* Short screens (1366x630, 1280x551...): the two portrait side photos
     (410x713, full column width) made About Us taller than the space left
     under the form band. Cap them at that space -- 100vh minus the band and
     About Us's 20px + 20px padding -- cropping (object-fit: cover), never
     stretching. Only bites when a photo would overflow; big screens keep
     their natural size. The right photo is h-full, so it follows the row. */
  body.o4-100vh #hero-form-section[data-o4-merge-next] + #about-us .grid img {
    max-height: calc(100vh - var(--o4-merge-h, 0px) - 40px);
    object-fit: cover;
  }
}

/* stage-2 hero video -- option4/stage-2/index.php only (its <video> has
   class hero-video-fill; index-v2.php keeps the unstyled video). */
div#hero-banner-b video.hero-video-fill {
   height: auto;
   object-fit: cover;
   object-position: center;
}
/* Desktop only: fill the one-screen hero banner. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  div#hero-banner-b video.hero-video-fill {
     height: 100%;
  }
}

/* ============================================================================
   option4/stage-2/index-v2.php hero (#hero-banner-b.hero-v2-bands), desktop:
   the first screen is 3 parts --
     1. the video, filling whatever height is left,
     2. the enquiry form band (.hero-form-band) under it,
     3. the marquee strip (the sibling right after the banner).
   The banner's one-screen height and flex column come from the
   .hero-natural rules above.
   ========================================================================= */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body.o4-100vh #hero-banner-b.hero-v2-bands > video {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  body.o4-100vh #hero-banner-b.hero-v2-bands > .hero-form-band {
    flex: 0 0 auto;
    padding: 12px 24px;
  }
  /* chevron on the video, 12px above the form band (78px form + 24px) */
  body.o4-100vh #hero-banner-b.hero-v2-bands #scroll-down-btn {
    bottom: 114px;
  }
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (max-height: 600px) {
  /* form band is 77px on short screens (53px form + padding) */
  body.o4-100vh #hero-banner-b.hero-v2-bands #scroll-down-btn {
    bottom: 89px;
  }
}
.hero-form-band #hero-form {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: #0e1f12;
width: 100%
}

/* ============================================================================
   Hero video mute/unmute button (hero-video-sound.js) -- stage-2 pages.
   bottom is set by the script to the video's own bottom edge; margin-bottom
   / right keep it inset in the video's corner.
   ========================================================================= */
.hero-sound-btn {
  position: absolute;
  right: 20px;
  bottom: 0;
  margin-bottom: 20px;
  z-index: 25;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 44, 69, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.hero-sound-btn:hover {
  background: #1e4620;
}
.hero-sound-btn:active {
  transform: scale(0.94);
}
.hero-sound-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.hero-sound-btn svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 767px) {
  .hero-sound-btn {
    right: 12px;
    margin-bottom: 12px;
    width: 36px;
    height: 36px;
  }
  .hero-sound-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* Tailwind arbitrary class bg-[#0e1f12] (used on .hero-form-band). This
   site's tailwind.css is a build-time scan, so a newly added arbitrary
   class compiles to nothing -- defined here instead. */
.bg-\[\#0e1f12\] {
  background-color: #0e1f12;
}

/* Footer side padding on desktop (one-section-scroll layout): the fixed
   round #scroll-down-btn (~40px, bottom-left) sat on the start of the
   copyright and disclaimer lines on the last screen. 32px -> 96px each
   side keeps the footer text clear of the fixed #scroll-down-btn and
   still centred. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  body.o4-100vh #site-footer > div {
    padding-left: 96px;
    padding-right: 96px;
  }
}

/* Footer only: when the visitor reaches the footer, scroll-down-btn.js turns
   the chevron into the round "back to top" button (.scroll-up-mode) and
   fixes it at bottom 30px (120px on phones) -- right on the footer text.
   There it moves up to 200px; !important beats the script's inline bottom.
   bottom eases while the button is fixed, so it glides up on reaching the
   footer and back down on leaving it. The hero position is unchanged. */
@media screen and (max-width: 800px){
  #scroll-down-btn.scroll-up-mode {
    bottom: 200px !important;
  }
}   

#scroll-down-btn[style*="position: fixed"] {
  transition: bottom 0.4s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}