* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: radial-gradient(circle at top, rgba(255,255,255,0.08), #0a0a0a 40%);
    color: #fff;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 65%,
        rgba(255,255,255,0.25) 80%,
        rgba(0,0,0,0) 100%
    );
    border: none;
    position: relative;
    z-index: 2;
    margin-bottom: -2px;
    height: 180px; /* altura fixa do header */
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* ocupa toda altura do header */
    padding: 0 20px;
}

.logo {
    max-height: 100%;
    height: auto;
}

/* HERO */
.hero {
    text-align: center;
    padding: 50px 20px 130px;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1,
.hero h2 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 45px;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* BOTÃO HERO */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* SERVICES */
.services {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards por linha */
    gap: 30px;
}

/* CARD COM IMAGEM E HOVER */
.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-text {
    opacity: 1;
}

/* PAGE */
.page {
    padding: 120px 20px;
}

.service-detail {
    margin-bottom: 50px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ===== MEDIA QUERIES PARA RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards por linha em tablets */
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* 1 card por linha em mobile */
    }

    .hero {
        padding: 30px 15px 80px;
    }

    header {
        height: 140px;
    }

    .logo {
        max-height: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    footer {
        padding: 30px 10px;
        font-size: 0.8rem;
    }
}
