/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.05) 75%
    );
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 70px;
    color: #fff;
}

.page-hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 18px;
    max-width: 820px;
}

.page-hero-content p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .page-hero {
        min-height: 70vh;
    }

    .page-hero-content h1 {
        font-size: 32px;
    }

    .sd-related-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 576px) {
    .page-hero {
        min-height: 60vh;
    }

    .page-hero-content {
        padding: 0 20px 40px;
    }

    .page-hero-content h1 {
        font-size: 24px;
    }

    .page-hero-content p {
        font-size: 14px;
    }
}

/* ==========================================================================
   OUR TECHNICAL CAPABILITIES
   ========================================================================== */
.capabilities-section {
    position: relative;
    width: 100%;
    padding: 90px 24px;
    background-color: #ffffff;
    overflow: hidden;
}

.capabilities-bg-decor {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    color: rgba(180, 7, 7, 0.12);
    pointer-events: none;
    z-index: 0;
}

.capabilities-bg-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.capabilities-bg-decor-left {
    left: 0;
}

.capabilities-bg-decor-right {
    right: 0;
}

.capabilities-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== Split header ===== */
.capabilities-header {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 56px;
}

.capabilities-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b40707;
    border-bottom: 3px solid #b40707;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.capabilities-header-left h2 {
    font-size: 38px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0;
}

.capabilities-header-right p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ===== Grid of service cards ===== */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.capability-card {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.capability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.capability-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.capability-body {
    padding: 22px;
}

.capability-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.35;
}

.capability-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 18px;
}

.capability-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e02020;
    transition: gap 0.2s ease;
}

.capability-link:hover {
    gap: 14px;
}

.capability-link svg {
    width: 16px;
    height: 16px;
    color: #e02020;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .capabilities-bg-decor {
        display: none;
    }

    .capabilities-header {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
    }

    .capabilities-header-left h2 {
        font-size: 28px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 576px) {
    .capabilities-section {
        padding: 50px 20px;
    }

    .capabilities-header-left h2 {
        font-size: 24px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   NEED INSPECTION SUPPORT CTA SECTION
   ========================================================================== */
.services-cta-section {
    width: 100%;
    padding: 40px 24px;
    background-color: #ffffff;
}

.services-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.services-cta-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.services-cta-content h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.services-cta-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 20px;
    max-width: 560px;
}

.services-cta-btn {
    display: inline-block;
    background-color: #b40707;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 13px 28px;
    border-radius: 30px;
    transition: background-color 0.2s ease;
}

.services-cta-btn:hover {
    background-color: #8f0505;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .services-cta-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-cta-image img {
        height: 200px;
    }

    .services-cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .services-cta-section {
        padding: 30px 20px;
    }

    .services-cta-image img {
        height: 180px;
    }

    .services-cta-content h2 {
        font-size: 20px;
    }

    .services-cta-btn {
        width: 100%;
        text-align: center;
    }
}


/* ==========================================================================
   SERVICE DETAIL TEMPLATE
   ========================================================================== */

/* ===== Hero ===== */
.sd-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.35) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.sd-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 90px;
    color: #fff;
}

.sd-hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    border-bottom: 3px solid #fff;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

.sd-hero-content h1 {
    font-size: 38px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

/* ===== Shared section eyebrow ===== */
.sd-section-eyebrow {
    display: inline-block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b40707;
    margin-bottom: 14px;
}

/* ===== Shared scattered background decor ===== */
.sd-bg-decor {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    color: rgba(180, 7, 7, 0.40);
    pointer-events: none;
    z-index: 0;
}

.sd-bg-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sd-bg-decor-left {
    left: 0;
}

.sd-bg-decor-right {
    right: 0;
}

/* ===== Overview & Technical Process ===== */
.sd-overview-section {
    position: relative;
    width: 100%;
    padding: 70px 24px 40px;
    background-color: #ffffff;
    overflow: hidden;
}

.sd-overview-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.sd-overview-single {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    margin-bottom: 0;
}

.sd-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 40px;
}

.sd-overview-col h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.sd-overview-col p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.sd-scope-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-scope-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

.sd-scope-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: #b40707;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.sd-visual-box {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.sd-visual-box img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* ===== Technical Specifications Table ===== */
.sd-specs-section {
    width: 100%;
    padding: 70px 24px;
    background-color: #f7f7f7;
}

.sd-specs-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.sd-specs-inner h2 {
    font-size: 30px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 36px;
}

.sd-specs-table-wrap {
    overflow-x: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.sd-specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.sd-specs-table thead th {
    background-color: #b40707;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 16px 20px;
}

.sd-specs-table tbody td {
    font-size: 14px;
    color: #444;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
}

.sd-specs-table tbody tr:last-child td {
    border-bottom: none;
}

.sd-specs-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* ===== Gallery & Related Services ===== */
.sd-gallery-section {
    position: relative;
    width: 100%;
    padding: 70px 24px;
    background-color: #f7f7f7;
    overflow: hidden;
}

.sd-gallery-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.sd-gallery-col,
.sd-related-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sd-gallery-grid {
    flex: 1;
}

.sd-related-grid {
    flex: 1;
    align-content: start;
}

.sd-gallery-col h2,
.sd-related-col h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.sd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sd-gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

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

.sd-related-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.sd-related-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 14px;
}

.sd-related-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    padding-left:10px;
}

.sd-related-card p {
    font-size: 13px;
    line-height: 1.55;
    color: #666;
    margin: 0 0 12px;
}

.sd-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    padding-left:10px;
    padding-bottom:10px;
    transition: gap 0.2s ease, color 0.2s ease;
}

.sd-related-link:hover {
    gap: 12px;
    color: #b40707;
}

.sd-related-link svg {
    width: 14px;
    height: 14px;
    color: #e02020;
}

/* ===== Request Consultation — reworked to avoid merging with red footer ===== */
.sd-consult-section {
    width: 100%;
    padding: 70px 24px;
    background-color: #ffffff;
}

.sd-consult-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(155deg, #c40808 0%, #7a0505 100%);
    border-radius: 16px;
    padding: 48px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
    box-shadow: 0 20px 44px rgba(180, 7, 7, 0.22);
}

.sd-consult-left .sd-section-eyebrow {
    color: #ffd7d7;
}

.sd-consult-left h2 {
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px;
}

.sd-consult-left p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.sd-consult-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 28px;
}

.sd-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.sd-form-group {
    display: flex;
    flex-direction: column;
}

.sd-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.sd-form-group input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.sd-form-group input:focus {
    outline: none;
    border-color: #b40707;
}

.sd-consult-btn {
    width: 100%;
    background-color: #b40707;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sd-consult-btn:hover {
    background-color: #8f0505;
}

/* ==========================================================================
   RESPONSIVE — Service Detail Template
   ========================================================================== */
@media (max-width: 991px) {
    .sd-hero {
        min-height: 70vh;
    }
    .sd-hero-content h1 {
        font-size: 28px;
    }

    .sd-bg-decor {
        display: none;
    }

    .sd-overview-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sd-gallery-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sd-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sd-consult-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }
}

@media (max-width: 576px) {
    .sd-hero {
        min-height: 60vh;
    }

    .sd-hero-content {
        padding: 0 20px 50px;
    }

    .sd-hero-content h1 {
        font-size: 22px;
    }

    .sd-overview-section,
    .sd-specs-section,
    .sd-gallery-section,
    .sd-consult-section {
        padding: 44px 20px;
    }

    .sd-form-row {
        grid-template-columns: 1fr;
    }

    .sd-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sd-consult-inner {
        padding: 24px;
        border-radius: 12px;
    }
}

/* ==========================================================================
   OUR INSPECTION PROCESS SECTION
   ========================================================================== */
.sd-process-section {
    width: 100%;
    padding: 40px 24px 80px;
    background-color: #ffffff;
}

.sd-process-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.sd-process-inner h2 {
    font-size: 34px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 40px;
}

.sd-process-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

/* ===== Image (crossfades between steps) ===== */
.sd-process-image-wrap {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.sd-process-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f4f4f4;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.sd-process-image.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

/* ===== Tabs ===== */
.sd-process-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.sd-process-tab {
    background: #fff;
    border: 1px solid #ddd;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sd-process-tab:hover {
    border-color: #b40707;
    color: #b40707;
}

.sd-process-tab.active {
    background-color: #b40707;
    border-color: #b40707;
    color: #fff;
}

/* ===== Panels ===== */
.sd-process-panel {
    display: none;
}

.sd-process-panel.active {
    display: block;
    animation: sd-slide-in 0.4s ease;
}

@keyframes sd-slide-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.sd-process-panel h3 {
    font-size: 32px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.sd-process-panel p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .sd-process-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sd-process-image-wrap {
        height: 260px;
    }

    .sd-process-panel h3 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .sd-process-section {
        padding: 50px 20px;
    }

    .sd-process-inner h2 {
        font-size: 26px;
    }

    .sd-process-image-wrap {
        height: 200px;
    }

    .sd-process-tabs {
        gap: 8px;
    }

    .sd-process-tab {
        font-size: 12px;
        padding: 8px 14px;
    }

    .sd-process-panel h3 {
        font-size: 22px;
    }
}

.sd-scope-section {
    position: relative;
    width: 100%;
    padding: 70px 24px;
    overflow: hidden;
}

.sd-scope-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.sd-scope-inner h2 {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 32px;
    text-align: center;
}

.sd-scope-list-full {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-scope-list-full li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.sd-scope-list-full li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sd-scope-list-full li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    background-color: #b40707;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12c1.5 2 3 4 5 6 4-6 7-11 11-14'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12c1.5 2 3 4 5 6 4-6 7-11 11-14'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (max-width: 576px) {
    .sd-scope-section {
        padding: 50px 20px;
    }

    .sd-scope-inner h2 {
        font-size: 24px;
    }
}
