:root {
    --emerald-600: #059669;
    --emerald-50: #ecfdf5;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body {
    background: var(--slate-50);
    color: var(--slate-700);
    line-height: 1.6;
}

a {
    color: inherit;
}

a:hover {
    color: var(--emerald-600);
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--slate-600);
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.nav-phone {
    background: var(--emerald-600);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--slate-900);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.main {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 6rem 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/static/images/hero-house.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 4rem 2rem;
    border-radius: 24px;
    position: relative;
    min-height: 600px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 600;
    color: #10b981;
    font-size: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--white);
    line-height: 1.1;
    margin-top: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--emerald-600);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    background: var(--white);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stats dt {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stats dd {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-form {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.hero-form h2 {
    font-size: 1.25rem;
    color: var(--slate-900);
}

.hero-form p {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin: 0.75rem 0 1.5rem;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lead-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--slate-600);
}

.lead-form input,
.lead-form textarea {
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.lead-form button {
    border: none;
    border-radius: 999px;
    background: var(--emerald-600);
    color: var(--white);
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lead-form button:hover {
    transform: translateY(-2px);
}

.form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.pillars {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pillars article {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.pillars h3 {
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.communities .section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.communities p {
    color: var(--slate-600);
}

.community-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.community-grid article {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-grid article:hover {
    transform: translateY(-6px);
    border-color: var(--emerald-600);
    box-shadow: 0 24px 40px rgba(5, 150, 105, 0.12);
}

.community-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--slate-100);
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-grid article:hover .community-image img {
    transform: scale(1.05);
}

.community-content {
    padding: 1.5rem;
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.community-header h3 {
    color: var(--slate-900);
}

.community-header span {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--emerald-600);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.cta-banner {
    background: linear-gradient(135deg, var(--emerald-50), #ffffff);
    border: 1px solid var(--emerald-100);
    border-radius: 32px;
    padding: 2.5rem;
    display: grid;
    gap: 1rem;
}

.cta-banner h2 {
    color: var(--slate-900);
    font-size: 1.75rem;
}

.cta-banner p {
    color: var(--slate-600);
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-tags span {
    background: var(--white);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    color: var(--emerald-600);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.page-intro {
    display: grid;
    gap: 0.75rem;
}

.page-intro h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    color: var(--slate-900);
}

.page-intro p {
    color: var(--slate-600);
    max-width: 680px;
}

.page-intro-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('/static/images/hero-house.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    border-radius: 24px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-intro-hero h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-intro-hero p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.idx-placeholder {
    border: 2px dashed var(--emerald-100);
    background: var(--emerald-50);
    padding: 2.5rem;
    border-radius: 28px;
    text-align: center;
    display: grid;
    gap: 1.5rem;
}

.idx-placeholder p {
    color: var(--emerald-600);
    max-width: 600px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-grid article {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.06);
}

.team-grid h2 {
    color: var(--slate-900);
}

.team-grid .role {
    font-weight: 600;
    color: var(--emerald-600);
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
}

.team-note {
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 2rem;
    background: var(--white);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.05);
}

.contact-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-options .options-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-options article {
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 1.5rem;
    background: var(--white);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.contact-email {
    margin-top: 1rem;
    background: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    color: var(--emerald-600);
    font-weight: 600;
}

.contact-form {
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    padding: 2rem;
    background: var(--white);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.07);
}

.sell-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.sell-steps article {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.sell-banner {
    margin-top: 1.5rem;
    border-radius: 28px;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 2.5rem;
    border: 1px solid var(--emerald-100);
    background: linear-gradient(135deg, var(--emerald-50), #ffffff);
}

.sell-banner ul {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    color: var(--slate-600);
}

.sell-banner aside {
    border: 1px solid var(--white);
    background: var(--white);
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.community-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.community-main {
    display: grid;
    gap: 1.25rem;
}

.highlight-card {
    border: 1px solid var(--slate-200);
    border-radius: 20px;
    padding: 1.75rem;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.highlight-card ul {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
    color: var(--slate-600);
}

.community-aside {
    display: grid;
    gap: 1.5rem;
}

.cta-card,
.snapshot-card {
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid var(--slate-200);
    background: var(--white);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.05);
}

.snapshot-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.snapshot-card dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--slate-500);
    letter-spacing: 0.08em;
}

.snapshot-card dd {
    font-weight: 700;
    color: var(--slate-900);
}

.breadcrumb {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-decoration: none;
    color: var(--emerald-600);
}

.footer {
    border-top: none;
    background: #048860;
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-container {
    color: white;
}

.footer-phones {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-phones a {
    color: white;
    text-decoration: none;
}

.footer-phones a:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid var(--slate-100);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }

    .nav-phone {
        text-align: center;
        border-radius: 12px !important;
        padding: 1rem !important;
    }

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

    .community-layout {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}
