/* ============================================================
   MODERN DESIGN STYLESHEET
   Updated Design System for Professional Real Estate Platform
   ============================================================ */

:root {
    /* Primary Colors */
    --primary-blue: #1a365d;
    --primary-blue-light: #2d5a8c;
    --accent-blue: #0066cc;
    --accent-light: #64b5f6;

    /* Neutral Colors */
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #1a1a1b;
    --text-gray: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;

    /* Dark Mode */
    --bg-dark: #0f1823;
    --bg-dark-light: #1a2332;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.4rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.6rem;
}

h5 {
    font-size: 1.3rem;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--text-gray);
    line-height: 1.75;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-blue-light);
    text-decoration: none;
}

/* ============================================================
   SECTIONS & SPACING
   ============================================================ */

.section {
    padding: 80px 0;
}

.section-lg {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title--left {
    text-align: left;
    margin-bottom: 40px;
}

.section-title-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

.section-title h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-title-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    margin: 20px auto;
    border-radius: 2px;
}

.section-title--left .section-title-divider {
    margin: 20px 0;
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto;
    line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-title {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-gray);
    line-height: 1.7;
}

.card .card-body {
    padding: .8rem;
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-text {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================================
   FORM STYLES
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ============================================================
   GRID & LAYOUT
   ============================================================ */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col {
    padding: 0 20px;
    flex: 1 1 0%;
    min-width: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.pt-3 {
    padding-top: 1rem;
}

.pb-3 {
    padding-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.d-grid {
    display: grid;
}

.gap-responsive {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .row {
        margin: 0 -5px;
    }

    .col {
        padding: 0 15px;
    }

    .d-none-mobile {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}
