body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181c23;
    color: #e0e0e0;
}

header {
    background: #10131a;
    padding: 12px 0 6px 0; /* altura reduzida */
    box-shadow: 0 2px 8px #0003;
}

header .container-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

header h1 {
    margin: 0 0 2px 0;
    font-size: 2rem; /* aumentado */
    letter-spacing: 1px;
}

nav {
    margin-top: 0; /* remove espaço entre menu e parte inferior */
}

nav a {
    color: #7ed957;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #fff;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 32px 16px;
}

.container-services {
    max-width: 1100px;
    margin: auto;
    padding: 0px 16px;
}

.hero-section {
    background: linear-gradient(rgba(24,28,35,0.55), rgba(24,28,35,0.55)),
        url('../assets/banner-pcb.png') center center/cover no-repeat;
    text-align: center;
    padding: 80px 16px 60px 16px;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
    color: #7ed957;
}

.hero-section p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.dark-section {
    background: #232a34;
}

.services-grid {
    display: flex;
    gap: 12px; /* Espaço pequeno entre os banners */
    margin-top: 12px;
    flex-wrap: wrap;
}

.service-card {
    flex: 1 1 220px;
    min-width: 220px;
    max-width: 100%;
    background: #181c23;
    border-radius: 8px;
    padding: 0 0 24px 0;
    box-shadow: 0 2px 8px #0003;
    text-align: center;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 325px; /* igual ao box da evolução */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
}

.service-card:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.service-card:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.titulo-services {
    padding: 20px 0 10px 0;
}

.service-card__window {
    width: 90%;
    max-width: 260px;
    height: 140px;
    margin: 24px auto 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0003;
    position: relative;
    z-index: 2;
    background: transparent;
    display: block;
}

.service-card__window-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

/* Remove opacidade do fundo da janela */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s;
}

/* Imagens de fundo dos banners */
.service-card:nth-child(1)::before,
.service-card:nth-child(1) .service-card__window-bg {
    background-image: url('../assets/FundoPCB.png');
}
.service-card:nth-child(2)::before,
.service-card:nth-child(2) .service-card__window-bg {
    background-image: url('../assets/FundoFW.png');
}
.service-card:nth-child(3)::before,
.service-card:nth-child(3) .service-card__window-bg {
    background-image: url('../assets/FundoSW.png');
}
.service-card:nth-child(4)::before,
.service-card:nth-child(4) .service-card__window-bg {
    background-image: url('../assets/FundoPlacas.png');
}

.service-card h3 {
    color: #7ed957;
    margin: 18px 0 8px 0;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    z-index: 3;
}

.service-card p {
    color: #fff;
    margin: 0 18px;
    font-size: 1rem;
    position: relative;
    z-index: 3;
}

.evolution-section {
    background: #181c23;
    padding-top: 25px;
    padding-bottom: 48px;
}

.evolution-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* Espaço pequeno entre os boxes */
    justify-content: center;
    margin-top: 32px;
}

.evolution-step {
    background: #232a34;
    border-radius: 0;
    padding: 20px 14px; /* padding levemente reduzido */
    width: 100%;
    max-width: 100%;
    min-width: 220px;
    flex: 1 1 220px;
    text-align: center;
    box-shadow: none;
    height: 240px; /* altura levemente reduzida */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.evolution-step:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.evolution-step:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.evolution-step img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    height: 120px;
    object-fit: cover;
}

.evolution-step h4 {
    color: #7ed957;
    margin: 10px 0 6px 0;
}

.contact-section {
    background: #232a34;
    padding-bottom: 48px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 24px auto 0 auto;
}

input, textarea {
    background: #181c23;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e0e0e0;
    padding: 10px;
    font-size: 1rem;
}

button {
    background: #7ed957;
    color: #181c23;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

button:hover {
    background: #a3ff7e;
}

footer {
    background: #10131a;
    color: #7ed957;
    text-align: center;
    padding: 18px 0;
    font-size: 1rem;
    margin-top: 0;
}

/* Responsividade */
@media (max-width: 800px) {
    .evolution-steps {
        flex-direction: column;
        align-items: center;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .services-grid {
        flex-direction: column;
        gap: 16px;
    }
    .service-card {
        min-width: 0;
        width: 100%;
        border-radius: 10px;
        height: auto;
    }
    .service-card__window {
        max-width: 100%;
    }
    .evolution-steps {
        flex-direction: column;
        gap: 16px;
    }
    .evolution-step {
        min-width: 0;
        width: 100%;
        border-radius: 10px;
        height: auto;
    }
}

@media (max-width: 600px) {
    nav a span.hide-mobile, header h1 span.hide-mobile, nav a.hide-mobile {
        display: none;
    }
}