:root {
    --primary: #000080;
    --secondary: #25d366;
    --dark: #1a1a1a;
    --light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}


/* TOP BAR */

.top-bar {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}


/* HEADER */

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--dark);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.btn-cta-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
}


/* HERO */

.hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url('img/IMG_2837.png');
    background-size: cover;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-principal {
    background: var(--secondary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    margin-right: 15px;
    display: inline-block;
}

.btn-secundario {
    border: 2px solid #fff;
    padding: 13px 30px;
    border-radius: 5px;
    color: #fff;
}


/* SERVIÇOS */

.section-title {
    text-align: center;
    margin: 60px 0 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
}

.card h3 {
    padding: 20px 20px 10px;
    color: var(--primary);
}

.card p {
    padding: 0 20px 20px;
    color: #555;
}


/* CAROUSEL */

.carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 ESSENCIAL */
    object-position: center;
    display: none;
}

.carousel-inner img.active {
    display: block;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: 0.25s ease;
}

.carousel button:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* HISTÓRIA */

.historia {
    margin-top: 80px;
    background: var(--light);
    padding: 110px;
    border-radius: 15px;
}

.historia h1 {
    color: var(--primary);
    margin-bottom: 20px;
}


/* FOOTER */

footer {
    background: #111;
    color: #fff;
    padding: 60px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-box p {
    color: #bbb;
}


/* =========================
   RESPONSIVO MOBILE
   ========================= */

@media (max-width: 768px) {
    /* TOP BAR */
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    /* HEADER */
    .header-flex {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    /* HERO */
    .hero {
        height: auto;
        padding: 80px 0;
        text-align: center;
    }
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .btn-principal,
    .btn-secundario {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    /* SERVIÇOS */
    .section-title h2 {
        font-size: 26px;
    }
    .card h3 {
        font-size: 20px;
        text-align: center;
    }
    .card p {
        text-align: center;
        font-size: 15px;
    }
    /* CAROUSEL */
    .carousel {
        height: 200px;
    }
    .carousel button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    /* HISTÓRIA */
    .historia {
        padding: 40px 25px;
        text-align: center;
    }
    .historia h1 {
        font-size: 26px;
    }
    .historia p {
        font-size: 15px;
        line-height: 1.6;
    }
    /* FOOTER */
    .footer-content {
        text-align: center;
    }
}