/* ================================================================
   GetMyHomes — Complete Stylesheet
   Sections: 1) Tokens & Reset  2) Layout  3) Header  4) Hero
   5) Stats  6) Cards/Sections  7) Filters  8) Grids  9) Modal
   10) Footer  11) Toast  12) Responsive
   ================================================================ */

/* ==============================
   1) DESIGN TOKENS & RESET
   ============================== */
:root {
    --primary:       #1a56db;
    --primary-dark:  #1440a8;
    --primary-light: #e8f0fe;
    --accent:        #f59e0b;
    --luxury:        #b45309;
    --budget:        #059669;
    --mid:           #2563eb;

    --text-primary:   #111827;
    --text-secondary: #4b5563;
    --text-muted:     #9ca3af;
    --text-inverse:   #ffffff;

    --bg-body:     #f9fafb;
    --bg-card:     #ffffff;
    --bg-secondary:#f3f4f6;
    --bg-input:    #ffffff;
    --bg-hero:     linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);

    --border-color: #e5e7eb;
    --success:      #10b981;
    --danger:       #ef4444;
    --whatsapp:     #25d366;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --header-h: 72px;

    --transition: 0.2s ease;
}

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

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

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-body);
    line-height: 1.6;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.hidden { display: none !important; }

/* ==============================
   2) BUTTONS
   ============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    border-color: var(--whatsapp);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13px;
}
.btn-whatsapp:hover { filter: brightness(0.92); color: white; }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}
.btn-link:hover { color: var(--primary-dark); }

/* ==============================
   3) HEADER / NAV
   ============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-h);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}
.logo:hover { color: var(--text-primary); }
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}
.logo-text em { font-style: normal; color: var(--primary); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==============================
   4) HERO
   ============================== */
.hero {
    background: var(--bg-hero);
    padding: 80px 0 60px;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 auto 20px;
    color: var(--text-primary);
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 24px;
}
.hero-checks {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--text-secondary);
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==============================
   5) STATS
   ============================== */
.stats-section { padding: 50px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card strong {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
}
.stat-card span {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==============================
   6) SECTIONS / PAGE HERO
   ============================== */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-secondary); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.section-link { font-size: 14px; font-weight: 600; }

.page-hero {
    background: var(--bg-secondary);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 10px; }
.page-hero .lead { color: var(--text-secondary); font-size: 17px; max-width: 640px; }

/* city chips */
.city-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.city-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
}
.city-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.city-chip span {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.city-chip.offers { border-color: var(--accent); }
.city-chip.offers span { background: #fef3c7; color: var(--luxury); }

/* steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}
.step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p  { font-size: 14px; color: var(--text-secondary); }

/* CTA */
.cta-section {
    background: var(--bg-hero);
    padding: 70px 0;
    text-align: center;
}
.cta-section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; max-width: 650px; margin-inline: auto; }
.cta-section p  { color: var(--text-secondary); margin-bottom: 28px; max-width: 550px; margin-inline: auto; }
.enquire-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    max-width: 620px;
    margin: 0 auto;
}
.enquire-card h3 { font-size: 24px; margin-bottom: 10px; }
.enquire-card p  { color: var(--text-secondary); margin-bottom: 24px; }

/* ==============================
   7) FILTERS (sidebar)
   ============================== */
.grid-section { padding: 40px 0 60px; }
.grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

.filters-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.filter-panel-header h3 { font-size: 16px; font-weight: 700; }

.filter-group { margin-bottom: 20px; }
.filter-group > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    appearance: auto;
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.filter-select-sm { width: auto; padding: 8px 12px; font-size: 13px; }

/* segment chips */
.segment-chips { display: flex; flex-direction: column; gap: 8px; }
.segment-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    background: var(--bg-card);
}
.segment-chip:hover { border-color: var(--primary); background: var(--primary-light); }
.segment-chip input { display: none; }
.segment-chip:has(input:checked) { font-weight: 700; }
.segment-chip.seg-all:has(input:checked)    { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.segment-chip.seg-luxury:has(input:checked) { border-color: var(--accent);  background: #fffbeb; color: var(--luxury); }
.segment-chip.seg-mid:has(input:checked)    { border-color: var(--mid);     background: #eff6ff; color: var(--mid); }
.segment-chip.seg-budget:has(input:checked) { border-color: var(--budget);  background: #ecfdf5; color: var(--budget); }

.budget-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.budget-inputs input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-input);
    width: 100%;
}
.budget-inputs input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.budget-inputs span { color: var(--text-muted); font-size: 13px; }

/* ==============================
   8) GRIDS & CARDS
   ============================== */
.grid-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.result-count { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.btn-filter-toggle {
    display: none;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

/* ----- Builder Card ----- */
.builders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}
.builder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.builder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.builder-card-image {
    position: relative;
    height: 170px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.builder-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.builder-card:hover .builder-card-image img { transform: scale(1.05); }
.builder-logo-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
}

.segment-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}
.segment-badge.luxury { color: var(--luxury); background: rgba(255,251,235,0.95); }
.segment-badge.mid    { color: var(--mid);    background: rgba(239,246,255,0.95); }
.segment-badge.budget { color: var(--budget); background: rgba(236,253,245,0.95); }

.builder-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.builder-card-name    { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.builder-card-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; }

.builder-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--text-secondary);
}
.builder-card-meta .meta-item { display: flex; align-items: center; gap: 4px; }
.builder-card-meta .price { color: var(--primary); font-weight: 700; }

.builder-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.builder-card-actions .btn { flex: 1; font-size: 13px; padding: 9px 14px; }

/* ----- Project Card ----- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.project-card-image {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-card-image img { transform: scale(1.05); }

.project-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: capitalize;
    backdrop-filter: blur(6px);
}
.badge-rera { background: rgba(209,250,229,0.95); color: var(--budget); }
.badge-status-ready             { background: rgba(209,250,229,0.95); color: var(--budget); }
.badge-status-under_construction{ background: rgba(254,243,199,0.95); color: var(--luxury); }
.badge-status-new_launch        { background: rgba(219,234,254,0.95); color: var(--mid); }
.badge-seg-luxury { background: rgba(255,251,235,0.95); color: var(--luxury); }
.badge-seg-mid    { background: rgba(239,246,255,0.95); color: var(--mid); }
.badge-seg-budget { background: rgba(236,253,245,0.95); color: var(--budget); }

.btn-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.btn-wishlist:hover { background: white; transform: scale(1.1); box-shadow: var(--shadow-md); }
.btn-wishlist.saved { color: var(--danger); }

.project-card-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.project-card-header  { margin-bottom: 12px; }
.project-card-name    { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.project-card-locality{ font-size: 13px; color: var(--text-muted); }

.project-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.project-card-specs .spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.project-card-specs .spec-price {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}
.bhk-tag {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    font-weight: 700;
}
.project-amenities {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}
.project-card-actions { display: flex; gap: 10px; margin-top: auto; }
.project-card-actions .btn { flex: 1; font-size: 13px; padding: 9px 14px; }

/* ----- Pagination ----- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 9px 15px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-primary);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.page-ellipsis { color: var(--text-muted); padding: 0 6px; }

/* ----- Empty / Loading / Error states ----- */
.empty-state, .error-state, .loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 16px; opacity: 0.4; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; font-size: 18px; }
.error-state { color: var(--danger); font-weight: 500; }

/* ==============================
   9) BUILDER HERO (detail page)
   ============================== */
.builder-hero {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}
.builder-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.builder-brand { display: flex; align-items: center; gap: 20px; }
.builder-logo { width: 76px; height: 76px; border-radius: var(--radius-md); object-fit: cover; }
.builder-logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}
.builder-info h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 4px; }
.builder-tagline { color: var(--text-secondary); font-size: 15px; margin-bottom: 10px; }
.builder-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text-secondary); align-items: center; }
.builder-meta .segment-badge { position: static; }

.builder-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 14px;
}
.builder-stats .stat {
    text-align: center;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.builder-stats .stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.builder-stats .stat span { font-size: 12px; color: var(--text-muted); }

/* ==============================
   10) LEAD MODAL
   ============================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.hidden { display: none; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}
.modal-container {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 540px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(24px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--transition);
    color: var(--text-secondary);
}
.modal-close:hover { background: var(--bg-secondary); border-color: var(--primary); color: var(--primary); }

.modal-header {
    padding: 28px 28px 18px;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.modal-header p  { color: var(--text-secondary); font-size: 14px; }

.lead-form { padding: 24px 28px 28px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input.invalid { border-color: var(--danger); }

.form-consent { margin: 20px 0; }
.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1.5;
}
.form-consent input { margin-top: 3px; accent-color: var(--primary); width: auto; }
.form-consent a { color: var(--primary); text-decoration: underline; }

/* ==============================
   11) FOOTER
   ============================== */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding: 50px 0 40px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand .logo-text em { color: #60a5fa; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-contact a { color: #94a3b8; display: inline-block; margin-bottom: 4px; font-size: 14px; }
.footer-contact a:hover { color: white; }

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom p { font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; }
.footer-bottom p:last-child { margin-bottom: 0; text-align: center; }

/* ==============================
   12) TOAST
   ============================== */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: white;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--primary); }

/* ==============================
   13) RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
    .grid-layout { grid-template-columns: 1fr; }
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        z-index: 500;
        background: var(--bg-body);
        padding: 20px;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-xl);
    }
    .filters-sidebar.open { left: 0; }
    .btn-filter-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-h));
        background: var(--bg-card);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 4px;
        transition: left 0.3s ease;
        border-top: 1px solid var(--border-color);
        z-index: 90;
    }
    .main-nav.open { left: 0; }
    .main-nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
    .hamburger { display: flex; }

    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: clamp(26px, 7vw, 36px); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card strong { font-size: 30px; }

    .section { padding: 44px 0; }
    .builders-grid, .projects-grid { grid-template-columns: 1fr; }

    .builder-header-content { flex-direction: column; text-align: center; }
    .builder-brand { flex-direction: column; text-align: center; }
    .builder-meta { justify-content: center; }
    .builder-stats { grid-template-columns: repeat(2, 1fr); width: 100%; }

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

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

    .page-hero { padding: 32px 0 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .city-chips { flex-direction: column; }
    .city-chip { justify-content: space-between; }
}
