/* Landing Page Styles — Simply Home Real Estate */

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

:root {
    --brand: #186232;
    --brand-dark: #0f4422;
    --brand-light: #e8f5e9;
    --text: #231f20;
    --text-secondary: #555;
    --bg: #f9fafb;
    --surface: #ffffff;
    --border: #e0e0e0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --green-tag: #34c759;
    --orange-tag: #ff9500;
}

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

/* ─── Nav ─── */
.nav {
    background: var(--surface);
    border-bottom: 3px solid var(--brand);
    padding: 14px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav img.logo { height: 48px; }
.nav-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 20px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-link:hover {
    background: var(--brand);
    color: #fff;
}

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 80px 24px;
    text-align: center;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Signup form (shared between hero and bottom CTA) */
.signup-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
    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: var(--radius-sm);
    font-size: 1rem;
    outline: none;
}
.signup-form input:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.signup-form button {
    padding: 14px 28px;
    background: #fff;
    color: var(--brand);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.signup-form button:hover {
    background: var(--brand-light);
}
.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.15);
    color: rgba(255,255,255,0.9);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.area-picker-toggle:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}
.area-picker-toggle.has-selection {
    background: rgba(255,255,255,0.2);
    border-style: solid;
    color: #fff;
    font-weight: 600;
}
.area-picker-dropdown {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-sm);
}
.area-picker-dropdown.open {
    display: grid;
}
.area-chip {
    display: block;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 0.8rem;
    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;
}

.hero-secondary {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.hero-secondary:hover { color: #fff; }

/* ─── Stats Bar ─── */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
}
.stats-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}
.stat-item .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    display: block;
}
.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ─── Featured Listings ─── */
.featured {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.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.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e0e0e0;
    display: block;
}
.card-photo-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}
.card-body {
    padding: 16px;
}
.card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.card-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.card-specs {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    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: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.tag-deal {
    background: #e8f5e9;
    color: #1b5e20;
}
.tag-score {
    background: #fff3e0;
    color: #e65100;
}
.tag-probate {
    background: #e3f2fd;
    color: #0d47a1;
}
.featured-cta {
    text-align: center;
    margin-top: 40px;
}
.btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}
.btn-primary:hover { background: var(--brand-dark); }

/* ─── How It Works ─── */
.how-it-works {
    background: var(--surface);
    padding: 64px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}
.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── Areas Served ─── */
.areas {
    padding: 64px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.area-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.area-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.area-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.area-count {
    background: var(--brand-light);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ─── Bottom CTA ─── */
.bottom-cta {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}
.bottom-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.bottom-cta p {
    opacity: 0.9;
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.trust-signals {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ─── Footer ─── */
footer {
    background: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 30px 24px;
    font-size: 0.85rem;
}
footer a {
    color: #aaa;
    text-decoration: none;
}
footer a:hover { color: #fff; }

/* ─── Loading / Skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 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) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

    .featured-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

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

    .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; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .nav img.logo { height: 36px; }
    .section-title { font-size: 1.4rem; }
}
