/* ============================================================
   Service Page Styles  —  shared across:
     /accredited-mold-spore-count-analysis/
     /dfw-outdoor-flashback-report/
   Uses sp- prefix. Design tokens match fast-mold-lab page.
   ============================================================ */

/* ============================================================
   Hero Section
   ============================================================ */
#spHeroSection {
    background: #ffffff;
    padding: 70px 0;
}

#spHeroSection .sp-hero-wrapper h1 {
    font-size: 32px;
    font-weight: 700;
    color: #079393;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

#spHeroSection .sp-tagline {
    font-size: 20px;
    font-weight: 600;
    color: #444444;
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#spHeroSection .sp-hero-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 10px auto;
}

#spHeroSection .sp-hero-intro p {
    font-size: 17px;
    color: #636363;
    line-height: 1.7;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
}

#spHeroSection .sp-hero-intro a {
    color: #337ab7;
    text-decoration: underline;
}

/* ============================================================
   CTA Buttons  (reuses .blueBtn from global style.css)
   ============================================================ */
.sp-hero-wrapper .cta-buttons,
.sp-section-wrapper .cta-buttons,
.sp-cta-wrapper .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.sp-hero-wrapper .cta-buttons .blueBtn,
.sp-section-wrapper .cta-buttons .blueBtn,
.sp-cta-wrapper .cta-buttons .blueBtn {
    margin: 0;
}

/* ============================================================
   Stats Strip Section
   ============================================================ */
#spStatsSection {
    padding: 0;
}

.sp-stats-strip {
    background: #079393;
    padding: 30px 0;
}

.sp-stat-item {
    text-align: center;
    padding: 15px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.sp-stat-item:last-child {
    border-right: none;
}

.sp-stat-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.sp-stat-icon-fa {
    display: block;
    font-size: 36px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.sp-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* ============================================================
   Shared Section Wrapper
   ============================================================ */
.spFeaturesSection,
.spContentSection,
.spTextBlockSection,
.spStepsSection,
.spFaqSection,
.spFinalCtaSection {
    padding: 50px 0 40px 0;
    background: #ffffff;
}

.spFeaturesSection.sp-section--alt,
.spContentSection.sp-section--alt,
.spTextBlockSection.sp-section--alt,
.spStepsSection.sp-section--alt,
.spFaqSection.sp-section--alt,
.spFinalCtaSection.sp-section--alt {
    background: #f8f8f8;
}

.sp-section-wrapper {
    margin-bottom: 40px;
}

.sp-no-margin-bottom {
    margin-bottom: 10px;
}

/* ============================================================
   Section Headers
   ============================================================ */
.sp-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #079393;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.sp-section-header h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 3px;
    background: #079393;
    margin: 12px 0 0 0;
}

.sp-section-header.text-center h2 {
    text-align: center;
}

.sp-section-header.text-center h2::after {
    margin: 12px auto 0 auto;
}

/* ============================================================
   Section Intro / Outro Text
   ============================================================ */
.sp-section-intro,
.sp-section-outro {
    margin-bottom: 20px;
}

.sp-section-intro p,
.sp-section-outro p {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
}

.sp-section-intro a,
.sp-section-outro a {
    color: #337ab7;
    text-decoration: underline;
}

.sp-section-intro strong,
.sp-section-outro strong {
    color: #444444;
}

.sp-steps-intro {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

/* ============================================================
   Feature Cards Grid
   ============================================================ */
.sp-features-intro-text {
    font-size: 17px !important;
    color: #636363;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto !important;
    letter-spacing: 0.5px;
}

.sp-features-grid {
    padding: 0 15px 20px 15px;
    display: flex;
    flex-wrap: wrap;
}

.sp-features-grid [class*="col-"] {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.sp-feature-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #079393;
    padding: 28px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-feature-card p {
    flex: 1;
}

.sp-feature-card:hover {
    box-shadow: 0 8px 24px rgba(7, 147, 147, 0.13);
    transform: translateY(-4px);
}

.sp-feature-icon {
    width: 52px;
    height: 52px;
    background: #079393;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.sp-feature-icon i {
    color: #ffffff;
    font-size: 20px;
}

.sp-feature-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.sp-feature-card p,
.sp-feature-card .sp-card-body p {
    font-size: 15px;
    color: #636363;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.3px;
}

.sp-feature-card .sp-card-body {
    flex: 1;
}

.sp-step-card .sp-step-body p {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ============================================================
   Checklist Grid
   ============================================================ */
.sp-checklist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 12px 0 28px 0;
    padding: 22px 24px;
    background: #f4fafa;
    border-left: 4px solid #079393;
    border-radius: 0 4px 4px 0;
}

.sp-check-item {
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding: 6px 12px 6px 0;
    font-size: 16px;
    color: #444444;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.sp-check-item i {
    color: #079393;
    margin-right: 9px;
    font-size: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.sp-check-item span {
    flex: 1;
}

/* ============================================================
   Steps  —  Horizontal Card Layout
   ============================================================ */
.sp-steps-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 10px 0 35px 0;
}

.sp-step-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-top: 3px solid #079393;
    padding: 30px 24px 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-step-card:hover {
    box-shadow: 0 8px 24px rgba(7, 147, 147, 0.12);
    transform: translateY(-3px);
}

.sp-step-number {
    font-size: 42px;
    font-weight: 800;
    color: rgba(7, 147, 147, 0.12);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 18px;
    letter-spacing: -2px;
    user-select: none;
}

.sp-step-icon {
    width: 54px;
    height: 54px;
    background: #079393;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.sp-step-icon i {
    color: #ffffff;
    font-size: 22px;
}

.sp-step-card h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333333 !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1.45 !important;
}

.sp-step-card p {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.3px;
    flex: 1;
}

.sp-step-card a {
    color: #337ab7 !important;
    text-decoration: underline !important;
}

.sp-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #079393;
    font-size: 20px;
    flex-shrink: 0;
    align-self: center;
    margin-bottom: 10px;
}

/* 4-step layout: slightly more compact padding */
.sp-steps-row--count-4 .sp-step-card {
    padding: 24px 18px 22px 18px;
}

.sp-steps-row--count-4 .sp-step-number {
    font-size: 34px;
    top: 12px;
    right: 12px;
}

/* ============================================================
   FAQ Accordion  —  exact design from style.css / reference template
   ============================================================ */

.spFaqSection .faq-accordion-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.spFaqSection .sp-faq-bottom-content {
    margin-top: 24px;
    font-size: 16px;
    color: #444444;
    line-height: 1.7;
}

/* FAQ Item */
.spFaqSection .faq-item {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.spFaqSection .faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.spFaqSection .faq-item.active {
    background: #fff;
    border-color: #079393;
    box-shadow: 0 4px 20px rgba(7, 147, 147, 0.15);
}

/* FAQ Question */
.spFaqSection .faq-question {
    padding: 25px 30px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.spFaqSection .faq-question:hover {
    background: rgba(7, 147, 147, 0.05);
}

.spFaqSection .faq-item.active .faq-question {
    background: rgba(7, 147, 147, 0.08);
}

.spFaqSection .faq-question h3 {
    font-size: 18px !important;
    color: #444 !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding-right: 50px !important;
    letter-spacing: 0.5px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

.spFaqSection .faq-item.active .faq-question h3 {
    color: #079393 !important;
}

/* FAQ Toggle Icon */
.spFaqSection .faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: #079393;
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 35px;
    text-align: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.spFaqSection .faq-item.active .faq-toggle {
    background: #513924;
}

/* FAQ Answer */
.spFaqSection .faq-answer {
    display: none;
    padding: 0 30px 30px 30px;
    border-top: 1px solid #e8e8e8;
}

.spFaqSection .faq-answer p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    letter-spacing: 0.5px;
    margin: 20px 0 0 0;
}

.spFaqSection .faq-answer ul {
    margin: 15px 0 0 20px;
    padding: 0;
}

.spFaqSection .faq-answer ul li {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.spFaqSection .faq-answer strong {
    color: #444;
    font-weight: 600;
}

.spFaqSection .faq-answer a {
    color: #337ab7;
    text-decoration: underline;
}

/* ============================================================
   Text Block Section
   ============================================================ */
.sp-text-block-content {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    letter-spacing: 0.3px;
}

.sp-text-block-content p {
    margin: 0 0 16px 0;
}

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

.sp-text-block-content a {
    color: #337ab7;
    text-decoration: underline;
}

.sp-text-block-content ul,
.sp-text-block-content ol {
    padding-left: 24px;
    margin: 0 0 16px 0;
}

.sp-text-block-content li {
    font-size: 16px;
    color: #636363;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ============================================================
   Final CTA Section  (class-based, section-map controlled)
   ============================================================ */
.spFinalCtaSection {
    padding: 50px 0 40px 0;
}

.sp-cta-wrapper {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.spFinalCtaSection .sp-section-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #079393;
    margin: 0 0 20px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sp-final-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.sp-final-content p {
    font-size: 17px;
    color: #636363;
    line-height: 1.7;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
}

.sp-final-content a {
    color: #337ab7;
    text-decoration: underline;
}

/* Popup modals use .custom-dialog class — styles defined globally */

/* Modal Dialog Width */
.custom-dialog .modal-dialog {
  max-width: 700px;
}

/* Modal Box Styling */
.custom-dialog .modal-content {
  border-radius: 10px !important;
  border: none;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
  /* Ensures radius applies perfectly */

  /* Modern soft shadow */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
.custom-dialog .modal-header {
  background: #f8f9fc;
  padding: 15px 20px;
  border-bottom: 1px solid #e6e6e6;
}

.custom-dialog .modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* Close Button */
.custom-dialog .close {
  opacity: 0.6;
  transition: 0.2s ease-in-out;
}

.custom-dialog .close:hover {
  opacity: 1;
}

/* Modal Body with Scroll */
.custom-dialog .modal-body {
  padding: 25px 20px;
  max-height: 400px;
  /* Set scrolling height */
  overflow-y: auto;
  /* Enable vertical scroll */
  scrollbar-width: thin;
  /* Firefox */
}

/* Modern Scrollbar (Chrome, Edge, Safari) */
.custom-dialog .modal-body::-webkit-scrollbar {
  width: 6px;
}

.custom-dialog .modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.custom-dialog .modal-body::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 10px;
}

.custom-dialog .modal-body::-webkit-scrollbar-thumb:hover {
  background: #9b9b9b;
}

/* Smooth Fade Transition */
.custom-dialog.fade .modal-dialog {
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

/* ============================================================
   Inline links across all service sections
   ============================================================ */
#spHeroSection a:not(.blueBtn),
.spFeaturesSection a:not(.blueBtn),
.spContentSection a:not(.blueBtn),
.spTextBlockSection a:not(.blueBtn),
.spStepsSection a:not(.blueBtn),
.spFaqSection a:not(.blueBtn),
.spFinalCtaSection a:not(.blueBtn) {
    color: #337ab7;
    text-decoration: underline;
}

#spHeroSection a:not(.blueBtn):hover,
.spFeaturesSection a:not(.blueBtn):hover,
.spContentSection a:not(.blueBtn):hover,
.spTextBlockSection a:not(.blueBtn):hover,
.spStepsSection a:not(.blueBtn):hover,
.spFaqSection a:not(.blueBtn):hover,
.spFinalCtaSection a:not(.blueBtn):hover {
    color: #23527c;
}

.sp-cta-wrapper .modal-header {
    background: #f8f9fc;
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
}
.sp-cta-wrapper .modal-header .close {
    opacity: 0.6;
    transition: 0.2s ease-in-out;
}

.sp-cta-wrapper .modal-header .close:hover {
    opacity: 1;
}

/* ============================================================
   Tablet  (769px – 1024px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Keep feature card rows equal height on tablet */
    .sp-features-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .sp-features-grid [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    /* Steps: stack vertically on tablet (3+ cards too tight) */
    .sp-steps-row {
        flex-direction: column;
    }

    .sp-step-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
        align-self: center;
        font-size: 18px;
        margin-bottom: 0;
    }

    .sp-step-card {
        width: 100%;
    }
}

/* ============================================================
   Mobile  (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Hero */
    #spHeroSection {
        padding: 50px 0;
    }

    #spHeroSection .sp-hero-wrapper h1 {
        font-size: 22px;
    }

    #spHeroSection .sp-tagline {
        font-size: 16px;
    }

    #spHeroSection .sp-hero-intro p {
        font-size: 15px;
    }

    /* Stats strip */
    .sp-stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px 10px;
    }

    .sp-stat-number {
        font-size: 32px;
    }

    .sp-stat-icon-fa {
        font-size: 28px;
    }

    /* Section padding */
    .spFeaturesSection,
    .spContentSection,
    .spTextBlockSection,
    .spStepsSection,
    .spFaqSection,
    .spFinalCtaSection {
        padding: 45px 0 30px 0;
    }

    #spFinalCtaSection {
        padding: 50px 0;
    }

    /* Section headers */
    .sp-section-header h2 {
        font-size: 20px;
    }

    #spFinalCtaSection .sp-hero-wrapper h2 {
        font-size: 22px;
    }

    /* Feature cards: full-width, no flex layout needed */
    .sp-features-grid {
        display: block;
    }

    .sp-features-grid [class*="col-"] {
        display: block;
        margin-bottom: 20px;
    }

    .sp-feature-card {
        display: flex;
        flex-direction: column;
    }

    .sp-features-intro-text {
        font-size: 15px !important;
    }

    /* Checklist: single column */
    .sp-check-item {
        width: 100%;
        padding-right: 0;
    }

    .sp-checklist-grid {
        padding: 16px 18px;
    }

    /* Steps: stack vertically */
    .sp-steps-row {
        flex-direction: column;
    }

    .sp-step-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
        align-self: center;
        font-size: 18px;
        margin-bottom: 0;
    }

    .sp-step-card {
        width: 100%;
    }

    .sp-step-number {
        font-size: 32px;
    }

    /* FAQ */
    .sp-faq-question h3 {
        font-size: 15px !important;
    }

    /* CTA buttons stack */
    .sp-hero-wrapper .cta-buttons,
    .sp-section-wrapper .cta-buttons,
    .sp-cta-wrapper .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sp-hero-wrapper .cta-buttons .blueBtn,
    .sp-section-wrapper .cta-buttons .blueBtn,
    .sp-cta-wrapper .cta-buttons .blueBtn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}
