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

:root {
    --primary: #1E3A8A; /* Navy Blue */
    --primary-hover: #1e40af;
    --secondary: #0EA5E9; /* Light Blue / Teal */
    --bg-main: #F9FAFB;
    --bg-white: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border: #E5E7EB;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.2s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

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

/* Topbar */
.topbar {
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
}

.topbar-contact {
    display: flex;
    gap: 20px;
}

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: #0284c7;
}

/* Hero & Search */
.hero {
    position: relative;
    padding: 80px 0 120px;
    background: url('assets/hero.png') center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 58, 138, 0.7); /* Navy overlay */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 20;
    margin-top: -60px;
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.search-tab {
    padding: 8px 20px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
}

.search-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Properties Grid */
.section { padding: 80px 0; }

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

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.property-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.property-img {
    position: relative;
    height: 220px;
}

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

.property-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-info {
    padding: 20px;
}

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

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.property-address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-main);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
    background: var(--primary);
    color: white;
    padding: 60px 0;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .properties-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .topbar, .nav-links { display: none; }
    .search-form { grid-template-columns: 1fr; }
    .search-form button { padding: 15px !important; width: 100%; }
    .properties-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .hero-title { font-size: 2.2rem; }
    .search-box { margin-top: -30px; padding: 15px; }
    .cta-section h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .header-inner { flex-direction: column; gap: 15px; text-align: center; }
    .hero { padding: 50px 0 80px; }
    .property-features { flex-wrap: wrap; }
    .search-tab { width: 100%; text-align: center; }
}
