/* ==========================================================================
   BELVOIR GROUP  |  responsive.css
   Breakpoint overrides — desktop-down. Bootstrap grid handles layout flow;
   this file tunes the custom components at each breakpoint.
   Breakpoints: 1399 / 1199 / 991 / 767 / 575 / 399
   ========================================================================== */

/* ---------- Large desktop ---------- */
@media (max-width: 1399.98px) {
  .navbar-belvoir .nav-link { padding: 1.5rem .62rem; font-size: .74rem; }
  .brand-mark { height: 48px; }
  .brand-name { font-size: 1.42rem; }
  .collage-inset { right: -4%; }
  .collage-badge { left: -3%; }
}

/* ---------- Small desktop / large tablet ---------- */
@media (max-width: 1199.98px) {
  :root { --section-y: clamp(4rem, 7vw, 6.5rem); }

  .navbar-belvoir .nav-link { padding: 1.35rem .5rem; font-size: .7rem; letter-spacing: .06em; }
  .nav-cta .btn { padding: .85rem 1.15rem; font-size: .7rem; }

  .hero { min-height: 640px; }
  .hero-inner { padding: 8rem 0 12rem; }
  .hero-scroll { display: none; }

  .core-card { min-height: 460px; }
  .core-card p { max-height: none; opacity: 1; }   /* no hover on touch-ish widths */

  .masonry { column-count: 3; }
  .detail-thumbs { grid-template-columns: repeat(4, 1fr); }
  .collage-badge { padding: 1.2rem 1.2rem; }
  .collage-badge .num { font-size: 2rem; }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
  html { scroll-padding-top: 90px; }

  /* Navbar collapses to off-canvas */
  /* Below lg the stack is solid and sticky on every page, hero included */
  .header-stack.is-overlay { position: sticky; top: 0; background: var(--forest); }
  .header-stack.is-overlay .site-header { background: var(--forest); }
  .header-stack.is-overlay.is-stuck { position: sticky; animation: none; }
  .navbar-belvoir { padding: .7rem 0; }
  .brand-mark { height: 44px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .52rem; letter-spacing: .26em; }

  .topbar .topbar-address, .topbar .topbar-divider { display: none !important; }

  .hero { min-height: 560px; }
  .hero-inner { padding: 5.5rem 0 10rem; text-align: left; }
  .hero-title { font-size: clamp(2.3rem, 7vw, 3.4rem); }
  .hero-pagination { bottom: 9.5rem; }

  .search-panel { margin-top: -6rem; }

  .process-timeline::before { display: none; }
  .process-step { display: flex; gap: 1.3rem; text-align: left; padding-bottom: 2rem; position: relative; }
  .process-step::before {
    content: ""; position: absolute; left: 33px; top: 68px; bottom: 0; width: 1px; background: var(--line);
  }
  .process-step:last-child::before { display: none; }
  .bg-forest .process-step::before, .bg-image .process-step::before { background: rgba(255,255,255,.16); }
  .process-num { margin-bottom: 0; flex-shrink: 0; }

  .split-feature { grid-template-columns: 1fr; }
  .split-media { min-height: 340px; }

  .view-list .property-card { flex-direction: column; }
  .view-list .property-media { width: 100%; aspect-ratio: 4/3; min-height: 0; }
  .view-list .property-body { padding: 1.5rem 1.5rem 1.1rem; }
  .view-list .property-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .sticky-enquiry { position: static; margin-top: 2.5rem; }

  .masonry { column-count: 2; }
  .collage { max-width: 560px; margin-inline: auto; }
  .collage-badge { left: 0; }
  .collage-inset { right: 0; }

  .stat-divider { border-right: 0; }

  .site-footer { padding-bottom: 4.5rem; }   /* clearance for mobile action bar */
  .brand-lockup-lg .brand-mark { height: 66px; }
  .brand-lockup-lg .brand-name { font-size: 1.85rem; }

  /* Floating buttons lift above the mobile action bar */
  .whatsapp-fab { bottom: 140px; }
  .back-to-top { bottom: 76px; }
  .mobile-action-bar { display: flex; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  :root { --section-y: 3.5rem; --gutter: 1.15rem; }

  body { font-size: .97rem; line-height: 1.7; }

  .topbar { font-size: .74rem; }
  .topbar .topbar-item { padding: .5rem 0; }

  .hero { min-height: 540px; }
  .hero-inner { padding: 4.5rem 0 9rem; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.9rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-text { font-size: .95rem; }
  .hero-actions .btn { width: 100%; }        /* large touch targets */
  .hero-pagination { bottom: 8.5rem; left: 1.15rem; }
  .hero-pagination .swiper-pagination-bullet { width: 26px; }

  .search-panel { margin-top: -5rem; padding: 1.35rem 1.15rem; }
  .search-panel .btn { width: 100%; }

  .section-intro { font-size: 1rem; }
  .btn { padding: .95rem 1.5rem; }
  .btn-lg-caps { padding: 1.05rem 1.6rem; font-size: .78rem; }

  .core-card { min-height: 420px; }
  .core-card-body { padding: 1.8rem 1.4rem 1.6rem; }

  /* One property card per row on mobile (brief requirement) */
  .property-col { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
  .property-meta { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .property-foot { flex-direction: column; align-items: flex-start; gap: .85rem; }
  .property-foot .btn { width: 100%; }

  .results-bar { flex-direction: column; align-items: flex-start; }

  .filter-tabs { gap: .4rem; }
  .filter-tab { padding: .65rem 1rem; font-size: .68rem; }

  .split-body { padding: 2.2rem 1.3rem; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }

  .masonry { column-count: 1; }
  .masonry-caption { opacity: 1; transform: none; }   /* no hover on touch */

  .ba-grid { grid-template-columns: 1fr 1fr; }

  .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .info-table th { width: 50%; font-size: .76rem; }
  .map-embed iframe { height: 320px; }

  .cta-band .btn { width: 100%; }
  .footer-bottom { text-align: center; }
  .footer-legal { justify-content: center; gap: 1rem; }

  .lightbox { padding: 4.5rem .8rem; }
  .lightbox-prev { left: .6rem; }
  .lightbox-next { right: .6rem; }
  .lightbox-close { top: .8rem; right: .8rem; }

  .article-body { font-size: .98rem; }
  .article-body blockquote { font-size: 1.08rem; padding-left: 1.1rem; }

  .testimonial-card { padding: 2rem 1.4rem 1.6rem; }
  .testimonial-tag { position: static; display: inline-block; margin-bottom: .8rem; }

  .accordion-belvoir .accordion-button { font-size: .98rem; padding: 1.15rem 1.2rem; }
  .accordion-belvoir .accordion-body { padding: 0 1.2rem 1.2rem; }

  .form-card { padding: 1.5rem 1.25rem; }
  .contact-tile { padding: 1.6rem 1.2rem; }

  .page-header { padding: 4.5rem 0 3rem; }
  .breadcrumb-belvoir { font-size: .74rem; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 575.98px) {
  .navbar-belvoir .brand-sub { display: none; }
  .navbar-belvoir .brand-name { font-size: 1.2rem; }
  .brand-lockup-lg { gap: .8rem; }
  .brand-lockup-lg .brand-mark { height: 58px; }
  .brand-lockup-lg .brand-name { font-size: 1.6rem; }
  .brand-lockup-lg .brand-sub { font-size: .58rem; letter-spacing: .26em; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .18em; }
  .property-acreage { font-size: 1.25rem; }
  .stat-value { font-size: 2.3rem; }
  .ba-grid { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .collage-inset { position: static; width: 100%; border: 0; margin-top: .8rem; box-shadow: none; }
  .collage-badge { position: static; display: inline-block; margin-bottom: 1rem; }
  .whatsapp-fab { width: 50px; height: 50px; font-size: 1.5rem; right: 14px; }
  .back-to-top { width: 42px; height: 42px; right: 14px; }
  .newsletter-form .form-control { height: 48px; }
}

@media (max-width: 359.98px) {
  .property-meta { grid-template-columns: 1fr; }
  .mobile-action-bar a { font-size: .62rem; }
  .filter-tab { font-size: .64rem; padding: .6rem .8rem; }
}

/* ---------- Landscape phones: trim hero height ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 460px; }
  .hero-inner { padding: 4.5rem 0 8rem; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .whatsapp-fab, .back-to-top,
  .mobile-action-bar, .cta-band, .hero-slider, .search-panel,
  .sticky-enquiry, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 1.2rem 0; }
  a { color: #000; text-decoration: underline; }
  .property-card, .form-card { break-inside: avoid; box-shadow: none; }
}
