/* 
 * Zen Apartment - Premium Real Estate Website
 * Main Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --primary-color: #1a2a3a;
    /* Deep Navy */
    --secondary-color: #c5a059;
    /* Muted Gold */
    --secondary-hover: #b08d4b;
    --bg-color: #f8f9fa;
    /* Light Grey/White */
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2c4257;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.nav-links ul li a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: 5px 0;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links ul li a:hover {
    color: var(--secondary-color);
}

.nav-links ul li a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px 0;
}

/* Hero Slider */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 80px;
    /* Header height */
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 80vh;
    /* 👈 isko change karo */
    width: 100%;
    transition: transform 0.5s ease-in-out;
    position: relative;
}

.slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    /* ab yeh 80vh ko inherit karega */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.slide-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1s ease;
}

.slide-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.property-info .location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.specs {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Blog Cards */
.blog-card {
    background: white;
    padding: 30px;
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.blog-card .date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.blog-card h3 {
    font-size: 1.4rem;
    margin: 10px 0;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Facilities */
.facility-item {
    background: white;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: var(--transition-fast);
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Contact Section */
.contact-section {
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide by default on mobile */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .header-actions .whatsapp-btn {
        display: none;
        /* Hide desktop button on mobile, keeping hamburger */
    }

    .hamburger {
        display: block !important;
        font-size: 1.5rem;
        margin-left: 20px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: 0;
    /* margin removed to fix gap issue, relying on transform */
}

/* Connect the hover area so mouse doesn't fall through the gap */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -40px;
    /* Increased reach */
    left: 0;
    width: 100%;
    height: 40px;
    /* Increased height */
    background: transparent;
}

.dropdown-content li {
    display: block;
    width: 100%;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: var(--secondary-color);
    padding-left: 30px;
    /* Slide effect */
    border-left: 3px solid var(--secondary-color);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Arrow indicator for Properties */
.dropdown>a::after {
    content: ' \25BC';
    font-size: 0.6em;
    margin-left: 6px;
    vertical-align: middle;
    color: var(--secondary-color);
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
        /* Hidden by default */
        width: 100%;
        border-top: none;
        padding: 0;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:active .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
}