@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 20px;
}

.service-container {
    max-width: 1400px;
    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;
    margin-left: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: 'Montserrat', sans-serif;
    animation: slideInFromLeft 0.8s ease-out;
}

/* Grid de Cards */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 25px;
}

/* Cards Base */
.service-card {
    background: transparent;
    border: 4px solid white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card de Texto */
.text-card {
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 35px 35px;
    min-height: 380px;
    animation: slideInFromLeft 1s ease-out 0.2s backwards;
    display: flex;
    align-items: center;
}

.service-text {
    font-size: 26px;
    color: white;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    width: 100%;
}

/* Cards de Foto */
.photo-card {
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.photo-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.photo-placeholder {
    font-size: 20px;
    color: white;
    font-family: 'Lato', sans-serif;
    text-align: center;
}

/* Foto 1 - Superior Direita */
.photo-card:not(.photo-card-small) {
    grid-column: 2;
    grid-row: 1;
    min-height: 280px;
    animation: slideInFromRight 1s ease-out 0.4s backwards;
}

/* Foto 2 - Inferior Direita */
.photo-card-small {
    grid-column: 2;
    grid-row: 2;
    min-height: 280px;
    animation: slideInFromRight 1s ease-out 0.6s backwards;
}

/* Botão de Voltar */
.btn-back {
    display: inline-block;
    background: white;
    color: #7b1fa2;
    border: none;
    padding: 20px 50px;
    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;
    margin-left: 20px;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.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 */
@media (max-width: 968px) {
    .service-main-title {
        font-size: 48px;
        margin-bottom: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 25px;
    }

    .text-card {
        grid-column: 1;
        grid-row: auto;
        min-height: 400px;
        padding: 40px 35px;
    }

    .service-text {
        font-size: 22px;
    }

    .photo-card:not(.photo-card-small) {
        grid-column: 1;
        grid-row: auto;
        min-height: 300px;
    }

    .photo-card-small {
        grid-column: 1;
        grid-row: auto;
        min-height: 300px;
    }

    .btn-back {
        padding: 18px 40px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .service-section {
        padding: 40px 15px;
    }

    .service-main-title {
        font-size: 32px;
        margin-bottom: 30px;
        margin-left: 10px;
    }

    .service-grid {
        gap: 20px;
    }

    .text-card {
        min-height: 350px;
        padding: 30px 25px;
        border-radius: 25px;
    }

    .service-text {
        font-size: 18px;
        line-height: 1.5;
    }

    .photo-card:not(.photo-card-small),
    .photo-card-small {
        min-height: 250px;
        border-radius: 25px;
    }

    .photo-placeholder {
        font-size: 18px;
    }

    .btn-back {
        padding: 16px 35px;
        font-size: 14px;
        margin-left: 10px;
        width: calc(100% - 20px);
        text-align: center;
    }
}