@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Slab:wght@500;600;700&display=swap");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    color: var(--text-color);
    background: var(--white-color);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1170px, calc(100% - 40px));
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-label {
    margin: 0 0 13px;
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* Page Banner */

.page-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=90");
    background-position: center;
    background-size: cover;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 19, 39, 0.94) 0%, rgba(5, 29, 57, 0.82) 43%, rgba(5, 29, 57, 0.45) 100%),
        linear-gradient(0deg, rgba(3, 19, 39, 0.25), rgba(3, 19, 39, 0.25));
}

.page-banner-content {
    position: relative;
    z-index: 1;
    max-width: 710px;
    padding: 85px 0;
}

.page-banner-content h1 {
    margin: 0;
    color: var(--white-color);
    font-family: "Roboto Slab", serif;
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1.15;
}

.page-banner-content h1 span {
    color: var(--secondary-color);
}

.page-banner-description {
    max-width: 600px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

/* Services Grid */

.services-page-section {
    background: var(--light-bg);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Service Page Card */

.sp-card {
    background: var(--white-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(8, 25, 48, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.sp-card:hover {
    box-shadow: 0 15px 35px rgba(8, 25, 48, 0.15);
    transform: translateY(-8px);
}

.sp-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.sp-card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.sp-card:hover .sp-card-image img {
    transform: scale(1.08);
}

.sp-card-number {
    position: absolute;
    bottom: -22px;
    right: 20px;
    z-index: 2;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: var(--secondary-color);
    border: 3px solid var(--white-color);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.sp-card-body {
    padding: 30px 24px 26px;
}

.sp-card-body h3 {
    margin: 0 0 12px;
    color: var(--primary-color);
    font-family: "Roboto Slab", serif;
    font-size: 18px;
    line-height: 1.35;
}

.sp-card-body p {
    margin: 0 0 18px;
    color: #667685;
    font-size: 13px;
    line-height: 1.8;
}

.sp-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.sp-card-link span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.sp-card-link:hover {
    color: var(--primary-color);
}

.sp-card-link:hover span {
    transform: translateX(5px);
}

/* CTA (same as home) */

.cta-section {
    padding: 55px 0;
    background:
        linear-gradient(90deg, rgba(3, 19, 39, 0.94), rgba(3, 19, 39, 0.78)),
        url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=85") center / cover;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-content p {
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin: 0;
    color: var(--white-color);
    font-family: "Roboto Slab", serif;
    font-size: clamp(27px, 3vw, 38px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover span {
    transform: translateX(4px);
}

.btn-primary {
    color: var(--white-color);
    background: var(--secondary-color);
}

.btn-primary:hover {
    color: var(--white-color);
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(245, 130, 32, 0.26);
}

/* Scroll Animation */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(28px);
}

.reveal-left {
    transform: translateX(-35px);
}

.reveal-right {
    transform: translateX(35px);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */

@media (max-width: 1100px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 75px 0;
    }

    .page-banner {
        min-height: 320px;
    }

    .page-banner-content {
        padding: 65px 0;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, 1170px);
    }

    .section-padding {
        padding: 62px 0;
    }

    .page-banner {
        min-height: 290px;
        background-position: 60% center;
    }

    .page-banner-content {
        padding: 55px 0 65px;
    }

    .page-banner-content h1 {
        font-size: 38px;
    }

    .page-banner-description {
        font-size: 14px;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .services-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .sp-card-image {
        height: 195px;
    }

    .btn {
        width: 100%;
    }
}
