/* ==========================================================================
   PAWAN INDUSTRIES — SERVICES PAGE STYLES ONLY
   --------------------------------------------------------------------------
   Loaded AFTER css/style.css on services.html.
   Every rule is scoped under .pi-services-page to guarantee zero conflicts
   with the global website stylesheet.

   Brand:  Red #E31B23 · Charcoal #252525 · Grey #5F6368
           Gold #D5A928 · Light #F4F4F4 · White #FFFFFF
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. SERVICES HERO
-------------------------------------------------------------------------- */
.pi-services-page .pi-service-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    padding: 170px 0 96px;
    background: linear-gradient(
            100deg,
            rgba(16, 16, 16, 0.94) 0%,
            rgba(24, 24, 24, 0.459) 52%,
            rgba(24, 24, 24, 0.185) 100%
        ),
        url("/images/hero-banner.png") center / cover
            no-repeat;
    border-bottom: 4px solid #e31b23;
    color: #ffffff;
    overflow: hidden;
}
/* technical hairline grid over the banner */
.pi-services-page .pi-service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.5;
    pointer-events: none;
}
.pi-service-hero-inner {
    position: relative;
    z-index: 2;
}
.pi-service-hero-label {
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #d5a928;
    margin-bottom: 20px;
}
.pi-service-hero-label::before {
    content: "";
    width: 42px;
    height: 3px;
    background: #e31b23;
    margin-right: 16px;
}
.pi-service-hero-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    max-width: 840px;
    margin-bottom: 20px;
    padding-left: 24px;
    border-left: 5px solid #e31b23;
}
.pi-service-hero-text {
    font-size: 16.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin-bottom: 34px;
    padding-left: 29px;
}
.pi-service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-left: 29px;
    margin-bottom: 26px;
}
.pi-service-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 29px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.pi-service-breadcrumb a {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.25s;
}
.pi-service-breadcrumb a:hover {
    color: #e31b23;
}
.pi-service-breadcrumb svg {
    width: 13px;
    height: 13px;
    color: #d5a928;
}
.pi-service-breadcrumb .current {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. SECTION SCAFFOLD + SCROLL REVEAL
-------------------------------------------------------------------------- */
.pi-services-page .pi-s-section {
    padding: 100px 0;
    position: relative;
}
.pi-services-page .pi-s-section-light {
    background: #f4f4f4;
}
.pi-services-page .pi-s-section-white {
    background: #ffffff;
}
.pi-services-page .pi-s-section-dark {
    background: #252525;
}

/* subtle blueprint grid texture (does not touch global classes) */
.pi-services-page .pi-grid-light {
    background-image: linear-gradient(rgba(37, 37, 37, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 37, 37, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
}
.pi-services-page .pi-grid-dark {
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
}

/* scoped reveal animation */
.pi-services-page .pi-s-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--pi-delay, 0s);
    will-change: opacity, transform;
}
.pi-services-page .pi-s-reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* shared heading kit (scoped variants) */
.pi-services-page .pi-s-label {
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e31b23;
    margin-bottom: 14px;
}
.pi-services-page .pi-s-label::before {
    content: "";
    width: 34px;
    height: 3px;
    background: #e31b23;
    margin-right: 14px;
}
.pi-services-page .pi-s-label-gold {
    color: #d5a928;
}
.pi-services-page .pi-s-label-gold::before {
    background: #d5a928;
}
.pi-services-page .pi-s-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    color: #252525;
    margin-bottom: 0;
}
.pi-services-page .pi-s-title-light {
    color: #ffffff;
}
.pi-services-page .pi-s-text {
    color: #5f6368;
    font-size: 15.5px;
    max-width: 620px;
    margin-top: 12px;
    margin-bottom: 0;
}
.pi-services-page .pi-s-text-light {
    color: #b9bdc2;
}

/* --------------------------------------------------------------------------
   3. QUALITY SERVICE CARDS
-------------------------------------------------------------------------- */
.pi-services-page .pi-qcard {
    position: relative;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    padding: 40px 28px 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.pi-services-page .pi-qcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #e31b23;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pi-services-page .pi-qcard:hover {
    transform: translateY(-6px);
    border-color: #d3d3d3;
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.1);
}
.pi-services-page .pi-qcard:hover::before {
    transform: scaleX(1);
}
.pi-services-page .pi-qcard-number {
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 58px;
    line-height: 1;
    color: rgba(37, 37, 37, 0.397);
    pointer-events: none;
    transition: color 0.35s ease;
}
.pi-services-page .pi-qcard:hover .pi-qcard-number {
    color: rgba(227, 27, 34, 0.911);
}
.pi-services-page .pi-qcard-icon {
    width: 58px;
    height: 58px;
    background: rgba(227, 27, 35, 0.07);
    border: 1px solid rgba(227, 27, 35, 0.18);
    color: #e31b23;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.35s ease, color 0.35s ease;
}
.pi-services-page .pi-qcard-icon svg {
    width: 27px;
    height: 27px;
}
.pi-services-page .pi-qcard:hover .pi-qcard-icon {
    background: #e31b23;
    color: #ffffff;
    transform: scale(1.06);
}
.pi-services-page .pi-qcard-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #252525;
    margin-bottom: 12px;
}
.pi-services-page .pi-qcard-text {
    font-size: 14px;
    line-height: 1.75;
    color: #5f6368;
    flex: 1;
    margin-bottom: 20px;
}
.pi-services-page .pi-qcard-arrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #e31b23;
}
.pi-services-page .pi-qcard-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pi-services-page .pi-qcard:hover .pi-qcard-arrow svg {
    transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   4. OUR MACHINERY — SWIPER SLIDER
-------------------------------------------------------------------------- */
.pi-services-page .pi-machinery-swiper {
    padding: 6px 2px 4px;
}

.pi-services-page .pi-machine-card {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.pi-services-page .pi-machine-card:hover {
    transform: translateY(-6px);
    border-color: #d3d3d3;
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.1);
}
.pi-services-page .pi-machine-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ededed;
}
.pi-services-page .pi-machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pi-services-page .pi-machine-card:hover .pi-machine-image img {
    transform: scale(1.07);
}
.pi-services-page .pi-machine-number {
    position: absolute;
    top: 0;
    left: 0;
    background: #e31b23;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 7px 13px;
    z-index: 2;
}
.pi-services-page .pi-machine-content {
    position: relative;
    padding: 26px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pi-services-page .pi-machine-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 44px;
    height: 3px;
    background: #d5a928;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s ease;
}
.pi-services-page .pi-machine-card:hover .pi-machine-content::before {
    transform: scaleX(1.9);
    background: #e31b23;
}
.pi-services-page .pi-machine-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #252525;
    margin: 12px 0 8px;
}
.pi-services-page .pi-machine-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #9a7b0f;
    margin: 0;
}
.pi-services-page .pi-machine-spec svg {
    width: 14px;
    height: 14px;
    color: #d5a928;
}
.pi-services-page .pi-machine-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 34px;
    height: 34px;
    border: 1px solid #e4e4e4;
    color: #e31b23;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pi-services-page .pi-machine-arrow svg {
    width: 15px;
    height: 15px;
}
.pi-services-page .pi-machine-card:hover .pi-machine-arrow {
    background: #e31b23;
    border-color: #e31b23;
    color: #ffffff;
}

/* swiper controls — re-skinned and scoped */
.pi-services-page .pi-mach-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
}
.pi-services-page .pi-mach-nav {
    display: flex;
    gap: 10px;
}
.pi-services-page .pi-mach-btn.swiper-button-prev,
.pi-services-page .pi-mach-btn.swiper-button-next {
    position: static;
    width: 46px;
    height: 46px;
    margin: 0;
    background: transparent;
    border: 1px solid #252525;
    color: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* hide Swiper's own injected arrow glyphs */
.pi-services-page .pi-mach-btn.swiper-button-prev::after,
.pi-services-page .pi-mach-btn.swiper-button-next::after {
    display: none;
}
.pi-services-page .pi-mach-btn:hover {
    background: #e31b23;
    border-color: #e31b23;
    color: #ffffff;
}
.pi-services-page .pi-mach-btn svg {
    width: 18px;
    height: 18px;
}

.pi-services-page .pi-mach-pagination {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
}
.pi-services-page .pi-mach-pagination .swiper-pagination-bullet {
    width: 26px;
    height: 3px;
    border-radius: 0;
    background: #d5d5d5;
    opacity: 1;
    margin: 0;
    transition: background 0.3s, width 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pi-services-page .pi-mach-pagination .swiper-pagination-bullet-active {
    background: #e31b23;
    width: 44px;
}

/* --------------------------------------------------------------------------
   5. MACHINE'S DETAIL — 18 ROW DATA TABLE
-------------------------------------------------------------------------- */
.pi-services-page .pi-machine-table-wrapper {
    border: 1px solid #e0e0e0;
    border-top: 4px solid #e31b23;
    border-radius: 5px;
    background: #ffffff;
    overflow: hidden;
}
.pi-services-page .pi-machine-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    /* fade hint while more columns are reachable (JS toggles this class) */
    -webkit-mask-image: none;
    mask-image: none;
}
.pi-services-page .pi-machine-table-scroll.pi-scrollable-end {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 46px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 46px), transparent 100%);
}
.pi-services-page .pi-machine-table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border-collapse: collapse;
    font-size: 13px;
}
.pi-services-page .pi-machine-table-header {
    background: #252525;
}
.pi-services-page .pi-machine-table-header th {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 15px 14px;
    white-space: nowrap;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.pi-services-page .pi-machine-table-header th:first-child {
    border-left: 0;
    color: #d5a928;
}
.pi-services-page .pi-machine-table-row td {
    padding: 12px 14px;
    white-space: nowrap;
    color: #3a3d40;
    border-bottom: 1px solid #efefef;
    border-right: 1px solid #f4f4f4;
    font-family: "Inter", sans-serif;
    font-weight: 500;
}
.pi-services-page .pi-machine-table-row:nth-child(even) {
    background: #f9f9f9;
}
.pi-services-page .pi-machine-table-row {
    transition: background 0.25s ease;
}
.pi-services-page .pi-machine-table-row:hover {
    background: rgba(227, 27, 35, 0.045);
}
.pi-services-page .pi-machine-table-row td:first-child {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #e31b23;
}
.pi-services-page .pi-machine-table-row td:nth-child(2) {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #252525;
    letter-spacing: 0.4px;
}
.pi-services-page .pi-machine-table-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #1e1e1e;
    color: #9aa0a6;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 16px;
}
.pi-services-page .pi-machine-table-note strong {
    color: #ffffff;
    letter-spacing: 1.5px;
}

/* --------------------------------------------------------------------------
   6. INSPECTION FACILITY CARDS
-------------------------------------------------------------------------- */
.pi-services-page .pi-inspection-card {
    background: #ffffff;
    border: 1px solid #e4e4e4;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.pi-services-page .pi-inspection-card:hover {
    transform: translateY(-6px);
    border-color: #e31b23;
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.1);
}
.pi-services-page .pi-inspection-image {
    background: linear-gradient(rgba(37, 37, 37, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 37, 37, 0.035) 1px, transparent 1px), #fafafa;
    background-size: 34px 34px;
    aspect-ratio: 4 / 3.4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
}
.pi-services-page .pi-inspection-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pi-services-page .pi-inspection-card:hover .pi-inspection-image img {
    transform: scale(1.05);
}
.pi-services-page .pi-inspection-content {
    padding: 20px 22px 22px;
    border-top: 2px solid #f0f0f0;
    position: relative;
    flex: 1;
    transition: border-color 0.3s ease;
}
.pi-services-page .pi-inspection-card:hover .pi-inspection-content {
    border-top-color: #e31b23;
}
.pi-services-page .pi-inspection-accent {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9aa0a6;
}
.pi-services-page .pi-inspection-accent svg {
    width: 13px;
    height: 13px;
    color: #d5a928;
}
.pi-services-page .pi-inspection-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.6px;
    color: #252525;
    margin: 9px 0 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. SERVICES CTA
-------------------------------------------------------------------------- */
.pi-services-page .pi-service-cta {
    position: relative;
    background: #1e1e1e;
    padding: 108px 0;
    overflow: hidden;
}
.pi-services-page .pi-service-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
}
/* geometric brand bars */
.pi-services-page .pi-service-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e31b23 0 55%, #d5a928 55% 100%);
}
.pi-services-page .pi-service-cta-title {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.18;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0;
}
.pi-services-page .pi-service-cta-text {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
    margin: 14px auto 0;
}

/* --------------------------------------------------------------------------
   8. SERVICES RESPONSIVE
-------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .pi-services-page .pi-service-hero {
        min-height: 460px;
        padding: 140px 0 80px;
    }
    .pi-services-page .pi-s-section {
        padding: 84px 0;
    }
}

@media (max-width: 767.98px) {
    .pi-services-page .pi-service-hero {
        min-height: 0;
        padding: 120px 0 64px;
    }
    .pi-services-page .pi-service-hero-title {
        border-left-width: 4px;
        padding-left: 18px;
    }
    .pi-services-page .pi-service-hero-text,
    .pi-services-page .pi-service-breadcrumb {
        padding-left: 22px;
    }
    .pi-services-page .pi-service-hero-actions {
        padding-left: 22px;
    }
    .pi-services-page .pi-service-hero-actions .btn {
        flex: 1 1 100%;
        justify-content: center;
    }
    .pi-services-page .pi-s-section {
        padding: 68px 0;
    }
    .pi-services-page .pi-service-cta {
        padding: 80px 0;
    }
    .pi-services-page .pi-machine-table {
        font-size: 12.5px;
    }
    .pi-services-page .pi-machine-table-header th,
    .pi-services-page .pi-machine-table-row td {
        padding: 11px 12px;
    }
    .pi-services-page .pi-mach-btn.swiper-button-prev,
    .pi-services-page .pi-mach-btn.swiper-button-next {
        width: 42px;
        height: 42px;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pi-services-page .pi-s-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .pi-services-page * {
        transition-duration: 0.01ms !important;
    }
}
