/* ===================================================================
 * STYLESHEET FOR: Residential Roof Repairs Page (Refactored)
 * =================================================================== */

/* ===================================================================
   ACCORDION (FAQ SECTION)
=================================================================== */

.accordion-question {
    width: 100%;
    background-color: #2d7a2a;
    color: var(--color-light);
    border: none;
    border-radius: var(--border-radius);
    padding: var(--space-md) var(--space-lg);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.accordion-question:hover {
    background-color: var(--color-accent-green);
}
.accordion-question.active {
    background-color: var(--color-dark);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.accordion-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-light);
    transition: transform 0.3s ease;
}
.accordion-question.active::after {
    content: '\2013';
    transform: rotate(0);
}
.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 var(--space-lg);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}
.accordion-answer p {
    margin: 0;
    padding: var(--space-lg) 0;
}

/* ===================================================================
   2. PAGE COMPONENTS (Mobile-First)
 =================================================================== */

/* --- Intro Title Card --- */
.intro-title-card {
    background-color: rgba(36, 128, 32, 0.05);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    text-align: center;
    border-bottom: 3px solid var(--color-secondary);
}

.intro-title-card h2 {
    color: var(--color-dark);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.intro-title-card p {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* --- Repairs Grid & Cards --- */
.repairs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.repair-card {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    color: var(--color-light);
}

.repair-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(26, 54, 93, 0.8); /* Dark blue overlay */
    transition: background-color 0.3s ease;
}

.repair-card:hover::before {
    background-color: rgba(26, 54, 93, 0.65); /* Lighter overlay on hover */
}

.repair-card--storm {
    background-image: url('https://idealroofingco.com/wp-content/uploads/flint-storm-damage-roof-repairs.webp');
}
.repair-card--leak {
    background-image: url('https://idealroofingco.com/wp-content/uploads/flint-roof-leak-detection-repair.webp');
}
.repair-card--claims {
    background-image: url('https://idealroofingco.com/wp-content/uploads/storm-damaged-roof-insurance-claims.webp');
}
.repair-card--maintenance {
    background-image: url('https://idealroofingco.com/wp-content/uploads/flint-roofing-contractor-maintenance-plans.webp');
}

.repair-card-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.repair-card-content h3 {
    color: var(--color-light);
    margin-top: 0;
    border-bottom: var(--border-thick) var(--color-accent);
    padding-bottom: var(--space-md);
}

.repair-card-content ul {
    flex-grow: 1;
    margin-top: var(--space-lg);
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}
.repair-card .check-item {
    color: var(--color-light);
}

/* --- Gallery --- */
.gallery-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.gallery-header h3 {
    margin-bottom: var(--space-xs);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--color-dark);
}
.gallery-header p {
    font-size: 1rem;
    color: #64748b;
    margin-top: 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* ===================================================================
   3. DESKTOP ENHANCEMENTS (min-width: 992px)
 =================================================================== */
@media (min-width: 992px) {
    .repairs-grid {
        grid-template-columns: 1fr 1fr;
    }

}