@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&family=Lato:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #6b0fa0 0%, #8b1fb8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.service-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
}

.service-container {
    max-width: 1600px;
    width: 100%;
    animation: fadeInContainer 0.8s ease-out;
}

/* Título Principal */
.service-main-title {
    font-size: 50px;
    font-weight: 900;
    color: white;
    text-align: left;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: 'Montserrat', sans-serif;
    animation: slideInFromLeft 0.8s ease-out;
}

/* Grid de Conteúdo */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: auto 80px;
    gap: 20px;
    margin-bottom: 25px;
}

/* Card de Texto */
.text-card {
    grid-column: 1;
    grid-row: 1;
    background: transparent;
    border: 4px solid white;
    border-radius: 30px;
    padding: 40px 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInFromLeft 1s ease-out 0.2s backwards;
    height: 500px;
    width: 100%;
    max-width: 900px;
    margin-top: 100px;
}

.service-text {
    font-size: 36px;
    color: white;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    width: 100%;
}

/* Imagem Principal */
.service-image {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
    max-width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    animation: slideInFromRight 1s ease-out 0.4s backwards;
    min-height: 600px;
}

/* Botão de Voltar */
.btn-back {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #7b1fa2;
    border: none;
    padding: 20px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    animation: fadeInUp 1s ease-out 0.8s backwards;
    width: 25%;
    max-width: 250px;
    height: 100%;
    position: relative;
    top: -20px;
    z-index: 5;
}

.btn-back:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Animações */
@keyframes fadeInContainer {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVIDADE COMPLETA ========== */

/* Tablets grandes e laptops pequenos */
@media (max-width: 1400px) {
    .service-section {
        padding: 30px 40px;
    }

    .service-main-title {
        font-size: 45px;
    }

    .text-card {
        height: 450px;
        max-width: 100%;
        margin-top: 80px;
        padding: 35px 30px;
    }

    .service-text {
        font-size: 32px;
    }

    .service-image {
        height: 650px;
        min-height: 550px;
    }

    .btn-back {
        font-size: 17px;
        padding: 18px 35px;
    }
}

/* Tablets médios */
@media (max-width: 1200px) {
    .service-section {
        padding: 30px 35px;
    }

    .service-main-title {
        font-size: 42px;
    }

    .text-card {
        height: 400px;
        margin-top: 60px;
        padding: 30px 25px;
    }

    .service-text {
        font-size: 28px;
    }

    .service-image {
        height: 580px;
        min-height: 500px;
    }

    .btn-back {
        font-size: 16px;
        padding: 16px 32px;
        width: 30%;
    }
}

/* Tablets pequenos e paisagem */
@media (max-width: 968px) {
    .service-section {
        padding: 25px 30px;
    }

    .service-main-title {
        font-size: 38px;
        margin-bottom: 30px;
        text-align: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 25px;
    }

    .text-card {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        min-height: 280px;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        padding: 35px 30px;
    }

    .service-text {
        font-size: 24px;
        text-align: center;
    }

    .service-image {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        min-height: 400px;
        max-height: 500px;
    }

    .btn-back {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 18px 40px;
        font-size: 16px;
        height: auto;
        top: 0;
    }
}

/* Smartphones grandes */
@media (max-width: 768px) {
    .service-section {
        padding: 25px 20px;
    }

    .service-main-title {
        font-size: 34px;
        margin-bottom: 25px;
    }

    .service-grid {
        gap: 20px;
    }

    .text-card {
        min-height: 250px;
        padding: 30px 25px;
        border-radius: 25px;
        border: 3px solid white;
    }

    .service-text {
        font-size: 22px;
        line-height: 1.5;
    }

    .service-image {
        min-height: 350px;
        max-height: 450px;
        border-radius: 25px;
    }

    .btn-back {
        max-width: 250px;
        padding: 16px 35px;
        font-size: 15px;
    }
}

/* Smartphones médios */
@media (max-width: 640px) {
    .service-section {
        padding: 20px 15px;
    }

    .service-main-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .service-grid {
        gap: 18px;
    }

    .text-card {
        min-height: 220px;
        padding: 25px 20px;
        border-radius: 20px;
        border: 3px solid white;
    }

    .service-text {
        font-size: 19px;
        line-height: 1.6;
    }

    .service-image {
        min-height: 300px;
        max-height: 400px;
        border-radius: 20px;
    }

    .btn-back {
        width: 100%;
        max-width: 100%;
        padding: 15px 30px;
        font-size: 14px;
        border-radius: 20px;
    }
}

/* Smartphones pequenos */
@media (max-width: 480px) {
    .service-section {
        padding: 20px 12px;
    }

    .service-main-title {
        font-size: 24px;
        margin-bottom: 18px;
        letter-spacing: -0.5px;
    }

    .service-grid {
        gap: 15px;
    }

    .text-card {
        min-height: 200px;
        padding: 20px 18px;
        border-radius: 18px;
        border: 2px solid white;
    }

    .service-text {
        font-size: 17px;
        line-height: 1.6;
    }

    .service-image {
        min-height: 250px;
        max-height: 350px;
        border-radius: 18px;
    }

    .btn-back {
        padding: 14px 25px;
        font-size: 13px;
        border-radius: 18px;
        letter-spacing: 0.3px;
    }
}

/* Smartphones muito pequenos */
@media (max-width: 360px) {
    .service-section {
        padding: 15px 10px;
    }

    .service-main-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .text-card {
        min-height: 180px;
        padding: 18px 15px;
        border-radius: 15px;
    }

    .service-text {
        font-size: 16px;
        line-height: 1.7;
    }

    .service-image {
        min-height: 220px;
        max-height: 300px;
        border-radius: 15px;
    }

    .btn-back {
        padding: 12px 20px;
        font-size: 12px;
        border-radius: 15px;
    }
}