/* Service Pages Shared Styles — Work With Me, Financing, Rehab
   Modern clean design matching landing page */

/* ─── Hero — Modern Split Layout ─── */
.hero-modern {
    padding: 48px 24px 52px;
    background: var(--bg, #fff);
    position: relative;
    overflow: hidden;
}
.hero-modern .hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.hero-modern .hero-text {
    z-index: 1;
}
.hero-modern .hero-badge {
    display: inline-block;
    background: var(--brand-light, #e8f5e9);
    color: var(--brand, #186232);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.hero-modern h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text, #1a1a2e);
    margin-bottom: 18px;
    letter-spacing: -0.8px;
}
.hero-modern .hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 460px;
}
.hero-modern .hero-image img {
    width: 100%;
    border-radius: var(--radius-lg, 24px);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,0.1));
    object-fit: cover;
    aspect-ratio: 4/3;
}
.hero-modern .hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--brand, #186232);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s;
}
.hero-modern .hero-cta:hover {
    background: var(--brand-dark, #0f4422);
    box-shadow: 0 4px 16px rgba(24,98,50,0.3);
    transform: translateY(-1px);
}
/* Decorative shape */
.hero-modern .hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-subtle, #f0f9f2);
    opacity: 0.5;
}
.hero-modern .hero-shape-1 {
    width: 280px;
    height: 280px;
    top: -70px;
    right: -50px;
}
.hero-modern .hero-shape-2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: -30px;
    background: var(--brand-light, #e8f5e9);
}

/* Legacy hero-photo fallback (hidden — replaced by hero-modern) */
.page-hero.hero-photo {
    display: none;
}

/* ─── Photo Banner ─── */
.photo-banner {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ─── Value Strip ─── */
.value-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 16px 0 8px;
    flex-wrap: wrap;
}
.value-item { text-align: center; }
.value-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
}
.value-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ─── Service Sections ─── */
.service-section {
    padding: 48px 0;
}
.service-section.alt-bg {
    background: var(--bg-alt);
}

/* ─── Section Header ─── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ─── Section Badge ─── */
.section-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}
.section-badge.buyer {
    background: #dbeafe;
    color: #1e40af;
}
.section-badge.seller {
    background: #fef3c7;
    color: #92400e;
}
.section-badge.gc {
    background: #fce7f3;
    color: #be185d;
}
.section-badge.financing {
    background: var(--brand-light);
    color: var(--brand);
}

/* ─── Features Grid ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.features-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}
.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--brand-subtle, var(--brand-light));
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* alt-bg sections: cards stay white */
.alt-bg .feature-card {
    background: #fff;
}

/* ─── Split Section ─── */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
    align-items: center;
    overflow: hidden;
    border-radius: var(--radius-lg, var(--radius));
    box-shadow: var(--shadow-lg);
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.split-image {
    width: 100%;
    height: 100%;
    min-height: 340px;
    background-size: cover;
    background-position: center;
}
.split-content {
    padding: 52px 44px;
    background: var(--surface);
}
.split-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.2px;
}
.split-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}
.split-content .btn-cta {
    display: inline-block;
    padding: 13px 28px;
    background: var(--brand);
    color: #fff;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}
.split-content .btn-cta:hover {
    background: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(24,98,50,0.3);
}

/* ─── Pipeline / Steps ─── */
.pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.pipeline-step {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 120px;
    flex: 1;
    max-width: 160px;
}
.pipeline-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(24,98,50,0.2);
}
.pipeline-step strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 4px;
    color: var(--text);
}
.pipeline-step span {
    font-size: 0.76rem;
    color: var(--text-secondary);
}
.pipeline-arrow {
    font-size: 1.2rem;
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 36px;
    margin-top: 12px;
    padding: 0 4px;
}

/* ─── Lead Form Section ─── */
.lead-form-section {
    background: var(--surface);
    border-radius: var(--radius-lg, var(--radius));
    padding: 36px 36px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.lead-form-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text);
    letter-spacing: -0.2px;
}
.lead-form-section > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
}
.lead-form-section form { text-align: left; }

/* ─── Award Banner ─── */
.award-banner {
    background: var(--bg-alt);
    padding: 40px 24px;
}
.award-banner-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.award-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.award-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.award-text { text-align: left; }
.award-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.award-text span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ─── Testimonials ─── */
.testimonials-section {
    padding: 48px 0;
    background: var(--bg-alt);
}
.testimonials-scroll-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonial-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 24px;
    min-width: 300px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    border-left: none;
    position: relative;
}
.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3rem;
    color: var(--brand-light);
    font-family: Georgia, serif;
    line-height: 1;
}
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transition: all 0.25s;
}
.scroll-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-50%) scale(1.05);
}
.scroll-left { left: 4px; }
.scroll-right { right: 4px; }
.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}
.testimonial-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 18px;
}
.testimonial-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.testimonial-source {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.testimonials-footer {
    text-align: center;
    margin-top: 32px;
    padding: 0 24px;
}
.testimonials-footer a {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.testimonials-footer a:hover { text-decoration: underline; }
.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow);
}
.google-rating .rating-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

/* ─── Loan Cards (Financing page) ─── */
.loan-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}
.loan-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.loan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.loan-header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.loan-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.loan-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    letter-spacing: 0.5px;
}
.loan-header.dscr {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
}
.loan-header.flip {
    background: linear-gradient(135deg, #e65100, #bf360c);
}
.loan-header.conventional {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.loan-body { padding: 24px; }
.loan-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}
.loan-features {
    list-style: none;
    margin-bottom: 16px;
}
.loan-features li {
    position: relative;
    padding-left: 22px;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
}
.loan-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}
.loan-ideal {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}
.btn-tool {
    display: inline-block;
    padding: 10px 22px;
    background: var(--brand-subtle, var(--brand-light));
    color: var(--brand);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-tool:hover {
    background: var(--brand);
    color: #fff;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .loan-cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-card { min-width: 260px; }
    .split-section { grid-template-columns: 1fr; }
    .split-section.reverse { direction: ltr; }
    .split-image { min-height: 260px; }
    .award-banner-inner { flex-direction: column; gap: 20px; }
}
@media (max-width: 640px) {
    .page-hero.hero-photo {
        padding: 56px 20px;
        min-height: 300px;
    }
    .photo-banner {
        height: 200px;
        background-attachment: scroll;
    }
    .service-section { padding: 56px 0; }
    .section-header h2 { font-size: 1.5rem; }
    .features-grid,
    .features-grid.cols-2 {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .value-strip { gap: 24px; }
    .value-number { font-size: 1.3rem; }
    .pipeline { flex-direction: column; align-items: center; }
    .pipeline-arrow { transform: rotate(90deg); }
    .pipeline-step { max-width: 280px; width: 100%; }
    .lead-form-section { padding: 32px 24px; }
    .split-content { padding: 36px 28px; }
    .form-row { grid-template-columns: 1fr; }
}

/* Hero responsive */
@media (max-width: 1024px) {
    .hero-modern .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-modern .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-modern .hero-image { max-width: 480px; margin: 0 auto; }
    .hero-modern .hero-shape-1 { width: 180px; height: 180px; top: -50px; right: -30px; }
    .hero-modern .hero-shape-2 { width: 110px; height: 110px; }
}
@media (max-width: 640px) {
    .hero-modern { padding: 48px 20px 56px; }
    .hero-modern h1 { font-size: 2rem; }
}
