/* ================================
   Nirala Trio Landing Page Styles
   Custom CSS for Premium Real Estate
   ================================ */

/* CSS Variables for Color Scheme */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #ECF0F1;
    --accent-color: #E74C3C;
    --light-bg: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}


.lead-form-card {
    position: relative;
    z-index: 10;
}

.lead-form-card input,
.lead-form-card select,
.lead-form-card button {
    position: relative;
    z-index: 11;
    pointer-events: auto;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Notification container (top of page) */
#notification-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10000;
}

.notification {
  pointer-events: auto;
}


/* Utility Classes */
.section-padding {
    padding: var(--section-padding);
}

.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: 5px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-block {
    width: 100%;
}

/* Navigation Styles */
.navbar {
    background: var(--white);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--white);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-brand .logo {
    height: 40px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Dropdown menu style */
/* Dropdown Menu Styles */
.navbar-nav .dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-hover);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    color: var(--text-dark);
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
}

.navbar-nav .dropdown-item:hover {
    background: var(--light-bg);
    color: var(--accent-color);
    padding-left: 25px;
}

.navbar-nav .dropdown-item:focus {
    background: var(--light-bg);
    color: var(--accent-color);
}

.navbar-nav .dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Mobile Dropdown Styles */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        position: static;
    }
    
    .navbar-nav .dropdown-item {
        color: var(--text-dark);
        padding: 8px 30px;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: var(--light-bg);
        padding-left: 35px;
    }
    
    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('hero-pattern.png') repeat; */
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
	color: var(--white) !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-highlights {
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.highlight-item i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Lead Form Styles */
.lead-form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-hover);
    color: var(--text-dark);
    animation: fadeInUp 1s ease 0.6s both;
}

.lead-form-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

/* Highlights Table */
.highlights-table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.highlights-table td {
    padding: 15px 20px;
    font-size: 1rem;
}

.highlights-table td:first-child {
    background: var(--light-bg);
    font-weight: 600;
}

/* Amenities Section */
.amenity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.amenity-icon {
    margin-bottom: 1rem;
}

.amenity-icon i {
    font-size: 3rem;
    color: var(--accent-color);
}

.amenity-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.amenity-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Floor Plans Section */
.floor-plan-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    height: 100%;
}

.plan-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.plan-header h3 {
    color: var(--white);
    margin: 0;
}

.plan-details {
    padding: 1.5rem;
}

.plan-details ul {
    list-style: none;
    padding: 0;
}

.plan-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.plan-details li:last-child {
    border-bottom: none;
}

.plan-image img {
    width: 100%;
    height: auto;
}

/* Price Table */
.price-table {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.price-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.price-table th,
.price-table td {
    padding: 15px 20px;
    text-align: center;
}

.price-table tbody tr:hover {
    background: var(--light-bg);
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Location Section */
.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
}

.location-list {
    list-style: none;
    padding: 0;
}

.location-list li {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-list i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Developer Section */
.developer-highlights {
    margin-top: 2rem;
}

.developer-highlights .highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.developer-highlights i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-right: 1rem;
}

.developer-highlights h4 {
    margin: 0;
    font-size: 1.1rem;
}

.developer-highlights p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

.horizontal-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
    margin-bottom: 1rem;
}

.horizontal-form input,
.horizontal-form select {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.horizontal-form button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Mobile hamburger menu visibility fix */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: 2px solid var(--primary-color) !important;
        border-radius: 4px;
        padding: 6px 8px;
        background: transparent !important;
    }
    .hero-section {
    padding-top: 90px !important;   /* Adjust 90px to match the actual height of your fixed navbar on mobile */
  }
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844, 62, 80, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 20px;
        height: 20px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .lead-form-card {
        margin-top: 2rem;
    }
    
    .horizontal-form .form-row {
        flex-direction: column;
    }
    
    .horizontal-form input,
    .horizontal-form select,
    .horizontal-form button {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .amenity-card,
    .floor-plan-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .lead-form-card,
    .cta-form-container {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.img-fluid {
    height: auto;
    max-width: 100%;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* Ensure form elements are clickable */
.lead-form-card select,
.lead-form-card input,
.lead-form-card button {
    position: relative;
    z-index: 1;
}

/* Print styles */
@media print {
    .navbar,
    .lead-form-card,
    .cta-section,
    .footer {
        display: none;
    }
    
    .section-padding {
        padding: 20px 0;
    }
}

html {
  scroll-padding-top: 70px; /* Adjust 70px according to your header's height */
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 90px; /* Set to the height of your fixed/mobile navbar if it’s taller on mobile */
  }
}


/* WhatsApp Floating Button */
#whatsapp-btn {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 9999;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
#whatsapp-btn:hover {
    background: #128C7E;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
#whatsapp-btn img {
    width: 28px;
    height: 28px;
    display: block;
}
