/* BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

body.promo-visible {
    padding-top: 0;
}

body.promo-hidden {
    padding-top: 0;
}

/* PROMO BAR / TOP BAR */

.top-bar,
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #00b2a9;
    color: #ffffff;
    height: 40px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.promo-bar.hidden {
    transform: translateY(-100%);
    height: 0;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-text {
    font-size: 14px;
    font-weight: 500;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-button {
    background: #ffffff;
    color: #00b2a9;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.promo-button:hover {
    background: #f0f0f0;
}

.promo-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.promo-close:hover {
    opacity: 0.7;
}

/* MAIN HEADER / MAIN NAV */

.main-nav,
.site-header {
    position: sticky;
    top: 40px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 9998;
    margin-top: 0;
    transition: all 0.3s ease;
    min-height: 60px;
}

body.promo-hidden .site-header {
    top: 0;
}

body.promo-hidden .hero {
    margin-top: 0;
}

/* LOGO BANNER IN HERO */

.hero-logo-banner {
    background: #f5f5f5;
    padding: 0;
    min-height: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 50px 0;
}

.logo-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    text-align: center;
}

.logo-banner-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transform: scaleX(1.2);
    transform-origin: center;
}

.logo-banner-text {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    height: auto;
    text-align: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    background: transparent !important;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
    flex-shrink: 0;
    background: transparent !important;
}

.logo:hover {
    color: #007bff;
}

/* DESKTOP NAVIGATION - Default styles */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    background: transparent !important;
    position: relative;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    background: transparent !important;
    flex-direction: row;
}

.nav-list li {
    margin: 0;
    padding: 0;
    background: transparent !important;
}

.nav-list a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    background: transparent !important;
    display: inline-block;
}

.nav-list a:hover {
    color: #007bff;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    background: transparent !important;
}

.header-phone {
    font-size: 14px;
    color: #555555;
}

.header-phone a {
    color: #222222;
    text-decoration: none;
}

.header-phone a:hover {
    color: #007bff;
}

.header-cta-button {
    padding: 8px 16px;
    border-radius: 999px;
    background-color: #0056b3;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta-button:hover {
    background: #004494;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: center;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: #333333;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* burger animation */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* DESKTOP HEADER LAYOUT */
@media (min-width: 901px) {
    .site-header {
        padding: 0;
        min-height: 65px;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        height: 65px;
        gap: 20px;
        background: transparent !important;
    }

    .logo {
        flex-shrink: 0;
        margin: 0;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .nav-toggle {
        display: none !important;
    }

    .main-nav {
        flex: 1;
        display: flex !important;
        justify-content: center;
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: auto;
        margin: 0;
        padding: 0;
        min-width: 0;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        gap: 28px;
    }

    .main-nav.is-open,
    .main-nav.nav-open {
        display: flex !important;
    }

    .nav-list {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 24px;
        list-style: none;
        margin: 0;
        padding: 0;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .nav-list li {
        margin: 0;
        padding: 0;
        list-style: none;
        flex-shrink: 0;
    }

    .nav-list a {
        padding: 0;
        width: auto;
        display: block;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        white-space: nowrap;
    }

    .header-contact {
        display: flex !important;
        align-items: center;
        gap: 16px;
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0;
        margin-left: 20px;
        background: transparent !important;
    }

    .header-phone {
        background: transparent !important;
    }

    .logo {
        background: transparent !important;
    }

    .nav-list {
        background: transparent !important;
    }

    .nav-list li {
        background: transparent !important;
    }

    .nav-list a {
        background: transparent !important;
    }

    .header-phone {
        font-size: 14px;
        color: #555555;
    }

    .header-cta-button {
        padding: 8px 20px;
        font-size: 14px;
    }

    /* Hide mobile button on desktop */
    .foreclosure-mobile-button {
        display: none;
    }

    /* Show foreclosure form on desktop */
    .foreclosure-form-wrapper {
        display: block;
    }
}

/* HERO */

.hero {
    position: relative;
    min-height: 75vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url("images/house-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-benefits li {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
}

.hero-benefits li::before {
    content: "✓";
    color: #00b2a9;
    font-weight: 700;
    margin-right: 10px;
    font-size: 20px;
}

.hero-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: #333;
}

.hero-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-form .form-group {
    margin-bottom: 0;
}

.hero-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.hero-form input:focus {
    outline: none;
    border-color: #007bff;
}

.hero-form-button {
    width: 100%;
    margin-top: 5px;
}

.hero-trust-text {
    font-size: 16px;
    color: #999;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* MINI CTA SECTION / FORECLOSURE SECTION */

.mini-cta-section {
    background: #f8f9fa;
}

.foreclosure-section {
    padding: 60px 20px;
}

.foreclosure-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.foreclosure-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #333;
    font-weight: 700;
}

.foreclosure-text p {
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.6;
    font-size: 18px;
    color: #666;
}

.foreclosure-text p strong {
    color: #333;
    font-weight: 600;
}

.foreclosure-form-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    max-width: 700px;
    margin: 0 auto;
}

.foreclosure-form-inline form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.foreclosure-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Foreclosure form - compact fields */
.foreclosure-form input,
.foreclosure-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    font-family: inherit;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.foreclosure-form input {
    min-height: 40px;
}

.foreclosure-form textarea {
    min-height: 80px;
    resize: vertical;
}

.foreclosure-form input:focus,
.foreclosure-form textarea:focus {
    outline: none;
    border-color: #007bff;
}

.foreclosure-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.foreclosure-form-row input {
    flex: 1 1 200px;
    min-width: 0;
}

.foreclosure-form-row button {
    flex: 0 0 auto;
    padding: 0 24px;
    white-space: nowrap;
    height: 40px;
    min-height: 40px;
}

.foreclosure-form-row-full {
    width: 100%;
    margin-bottom: 12px;
}

.foreclosure-note {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    text-align: center;
}

.mini-cta-form {
    max-width: 100%;
    margin: 0;
}

.mini-form-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 15px;
    align-items: end;
}

.mini-cta-form .form-group {
    margin-bottom: 0;
}

.mini-cta-button {
    white-space: nowrap;
    padding: 12px 30px;
}

/* CTA BUTTON */

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005fcc;
}

/* SECTIONS */

.section {
    padding: 60px 0;
    background: #ffffff;
}

.section-alt {
    background: #f8f9fa;
}

#cash-offer-form {
    scroll-margin-top: 130px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* REASSURANCE BLOCK */
.reassurance-block {
    padding: 40px 20px;
}

.reassurance-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.reassurance-text {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 auto;
    max-width: 700px;
    line-height: 1.6;
}

/* CARD GRID - BENEFITS */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #007bff;
}

.card p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* STEPS - HOW IT WORKS */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.step p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* SITUATIONS GRID */

/* SITUATIONS SECTION */

.situations-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.situations-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 0;
}

.situations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 1000px;
    justify-items: center;
}

.situation-item {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 240px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 70px;
    cursor: pointer;
}

.situation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.situation-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.situation-label {
    display: block;
}

.situation-item:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.situation-item.situation-card--active {
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0,184,148,0.2);
    color: #00b894;
}

.situation-text,
.situation-label {
    display: block;
    font-size: 16px;
    line-height: 1.4;
}

.situation-details-panel {
    margin-top: 40px;
    padding: 30px;
    background: #f7f9fc;
    border-radius: 8px;
    border: 1px solid #e0e4f0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.situation-article {
    display: none;
}

.situation-article h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.situation-article p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.situation-article ul {
    margin: 20px 0;
    padding-left: 30px;
}

.situation-article li {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* TESTIMONIALS */

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* TIMELINE SECTION */

.timeline-section {
    background: #ffffff;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 50px auto 0;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.timeline-circle {
    width: 80px;
    height: 80px;
    background: #007bff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.timeline-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.timeline-item p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.timeline-connector {
    flex: 0 0 40px;
    height: 3px;
    background: linear-gradient(to right, #007bff, #005fcc);
    margin: 0 10px;
    position: relative;
    top: -40px;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
    }
    
    .timeline-connector {
        width: 3px;
        height: 40px;
        flex: 0 0 40px;
        background: linear-gradient(to bottom, #007bff, #005fcc);
        top: 0;
        margin: 10px 0;
    }
}

/* COMPACT TIMELINE */

.timeline-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 40px auto 0;
    gap: 15px;
}

.timeline-item-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.timeline-circle-compact {
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-item-compact h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.timeline-item-compact p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.timeline-connector-compact {
    flex: 0 0 20px;
    height: 2px;
    background: #007bff;
    margin: 0 5px;
}

/* ABOUT US SECTION */

.about-us {
    background: #ffffff;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-feature {
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.about-feature h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.about-content {
    max-width: 800px;
    margin: 40px auto 50px;
}

.about-content p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* COMPARISON TABLE */

.comparison-section {
    background: #f8f9fa;
}

.comparison-table {
    max-width: 900px;
    margin: 50px auto 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: #2c3e50;
    color: #ffffff;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.comparison-cell.header-cell {
    font-weight: 700;
    font-size: 18px;
    background: #2c3e50;
    color: #ffffff;
}

.comparison-cell.highlight {
    background: #e7f3ff;
    color: #007bff;
    font-weight: 600;
}

.comparison-cell.row-label {
    font-weight: 600;
    color: #333;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-cell {
        padding: 15px;
    }
    
    .comparison-cell.header-cell:first-child,
    .comparison-cell.row-label {
        display: none;
    }
    
    .comparison-cell.header-cell::before {
        content: attr(data-label);
    }
}

/* FAQ SECTION */

.faq {
    background: #f8f9fa;
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item-accordion {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: #007bff;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item-accordion.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* LOCAL EXPERTISE */

.local-expertise {
    background: #ffffff;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.expertise-item {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.expertise-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.expertise-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #007bff;
}

.expertise-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* RECENT DEALS SECTION */

.recent-deals {
    background: #f8f9fa;
}

.recent-deals h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.recent-deals .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recent-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* RECENT DEALS CAROUSEL */
.recent-deals-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.recent-deals-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.recent-deals-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease;
}

.recent-deal-card {
    flex: 0 0 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
    min-width: 0;
}

/* Кнопки навигации */
.recent-deals-nav {
    border: none;
    background: #f1f1f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.recent-deals-nav:hover:not(:disabled) {
    background: #e0e0e0;
}

.recent-deals-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Адаптивность карусели */
@media (max-width: 1024px) {
    .recent-deal-card {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

/* Mobile: одна карточка на экран */
@media (max-width: 768px) {
    .recent-deals-track-wrapper {
        padding: 0 16px;
    }
    
    .recent-deal-card {
        flex: 0 0 calc(100% - 32px);
        max-width: calc(100% - 32px);
        min-width: calc(100% - 32px);
    }
}

.deal-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.deal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.deal-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.deal-type {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.deal-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 0;
}

.deal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.deal-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #007bff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* CONTACT FORM */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
}

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

.contact-form .cta-button {
    width: 100%;
    margin-top: 10px;
}

/* STICKY MOBILE CTA BAR */

.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
}

.sticky-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sticky-cta-button {
    background: #007bff;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.sticky-cta-button:hover {
    background: #005fcc;
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        display: flex;
    }
    
    body {
        padding-bottom: 70px;
    }
}

/* FOOTER */

.footer {
  background: #0d2235;
  color: #ffffff;
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-left, .footer-right {
  max-width: 450px;
}

.footer-left h3, .footer-right h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-right h4 {
  font-size: 18px;
}

.footer-left p {
  font-size: 14px;
  color: #bdc3c7;
  margin: 8px 0;
  line-height: 1.8;
}

.footer-right p {
  margin: 8px 0;
  font-size: 15px;
}

.footer-right i {
  margin-right: 8px;
  color: #4db8ff;
}

.footer a {
  color: #4db8ff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  opacity: 0.8;
  max-width: 1200px;
  margin: auto;
}

/* RESPONSIVE */

/* MOBILE STYLES */
@media (max-width: 900px) {
    body.promo-visible {
        padding-top: 0;
    }

    body.promo-hidden {
        padding-top: 0;
    }
    
    .promo-bar,
    .top-bar {
        height: 50px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    
    .hero {
        margin-top: 140px;
    }
    
    body.promo-hidden .hero {
        margin-top: 110px;
    }
    
    .promo-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 15px;
    }
    
    .promo-text {
        font-size: 12px;
        flex: 1;
        min-width: 200px;
    }
    
    .promo-button {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .promo-close {
        font-size: 20px;
        width: 20px;
        height: 20px;
    }
    
    .site-header {
        top: 50px;
    }
    
    body.promo-hidden .site-header {
        top: 0;
    }
    
    .header-inner {
        padding: 10px 16px;
        justify-content: space-between;
    }

    .logo {
        color: #000000 !important;
        font-weight: 700;
        font-size: 16px;
    }

    /* Hide desktop navigation and contact info on mobile */
    .main-nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 60px) !important;
        background-color: #ffffff !important;
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
        z-index: 9999 !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: none !important;
    }

    /* Mobile menu open state - must override desktop styles */
    .main-nav.is-open {
        display: block !important;
        pointer-events: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background-color: #ffffff !important;
        padding: 20px !important;
        z-index: 9999 !important;
    }

    .nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        margin: 0;
        margin-bottom: 8px;
        width: 100%;
        padding: 0;
    }

    .nav-list a {
        display: block;
        font-size: 18px;
        line-height: 1.5;
        color: #111111;
        text-decoration: none;
        padding: 10px 0;
        font-weight: 500;
        width: 100%;
        transition: color 0.2s ease;
    }

    .nav-list a:hover {
        color: #007bff;
    }

    /* Show burger button on mobile */
    .nav-toggle {
        display: flex !important;
        margin-left: auto;
        z-index: 10002;
        position: relative;
        order: 2;
    }

    /* Hide contact info on mobile */
    .header-contact {
        display: none;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        display: none;
    }

    body.nav-open .mobile-menu-overlay {
        opacity: 1;
        pointer-events: all;
        display: block;
    }

    body.nav-open {
        overflow: hidden;
    }
}

    .header-contact {
        display: none; /* hide phone + button in the top bar on mobile to save vertical space */
    }

    /* Foreclosure section mobile optimization */
    .foreclosure-section {
        padding: 24px 16px;
    }

    /* Hide foreclosure form on mobile, show button instead */
    .foreclosure-form-wrapper {
        display: none;
    }

    .foreclosure-mobile-button {
        display: block;
        width: 100%;
        background: #0065ff;
        color: #fff;
        text-align: center;
        padding: 14px 20px;
        border-radius: 8px;
        margin: 20px 0;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.3s ease, transform 0.2s ease;
    }

    .foreclosure-mobile-button:hover {
        background: #0052cc;
        transform: translateY(-1px);
    }

    .foreclosure-form {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Foreclosure form compact on mobile */
    .foreclosure-form input,
    .foreclosure-form textarea {
        font-size: 14px;
        padding: 8px 12px;
        min-height: 36px;
        line-height: 1.4;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .foreclosure-form input {
        min-height: 36px;
        height: 36px;
    }

    .foreclosure-form textarea {
        min-height: 70px;
        resize: vertical;
    }

    .foreclosure-form-row {
        margin-bottom: 12px;
        gap: 10px;
    }

    .foreclosure-form-row-full {
        margin-bottom: 12px;
    }

    .foreclosure-form-row input,
    .foreclosure-form-row button {
        height: 36px !important;
        min-height: 36px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .foreclosure-form-row-full textarea {
        min-height: 70px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .hero {
        min-height: auto;
        padding: 0;
    }
    
    .hero-logo-banner {
        padding: 20px 0;
        min-height: 100px;
    }
    
    .logo-banner-container {
        padding: 0 20px;
        gap: 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .logo-banner-image {
        height: 70px;
    }
    
    .logo-banner-text {
        font-size: 28px;
    }
    
    .hero-container {
        padding: 40px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-benefits li {
        font-size: 16px;
    }
    
    .hero-form-card {
        padding: 25px 20px;
    }
    
    .hero-form-card h3 {
        font-size: 20px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .section {
        padding: 40px 20px;
    }
    
    .foreclosure-section {
        padding: 24px 16px;
    }
    
    .foreclosure-text h2 {
        font-size: 1.75rem;
    }
    
    .foreclosure-text p {
        font-size: 16px;
    }
    
    .foreclosure-form-inline {
        align-items: stretch;
        padding: 20px 15px;
    }
    
    .foreclosure-form-row {
        flex-direction: column;
    }
    
    .foreclosure-form-row input,
    .foreclosure-form-row button {
        width: 100%;
    }
    
    .foreclosure-form-row button {
        text-align: center;
    }
    
    .mini-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mini-cta-button {
        width: 100%;
    }
    
    .situation-details-panel {
        padding: 20px;
        margin-top: 30px;
    }
    
    .situation-article h3 {
        font-size: 20px;
    }
    
    .situation-article p,
    .situation-article li {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .situations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
    }
    
    .situation-item {
        max-width: 100%;
        padding: 20px 15px;
        min-height: 65px;
    }
    
    .situation-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .situation-text,
    .situation-label {
        font-size: 14px;
    }
    
    .situations-subtitle {
        font-size: 16px;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline {
        flex-direction: column;
    }
    
    .timeline-connector {
        width: 3px;
        height: 40px;
        flex: 0 0 40px;
        background: linear-gradient(to bottom, #007bff, #005fcc);
        top: 0;
        margin: 10px 0;
    }

    .timeline-compact {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-connector-compact {
        width: 2px;
        height: 20px;
        flex: 0 0 20px;
        margin: 5px 0;
    }
    
    .timeline-item-compact {
        flex-direction: column;
        text-align: center;
    }

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

    .recent-deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .recent-deals-track-wrapper {
        padding: 0 16px;
    }
    
    .recent-deal-card {
        flex: 0 0 calc(100% - 32px);
        max-width: calc(100% - 32px);
        min-width: calc(100% - 32px);
    }
    
    .recent-deals-carousel {
        gap: 8px;
    }

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

    .contact-form {
        padding: 30px 20px;
    }

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

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-benefits li {
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }
    
    .logo-banner-text {
        font-size: 24px;
    }

    .situations-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .situation-item {
        max-width: 100%;
    }
    
    .situations-subtitle {
        font-size: 15px;
    }

    .recent-deals-grid {
        grid-template-columns: 1fr;
    }
    
    .recent-deal-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .recent-deals-carousel {
        gap: 8px;
    }

    .recent-deals h2 {
        font-size: 28px;
    }

    .deal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .deal-image {
        height: 150px;
    }
}

/* MOBILE: compact form fields */
@media (max-width: 600px) {
    input,
    textarea {
        height: 42px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    textarea {
        min-height: 70px !important;
        resize: vertical;
    }

    .form-container {
        padding: 15px !important;
    }

    .foreclosure-form-row input,
    .foreclosure-form-row button {
        height: 36px !important;
        min-height: 36px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .foreclosure-form-row-full textarea {
        min-height: 70px !important;
        height: auto !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .hero-form input {
        height: 42px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .form-group input,
    .form-group textarea {
        height: 42px !important;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .form-group textarea {
        min-height: 70px !important;
    }
}
