/* ==========================================================================
   GRACE ROOFING GROUP - Service Sub-Page Styles
   Styles for roof-inspection, roof-repair, roof-replacement pages
   ========================================================================== */

/* Service Page Hero */
.sp-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 60px 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sp-hero {
        min-height: 80vh;
        padding: 80px 0;
    }
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 27, 29, 0.95) 0%, rgba(27, 27, 29, 0.7) 40%, rgba(27, 27, 29, 0.4) 100%);
}

.sp-hero-content {
    position: relative;
    z-index: 10;
}

/* Content Sections */
.sp-content-section {
    padding: 80px 0;
    background: var(--charcoal);
}

@media (min-width: 768px) {
    .sp-content-section {
        padding: 120px 0;
    }
}

.sp-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .sp-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

@media (min-width: 1024px) {
    .sp-content-grid.reverse .sp-content-visual {
        order: -1;
    }
}

.sp-content-text .body-text p {
    margin-bottom: 16px;
}

.sp-content-text .body-text p:last-child {
    margin-bottom: 0;
}

/* Stats Section */
.sp-stats-section {
    padding: 64px 0;
    background: rgba(200, 166, 116, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .sp-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* CTA Section */
.sp-cta-section {
    position: relative;
    padding: 96px 0;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sp-cta-section {
        padding: 128px 0;
    }
}

.sp-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.sp-cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 27, 29, 0.85);
}

.sp-cta-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-cta-content h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    color: var(--text-primary);
    line-height: 1.1;
}

/* Services Page - Service Card Full */
.service-card-full .service-image-wrap img {
    transition: transform 0.5s ease;
}

.service-card-full:hover .service-image-wrap img {
    transform: scale(1.03);
}

/* Service Features List (services.html inline styles) */
.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.service-features li svg {
    flex-shrink: 0;
}

/* Services page icon styling */
.service-card-full .service-icon svg,
.service-content-wrap .service-icon svg {
    width: 24px;
    height: 24px;
    stroke: #C8A674;
    fill: none;
    stroke-width: 2;
}

/* Services Page - Full Service Cards Layout */
.service-card-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
    .service-card-full {
        grid-template-columns: 1fr 1fr;
    }
    .service-card-full.reverse .service-image-wrap {
        order: 2;
    }
    .service-card-full.reverse .service-content-wrap {
        order: 1;
    }
}

/* Services Page Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-link {
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-link:hover {
    border-color: rgba(200, 166, 116, 0.5);
    color: var(--brass);
}

/* ==========================================================================
   WORK / PORTFOLIO PAGE
   ========================================================================== */
.work-page {
    min-height: 100vh;
    background: #F4F2EA;
    padding-top: 96px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .work-page {
        padding-top: 128px;
    }
}

.work-section {
    padding: 0 16px;
}

@media (min-width: 768px) {
    .work-section {
        padding: 0 6vw;
    }
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

@media (min-width: 768px) {
    .project-card {
        border-radius: 16px;
    }
}

.project-card.featured {
    aspect-ratio: 16/9;
}

@media (min-width: 640px) {
    .project-card.featured {
        grid-column: span 2;
    }
}

.project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.project-card:hover .project-bg {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 27, 29, 0.9) 0%, rgba(27, 27, 29, 0.3) 50%, transparent 100%);
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.9;
}

.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: #C8A674;
    color: #1B1B1D;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9999px;
}

.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

@media (min-width: 768px) {
    .project-content {
        padding: 24px;
    }
}

.project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: rgba(247, 247, 245, 0.8);
    font-size: 14px;
}

.project-title {
    color: #F7F7F5;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .project-title {
        font-size: 20px;
    }
}

.project-card:hover .project-title {
    transform: translateY(0);
}

.project-desc {
    color: rgba(247, 247, 245, 0.7);
    font-size: 14px;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
}

.project-card:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

.project-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-arrow {
    background: #C8A674;
    opacity: 1;
}

.project-arrow svg {
    stroke: #1B1B1D;
}
