/* ===== Reset e básicos ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif; /* mantém a fonte original */
}

html, body {
    height: 100%;
}

body {
    background: #f0f4ff;
    color: #0a1f44;
    line-height: 1.6;
    display: flex;
    flex-direction: column; /* flex para empurrar o footer */
    min-height: 100vh;
}

main {
    flex: 1; /* main cresce para empurrar o footer para baixo */
}

a {
    text-decoration: none;
    color: #0a1f44;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===== Header ===== */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #0a1f44;
    display: inline-block;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    font-weight: 500;
    padding: 5px 10px;
    transition: 0.3s;
}

header nav ul li a:hover,
header nav ul li a.active {
    background: #1a4ca0;
    color: #fff;
    border-radius: 5px;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(120deg, #0a1f44, #1a4ca0);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #0a1f44;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    background: #0a1f44;
    color: #fff;
}

/* Centralização de botões dentro das seções */
section .btn {
    display: inline-block;
    margin: 30px auto 0 auto;
}

/* ===== Cards ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px; /* espaço extra entre última linha de cards e footer */
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: #1a4ca0;
    margin-bottom: 15px;
}

.card h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card a {
    font-weight: bold;
    color: #1a4ca0;
}

.card a:hover {
    text-decoration: underline;
}

/* ===== Seções de detalhe ===== */
.servico-detalhe {
    padding: 60px 20px;
    text-align: center;
}

.servico-detalhe .cards {
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ===== Seção Sobre ===== */
.sobre {
    padding: 60px 20px;
    text-align: center;
}

/* ===== Footerzinho visual ===== */
.footerzinho {
    background: #1a4ca0;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.footerzinho h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footerzinho p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footerzinho .btn {
    background: #fff;
    color: #1a4ca0;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.footerzinho .btn:hover {
    background: #0a1f44;
    color: #fff;
}

/* ===== Footer real ===== */
footer {
    background: #0a1f44;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

footer a {
    color: #25d366;
    font-weight: bold;
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    header nav {
        float: none;
        text-align: center;
        margin-top: 10px;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}