/* ============================================
   style.css - Time Realty Website
   Complete Styling with Working Mobile Navbar
   ============================================ */

/* --------------------------------------------
   1. RESET & VARIABLES
--------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c49a6c;
    --primary-dark: #a77c4e;
    --secondary: #2c3e50;
    --dark: #1e2a36;
    --light: #f9f7f3;
    --gray: #6c757d;
    --white: #ffffff;
    --black: #111111;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* --------------------------------------------
   2. HEADER & NAVIGATION (MOBILE-FRIENDLY)
--------------------------------------------- */
header {
    background: #000000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* Logo Styles */
.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
     /* filter: brightness(0) invert(1);  ← Remove or comment this line */
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Desktop Navigation */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* MOBILE STYLES - THIS IS WHAT MAKES THE NAVBAR WORK */
@media (max-width: 768px) {
    .hamburger {
        display: block !important;
    }
    
    /* Animated X when menu is open */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Navigation - Slides from left */
    .navbar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background: #000000 !important;
        padding: 5rem 2rem 2rem !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        z-index: 1000 !important;
    }
    
    .navbar.active {
        left: 0 !important;
    }
    
    .nav-menu {
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .nav-link {
        font-size: 1.1rem !important;
        padding: 0.5rem 0 !important;
        display: block !important;
        text-align: left !important;
    }
    
    .logo-img {
        height: 45px !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
    }
}

/* Tablet View */
@media (min-width: 769px) and (max-width: 992px) {
    .logo-img {
        height: 52px;
    }
    
    .nav-menu {
        gap: 1.2rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .navbar {
        display: flex !important;
    }
}

/* --------------------------------------------
   3. HERO SECTION
--------------------------------------------- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/footer-bg1.webp') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------
   4. BUTTONS
--------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

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

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

/* --------------------------------------------
   5. STATS SECTION
--------------------------------------------- */
.stats {
    background: var(--light);
    padding: 4rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 180px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-item small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* --------------------------------------------
   6. SECTION HEADERS
--------------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto;
}

/* --------------------------------------------
   7. FEATURES & PRINCIPLES
--------------------------------------------- */
.why-us, .principles, .segment-page, .projects-page, .about-page, .contact-page {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f0ede8;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.principle {
    text-align: center;
    padding: 1.5rem;
}

.principle i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* --------------------------------------------
   8. JOURNEY SECTION (ABOUT PAGE)
--------------------------------------------- */
.journey-section {
    padding: 5rem 0;
}

.journey-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.journey-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-family: 'Playfair Display', serif;
}

.journey-text p {
    margin-bottom: 1.2rem;
    color: var(--gray);
    line-height: 1.8;
}

.journey-image {
    width: 100%;
}

.journey-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.journey-image img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------
   9. FEATURED PROJECTS SECTION
--------------------------------------------- */
.featured-projects {
    padding: 5rem 0;
    background: var(--light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.featured-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.featured-info {
    padding: 1.5rem;
}

.featured-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.featured-loc {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.featured-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0ede8;
}

.featured-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.featured-features i {
    color: var(--primary);
    font-size: 0.7rem;
}

.featured-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.featured-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* --------------------------------------------
   10. CTA BANNER
--------------------------------------------- */
.cta-banner {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------
   11. FOOTER
--------------------------------------------- */
footer {
    background: #0a1c2a;
    color: #ddd;
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons a {
    display: inline-block;
    background: #2c3e50;
    color: white;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #2c3e50;
    font-size: 0.85rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* --------------------------------------------
   12. RESPONSIVE MEDIA QUERIES
--------------------------------------------- */
@media (max-width: 992px) {
    .hero-content h1 { 
        font-size: 2.2rem; 
    }
    .stats-grid { 
        justify-content: center; 
    }
    .journey-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .journey-text h2 {
        font-size: 1.8rem;
    }
    .journey-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 1.8rem; 
    }
    .section-header h2 { 
        font-size: 1.8rem; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
    .featured-projects {
        padding: 3rem 0;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .logo-img {
        height: 52px;
    }
}