/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-main: #FFFFFF;
    --bg-light: #F7FAFC; /* Soft Light Blue/Grey */
    --primary: #1A365D; /* Corporate Navy */
    --primary-hover: #2A4365;
    --accent: #38A169; /* Trust/Money Green */
    --accent-hover: #2F855A;
    --text-main: #1A202C; /* Dark Slate */
    --text-muted: #718096;
    --border: #E2E8F0;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.bg-light { background-color: var(--bg-light); }
.w-100 { width: 100%; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

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

.btn-search {
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.btn-app {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

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

.link-arrow {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover {
    color: var(--accent);
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(26,54,93,0.9) 0%, rgba(26,54,93,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    max-width: 900px;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.search-tabs .tab {
    background: transparent;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.search-tabs .tab.active,
.search-tabs .tab:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.search-inputs {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-end;
}

.input-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-item input,
.input-item select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
}

.input-item input:focus,
.input-item select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Featured Properties
   ========================================================================== */
.featured-properties {
    padding: 6rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.p-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.p-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .p-image img {
    transform: scale(1.05);
}

.badges {
    position: absolute;
    top: 15px; left: 15px; right: 15px;
    display: flex;
    justify-content: space-between;
}

.badges span {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.badge-sale { background: var(--primary); }
.badge-rent { background: #E53E3E; }
.badge-featured { background: var(--accent); }

.p-content {
    padding: 1.5rem;
}

.p-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.p-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.p-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.p-address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.p-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.p-features i {
    color: var(--primary);
    margin-right: 0.3rem;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us {
    padding: 6rem 0;
}

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

.why-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.benefit-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.b-icon {
    width: 50px; height: 50px;
    background: #fff;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.benefit-list h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.benefit-list p {
    font-size: 0.95rem;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.experience-card {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--primary);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.experience-card h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   CTA / App Section
   ========================================================================== */
.cta-section {
    padding: 6rem 0;
    background: var(--bg-main);
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--primary);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-about .logo {
    color: #fff;
}

.footer-about p {
    color: #A0AEC0;
    max-width: 300px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--accent);
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #A0AEC0;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: #A0AEC0;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1; visibility: visible;
}

@media (max-width: 1024px) {
    .search-inputs { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .btn-search { grid-column: span 2; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; gap: 3rem; }
    .why-image { margin-top: 2rem; }
    .experience-card { bottom: 20px; right: 20px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .desktop-btn { display: none; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -300px;
        width: 300px; height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1001;
    }
    
    .nav-links.active { right: 0; }
    
    .hero h1 { font-size: 2.8rem; }
    .hero { padding-top: 8rem; }
    .search-inputs { grid-template-columns: 1fr; }
    .btn-search { grid-column: span 1; }
    
    .property-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    
    .app-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}
