/* ---------------------- RESET E VARIÁVEIS GLOBAIS ---------------------- */
:root {
    --font-principal: 'Poppins', sans-serif;
    --cor-texto: #333;
    --cor-primaria: #007bff;
    --cor-primaria-hover: #006ad1;
    --cor-branco: #ffffff;
    --fundo-header: rgba(0, 0, 0, 0.8);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --spacing: 20px;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-principal);
    color: var(--cor-texto);
    
    /* Garante que nada ultrapasse a largura da tela */
    max-width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------------------- CABEÇALHO ---------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--fundo-header);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    z-index: 1000;
}

header .logo img {
    height: 50px;
}

header nav ul {
    display: flex;
    gap: 1.2rem;
}

header nav ul li a {
    color: var(--cor-branco);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: var(--cor-primaria);
    transform: scale(1.05);
    text-shadow: 0px 0px 10px rgba(0, 123, 255, 0.6);
}

/* Ajustes do cabeçalho para telas menores */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem 2%;
    }
    header nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 0.5rem;
    }
}

/* ---------------------- HERO SECTION (REVERTIDO) ---------------------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100vh;
    background: url('fotomeusite.jpg') no-repeat center center/cover;
    color: white;
    padding: 20px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    position: relative;
    z-index: 2;
    font-size: 5vw;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    position: relative;
    z-index: 2;
    font-size: 1.2rem;
    color: #ffffff;
    margin-top: 10px;
}

/* ---------------------- CARTÕES DE SERVIÇOS ---------------------- */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    /* Limita a largura e centraliza */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Espaçamento interno que não cria overflow */
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    min-height: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--cor-primaria);
    margin: 15px 0;
}

.service-card p {
    flex-grow: 1;
    font-size: 16px;
    color: var(--cor-texto);
}

.service-card .saiba-mais {
    margin-top: 20px;
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.service-card .saiba-mais:hover {
    background-color: var(--cor-primaria-hover);
}

/* ---------------------- RODAPÉ ---------------------- */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    font-size: 12px;
}

/* ---------------------- MEDIA QUERIES ---------------------- */
/* Ajuste para telas até 1024px */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Ajuste para telas até 768px */
@media (max-width: 768px) {
    .services-container {
        /* 1 coluna em telas menores */
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}
