/* ========== CSS Variables ========== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --secondary: #0F172A;
    --accent: #10B981;
    --accent-dark: #059669;
    --warning: #F59E0B;
    --danger: #EF4444;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ========== Preloader ========== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader { text-align: center; }

.loader-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    animation: loading 1.5s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

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

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

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 0.625rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon svg { width: 36px; height: 36px; }

.logo-text { color: var(--gray-900); }
.logo-highlight { color: var(--primary); }

.nav-menu {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-actions {
    display: flex;
    gap: 0.625rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), #60A5FA, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--gray-300);
    margin-bottom: 2rem;
    max-width: 540px;
}

/* Search Form */
.hero-search {
    margin-bottom: 3rem;
}

.search-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.search-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.search-input,
.search-select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.9375rem;
    transition: var(--transition);
    height: 100%;
}

.search-input::placeholder { color: var(--gray-400); }

.search-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.search-select option {
    background: var(--gray-800);
    color: var(--white);
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.search-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    flex-shrink: 0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Visual / Floating Cards */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card { position: absolute; }

.float-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-card-1 {
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.hero-card-1 .float-card {
    width: 320px;
}

.float-card-img {
    height: 160px;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8, #0F172A);
    position: relative;
}

.float-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
    border-radius: 50% 50% 0 0;
}

.float-card-info {
    padding: 1.25rem;
}

.float-card-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.float-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.float-card-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.float-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

.hero-card-2 {
    bottom: 120px;
    left: 0;
    animation: float 6s ease-in-out 1s infinite;
}

.hero-card-3 {
    bottom: 0;
    right: 30px;
    animation: float 6s ease-in-out 2s infinite;
}

.float-card-sm {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.float-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-card-icon svg { width: 22px; height: 22px; }

.float-card-icon.green {
    background: #ECFDF5;
    color: #059669;
}

.float-card-icon.blue {
    background: var(--primary-50);
    color: var(--primary);
}

.float-card-sm strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
}

.float-card-sm p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.8125rem;
    animation: scrollBounce 2s infinite;
}

.scroll-down svg {
    width: 18px;
    height: 18px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ========== Sections ========== */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========== Categories ========== */
.categories {
    background: var(--gray-50);
}

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

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.category-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.category-count {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
}

/* ========== Properties ========== */
.property-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    transition: var(--transition);
    background: var(--white);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

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

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

.property-card.hidden {
    display: none;
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
}

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

.residential-1 { background: linear-gradient(135deg, #F97316, #FB923C, #FED7AA); }
.residential-2 { background: linear-gradient(135deg, #059669, #10B981, #A7F3D0); }
.commercial-1 { background: linear-gradient(135deg, #4F46E5, #818CF8, #C7D2FE); }
.commercial-2 { background: linear-gradient(135deg, #DC2626, #F87171, #FECACA); }
.agricultural-1 { background: linear-gradient(135deg, #16A34A, #4ADE80, #BBF7D0); }
.recreational-1 { background: linear-gradient(135deg, #0891B2, #22D3EE, #CFFAFE); }

.property-badge {
    position: absolute;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.property-badge.featured {
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--white);
}

.property-badge.new {
    top: 1rem;
    left: 1rem;
    background: #10B981;
    color: var(--white);
}

.property-badge.hot {
    top: 1rem;
    left: 1rem;
    background: #EF4444;
    color: var(--white);
}

.property-badge.type {
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--gray-700);
    backdrop-filter: blur(8px);
}

.property-fav {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    transition: var(--transition);
}

.property-fav:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.property-fav svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.property-fav.active svg {
    fill: #EF4444;
    color: #EF4444;
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.375rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.property-date {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.property-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

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

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========== How It Works ========== */
.how-it-works {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--white);
}

.how-it-works .section-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-light);
}

.how-it-works .section-title { color: var(--white); }
.how-it-works .section-subtitle { color: var(--gray-400); }

.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-md);
}

.step-icon svg { width: 32px; height: 32px; color: var(--primary-light); }

.step-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
}

.step-connector {
    align-self: center;
    width: 40px;
    height: 2px;
    background: rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
    margin-top: 4rem;
    position: relative;
}

.step-connector::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-light);
    border-right: 2px solid var(--primary-light);
    transform: rotate(45deg);
}

/* ========== Services ========== */
.services { background: var(--gray-50); }

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.service-icon svg { width: 28px; height: 28px; color: var(--primary); }

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ========== Market Insights ========== */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.insight-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.insight-card.main {
    border-left: 4px solid var(--primary);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.insight-tag {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.insight-date {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.insight-card.main h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.insight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.insight-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.insight-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.insight-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.insight-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9375rem;
}

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

.insight-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.insight-card.mini {
    padding: 1.5rem;
}

.insight-card.mini h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.insight-card.mini p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ========== Calculator ========== */
.calculator { background: var(--gray-50); }

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.calc-panel {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.calc-panel h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.calc-field {
    margin-bottom: 1.25rem;
}

.calc-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 0.375rem;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
}

.calc-swap-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.calc-btn {
    display: block;
    margin: 0 auto 2rem;
}

.calc-result {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.calc-result-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.calc-result-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.calc-result-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-disclaimer {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-align: center;
}

/* ========== Testimonials ========== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    margin-bottom: 1rem;
    color: var(--warning);
    font-size: 1.125rem;
}

.testimonial-card blockquote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-900);
}

.testimonial-author span {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ========== Why Us ========== */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-content .section-title { text-align: left; }

.why-us-content > p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.why-us-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.why-feature-icon svg { width: 22px; height: 22px; color: var(--primary); }

.why-feature strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.why-feature p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.why-img-container {
    position: relative;
}

.why-img-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1E3A5F, #2563EB, #3B82F6);
    border-radius: var(--radius-lg);
}

.why-img-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.why-img-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

.why-img-badge span {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ========== FAQ ========== */
.faq { background: var(--gray-50); }

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.75rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--gray-400);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-500);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-900);
}

.contact-item p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea { resize: vertical; }

.form-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-400);
    text-align: center;
}

/* ========== Newsletter ========== */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.newsletter-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.9375rem;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.newsletter-form .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: none;
}

.newsletter-form .btn-primary:hover {
    background: var(--gray-100);
    box-shadow: var(--shadow-md);
}

.newsletter-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

/* ========== Footer ========== */
.footer {
    background: var(--gray-900);
    padding: 4rem 0 0;
    color: var(--gray-400);
}

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

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .logo-text { color: var(--white); }

.footer-brand > p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social svg { width: 18px; height: 18px; color: var(--gray-400); }

.footer-social a:hover svg { color: var(--white); }

.footer-links h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.back-to-top svg { width: 20px; height: 20px; }

/* ========== Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-title { font-size: 2.75rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-wrap: wrap; justify-content: center; }
    .step-connector { display: none; }
    .step-card { flex: 0 0 calc(50% - 1rem); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .insights-grid { grid-template-columns: 1fr; }
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        z-index: 999;
    }

    .nav-menu.open,
    .nav-actions.open {
        display: flex;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero { min-height: auto; padding: 7rem 0 3rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .stat-divider { display: none; }

    .search-group {
        flex-direction: column;
    }

    .search-btn { width: 100%; }

    .categories-grid,
    .property-grid,
    .testimonial-grid { grid-template-columns: 1fr; }

    .step-card { flex: 0 0 100%; }

    .services-grid { grid-template-columns: 1fr; }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .calc-swap-icon {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .calc-result { grid-template-columns: 1fr; }

    .insight-stats { grid-template-columns: repeat(3, 1fr); }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .newsletter-form { flex-direction: column; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-search { margin-bottom: 2rem; }
    .search-form { padding: 1rem; }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .insight-stats { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    section { padding: 4rem 0; }
}
