/* Landing Page — Simply Home Real Estate
   Modern, clean design inspired by contemporary mortgage sites */

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

:root {
    --brand: #186232;
    --brand-dark: #0f4422;
    --brand-light: #e8f5e9;
    --brand-subtle: #f0f9f2;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafb;
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 16px 48px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 24px 56px;
    background: var(--bg);
}
.hero-content {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Decorative floating shapes (like the reference site) */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}
.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--brand-subtle);
    top: -80px;
    right: -60px;
    opacity: 0.6;
}
.hero-shape-2 {
    width: 180px;
    height: 180px;
    background: var(--brand-light);
    bottom: -40px;
    left: -40px;
    opacity: 0.5;
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(24,98,50,0.3);
    transform: translateY(-1px);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    transition: all 0.25s;
}
.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-subtle);
}

/* ─── Stats ─── */
.stats {
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-lg);
}
.stat-pill {
    text-align: center;
}
.stat-pill .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand);
    display: block;
    line-height: 1.2;
}
.stat-pill .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 500;
}

/* ─── Section Styles ─── */
.section-label {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}
.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ─── Services ─── */
.services {
    padding: 56px 0 48px;
    background: var(--bg);
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 8px;
}
.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.service-img {
    overflow: hidden;
    height: 200px;
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.service-card:hover .service-img img {
    transform: scale(1.05);
}
.service-body {
    padding: 28px 24px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.service-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}
.service-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}
.card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

/* ─── Why Choose Us ─── */
.why-us {
    padding: 56px 0;
    background: var(--bg-alt);
}
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.why-us-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4/3;
}
.why-us-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text);
    letter-spacing: -0.3px;
}
.why-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.why-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.why-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}
.why-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ─── Featured Listings ─── */
.featured {
    padding: 56px 0 48px;
    background: var(--bg);
    text-align: center;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.featured-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.card-photo-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.card-body {
    padding: 20px;
    text-align: left;
}
.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.card-address {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.card-specs {
    display: flex;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.card-specs span { white-space: nowrap; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}
.tag-deal { background: #dcfce7; color: #166534; }
.tag-score { background: #fef3c7; color: #92400e; }
.tag-probate { background: #dbeafe; color: #1e40af; }
.featured-cta {
    text-align: center;
    margin-top: 44px;
}

/* ─── How It Works ─── */
.how-it-works {
    padding: 56px 0;
    background: var(--bg-alt);
    text-align: center;
}
.steps {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.step {
    flex: 1;
    padding: 0 20px;
}
.step-connector {
    width: 60px;
    flex-shrink: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    margin-top: 28px;
    border-radius: 2px;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(24,98,50,0.2);
}
.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── Credibility ─── */
.credibility {
    padding: 48px 0;
    background: var(--bg);
}
.cred-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.cred-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 32px 36px;
    text-align: center;
    flex: 0 1 260px;
    transition: box-shadow 0.3s;
}
.cred-card:hover {
    box-shadow: var(--shadow);
}
.cred-emoji {
    font-size: 2rem;
    margin-bottom: 12px;
}
.cred-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.cred-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ─── Areas ─── */
.areas {
    padding: 48px 0 56px;
    background: var(--bg-alt);
    text-align: center;
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.area-card {
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: var(--shadow-sm);
}
.area-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.area-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.area-count {
    background: var(--brand-light);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ─── Bottom CTA ─── */
.bottom-cta {
    padding: 56px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bottom-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -150px;
    right: -100px;
}
.bottom-cta::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -80px;
    left: -60px;
}
.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}
.bottom-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.bottom-cta p {
    opacity: 0.9;
    margin-bottom: 36px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Signup form */
.signup-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.signup-form input {
    flex: 1;
    min-width: 160px;
    padding: 14px 18px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,0.95);
}
.signup-form input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.signup-form button[type="submit"] {
    padding: 14px 28px;
    background: #fff;
    color: var(--brand);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.signup-form button[type="submit"]:hover {
    background: var(--brand-light);
    transform: translateY(-1px);
}
.signup-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.form-message {
    font-size: 0.9rem;
    margin-top: 4px;
    min-height: 1.4em;
}
.form-message.success { color: #a5d6a7; }
.form-message.error { color: #ffcdd2; }

/* Area Picker */
.area-picker {
    flex-basis: 100%;
    position: relative;
}
.area-picker-toggle {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border: 1.5px dashed rgba(255,255,255,0.35);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.area-picker-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.area-picker-toggle.has-selection {
    background: rgba(255,255,255,0.18);
    border-style: solid;
    color: #fff;
    font-weight: 600;
}
.area-picker-dropdown {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 14px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.area-picker-dropdown.open { display: grid; }
.area-chip {
    display: block;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    user-select: none;
}
.area-chip:hover { border-color: #fff; color: #fff; }
.area-chip.selected {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    font-weight: 600;
}
.trust-signals {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.82rem;
    opacity: 0.75;
}

/* ─── Footer ─── */
.site-footer {
    background: #111827;
    color: #94a3b8;
    padding: 60px 24px 36px;
    font-size: 0.88rem;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid #1e293b;
}
.footer-brand img {
    margin-bottom: 14px;
    filter: brightness(0) invert(0.7);
}
.footer-brand p {
    line-height: 1.6;
    max-width: 280px;
    font-size: 0.85rem;
}
.footer-links h4,
.footer-contact h4 {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.footer-links a,
.footer-contact a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}
.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 8px;
}
.compliance {
    max-width: 1000px;
    margin: 16px auto 0;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.5;
}

/* ─── Skeleton Loading ─── */
.skeleton {
    background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-image { max-width: 500px; margin: 0 auto; }

    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-layout { grid-template-columns: 1fr; gap: 40px; }
    .why-us-image { max-width: 500px; margin: 0 auto; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .hero { padding: 48px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 24px;
        gap: 20px;
    }
    .stats { margin-top: -30px; }

    .services, .featured, .how-it-works, .credibility, .areas, .why-us {
        padding: 64px 0;
    }
    .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .featured-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

    .steps { flex-direction: column; align-items: center; gap: 0; }
    .step-connector { width: 2px; height: 30px; margin: 0; }
    .step { padding: 16px 0; }

    .cred-cards { flex-direction: column; align-items: center; }
    .cred-card { flex: 0 1 auto; width: 100%; max-width: 320px; }

    .section-title { font-size: 1.7rem; }

    .signup-form {
        flex-direction: column;
        align-items: stretch;
    }
    .signup-form input { min-width: auto; }
    .area-picker-dropdown.open { grid-template-columns: repeat(2, 1fr); }
    .trust-signals { flex-direction: column; gap: 8px; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .hero-shape-1 { width: 180px; height: 180px; top: -50px; right: -40px; }
    .hero-shape-2 { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.9rem; }
    .hero { padding: 36px 16px 48px; }
    .section-title { font-size: 1.5rem; }
    .bottom-cta h2 { font-size: 1.7rem; }
}
