/* ============================================================
   HANDLE BAR ROOFING — Service pages (/roof-replacement/ etc.)
   Builds on styles.css variables and components.
   ============================================================ */

/* ---------- PAGE HERO ---------- */
.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 90px 0 80px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(14, 14, 14, 0.94) 0%, rgba(14, 14, 14, 0.82) 55%, rgba(14, 14, 14, 0.55) 100%);
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.page-hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.12;
    max-width: 760px;
    margin-bottom: 18px;
}

.page-hero .lead {
    font-size: 18px;
    color: var(--text);
    max-width: 640px;
    margin-bottom: 30px;
}

.page-hero .hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.page-hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 30px;
    color: var(--heading);
    font-weight: 600;
    font-size: 15px;
}

.page-hero-points i {
    color: var(--primary);
    margin-right: 8px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: var(--border-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current] {
    color: var(--text-light);
}

/* ---------- BODY + SIDEBAR ---------- */
.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
}

.page-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 48px 0 16px;
}

.page-article > h2:first-child {
    margin-top: 0;
}

.page-article h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 26px 0 8px;
}

.page-article p {
    margin-bottom: 16px;
}

.page-article p a,
.page-article li a,
.page-article td a,
.faq-list a {
    color: var(--heading);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.7);
}

.page-article p a:hover,
.page-article li a:hover,
.page-article td a:hover,
.faq-list a:hover {
    color: var(--primary);
}

.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 8px 0 20px;
}

.check-list.one-col {
    grid-template-columns: 1fr;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary);
}

.check-list strong {
    color: var(--heading);
}

.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 14px;
    margin: 10px 0 24px;
}

.steps li {
    counter-increment: step;
    position: relative;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 20px 18px 72px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    display: grid;
    place-items: center;
}

.steps strong {
    display: block;
    color: var(--heading);
    font-size: 17px;
    margin-bottom: 2px;
}

.page-figure {
    margin: 28px 0;
}

.page-figure img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.page-figure figcaption {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.figure-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.figure-pair img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.callout {
    background: rgba(var(--primary-rgb), 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 18px 22px;
    margin: 24px 0;
    color: var(--heading);
}

.callout p:last-child {
    margin-bottom: 0;
}

.table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 520px;
}

.compare-table th,
.compare-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.compare-table th {
    background: var(--dark-3);
    color: var(--heading);
    font-weight: 700;
}

.compare-table tr:last-child td {
    border-bottom: 0;
}

.compare-table td:first-child {
    color: var(--heading);
    font-weight: 600;
}

/* Sidebar */
.page-aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 22px;
}

.aside-card {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}

.aside-card.accent {
    border-top: 4px solid var(--primary);
}

.aside-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
}

.aside-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 18px;
}

.aside-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    margin: 16px 0 4px;
}

.aside-phone i {
    color: var(--primary);
    font-size: 18px;
}

.aside-phone:hover {
    color: var(--primary);
}

.aside-hours {
    font-size: 14px;
    color: var(--text-muted);
}

.aside-links {
    list-style: none;
    display: grid;
    gap: 2px;
}

.aside-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}

.aside-links li:last-child a {
    border-bottom: 0;
}

.aside-links a i {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition), color var(--transition);
}

.aside-links a:hover,
.aside-links a[aria-current] {
    color: var(--primary);
}

.aside-links a:hover i {
    color: var(--primary);
    transform: translateX(4px);
}

/* ---------- FAQ ---------- */
.page-faq {
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-list details {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}

.faq-list details[open] {
    border-color: var(--primary);
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 56px 18px 22px;
    position: relative;
    color: var(--heading);
    font-weight: 700;
    font-size: 17px;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 24px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: '\2212';
}

.faq-list .faq-a {
    padding: 0 22px 20px;
}

.faq-list .faq-a p:last-child {
    margin-bottom: 0;
}

/* ---------- RELATED SERVICES ---------- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    display: block;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.related-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card div {
    padding: 20px 22px 24px;
}

.related-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.related-card p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 10px;
}

.related-card span {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* Homepage: service card titles are now links */
.service-body h3 a:hover {
    color: var(--primary);
}

.service-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.service-more i {
    margin-left: 6px;
    transition: transform var(--transition);
}

.service-more:hover i {
    transform: translateX(4px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0 56px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

    .page-hero .lead {
        font-size: 16px;
    }

    .page-article h2 {
        font-size: 26px;
        margin-top: 38px;
    }

    .check-list,
    .figure-pair,
    .page-aside,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page-hero .hero-btns .btn {
        flex: 1 1 100%;
    }
}
