/* RoofSpark page-specific styles */

.roofspark-hero {
    background: var(--roofing-gradient);
    padding: 16rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.roofspark-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.roofspark-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 90rem;
}

.roofspark-hero h1 {
    font-size: 4.8rem;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.roofspark-hero h1 .highlight {
    background: var(--roofing-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roofspark-hero .lead {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.roofspark-hero .roofing-hero-badge {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pricing section */
.pricing-section {
    padding: 10rem 0;
    background: var(--roofing-light);
}

.pricing-section .section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.pricing-section .section-header h2 {
    font-size: 3.6rem;
    color: var(--roofing-dark);
    margin-bottom: 1.5rem;
}

.pricing-guarantee-note {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    color: var(--roofing-muted);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    max-width: 124rem;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--roofing-white);
    border-radius: 20px;
    padding: 5.6rem 3rem 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(25, 25, 25, 0.08);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, rgba(204, 104, 72, 0.25) 0%, rgba(204, 104, 72, 0.8) 100%);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border: 2px solid var(--roofing-accent);
    background: linear-gradient(180deg, #fff8f5 0%, #fff 38%);
    box-shadow: 0 16px 48px rgba(204, 104, 72, 0.18);
}

.pricing-card.featured:hover {
    transform: translateY(-8px);
}

.pricing-badge {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--roofing-accent);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(204, 104, 72, 0.2);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.pricing-badge.badge-muted {
    background: var(--roofing-muted);
}

.pricing-badge.badge-dark {
    background: var(--roofing-dark);
}

.pricing-card-head {
    text-align: center;
    margin-bottom: 2.2rem;
}

.pricing-card h3 {
    font-size: 2.4rem;
    color: var(--roofing-dark);
    margin-bottom: 1rem;
}

.price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
}

.price-strike {
    text-decoration: line-through;
    font-size: 2.2rem;
    color: var(--roofing-muted);
}

.pricing-card .price-current {
    font-size: 4.4rem;
    font-weight: 700;
    color: var(--roofing-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.price-frequency {
    font-size: 1.35rem;
    color: var(--roofing-muted);
    margin-top: 0.8rem;
}

.pricing-card .price-note {
    font-size: 1.4rem;
    color: var(--roofing-muted);
    margin-bottom: 0;
}

.package-fit {
    margin-top: 1rem;
    font-size: 1.35rem;
    color: var(--roofing-dark);
    background: rgba(197, 214, 205, 0.45);
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    display: inline-block;
}

.pricing-card .features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.6rem;
}

.pricing-card .features-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--roofing-light);
    font-size: 1.5rem;
    color: var(--roofing-text);
}

.pricing-card .features-list li:last-child {
    border-bottom: none;
}

.pricing-card .features-list li.plan-divider {
    border-top: 2px solid var(--roofing-light);
    padding-top: 1.5rem;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--roofing-dark);
}

.pricing-card .features-list i {
    color: var(--roofing-success);
    font-size: 1.4rem;
    margin-top: 0.3rem;
}

.roofspark-page .btn-roofing {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 18px rgba(204, 104, 72, 0.24);
    border: 1px solid rgba(204, 104, 72, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.roofspark-page .btn-roofing i {
    transition: transform 0.25s ease;
}

.roofspark-page .btn-roofing:hover {
    box-shadow: 0 14px 24px rgba(184, 90, 61, 0.28);
}

.roofspark-page .btn-roofing:hover i {
    transform: translateX(3px);
}

.pricing-card .btn-roofing {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.comparison-section {
    margin-top: 4rem;
}

.comparison-section h3 {
    text-align: center;
    font-size: 2.6rem;
    color: var(--roofing-dark);
    margin-bottom: 2rem;
}

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(25, 25, 25, 0.1);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.comparison-table {
    width: 100%;
    min-width: 78rem;
    border-collapse: collapse;
    font-size: 1.45rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.3rem 1.4rem;
    border-bottom: 1px solid var(--roofing-light);
    text-align: left;
    vertical-align: middle;
}

.comparison-table thead th {
    background: #f8f5f2;
    color: var(--roofing-dark);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.comparison-table tbody th {
    color: var(--roofing-dark);
    width: 30%;
}

.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
    background: #fdfbfa;
}

.comparison-table i.fa-check-circle {
    color: var(--roofing-success);
}

.comparison-table i.fa-times-circle {
    color: #ef4444;
}

.table-pill {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(204, 104, 72, 0.15);
    color: #b85a3d;
    font-size: 1.05rem;
    font-weight: 700;
}

.table-pill.dark {
    background: rgba(25, 25, 25, 0.12);
    color: var(--roofing-dark);
}

.roofspark-page .btn-roofing-secondary {
    color: var(--roofing-accent);
    border: 1px solid rgba(204, 104, 72, 0.35);
    border-radius: 10px;
    padding: 1rem 1.6rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.45rem;
    transition: all 0.25s ease;
    background: rgba(204, 104, 72, 0.06);
}

.roofspark-page .btn-roofing-secondary:hover {
    background: rgba(204, 104, 72, 0.14);
    color: #b85a3d;
    transform: translateY(-2px);
}

/* Other sections */
.problem-section {
    padding: 10rem 0;
    background: var(--roofing-white);
}

.problem-section .section-header,
.solution-section .section-header,
.faq-section .section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.problem-section .section-header h2,
.solution-section .section-header h2,
.faq-section .section-header h2 {
    font-size: 3.6rem;
    color: var(--roofing-dark);
    margin-bottom: 1.5rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
}

.problem-card {
    background: var(--roofing-light);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.problem-card-icon {
    width: 7rem;
    height: 7rem;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.problem-card-icon i {
    font-size: 2.8rem;
    color: #ef4444;
}

.problem-card h3 {
    font-size: 2rem;
    color: var(--roofing-dark);
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--roofing-muted);
    line-height: 1.7;
}

.solution-section {
    padding: 10rem 0;
    background: var(--roofing-gradient);
    position: relative;
}

.solution-section .container {
    position: relative;
    z-index: 1;
}

.solution-section .section-header h2 {
    color: #fff;
}

.solution-section .section-header p {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 70rem;
    margin: 0 auto;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.solution-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.solution-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.solution-card h3 i {
    color: var(--roofing-accent);
}

.solution-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0;
}

.faq-section {
    padding: 10rem 0;
    background: var(--roofing-light);
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    background: var(--roofing-white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--roofing-light);
}

.faq-question h4 {
    font-size: 1.8rem;
    color: var(--roofing-dark);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--roofing-primary);
    font-size: 1.6rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2.5rem 2rem;
    max-height: 50rem;
}

.faq-answer p {
    color: var(--roofing-muted);
    line-height: 1.8;
    margin: 0;
}

.guarantee-section {
    padding: 8rem 0;
    background: var(--roofing-white);
}

.guarantee-card {
    max-width: 80rem;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--card-sage) 0%, #a8c4b0 100%);
    border-radius: 20px;
    padding: 5rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.guarantee-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.guarantee-card .content {
    position: relative;
    z-index: 1;
}

.guarantee-card i {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.guarantee-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.guarantee-card p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

.final-cta-link-wrap {
    margin-top: 2rem;
}

@media (max-width: 1100px) {
    .pricing-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .roofspark-hero h1 {
        font-size: 3.2rem;
    }

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

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 42rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .guarantee-card {
        padding: 3rem 2rem;
    }

    .comparison-section h3 {
        font-size: 2.2rem;
    }

    .comparison-table {
        min-width: 66rem;
        font-size: 1.35rem;
    }
}
