/* =========================
   SERVICES SECTION
========================= */

.services-section {
    padding: 80px 20px;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: auto;
}


/* HEADER */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sub-title {
    color: #ff7b00;
    font-weight: 600;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 32px;
    margin: 10px 0;
}

.section-header p {
    color: #555;
    max-width: 600px;
    margin: auto;
}

.text-orange {
    color: #ff7b00;
}


/* GRID */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}


/* CARD */

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
}


/* IMAGE */

.service-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔑 THIS FIXES HEAD CUTTING */
    object-position: top center;
    transition: transform 0.5s ease;
}


/* OPTIONAL: nice zoom effect without cutting important parts */

.service-card:hover .service-img img {
    transform: scale(1.05);
}


/* CONTENT */

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 10px;
}

.service-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}


/* BUTTON */

.service-btn {
    text-decoration: none;
    color: #ff7b00;
    font-weight: 600;
    transition: 0.3s;
}

.service-btn:hover {
    color: #1a3c34;
}


/* =========================
   MOBILE RESPONSIVE
========================= */


/* =========================
   TABLET (≤1024px)
========================= */

@media (max-width: 1024px) {
    .services-section {
        padding: 60px 20px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .section-header p {
        font-size: 15px;
    }
    .service-img {
        height: 200px;
    }
}


/* =========================
   MOBILE (≤768px)
========================= */

@media (max-width: 768px) {
    .services-section {
        padding: 50px 15px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .sub-title {
        font-size: 13px;
    }
    .section-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    .section-header p {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 5px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-card {
        border-radius: 14px;
    }
    .service-img {
        height: 200px;
    }
    .service-content {
        padding: 18px;
    }
    .service-content h3 {
        font-size: 18px;
    }
    .service-content p {
        font-size: 14px;
    }
    .service-btn {
        font-size: 14px;
    }
}


/* =========================
   SMALL MOBILE (≤480px)
========================= */

@media (max-width: 480px) {
    .services-section {
        padding: 40px 12px;
    }
    .section-header h2 {
        font-size: 22px;
    }
    .section-header p {
        font-size: 13px;
    }
    .service-img {
        height: 180px;
    }
    .service-content {
        padding: 16px;
    }
    .service-content h3 {
        font-size: 17px;
    }
    .service-content p {
        font-size: 13px;
    }
}