/* 
    Project: Wadhwa Wise City Panvel Landing Page
    Theme: White, Royal Blue, Gold Accent
    Style: Premium, Minimal, Modern, Elegant
    Approach: Mobile-First, Performance Optimized, iOS-Safe
*/

/* ==========================================================================
   CSS Variables & Base Setup
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-royal: #112B4C;
    --primary-royal-hover: #0a1b32;
    --accent-gold: #C9A25E;
    --accent-gold-hover: #b48e4a;
    
    /* UI Colors */
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(17, 43, 76, 0.08);
    --shadow-gold: 0 10px 30px rgba(201, 162, 94, 0.2);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* System Fonts for Performance - No Google Fonts */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-primary-royal { color: var(--primary-royal) !important; }
.bg-primary-royal { background-color: var(--primary-royal) !important; }
.text-accent-gold { color: var(--accent-gold) !important; }
.bg-accent-gold { background-color: var(--accent-gold) !important; }

.fs-7 { font-size: 0.85rem; }
.max-w-800 { max-width: 800px; }
.cursor-pointer { cursor: pointer; }

/* Custom Buttons */
.btn-primary-royal {
    background-color: var(--primary-royal);
    color: #ffffff;
    border: 2px solid var(--primary-royal);
    transition: var(--transition-smooth);
}

.btn-primary-royal:hover, .btn-primary-royal:focus {
    background-color: var(--primary-royal-hover);
    border-color: var(--primary-royal-hover);
    color: #ffffff;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-outline-primary-royal {
    background-color: transparent;
    color: var(--primary-royal);
    border: 2px solid var(--primary-royal);
    transition: var(--transition-smooth);
}

.btn-outline-primary-royal:hover, .btn-outline-primary-royal:focus {
    background-color: var(--primary-royal);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-accent-gold {
    background-color: var(--accent-gold);
    color: #ffffff;
    border: 2px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.btn-accent-gold:hover, .btn-accent-gold:focus {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Dividers */
.divider {
    height: 3px;
    width: 60px;
    border-radius: 3px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed nav */
}

.hero-bg {
    background-image: linear-gradient(to bottom, rgba(17, 43, 76, 0.7), rgba(0, 0, 0, 0.6)), url('../img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* ==========================================================================
   Cards & Interactive Elements
   ========================================================================== */
.hover-lift {
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium) !important;
    border-color: rgba(201, 162, 94, 0.3);
}

/* Pricing Cards */
.pricing-card {
    transition: var(--transition-smooth);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium) !important;
}

.pricing-card.popular {
    border: 2px solid var(--accent-gold) !important;
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-10px);
}

@media (max-width: 991.98px) {
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

/* Content Blocks */
.content-block p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

/* ==========================================================================
   Video Facade (About Section)
   ========================================================================== */
.video-facade-container {
    transition: var(--transition-smooth);
}

.video-facade-container:hover .play-btn-circle {
    transform: scale(1.1);
    background-color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(201, 162, 94, 0.5) !important;
}

.play-btn-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-item {
    position: relative;
    border-radius: 1rem;
    aspect-ratio: 4/3;
}

.gallery-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

/* ==========================================================================
   Amenities Section
   ========================================================================== */
.amenity-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hover-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion-item {
    background-color: #fff;
}

.accordion-button {
    color: var(--primary-royal);
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-royal);
    background-color: rgba(201, 162, 94, 0.05);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 rgba(201, 162, 94, 0.2);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}

.accordion-button::after {
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Modals & Forms
   ========================================================================== */
.modal-content {
    background-color: var(--bg-light);
}

.form-control {
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(201, 162, 94, 0.25);
}

.input-group-text {
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

/* Form Validation Styles */
.invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   iOS Optimized Mobile Sticky Bar
   ========================================================================== */
.mobile-sticky-bar {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
}

.glass-sticky {
    /* Premium iOS Glass Effect */
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Crucial for Safari */
    
    /* iOS Safe Area Padding - Prevents overlap with iPhone home bar */
    padding-bottom: env(safe-area-inset-bottom);
    
    /* Hardware Acceleration for 60fps scrolling on mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.mobile-sticky-bar .btn {
    border: none;
    line-height: 1.2;
}

/* Ensure the footer has enough space at the bottom on mobile 
   so content isn't hidden behind the sticky bar */
@media (max-width: 991.98px) {
    footer {
        /* 70px base height + iOS safe area */
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
    
    /* Remove the old manual padding div we had in the footer */
    footer .d-lg-none[style*="height: 60px"] {
        display: none !important;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}