
/* =========================================
   R3S SERVICES PAGE
========================================= */

/* PAGE HERO */

.services-page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 100px 0 35px;
    background: #101010;
    color: #fff;
}

.services-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 80% 35%, rgba(221,3,17,.2), transparent 32%),
        linear-gradient(115deg, #090909, #1b1b1b);
}

.services-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .12;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, transparent, #000);
}

.services-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.services-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.services-hero-eyebrow span {
    width: 28px;
    height: 3px;
    background: #DD0311;
}

.services-hero-content h1 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(39px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 19px;
}

.services-hero-content h1 span {
    display: block;
    color: #DD0311;
}

.services-hero-content > p {
    max-width: 670px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.7);
    font-size: 14px;
    line-height: 1.9;
}

.services-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
}

.services-primary-btn,
.services-scroll-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: .3s ease;
}

.services-primary-btn {
    background: #DD0311;
    color: #fff;
    border: 1px solid #DD0311;
}

.services-primary-btn:hover {
    background: #b8000c;
    color: #fff;
    transform: translateY(-3px);
}

.services-scroll-btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}

.services-scroll-btn:hover {
    color: #111;
    background: #fff;
}

.services-hero-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 35px;
    margin-top: 65px;
    padding: 23px 0 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.services-hero-bottom span {
    color: rgba(255,255,255,.75);
    font-size: 11px;
    font-weight: 600;
}

.services-hero-bottom i {
    color: #ff5962;
    font-size: 15px;
    margin-right: 7px;
}

.services-hero-side-text {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    color: rgba(255,255,255,.035);
    font-size: 65px;
    font-weight: 900;
    letter-spacing: 10px;
    pointer-events: none;
}


/* SERVICES SECTION */

.r3s-services-section {
    position: relative;
    padding: 95px 0 85px;
    overflow: hidden;
    background: var(--bg-primary, #fff);
}

.r3s-container {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}


/* SECTION HEADING */

.r3s-section-heading {
    max-width: 750px;
    margin: 0 auto 48px;
    text-align: center;
}

.services-heading .sub-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #DD0311;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.services-heading-line {
    width: 27px;
    height: 2px;
    background: #DD0311;
}

.r3s-section-heading h2 {
    color: var(--text-primary, #171717);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(30px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.r3s-accent {
    color: #DD0311;
}

.r3s-section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-secondary, #777);
    font-size: 14px;
    line-height: 1.9;
}


/* SERVICES GRID */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    transition: .35s ease;
}

.service-card:hover {
    transform: translateY(-9px);
    border-color: rgba(221,3,17,.4);
    box-shadow: 0 20px 45px rgba(0,0,0,.1);
}


/* IMAGE */

.service-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #222;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.04) 20%,
        rgba(0,0,0,.65) 100%
    );
}

.service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 50%;
    background: rgba(15,15,15,.65);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.service-category {
    position: absolute;
    bottom: 17px;
    left: 18px;
    z-index: 2;
    padding: 7px 10px;
    border-left: 3px solid #DD0311;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.1px;
}


/* CARD CONTENT */

.service-content {
    position: relative;
    padding: 28px 22px 24px;
}

.service-icon {
    position: absolute;
    top: -29px;
    left: 21px;
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border: 5px solid var(--card-bg, #fff);
    border-radius: 10px;
    background: #DD0311;
    color: #fff;
    font-size: 23px;
    transition: .3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px) rotate(-5deg);
}

.service-content h3 {
    color: var(--text-primary, #222);
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 12px;
    min-height: 50px;
}

.service-content p {
    min-height: 96px;
    color: var(--text-secondary, #777);
    font-size: 12px;
    line-height: 1.85;
    margin-bottom: 20px;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #e8e8e8);
    color: #DD0311;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.service-link span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(221,3,17,.09);
    transition: .3s ease;
}

.service-link:hover span {
    background: #DD0311;
    color: #fff;
    transform: translateX(4px);
}


/* BOTTOM CTA */

.services-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 50px;
    padding: 24px 28px;
    border: 1px solid var(--border-color, #e8e8e8);
    border-left: 4px solid #DD0311;
    border-radius: 8px;
    background: var(--bg-secondary, #f7f7f7);
}

.services-cta-text > span {
    display: block;
    color: #DD0311;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.services-cta-text p {
    color: var(--text-primary, #222);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.services-bottom-cta .r3s-btn.r3s-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background: #DD0311;
    border: 1px solid #DD0311;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: .3s ease;
}

.services-bottom-cta .r3s-btn.r3s-btn-primary:hover {
    background: #b8000c;
    border-color: #b8000c;
    transform: translateY(-3px);
    color: #fff;
}


/* SERVICE APPROACH */

.services-approach-section {
    padding: 85px 0;
    background: var(--bg-secondary, #f7f7f7);
}

.services-approach-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.services-small-tag {
    display: inline-block;
    color: #DD0311;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 13px;
}

.services-approach-heading h2 {
    color: var(--text-primary, #222);
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 13px;
}

.services-approach-heading h2 span {
    color: #DD0311;
}

.services-approach-heading p {
    color: var(--text-secondary, #777);
    font-size: 13px;
    line-height: 1.9;
}

.approach-card {
    height: 100%;
    padding: 26px 20px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e8e8e8);
    border-radius: 9px;
    transition: .3s ease;
}

.approach-card:hover {
    transform: translateY(-6px);
    border-color: #DD0311;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

.approach-icon {
    width: 51px;
    height: 51px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(221,3,17,.09);
    color: #DD0311;
    font-size: 23px;
    margin-bottom: 19px;
}

.approach-card h3 {
    color: var(--text-primary, #222);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 9px;
}

.approach-card p {
    color: var(--text-secondary, #777);
    font-size: 11px;
    line-height: 1.8;
    margin: 0;
}


/* FINAL CTA */

.services-final-cta {
    padding: 70px 0;
    background: var(--bg-primary, #fff);
}

.services-final-cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px;
    border-radius: 12px;
    background: linear-gradient(115deg, #101010, #252525);
    color: #fff;
}

.services-final-cta-inner::after {
    content: "";
    position: absolute;
    top: -170px;
    right: 17%;
    width: 330px;
    height: 330px;
    border: 45px solid rgba(221,3,17,.18);
    border-radius: 50%;
    pointer-events: none;
}

.services-final-cta-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.services-final-cta-content > span {
    display: block;
    color: #ff5962;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
}

.services-final-cta-content h2 {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.services-final-cta-content p {
    color: rgba(255,255,255,.68);
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

.services-final-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 195px;
}

.services-cta-light-btn,
.services-cta-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 47px;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: .3s ease;
}

.services-cta-light-btn {
    background: #fff;
    color: #111;
}

.services-cta-light-btn:hover {
    background: #DD0311;
    color: #fff;
}

.services-cta-whatsapp-btn {
    background: #159b54;
    color: #fff;
}

.services-cta-whatsapp-btn:hover {
    background: #117e44;
    color: #fff;
}


/* DARK THEME */

[data-theme="dark"] .r3s-services-section,
[data-theme="dark"] .services-final-cta {
    background: var(--bg-primary, #111);
}

[data-theme="dark"] .services-approach-section {
    background: var(--bg-secondary, #181818);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .approach-card {
    background: var(--card-bg, #1e1e1e);
    border-color: var(--border-color, #333);
}

[data-theme="dark"] .r3s-section-heading h2,
[data-theme="dark"] .service-content h3,
[data-theme="dark"] .services-cta-text p,
[data-theme="dark"] .services-approach-heading h2,
[data-theme="dark"] .approach-card h3 {
    color: var(--text-primary, #f5f5f5);
}

[data-theme="dark"] .r3s-section-heading p,
[data-theme="dark"] .service-content p,
[data-theme="dark"] .services-approach-heading p,
[data-theme="dark"] .approach-card p {
    color: var(--text-secondary, #aaa);
}

[data-theme="dark"] .services-bottom-cta {
    background: var(--bg-secondary, #181818);
    border-color: var(--border-color, #333);
    border-left-color: #DD0311;
}

[data-theme="dark"] .service-content .service-icon {
    border-color: var(--card-bg, #1e1e1e);
}

[data-theme="dark"] .service-link {
    border-color: var(--border-color, #333);
}


/* RESPONSIVE */

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .service-content p {
        min-height: 75px;
    }
}

@media (max-width: 991px) {
    .services-page-hero {
        padding-top: 75px;
    }

    .services-hero-side-text {
        display: none;
    }

    .r3s-services-section {
        padding: 75px 0;
    }

    .services-bottom-cta {
        margin-top: 35px;
    }

    .services-final-cta-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 38px;
    }

    .services-final-cta-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .services-page-hero {
        padding: 60px 0 25px;
    }

    .services-hero-content h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    .services-hero-content > p {
        font-size: 13px;
    }

    .services-hero-bottom {
        gap: 13px 20px;
        margin-top: 40px;
        justify-content: flex-start;
    }

    .services-hero-bottom span {
        font-size: 10px;
    }

    .r3s-container {
        width: calc(100% - 30px);
    }

    .r3s-services-section {
        padding: 58px 0;
    }

    .r3s-section-heading {
        margin-bottom: 33px;
    }

    .r3s-section-heading h2 {
        font-size: 29px;
    }

    .r3s-section-heading p {
        font-size: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-image {
        height: 230px;
    }

    .service-content {
        padding: 28px 20px 22px;
    }

    .service-content h3 {
        font-size: 19px;
        min-height: auto;
    }

    .service-content p {
        min-height: auto;
    }

    .services-bottom-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

    .services-bottom-cta .r3s-btn {
        width: 100%;
    }

    .services-approach-section {
        padding: 58px 0;
    }

    .approach-card {
        padding: 20px 15px;
    }

    .approach-card h3 {
        font-size: 12px;
    }

    .approach-card p {
        font-size: 10px;
    }

    .approach-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 13px;
    }

    .services-final-cta {
        padding: 50px 0;
    }

    .services-final-cta-inner {
        padding: 29px 22px;
    }

    .services-final-cta-actions {
        flex-direction: column;
    }

    .services-final-cta-actions a {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .services-hero-content h1 {
        font-size: 34px;
    }

    .services-hero-actions {
        flex-direction: column;
    }

    .services-hero-actions a {
        width: 100%;
    }

    .services-hero-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .services-heading .sub-heading {
        font-size: 10px;
        gap: 8px;
    }

    .services-heading-line {
        width: 19px;
    }

    .service-image {
        height: 205px;
    }
}
