/* ============================================
   KLEEN SITES IAQ - SERVICE PAGE STYLES
   Styles specific to service detail pages
   ============================================ */

/* ============================================
   PAGE HERO
   ============================================ */

.page-hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg .hero-gradient {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.hero-accent-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(135deg, var(--red-light) 0%, var(--yellow-light) 50%, var(--green-light) 100%);
    opacity: 0.4;
    transform: rotate(-15deg);
    border-radius: 50%;
    filter: blur(80px);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--green);
}

.breadcrumb li:last-child span {
    color: var(--gray-700);
    font-weight: 500;
}

/* Breadcrumb styled like section-label */
.breadcrumb.section-label {
    margin-bottom: 0.75rem;
}

.breadcrumb.section-label ol {
    margin: 0;
    padding: 0;
}

.breadcrumb.section-label a {
    color: var(--green-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: inherit;
    font-weight: inherit;
}

.breadcrumb.section-label a:hover {
    color: var(--green);
}

.breadcrumb.section-label li:last-child span {
    color: var(--green-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: inherit;
}

.breadcrumb.section-label li:not(:last-child)::after {
    color: var(--green-text);
    opacity: 0.5;
}

.service-overview h1.section-title {
    text-align: left;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 550px;
}

/* ============================================
   OVERVIEW SECTION
   ============================================ */

.service-overview {
    padding: calc(var(--section-padding) + 2rem) 0 var(--section-padding);
    background: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.overview-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.overview-content p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.overview-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-800);
}

.highlight-icon {
    width: 28px;
    height: 28px;
    color: var(--green);
}

.overview-image {
    position: relative;
}

.overview-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--gray-400);
    border: 2px dashed var(--gray-300);
}

.image-placeholder svg {
    width: 64px;
    height: 64px;
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   SERVICE SECTIONS
   ============================================ */

.service-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.service-section.section-alt {
    background: var(--gray-50);
}

/* Assessment Section Background - Desktop only */
.service-section.section-assessment {
    background: var(--grey-50);
}

/* Crawlspace Encapsulation Section Background - Desktop only */
.service-section.section-crawlspace {
    background: var(--grey-50);
}

/* Show background images only on large screens (desktop) */
@media (min-width: 1025px) {
    .service-section.section-assessment {
        background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('../res/images/gallery/instascope.webp');
        background-size: cover;
        background-position: center;
    }

    .service-section.section-crawlspace {
        background: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('../res/images/gallery/crawl-space-clean.webp');
        background-size: cover;
        background-position: center;
    }
}

/* Improve text legibility */
.service-section.section-assessment .section-title,
.service-section.section-crawlspace .section-title {
    color: var(--gray-900);
}

.service-section.section-assessment .section-subtitle,
.service-section.section-crawlspace .section-subtitle {
    color: var(--gray-800);
}

@media (min-width: 1025px) {
    .service-section.section-assessment .section-subtitle,
    .service-section.section-crawlspace .section-subtitle {
        text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
    }
}

/* Darker text in cards for better readability against backgrounds */
.service-section.section-assessment .process-card p,
.service-section.section-crawlspace .prevention-card p {
    color: var(--gray-700);
}

.section-icon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 64px;
    height: 64px;
    padding: 1rem;
    border-radius: 16px;
    color: var(--white);
}

.section-icon-red {
    background: var(--red);
    box-shadow: 0 8px 24px var(--red-glow);
}

.section-icon-yellow {
    background: var(--yellow);
    box-shadow: 0 8px 24px var(--yellow-glow);
}

.section-icon-green {
    background: var(--green);
    box-shadow: 0 8px 24px var(--green-glow);
}

.section-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 0.1em;
}

/* ============================================
   ASSESSMENT - PROCESS GRID
   ============================================ */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--red);
}

.process-step {
    width: 40px;
    height: 40px;
    background: var(--red);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.process-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.process-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* InstaScope Card Link */
.instascope-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition-base);
}

.instascope-card:hover {
    border-color: var(--gray-400);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.instascope-logo {
    max-width: 120px;
    height: auto;
}

.instascope-card-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition-base);
}

.instascope-card:hover .instascope-card-text {
    color: var(--gray-900);
}

.instascope-arrow {
    width: 14px;
    height: 14px;
    transition: var(--transition-base);
}

.instascope-card:hover .instascope-arrow {
    transform: translate(2px, -2px);
}

/* ============================================
   REMEDIATION - STEPS LAYOUT
   ============================================ */

.remediation-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-top: 3rem;
}

.remediation-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.remediation-step {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
}

.remediation-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: calc(1.5rem + 24px);
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--yellow), var(--gray-200));
}

.step-marker {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--yellow);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.step-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Safety Card */
.safety-card {
    background: var(--gray-900);
    border-radius: 20px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.safety-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.safety-card ul {
    list-style: none;
}

.safety-card li {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 0.875rem;
    color: var(--gray-300);
    font-size: 0.9rem;
}

.safety-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
}

.safety-card li:last-child {
    padding-bottom: 0;
}

/* ============================================
   PREVENTION - CARD GRID
   ============================================ */

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

.prevention-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
}

.prevention-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--green);
}

/* Inline header with icon */
.prevention-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.prevention-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--green-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.prevention-icon svg {
    width: 20px;
    height: 20px;
}

.prevention-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.prevention-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Narrower cards on desktop */
@media (min-width: 1025px) {
    .prevention-grid {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .prevention-card {
        max-width: 420px;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.service-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--red-glow) 0%, var(--yellow-glow) 50%, var(--green-glow) 100%);
    opacity: 0.2;
    filter: blur(60px);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-cta .btn-primary {
    background: var(--green);
    border-color: var(--green);
}

.service-cta .btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.service-cta .btn-secondary {
    border-color: var(--gray-600);
    color: var(--gray-600);
}

.service-cta .btn-secondary:hover {
    border-color: var(--white);
    background: transparent;
}

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

@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .remediation-content {
        grid-template-columns: 1fr;
    }
    
    .safety-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 3rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .overview-image {
        order: -1;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .prevention-grid {
        grid-template-columns: 1fr;
    }
    
    .section-icon-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-number {
        order: -1;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}
