﻿
body {
    font-family: 'Poppins', sans-serif !important;
}

.page-hero {
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-position: center;
    background-size: cover;
}
/*    .page-hero h1 {
        font-size: clamp(38px, 4vw, 56px);
        font-weight: 800;
        margin-top: -60px;
        line-height: 1.15;
        letter-spacing: -0.5px;
        text-shadow: 0 8px 25px rgba(0,0,0,.35);
    }*/

    .page-hero h1 {
        font-size: clamp(28px, 5vw, 56px);
        font-weight: 800;
        line-height: 1.2;
        margin: 0;
    }

.section + .section {
    padding-top: 5px;
}

.hero-text {
    max-width: 900px;
}

    .hero-text h1 {
        margin-bottom: 20px;
    }

    .hero-text p {
        margin: 0 auto 25px auto;
    }

.section .container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 576px) {
    .contact-btn {
        width: 100%;
        max-width: 280px;
    }
}
.contact-btn {
    display: inline-block;
    background: #D32F2F;
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    margin-top: 0px;
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

    .contact-btn:hover {
        color: black;
    }

p {
    text-align: center;
    line-height: 1.6;
    font-size: clamp(15px, 2vw, 20px);
    padding: 0 10px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto 20px auto;
}

.premium-service-card {
    position: relative;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    text-align: center;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
}

    .premium-service-card:hover {
        border-color: #000;
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }

.service-img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: block;
}

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.4s ease;
    }

.service-overlay {
    position: absolute;
    inset: 0;
    background: #5b5b5b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(15px, 2vw, 25px);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    overflow-y: auto;
}

.premium-service-card:hover .service-overlay {
    opacity: 1;
    transform: translateY(0);
}

.premium-service-card:hover img {
    transform: scale(1.1);
}

.service-overlay p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
    margin: 0;
}

.premium-service-card h3 {
    padding: 20px;
    padding-top: 5px;
    font-size: 18px;
    font-weight: 600;
}

.premium-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.premium-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-heading h2 {
    font-size: 30px;
    margin-top: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.infra-intro h5 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 25px;
}

.lab-intro h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 10px;
}

.lab-purpose {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.min-heading {
    text-align: center;
    color: black;
    font-size: 25px;
}

.lab-purpose ul {
    font-size: 20px;
    list-style-position: inside;
    padding: 0;
    margin: 0 auto;
    text-align: left; 
    display: inline-block; 
}

.lab-purpose li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.lab-commitment p {
    font-size: 20px;
}

.value-card h4 {
    text-align: center;
}

.premium-values-footer {
    margin-top: 15px;
    margin-bottom: 15px;
}

.infra-table-wrapper,
.lab-table-wrapper {
    overflow-x: auto;
}

.infra-table {
    display: flex;
    gap: 30px;
}

    .infra-table table {
        min-width: 500px;
        width: 100%;
        border-collapse: collapse;
    }

    .infra-table th,
    .infra-table td,
    .lab-table-wrapper th,
    .lab-table-wrapper td {
        border: 1px solid #ddd;
        padding: 8px;
        font-size: 14px;
    }

@media (max-width: 1200px) {

    .premium-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .premium-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .premium-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .infra-table {
        flex-direction: column;
    }

    .service-img {
        height: 200px;
    }

    .service-heading h2 {
        font-size: 26px;
    }

    p {
        font-size: 18px;
        padding: 0 15px;
    }
}

@media (max-width: 576px) {

    .premium-services-grid {
        grid-template-columns: 1fr;
    }

    .premium-values-grid {
        grid-template-columns: 1fr;
    }

    .service-img {
        height: 180px;
    }

    .service-heading h2 {
        font-size: 22px;
    }

    .infra-intro h5 {
        font-size: 20px;
    }

    .min-heading {
        text-align: center;
        font-size: 20px;
    }

    p {
        font-size: 16px;
    }

    .premium-btn {
        display: inline-block;
        background: #D32F2F !important;
        color: #fff !important;
        padding: 16px 34px;
        border-radius: 40px;
        text-decoration: none;
        font-weight: 600;
        transition: .3s;
        border: none;
    }

        .premium-btn:hover {
            background: #D32F2F !important;
            color: #fff !important;
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(211,47,47,.35);
        }



    @keyframes heartbeat {
        0% {
            transform: scale(1);
        }

        14% {
            transform: scale(1.1);
        }

        28% {
            transform: scale(1);
        }

        42% {
            transform: scale(1.1);
        }

        70% {
            transform: scale(1);
        }
    }

    .page-hero {
        padding-top: 10vh !important;
        height: 55vh !important;
        padding: 60px 20px;
        text-align: center;
        background-position: center;
        background-size: cover;
    }

    .hero-text h1 {
        font-size: 24px;
    }
}

.infra-machinery-section {
    padding: 25px 0;
    background: #f4f4f4;
}

    .infra-machinery-section h2 {
        font-size: 28px;
        margin-bottom: 15px;
        color: var(--brand-red);
    }

.safety-btn {
    animation: heartbeat 1.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.1);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.1);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}


.services-cta {
    padding: 10px 0 !important;
}
@media (hover: hover) {
    .premium-service-card:hover .service-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .premium-service-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .service-overlay {
        position: static;
        opacity: 1;
        transform: none;
        background: #5b5b5b;
        padding: 15px;
        width: 100%;
        display: block;
        overflow: visible;
    }

        .service-overlay p {
            color: #fff;
            font-size: 14px;
            text-align: center;
        }
    .premium-service-card h3 {
        padding: 12px 15px;
        margin: 0;
        font-size: 16px;
    }
    .premium-service-card:hover .service-overlay {
        transform: none;
    }
    .service-img {
        height: auto;
        width: 100%;
        flex-shrink: 0;
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .premium-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .premium-services-grid {
        grid-template-columns: 1fr;
    }
    .service-overlay {
        padding: 12px;
    }

        .service-overlay p {
            font-size: 13px;
            line-height: 1.5;
        }
}