/* =============================================
   Fire Rebuild Page — Specific Styles
   Alto Builders | fire-rebuild.css
   ============================================= */

/* ---- Hero ---- */
.fire-rebuild-hero {
    position: relative;
    width: 100%;
    height: 560px;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.fire-rebuild-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.fire-rebuild-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 20, 35, 0.45) 0%,
        rgba(10, 20, 35, 0.72) 60%,
        rgba(10, 20, 35, 0.88) 100%
    );
}

.fire-rebuild-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.fire-rebuild-hero__content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.fire-rebuild-hero__content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Tab Section ---- */
.fire-rebuild-tabs-section {
    background: #ffffff;
}

/* ---- Tab Content Panels ---- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- Generic tab content layout ---- */
.fr-tab-panel {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px 80px;
}

.fr-tab-panel h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 0 0 12px;
}

.fr-tab-panel .fr-lead {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    margin: 0 0 32px;
    line-height: 1.6;
}

.fr-tab-panel p {
    color: #555;
    line-height: 1.75;
    margin-bottom: 18px;
    font-size: 0.97rem;
}

/* ---- Two-column layout ---- */
.fr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.fr-two-col--wide {
    grid-template-columns: 3fr 2fr;
}

/* ---- Section divider ---- */
.fr-divider {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color, #1c3f60);
    margin: 48px 0;
    opacity: 0.15;
}

/* ---- Highlighted band ---- */
.fr-band {
    background-color: #f4f7fb;
    margin: 0 -40px;
    padding: 48px 40px;
}

/* ---- Step list (process) ---- */
.fr-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    counter-reset: step-counter;
}

.fr-steps li {
    counter-increment: step-counter;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf3;
}

.fr-steps li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fr-steps li::before {
    content: counter(step-counter);
    background: var(--primary-color, #1c3f60);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.fr-steps li strong {
    display: block;
    font-weight: 600;
    color: var(--primary-color, #1c3f60);
    margin-bottom: 4px;
    font-size: 0.97rem;
}

.fr-steps li span {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.6;
}

/* ---- Comparison table ---- */
.fr-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}

.fr-compare-table thead {
    background: var(--primary-color, #1c3f60);
    color: #fff;
}

.fr-compare-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fr-compare-table thead th:first-child {
    width: 30%;
}

.fr-compare-table tbody tr {
    border-bottom: 1px solid #e5e9ef;
}

.fr-compare-table tbody tr:last-child {
    border-bottom: none;
}

.fr-compare-table tbody tr:nth-child(even) {
    background: #f7f9fc;
}

.fr-compare-table td {
    padding: 12px 18px;
    color: #444;
    vertical-align: top;
    line-height: 1.55;
}

.fr-compare-table td:first-child {
    font-weight: 600;
    color: var(--primary-color, #1c3f60);
}

/* ---- Info cards ---- */
.fr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.fr-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fr-card__icon {
    width: 40px;
    height: 40px;
    background: rgba(28,63,96,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.fr-card__icon svg {
    color: var(--primary-color, #1c3f60);
}

.fr-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 0 0 10px;
}

.fr-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---- Cost range display ---- */
.fr-cost-ranges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.fr-cost-range {
    background: linear-gradient(135deg, #1c3f60 0%, #2a5a8a 100%);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    color: #fff;
}

.fr-cost-range__label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.fr-cost-range__amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.fr-cost-range__note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* ---- Partner cards ---- */
.fr-partners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.fr-partner-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color, #1c3f60);
    border-radius: 6px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fr-partner-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 0 0 10px;
}

.fr-partner-card p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ---- Requirements list ---- */
.fr-req-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.fr-req-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f3;
    font-size: 0.94rem;
    color: #444;
    line-height: 1.6;
}

.fr-req-list li:last-child {
    border-bottom: none;
}

.fr-req-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #1c3f60);
    flex-shrink: 0;
    margin-top: 8px;
}

.fr-req-list li strong {
    font-weight: 600;
    color: var(--primary-color, #1c3f60);
}

/* ---- Jurisdiction comparison ---- */
.fr-jurisdiction {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 28px 0;
}

.fr-jurisdiction-card {
    background: #f4f7fb;
    border-radius: 8px;
    padding: 24px;
}

.fr-jurisdiction-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #1c3f60);
}

.fr-jurisdiction-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fr-jurisdiction-card ul li {
    font-size: 0.9rem;
    color: #555;
    padding: 6px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.55;
}

.fr-jurisdiction-card ul li::before {
    content: '→';
    color: var(--primary-color, #1c3f60);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Section headings inside tab panels ---- */
.fr-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(28,63,96,0.12);
}

.fr-section-heading:first-of-type {
    margin-top: 0;
}

/* ---- Timeline badge ---- */
.fr-timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(28,63,96,0.08);
    border-radius: 6px;
    padding: 12px 20px;
    margin: 0 0 32px;
}

.fr-timeline-badge svg {
    color: var(--primary-color, #1c3f60);
    flex-shrink: 0;
}

.fr-timeline-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color, #1c3f60);
}

/* ---- Partners CTA callout ---- */
.fr-partner-cta {
    background: linear-gradient(135deg, #1c3f60 0%, #2a5a8a 100%);
    border-radius: 10px;
    padding: 36px 40px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.fr-partner-cta__text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.fr-partner-cta__text p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.6;
}

.fr-partner-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-color, #1c3f60);
    padding: 14px 28px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.fr-partner-cta__btn:hover {
    background: #f0f4f8;
    transform: translateY(-1px);
}

/* ---- FAQ Accordion ---- */
.fire-rebuild-faq {
    background: #f4f7fb;
    padding: 80px 0;
}

.fire-rebuild-faq__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.fire-rebuild-faq__inner .section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color, #1c3f60);
    display: block;
    margin-bottom: 12px;
}

.fire-rebuild-faq__inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a2840;
    margin: 0 0 48px;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.accordion-item.open {
    box-shadow: 0 4px 16px rgba(28,63,96,0.1);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a2840;
    user-select: none;
    transition: background 0.2s;
    gap: 16px;
}

.accordion-header:hover {
    background: #f7f9fc;
}

.accordion-item.open .accordion-header {
    color: var(--primary-color, #1c3f60);
    background: rgba(28,63,96,0.04);
}

.accordion-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color, #1c3f60);
    transition: transform 0.3s;
}

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

.accordion-body {
    display: none;
    padding: 0 24px 22px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.75;
    border-top: 1px solid #f0f2f5;
}

.accordion-item.open .accordion-body {
    display: block;
}

.accordion-body p {
    margin: 16px 0 0;
}

.accordion-body p:first-child {
    margin-top: 0;
}

/* ---- CTA Section ---- */
.fire-rebuild-cta {
    background: #fff;
    padding: 80px 40px;
    text-align: center;
}

.fire-rebuild-cta__inner {
    max-width: 680px;
    margin: 0 auto;
}

.fire-rebuild-cta__inner h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color, #1c3f60);
    margin: 0 0 16px;
}

.fire-rebuild-cta__inner p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 36px;
}

.fire-rebuild-cta__btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.fr-btn-primary {
    display: inline-block;
    background: var(--primary-color, #1c3f60);
    color: #fff;
    padding: 16px 32px;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.2s, transform 0.15s;
}

.fr-btn-primary:hover {
    background: #163152;
    transform: translateY(-1px);
}

.fr-btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color, #1c3f60);
    padding: 14px 30px;
    border-radius: 5px;
    border: 2px solid var(--primary-color, #1c3f60);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.2s;
}

.fr-btn-secondary:hover {
    background: var(--primary-color, #1c3f60);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .fire-rebuild-hero {
        height: 440px;
    }

    .fire-rebuild-hero__content h1 {
        font-size: 2.2rem;
    }

    .fire-rebuild-hero__content {
        padding: 0 24px 48px;
    }

    .fr-tab-panel {
        padding: 48px 24px 64px;
    }

    .fr-two-col,
    .fr-two-col--wide {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .fr-cost-ranges {
        grid-template-columns: 1fr;
    }

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

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

    .fr-partner-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .fire-rebuild-faq__inner {
        padding: 0 20px;
    }

    .fire-rebuild-cta {
        padding: 60px 24px;
    }

    .fr-band {
        margin: 0 -24px;
        padding: 36px 24px;
    }
}

@media (max-width: 600px) {
    .fire-rebuild-hero {
        height: 380px;
    }

    .fire-rebuild-hero__content h1 {
        font-size: 1.8rem;
    }

    .fire-rebuild-hero__content p {
        font-size: 1rem;
    }

    .fire-rebuild-faq__inner h2,
    .fire-rebuild-cta__inner h2 {
        font-size: 1.6rem;
    }

    .fire-rebuild-cta__btns {
        flex-direction: column;
        align-items: center;
    }

    .fr-compare-table {
        font-size: 0.82rem;
    }

    .fr-compare-table td,
    .fr-compare-table thead th {
        padding: 10px 12px;
    }
}
