/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f2f6fa;
    color: #0A2F4F;
    line-height: 1.6;
    opacity: 0;
    animation: fadePage 0.6s ease forwards;
}


@keyframes fadePage {
    to {
        opacity: 1;
    }
}

/* ================= HEADER ================= */

header {
    position: fixed;
    width: 100%;
    background: #0A2F4F;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    z-index: 1000;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.brand span {
    color: #1FAF6D;
}

.logo img {
    height: 55px;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-right: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #1FAF6D;
}

.btn-header {
    background: #1FAF6D;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-header:hover {
    background: #17945c;
}

/* ================= HERO COM SLIDER ================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden; /* ISSO faz cortar */
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: white;
}

/* FOTO GRANDE */

.hero-photo {
    position: absolute;
    bottom: 0;   /* encosta no limite inferior */
    right: 8%;
}

.hero-photo img {
    height: 900px;
    transform: translateY(190px); /* empurra a imagem para baixo */
}
/* SLIDER IMAGENS */

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* <<< ADICIONE ISSO */
    opacity: 20;
    transition: opacity 2s ease-in-out;
}
.hero-slider img.active {
    opacity: 1;
}

/* OVERLAY AZUL */

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(10,47,79,0.85);
    top: 0;
    left: 0;
}

/* CONTEÚDO HERO */

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    max-width: 550px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
}

.hero-logo {
    width: 600px;
    height: 400px; /* controla o quanto aparece */
    overflow: hidden;
    display: flex;
    align-items: flex-start; /* mostra parte de cima */
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    height: auto;
}
/* ================= BOTÕES ================= */

.btn-primary {
    background: #1FAF6D;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-right: 15px;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background: #17945c;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: #0A2F4F;
}

/* ================= SEÇÕES ================= */

section {
    padding: 100px 8%;
}

.section-title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 60px;
    color: #0A2F4F;
}

/* ================= SERVIÇOS ================= */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(10,47,79,0.08);
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-6px);
}

.card h3 {
    margin-bottom: 15px;
}

/* ================= SOBRE ================= */

.about {
    display: flex;
    align-items: center;      /* centraliza vertical */
    justify-content: center;  /* centraliza horizontalmente o bloco */
    gap: 60px;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= GALERIA ================= */

/* GALERIA */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 8%;
}

/* QUADRO */

.gallery-item {
    background: #0f1c2e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito hover elegante */

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* IMAGEM PADRONIZADA */

.gallery-item img {
    width: 100%;
    height: 320px; /* tamanho fixo do quadro */
    object-fit: cover; /* corta proporcionalmente */
    display: block;
}
/* ================= CTA ================= */

.cta {
    background: #0A2F4F;
    color: white;
    text-align: center;
    padding: 100px 8%;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

/* ================= FOOTER ================= */

footer {
    background: #071f36;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ================= RESPONSIVO ================= */

@media(max-width: 992px) {

    .hero h1 {
        font-size: 32px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-logo {
        margin-top: 40px;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .hero-photo {
    position: relative;   /* tira o absoluto */
    right: auto;
    bottom: auto;
    margin-top: 40px;
    text-align: center;
}

.hero-photo img {
    height: auto;         /* remove altura fixa */
    width: 100%;
    max-width: 320px;     /* controla tamanho */
    transform: none;      /* remove o empurrão */
}
}

@media(max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        margin-top: 10px;
    }

    .hero {
        height: auto;
        padding: 150px 8% 100px 8%;
    }

    section {
        padding: 70px 8%;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 100%;
        max-width: 350px;
    }
}

