/* ==========================================================================
   SRN Courtyard - Premium Luxury Real Estate CSS System
   Primary Color: #143b7a | Gold Accent: #d4af37 / #e2b714
   ========================================================================== */

:root {
    --primary-color: #143b7a;
    --primary-dark: #0b2147;
    --primary-light: #1d4ed8;
    --secondary-color: #f47a20;
    --secondary-hover: #d9620a;
    --secondary-light: #ff8e3c;
    --accent-gold: #f47a20;
    --accent-gold-hover: #d9620a;
    --accent-amber: #f47a20;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 2px 4px rgba(20, 59, 122, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(20, 59, 122, 0.1), 0 8px 10px -6px rgba(20, 59, 122, 0.05);
    --shadow-lg: 0 20px 35px -10px rgba(20, 59, 122, 0.18);
    --radius-lg: 16px;
    --radius-md: 12px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 70px; /* Space for mobile sticky CTA bar */
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 12px 0;
}

.navbar-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.navbar-brand-text span {
    color: var(--accent-gold);
}

.nav-link-custom {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.2s ease;
}
.nav-link-custom:hover {
    color: var(--primary-color) !important;
}

.btn-nav-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 2px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(244, 122, 32, 0.4);
    transition: all 0.3s ease;
}
.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 122, 32, 0.6);
    color: #ffffff !important;
}

/* Mobile Offcanvas */
.offcanvas-custom {
    background-color: var(--primary-dark);
    color: #ffffff;
}
.offcanvas-custom .nav-link-custom {
    color: #e2e8f0 !important;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0 !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 33, 71, 0.90) 0%, rgba(20, 59, 122, 0.82) 100%), 
                url('../images/srn-banner.png') center/cover no-repeat;
    color: #ffffff;
    padding: 75px 0 60px 0;
    min-height: 540px;
    display: flex;
    align-items: center;
}

.hero-banner-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-banner-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(244, 122, 32, 0.25);
    border-color: var(--secondary-color);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.hero-badge {
    background: rgba(244, 122, 32, 0.2);
    border: 1px solid var(--secondary-color);
    color: #ffc299;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title {
    font-size: 2.3rem;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    font-weight: 400;
}

.hero-specs-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 18px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
}
.trust-badge-item i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* ==========================================================================
   Sticky Lead Form (Desktop & Mobile)
   ========================================================================== */
.lead-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(20, 59, 122, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.sticky-lead-wrapper {
    position: sticky;
    top: 140px;
}

.lead-form-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 20px 24px;
    text-align: center;
}

.lead-form-header h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.lead-form-header p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin: 0;
}

.lead-form-body {
    padding: 24px;
}

.form-label-custom {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.form-control-custom, .form-select-custom {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(20, 59, 122, 0.12);
}

.btn-submit-lead {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    width: 100%;
    box-shadow: 0 8px 20px rgba(244, 122, 32, 0.35);
    transition: all 0.3s ease;
}

.btn-submit-lead:hover {
    background: linear-gradient(135deg, var(--secondary-hover), #b84f00);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(244, 122, 32, 0.5);
    color: #ffffff;
}

.privacy-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Content Cards & Sections
   ========================================================================== */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.highlight-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}
.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 59, 122, 0.2);
}

.highlight-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(20, 59, 122, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Urgency Banner */
.urgency-banner {
    background: linear-gradient(135deg, #881337, #9f1239);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 22px 24px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 10px 25px rgba(159, 18, 57, 0.25);
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(145deg, #091a36 0%, #102e61 55%, #164287 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(244, 122, 32, 0.3);
    box-shadow: 0 20px 45px rgba(11, 33, 71, 0.35), 0 0 30px rgba(244, 122, 32, 0.12);
}

.pricing-rate-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 16px 18px;
}

.pricing-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

/* Amenities Card */
.amenity-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.amenity-card:hover {
    border-color: var(--accent-gold);
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}
.amenity-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Gallery & Media */
.gallery-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-img-wrapper:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 33, 71, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    transition: opacity 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   Mobile Bottom Fixed Action Bar
   ========================================================================== */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 33, 71, 0.98);
    backdrop-filter: blur(12px);
    padding: 10px 12px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mobile-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s ease;
}

.btn-mobile-action i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.btn-mobile-call {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-mobile-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.btn-mobile-enquiry {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    color: var(--primary-dark);
}

/* Footer */
.footer-custom {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 50px 0 20px 0;
    font-size: 0.9rem;
}
.footer-custom h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--accent-gold);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Secondary Color Utility Classes */
.bg-secondary-custom, .bg-gold {
    background-color: var(--secondary-color) !important;
    color: #ffffff !important;
}

.text-secondary-custom, .text-gold {
    color: var(--secondary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

.badge-secondary-custom {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-weight: 700;
}

.location-advantage-icon{
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(20, 59, 122, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.lead {
    font-size: 16px !important;
}

/* Pricing Card Mobile Responsiveness Improvements */
@media (max-width: 575.98px) {
    .pricing-card {
        padding: 20px 16px;
    }
    .pricing-rate-box {
        padding: 12px 14px;
    }
    .pricing-price {
        font-size: 1.65rem;
    }
    .pricing-rate-divider {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        width: 100%;
        margin: 2px 0;
    }
}

/* Floating Action Buttons (FABs) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.fab-call {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-hover));
}

.fab-whatsapp {
    background: #25d366;
}

/* Pulsing visual animation */
.fab-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.fab-btn.fab-whatsapp::after {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    animation: fab-pulse-whatsapp 2s infinite;
}

.fab-btn.fab-call::after {
    box-shadow: 0 0 0 0 rgba(244, 122, 32, 0.5);
    animation: fab-pulse-call 2s infinite;
}

@keyframes fab-pulse-whatsapp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        transform: scale(1.3);
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fab-pulse-call {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 122, 32, 0.6);
    }
    70% {
        transform: scale(1.3);
        box-shadow: 0 0 0 12px rgba(244, 122, 32, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(244, 122, 32, 0);
    }
}

@media (max-width: 991.98px) {
    .fab-container {
        bottom: 85px; /* Stay clear of mobile bottom sticky action bar */
        right: 15px;
        gap: 12px;
    }
    .fab-btn {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
}

/* Custom Gallery Filter Buttons */
.btn-gallery-filter {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-gallery-filter:hover, .btn-gallery-filter.active {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(20, 59, 122, 0.2);
}

.btn-gallery-filter:focus {
    outline: none;
}

/* Gallery Slider / Carousel */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 15px 5px;
    -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-slide-card {
    flex: 0 0 calc(50% - 10px);
    transition: all 0.4s ease;
}

.gallery-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav-btn.prev-btn {
    left: -23px;
}

.gallery-nav-btn.next-btn {
    right: -23px;
}

@media (max-width: 991.98px) {
    .gallery-nav-btn {
        display: none !important; /* Hide navigation buttons on mobile/tablet to favor native touch gestures */
    }
}

@media (max-width: 575.98px) {
    .gallery-track {
        gap: 15px;
    }
    .gallery-slide-card {
        flex: 0 0 82%; /* Visual cue of next slide */
    }
    .payment-plan-card {
        padding: 20px 16px;
    }
}

/* Payment Plan Card (Matches Pricing Card) */
.payment-plan-card {
    background: linear-gradient(145deg, #091a36 0%, #102e61 55%, #164287 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(11, 33, 71, 0.35);
}

.payment-plan-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(244, 122, 32, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
