/* ========================================================================== 
   RS REAL ESTATE SOLUTIONS
   ROOFING DETAIL PAGES

   Shared additions for:
   /roof-repair-el-paso/
   /roof-replacement-el-paso/

   Loads after /assets/css/roofing-services.css.
   ========================================================================== */

.roof-detail-page {
    --roof-detail-surface: #0b1116;
    --roof-detail-surface-2: #111920;
    --roof-detail-soft: rgba(255, 255, 255, .045);
}

.roof-detail-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .46);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.roof-detail-breadcrumbs a {
    color: rgba(255, 255, 255, .72);
    transition: color .25s ease;
}

.roof-detail-breadcrumbs a:hover {
    color: var(--roof-accent-light);
}

.roof-detail-breadcrumbs span[aria-hidden="true"] {
    color: rgba(255, 255, 255, .24);
}

.roof-detail-page .roof-service-hero-panel ul {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    list-style: none;
}

.roof-detail-page .roof-service-hero-panel li {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, .61);
    font-size: .82rem;
}

.roof-detail-page .roof-service-hero-panel li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--roof-accent-light);
    box-shadow: 0 0 0 4px rgba(224, 193, 143, .08);
}

/* ========================================================================== 
   DETAIL / PROBLEM CARDS
   ========================================================================== */

.roof-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.roof-detail-card {
    position: relative;
    min-height: 315px;
    display: flex;
    flex-direction: column;
    padding: 34px 31px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(198, 163, 107, .08), transparent 17rem),
        linear-gradient(155deg, #101820, #090e13);
    border: 1px solid var(--roof-line);
    border-radius: var(--roof-radius);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .35s ease;
}

.roof-detail-card::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(224, 193, 143, .08);
    transform: rotate(45deg);
}

.roof-detail-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 193, 143, .24);
}

.roof-detail-card > span {
    color: rgba(255, 255, 255, .28);
    font-size: .60rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.roof-detail-card h3 {
    margin: auto 0 13px;
    padding-top: 54px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.7rem, 2.7vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.roof-detail-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--roof-text);
    font-size: .88rem;
    line-height: 1.72;
}

/* ========================================================================== 
   REPAIR VS REPLACEMENT / DECISION SECTION
   ========================================================================== */

.roof-decision {
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 12%, rgba(198, 163, 107, .07), transparent 28rem),
        linear-gradient(180deg, #090e13, #060a0d);
}

.roof-decision-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(60px, 9vw, 130px);
    align-items: center;
}

.roof-decision-copy > p:not(.roof-service-eyebrow) {
    max-width: 630px;
    color: var(--roof-text);
    line-height: 1.8;
}

.roof-decision-copy h2 {
    margin: 0 0 25px;
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 5vw, 5.2rem);
    font-weight: 600;
    line-height: 1.01;
    letter-spacing: -.058em;
}

.roof-decision-copy h2 em {
    display: block;
    color: var(--roof-accent-light);
    font-weight: 600;
}

.roof-decision-options {
    border-top: 1px solid var(--roof-line);
}

.roof-decision-options article {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--roof-line);
}

.roof-decision-options > article > span:first-child {
    color: var(--roof-accent-light);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.roof-decision-options h3 {
    margin: 0 0 6px;
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    letter-spacing: -.03em;
}

.roof-decision-options p {
    margin: 0;
    color: var(--roof-text-muted);
    font-size: .84rem;
}

.roof-decision-options a {
    color: var(--roof-accent-light);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ========================================================================== 
   LOCAL / EDUCATIONAL BAND
   ========================================================================== */

.roof-local-band {
    background: var(--roof-ivory);
    color: var(--roof-ink);
}

.roof-local-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
    gap: clamp(55px, 8vw, 110px);
    align-items: center;
}

.roof-local-band .roof-service-eyebrow {
    color: var(--roof-accent-dark);
}

.roof-local-copy h2 {
    margin: 0 0 24px;
    color: var(--roof-ink);
    font-family: "Playfair Display", serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.roof-local-copy h2 em {
    color: var(--roof-accent-dark);
    font-weight: 600;
}

.roof-local-copy > p {
    max-width: 700px;
    color: rgba(5, 8, 11, .64);
    line-height: 1.82;
}

.roof-local-panel {
    padding: 36px;
    background: #fff;
    border: 1px solid rgba(5, 8, 11, .08);
    border-radius: var(--roof-radius);
    box-shadow: 0 24px 60px rgba(17, 22, 27, .10);
}

.roof-local-panel span {
    display: block;
    margin-bottom: 14px;
    color: var(--roof-accent-dark);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.roof-local-panel p {
    margin: 0;
    color: rgba(5, 8, 11, .72);
    font-size: .92rem;
    line-height: 1.75;
}

/* ========================================================================== 
   FAQ
   ========================================================================== */

.roof-faq {
    background:
        radial-gradient(circle at 20% 20%, rgba(145, 166, 184, .055), transparent 28rem),
        var(--roof-detail-surface);
}

.roof-faq-grid {
    display: grid;
    grid-template-columns: minmax(280px, .55fr) minmax(0, 1.2fr);
    gap: clamp(55px, 9vw, 120px);
    align-items: start;
}

.roof-faq-intro {
    position: sticky;
    top: 125px;
}

.roof-faq-intro h2 {
    margin: 0 0 20px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 4.5vw, 4.6rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.roof-faq-intro p:not(.roof-service-eyebrow) {
    color: var(--roof-text);
}

.roof-faq-list {
    border-top: 1px solid var(--roof-line);
}

.roof-faq-list details {
    border-bottom: 1px solid var(--roof-line);
}

.roof-faq-list summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 27px 0;
    cursor: pointer;
    color: var(--roof-white);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.3;
    list-style: none;
}

.roof-faq-list summary::-webkit-details-marker {
    display: none;
}

.roof-faq-list summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--roof-accent-light);
    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
}

.roof-faq-list details[open] summary::after {
    content: "−";
}

.roof-faq-list details p {
    max-width: 760px;
    margin: -4px 0 27px;
    color: var(--roof-text);
    font-size: .91rem;
    line-height: 1.78;
}

/* ========================================================================== 
   RELATED ROOFING LINKS
   ========================================================================== */

.roof-related {
    padding: 0 0 clamp(80px, 8vw, 120px);
    background: var(--roof-detail-surface);
}

.roof-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.roof-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 120px;
    padding: 28px 31px;
    border: 1px solid var(--roof-line);
    background: rgba(255, 255, 255, .025);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}

.roof-related a:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 193, 143, .25);
    background: rgba(255, 255, 255, .04);
}

.roof-related small {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, .35);
    font-size: .60rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.roof-related strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.45rem;
    font-weight: 600;
}

.roof-related a > span:last-child {
    color: var(--roof-accent-light);
    font-size: 1.25rem;
}

/* ========================================================================== 
   PAGE-SPECIFIC IMAGE TREATMENT
   ========================================================================== */

.roof-repair-page .roof-service-hero-media {
    background-position: center 42%;
}

.roof-replacement-page .roof-service-hero-media {
    background-position: center 38%;
}

.roof-replacement-page .roof-service-hero-panel::before {
    background: linear-gradient(90deg, transparent, var(--roof-steel-light), transparent);
}

/* ========================================================================== 
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
    .roof-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roof-decision-grid,
    .roof-local-grid,
    .roof-faq-grid {
        grid-template-columns: 1fr;
    }

    .roof-faq-intro {
        position: static;
        max-width: 700px;
    }
}

@media (max-width: 700px) {
    .roof-detail-breadcrumbs {
        margin-bottom: 16px;
        font-size: .60rem;
    }

    .roof-detail-grid,
    .roof-related-grid {
        grid-template-columns: 1fr;
    }

    .roof-detail-card {
        min-height: 280px;
        padding: 28px 24px;
    }

    .roof-decision-options article {
        grid-template-columns: 38px 1fr;
        gap: 14px;
    }

    .roof-decision-options a {
        grid-column: 2;
        justify-self: start;
        margin-top: 4px;
    }

    .roof-local-panel {
        padding: 27px 24px;
    }

    .roof-faq-list summary {
        padding: 23px 0;
    }

    .roof-related a {
        min-height: 105px;
        padding: 24px;
    }
}

@media (max-width: 420px) {
    .roof-detail-card h3 {
        font-size: 1.8rem;
    }

    .roof-decision-copy h2,
    .roof-local-copy h2,
    .roof-faq-intro h2 {
        font-size: 2.75rem;
    }
}
