/* ==========================================================================
   RESPONSIVE.CSS — Mobile-first responsive styles
   Prestige Hyderabad
   Breakpoints: 375, 576, 768, 992, 1024, 1200, 1400px (min-width)
                374px and below (max-width) for very small screens
   ========================================================================== */

/* ==========================================================================
   BASE / MOBILE-FIRST STYLES (applies to all viewports)
   ========================================================================== */

/* --- Touch targets -------------------------------------------------------- */
a,
button,
input,
select,
textarea,
label,
[role="button"],
[tabindex] {
  min-height: 44px;
  min-width: 44px;
}

/* --- Typography base ------------------------------------------------------ */
html {
  font-size: 14px;
}

body {
  overflow-x: hidden;
}

/* --- Navigation (mobile default) ----------------------------------------- */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
}

.nav-desktop {
  display: none;
}

.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 1050;
  overflow-y: auto;
  padding: 80px 24px 40px;
}

.nav-mobile-overlay.is-open {
  transform: translateX(0);
}

.nav-mobile-overlay .nav-link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Hero slider (mobile default) ---------------------------------------- */
.hero-slider,
.hero-section {
  min-height: 320px;
  height: 60vh;
  max-height: 560px;
  position: relative;
  overflow: hidden;
}

/* style.css sets min-height:100vh on .carousel-item.hero-slide for desktop.
   On mobile the parent is clipped to 60vh, so the carousel chain must inherit
   that height — otherwise flex centering places content outside the visible area. */
.hero-section #heroCarousel,
.hero-section .carousel-inner,
.hero-section .carousel-item.hero-slide {
  height: 100%;
  min-height: inherit;
}

.hero-content {
  text-align: center;
  padding: 0 16px;
}

.hero-slide .hero-content {
  padding-top: 80px;
  padding-bottom: 32px;
}

.hero-title {
  font-size: 1.75rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1rem;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-cta-group .btn {
  width: 100%;
  max-width: 300px;
}

/* --- Section padding (mobile) -------------------------------------------- */
.section,
section {
  padding: 40px 0;
}

.container {
  padding-left: 16px;
  padding-right: 16px;
}

/* --- Grids (mobile default: 1 column) ------------------------------------ */
.highlights-grid,
.amenities-grid,
.floor-plans-grid,
.cards-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.highlights-grid {
  grid-template-columns: repeat(2, 1fr);
}

.amenities-grid {
  grid-template-columns: repeat(2, 1fr);
}

.floor-plans-grid {
  grid-template-columns: 1fr;
}

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

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

/* --- Pricing table (mobile: stacked cards) -------------------------------- */
.pricing-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  min-width: 600px;
}

/* --- Footer (mobile: single column) -------------------------------------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* --- Mobile sticky CTA bar ----------------------------------------------- */
.mobile-sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 58px;
  z-index: 1000;
  background: #1a1a1a;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.mobile-sticky-cta .cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 8px;
  text-align: center;
  transition: background 0.2s;
}

.mobile-sticky-cta .cta-btn:last-child {
  border-right: none;
}

.mobile-sticky-cta .cta-btn:hover,
.mobile-sticky-cta .cta-btn:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* Offset body for sticky bar */
body {
  padding-bottom: 58px;
}

/* --- Visibility utilities (mobile default) -------------------------------- */
.hide-mobile,
.desktop-only {
  display: none !important;
}

.mobile-only,
.hide-desktop {
  display: block !important;
}

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

/* --- Lightbox ------------------------------------------------------------- */
.lightbox-controls {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.lightbox-prev,
.lightbox-next {
  font-size: 24px;
  padding: 8px 16px;
}

/* --- Back to top / WhatsApp float ---------------------------------------- */
.back-to-top,
.whatsapp-float {
  position: fixed;
  z-index: 999;
}

.back-to-top {
  bottom: 70px;
  right: 16px;
  width: 40px;
  height: 40px;
}

.whatsapp-float {
  bottom: 72px;
  left: 16px;
  width: 48px;
  height: 48px;
}

/* ==========================================================================
   MAX-WIDTH 374px — Very small screens (320px)
   ========================================================================== */

@media (max-width: 374px) {
  html {
    font-size: 13px;
  }

  .hero-slider,
  .hero-section {
    min-height: 280px;
    height: 55vh;
  }

  .hero-slide .hero-content {
    padding-top: 72px;
    padding-bottom: 24px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .highlights-grid,
  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta .cta-btn {
    font-size: 11px;
    padding: 0 4px;
  }

  .section,
  section {
    padding: 28px 0;
  }
}

/* ==========================================================================
   MIN-WIDTH 375px
   ========================================================================== */

@media (min-width: 375px) {
  html {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================================
   MIN-WIDTH 576px — Small devices (landscape phones)
   ========================================================================== */

@media (min-width: 576px) {
  html {
    font-size: 15px;
  }

  /* Hero */
  .hero-slider,
  .hero-section {
    height: 65vh;
    max-height: 640px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .hero-cta-group .btn {
    width: auto;
    max-width: none;
  }

  /* Grids */
  .floor-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section */
  .section,
  section {
    padding: 56px 0;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ==========================================================================
   MIN-WIDTH 768px — Medium devices (tablets)
   ========================================================================== */

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }

  /* Hero */
  .hero-slider,
  .hero-section {
    height: 72vh;
    max-height: 720px;
    min-height: 480px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }

  /* Grids */
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .floor-plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Pricing */
  .pricing-cards-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .pricing-cards-wrapper .pricing-card {
    flex: 1 1 calc(33.333% - 24px);
    min-width: 220px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Mobile sticky CTA — hide on tablets and up */
  .mobile-sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }

  /* Visibility utilities */
  .hide-mobile,
  .desktop-only {
    display: block !important;
  }

  .mobile-only,
  .hide-desktop {
    display: none !important;
  }

  /* Back to top / WhatsApp float */
  .back-to-top {
    bottom: 70px;
    right: 24px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-float {
    bottom: 32px;
    left: auto;
    right: 80px;
    width: 52px;
    height: 52px;
  }

  /* Section */
  .section,
  section {
    padding: 72px 0;
  }

  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* ==========================================================================
   MIN-WIDTH 992px — Large devices (desktops)
   ========================================================================== */

@media (min-width: 992px) {
  html {
    font-size: 16px;
  }

  /* Navigation — show desktop nav, hide hamburger */
  .nav-hamburger {
    display: none;
  }

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

  .nav-mobile-overlay {
    display: none;
  }

  /* Hero */
  .hero-slider,
  .hero-section {
    height: 80vh;
    max-height: 820px;
    min-height: 560px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  /* Grids */
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Section */
  .section,
  section {
    padding: 88px 0;
  }
}

/* ==========================================================================
   MIN-WIDTH 1024px — Large tablets / small desktops
   ========================================================================== */

@media (min-width: 1024px) {
  /* Hero */
  .hero-slider,
  .hero-section {
    height: 84vh;
    max-height: 860px;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  /* Grids */
  .highlights-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ==========================================================================
   MIN-WIDTH 1200px — Extra large devices (large desktops)
   ========================================================================== */

@media (min-width: 1200px) {
  html {
    font-size: 16px;
  }

  /* Hero */
  .hero-slider,
  .hero-section {
    height: 88vh;
    max-height: 900px;
    min-height: 640px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  /* Grids */
  .amenities-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Section */
  .section,
  section {
    padding: 96px 0;
  }

  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ==========================================================================
   MIN-WIDTH 1400px — XXL screens
   ========================================================================== */

@media (min-width: 1400px) {
  /* Hero */
  .hero-slider,
  .hero-section {
    height: 92vh;
    max-height: 960px;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  /* Grids gap increase */
  .highlights-grid,
  .amenities-grid,
  .floor-plans-grid,
  .cards-grid,
  .gallery-grid {
    gap: 24px;
  }

  /* Section */
  .section,
  section {
    padding: 112px 0;
  }

  .container {
    max-width: 1360px;
    padding-left: 60px;
    padding-right: 60px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .nav-mobile-overlay {
    transition: none;
  }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
  .nav-hamburger,
  .nav-mobile-overlay,
  .mobile-sticky-cta,
  .back-to-top,
  .whatsapp-float,
  .hero-slider .slick-arrow,
  .lightbox-controls {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    font-size: 12pt;
    color: #000;
  }

  .hero-slider,
  .hero-section {
    height: auto;
    min-height: 0;
    max-height: none;
    page-break-inside: avoid;
  }

  .section,
  section {
    padding: 24pt 0;
    page-break-inside: avoid;
  }

  .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }
}
