/* ============================================
   RESET E ESTILOS BÁSICOS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER E NAVEGAÇÃO
   ============================================ */

.header {
    background-color: #003d82;
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Botão Menu Hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 24px;
    position: relative;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav a:hover {
    color: #ffd700;
}

/* ============================================
   HERO SECTION COM BACKGROUND
   ============================================ */

.hero {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-content {
    text-align: left;
    color: #fff;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
    padding-left: 2rem;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 900;
    color: #ffffff;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ffffff;
    color: #0056b3;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-servico {
    background-color: #25D366;
    color: white;
    margin-top: 1.5rem;
    display: inline-block;
}

.btn-servico:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SEÇÃO DE SERVIÇOS
   ============================================ */

.servicos {
    padding: 4rem 0;
    background-color: white;
}

.servicos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #003d82;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servico-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #25D366;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.servico-card h3 {
    color: #003d82;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.servico-card p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   SEÇÃO PROMOÇÃO
   ============================================ */

.promocao-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.promocao-imagem {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: block;
}

.promocao-imagem:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   SEÇÃO SOBRE
   ============================================ */

.sobre {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .sobre-content {
        grid-template-columns: 1fr;
    }
}

.sobre-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #003d82;
}

.sobre-texto p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.sobre-imagem {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sobre-imagem img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sobre-imagem img:hover {
    transform: scale(1.05);
}

/* ============================================
   SEÇÃO CONTATO
   ============================================ */

.contato {
    padding: 4rem 0;
    background-color: white;
}

.contato h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #003d82;
}

.contato-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-item h3 {
    color: #003d82;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-item p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #003d82;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

/* ============================================
   WHATSAPP FLUTUANTE (FIXO)
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20BA5A;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo h1 {
        display: none;
    }

    .logo-img {
        height: 85px;
        width: auto;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .sobre-imagem img {
        max-width: 120%;
        margin-left: -10%;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #003d82;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: left;
    }

    .nav a {
        font-size: 1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .hero {
        height: 100vh;
        min-height: 650px;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

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

    .servicos h2,
    .sobre h2,
    .contato h2 {
        font-size: 2rem;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.8rem 0;
    }

    .logo-img {
        height: 75px;
    }

    .menu-toggle {
        width: 24px;
        height: 20px;
    }

    .nav {
        width: 75%;
    }

    .sobre-imagem img {
        max-width: 130%;
        margin-left: -15%;
    }

    .hero {
        height: 100vh;
        min-height: 600px;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

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

    .servicos h2,
    .sobre h2,
    .contato h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
