/* ==========================================================================
   Mahindra World City Luxury Residences - Custom Styling & Layout Stability
   ========================================================================== */

:root {
  --primary-red: #c8102e;
  --primary-red-hover: #a60d26;
  --primary-dark: #0f172a;
  --secondary-dark: #1e293b;
  --accent-gold: #c5a059;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #0f172a;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Container safety */
.container-max {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container-max {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container-max {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.5);
  }
}

.pulse-btn {
  animation: pulse-subtle 3s infinite ease-in-out;
}

@keyframes pulse-green {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
  }
}

.pulse-whatsapp {
  animation: pulse-green 2.5s infinite ease-in-out;
}

@keyframes pulse-call {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(200, 16, 46, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.6);
  }
}

.pulse-call {
  animation: pulse-call 2.5s infinite ease-in-out;
}

/* Modal styles */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Floor plan and masterplan zoom */
.zoom-cursor {
  cursor: zoom-in;
}

/* Lightbox overlay */
#lightboxModal.active {
  display: flex !important;
}

/* Custom Tabs */
.tab-btn.active {
  background-color: #c8102e;
  color: #ffffff;
  border-color: #c8102e;
}

/* Toast Notification */
#toastNotification {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  transform: translate(-50%, 100px);
  opacity: 0;
  pointer-events: none;
}
#toastNotification.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Guarantee Column Layouts Even Without Pure Tailwind Grid */
.responsive-hero-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .responsive-hero-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }
  .responsive-hero-left {
    flex: 1 1 0%;
    min-width: 0;
  }
  .responsive-hero-right {
    width: 480px;
    flex-shrink: 0;
  }
}

.responsive-legacy-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .responsive-legacy-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .responsive-legacy-left {
    flex: 1 1 0%;
    max-width: 750px;
  }
  .responsive-legacy-right {
    flex-shrink: 0;
    width: 320px;
  }
}
