/* ========================================================
   Codename Majha Ghar — Official Brochure Design System
   Exact Theme Colors from Brochure & Authentic Vector Logo:
   - Primary Royal Navy: #0a143a / #070d24
   - Brand Magenta/Pink: #e5007c (Logo petal & "माझं घर")
   - Brand Radiant Orange: #ef7c00 (Logo petal & energy)
   - Brand Warm Gold: #d4af37 / #fcd5a4 (Brochure accents)
   ======================================================== */

:root {
  --color-navy-deep: #070d24;
  --color-navy-base: #0a143a;
  --color-navy-card: #0f1d4d;
  --color-navy-border: rgba(229, 0, 124, 0.25);
  
  --color-magenta: #e5007c;
  --color-magenta-glow: rgba(229, 0, 124, 0.4);
  --color-orange: #ef7c00;
  --color-gold: #d4af37;
  --color-gold-light: #fcd5a4;
  --color-emerald: #10b981;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #070d24;
}
::-webkit-scrollbar-thumb {
  background: #1e2c60;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e5007c;
}

/* Tabular Numerals for Counter Animations */
.stat-counter,
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Signature Brochure Tri-Color Gradient */
.bg-brochure-gradient {
  background: linear-gradient(135deg, #e5007c 0%, #ef7c00 55%, #d4af37 100%);
}
.bg-brochure-gradient-hover:hover {
  background: linear-gradient(135deg, #d0006f 0%, #dc7200 55%, #c59f27 100%);
}
.text-brochure-gradient {
  background: linear-gradient(135deg, #ff409f 0%, #ffa033 50%, #fcd5a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gold-gradient {
  background: linear-gradient(135deg, #fce4b8 0%, #d4af37 50%, #b88a14 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(15, 29, 77, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(252, 213, 164, 0.15);
}
.glass-panel-glow {
  background: rgba(15, 29, 77, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 0, 124, 0.35);
  box-shadow: 0 10px 30px -10px rgba(229, 0, 124, 0.2), 0 0 1px 1px rgba(252, 213, 164, 0.2);
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.animate-shimmer {
  position: relative;
  overflow: hidden;
}
.animate-shimmer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.8s infinite;
}

/* Floating WhatsApp Pulse */
@keyframes greenPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-pulse {
  animation: greenPulse 2s infinite;
}

/* ========================================================
   1. PRICE & BLUEPRINT GATING SYSTEM
   ======================================================== */
.price-display-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  transition: all 0.4s ease;
}

.gated-price {
  letter-spacing: 0.05em;
  transition: color 0.3s ease, filter 0.3s ease;
}

.gated-plan-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
}

.gated-plan-img {
  transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s ease;
}

.gated-plan-img.is-locked {
  filter: blur(14px) brightness(0.65) grayscale(40%);
  transform: scale(1.03);
  user-select: none;
  pointer-events: none;
}

.plan-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(10, 20, 58, 0.8) 0%, rgba(7, 13, 36, 0.95) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1.5rem;
  text-align: center;
  z-index: 10;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.content-unlocked .gated-plan-img.is-locked {
  filter: none !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

body.content-unlocked .plan-lock-overlay {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ========================================================
   2. DATE CHIPS & FORM CONTROLS
   ======================================================== */
.date-chip {
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(252, 213, 164, 0.25);
  background: rgba(10, 20, 58, 0.6);
  color: #e2e8f0;
  transition: all 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
.date-chip:hover {
  border-color: #ef7c00;
  color: #fff;
  background: rgba(239, 124, 0, 0.2);
}
.date-chip.is-selected {
  background: linear-gradient(135deg, #e5007c 0%, #ef7c00 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(229, 0, 124, 0.4);
  font-weight: 700;
}

/* Phone input with country prefix styling */
.phone-input-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(252, 213, 164, 0.25);
  border-radius: 0.625rem;
  background: rgba(10, 20, 58, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-input-group:focus-within {
  border-color: #e5007c;
  box-shadow: 0 0 0 2px rgba(229, 0, 124, 0.25);
}
.phone-prefix {
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: #cbd5e1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  user-select: none;
}
.phone-input {
  flex: 1;
  background: transparent;
  padding: 0.65rem 0.75rem;
  color: #ffffff;
  outline: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  min-width: 0;
}
.phone-input::placeholder {
  color: #64748b;
  letter-spacing: normal;
  font-size: 0.85rem;
}
.phone-error-msg {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: none;
}
.phone-error-msg.visible {
  display: block;
}

/* Hero background glow */
.hero-gradient-overlay {
  background: linear-gradient(180deg, rgba(10, 20, 58, 0.75) 0%, rgba(10, 20, 58, 0.92) 75%, #070d24 100%);
}

/* ========================================================
   3. RESPONSIVE ENGINE (MOBILE, TABLET, LAPTOP, DESKTOP)
   ======================================================== */

/* Mobile Native App View (<= 640px) */
@media (max-width: 640px) {
  .mobile-app-bar {
    height: 54px;
  }
  .mobile-app-pills-bar {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.45rem 0.75rem;
    gap: 0.4rem;
  }
  .mobile-app-pills-bar::-webkit-scrollbar {
    display: none;
  }
  .app-pill {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(252, 213, 164, 0.2);
    color: #cbd5e1;
    transition: all 0.2s ease;
  }
  .app-pill:hover,
  .app-pill.active {
    background: linear-gradient(135deg, #e5007c 0%, #ef7c00 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(229, 0, 124, 0.35);
  }

  .mobile-snap-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem 0.75rem 0.25rem;
    scrollbar-width: none;
  }
  .mobile-snap-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-snap-card {
    scroll-snap-align: center;
    flex: 0 0 85%;
    max-width: 85%;
  }

  .mobile-app-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(10, 20, 58, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(229, 0, 124, 0.3);
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.35fr;
    padding: 0.3rem 0.4rem;
    gap: 0.35rem;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
  }
  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0;
    border-radius: 0.5rem;
    color: #e2e8f0;
    transition: background-color 0.2s ease;
  }
  .dock-btn svg {
    margin-bottom: 2px;
  }

  .app-modal-sheet {
    position: fixed;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 90vh !important;
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .app-modal-sheet.sheet-open {
    transform: translateY(0) !important;
  }
  .app-sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    margin: 0.5rem auto 0.75rem auto;
  }
}

/* Tablet & Laptop Navigation Protection (641px - 1280px) */
@media (min-width: 641px) and (max-width: 1280px) {
  .desktop-nav-link {
    font-size: 0.8rem !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }
  .header-hotline-btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.6rem !important;
  }
}
