/* CSS Reset e Configurações Globais */
:root {
    --primary-blue: #0d47a1;
    --secondary-orange: #d86d00; /* Tom de laranja mais escuro */
    --accent-silver: #e0e0e0;
    --text-dark: #212121;
    --text-light: #ffffff;
    --background-light: #f4f4f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--text-light);
    color: var(--text-dark);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos gerais */
h1, h2, h3 {
    color: var(--primary-blue);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

section {
    padding: 60px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-orange);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #be5f00; /* Cor de hover mais escura */
    transform: translateY(-3px);
}

/* Animação de Scroll */
.card, .about-content, #contact form {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible, .about-content.visible, #contact form.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    background: var(--text-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--primary-blue);
    margin: 4px 0;
    transition: 0.4s;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banner.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Services Section */
.service-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.card {
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    flex-basis: 32%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 15px 0;
}

.card p {
    padding: 0 15px 20px;
}

/* About Section */
#about {
    background-color: var(--background-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex-basis: 50%;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* Contact Section */
.contact-content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    flex-basis: 40%;
}

.contact-info .info-block {
    margin-bottom: 25px;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.contact-info p a {
    color: inherit; /* Herda a cor do texto do parágrafo */
    text-decoration: none; /* Remove o sublinhado */
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: var(--secondary-orange); /* Muda para laranja ao passar o mouse */
}

#contact form {
    flex-basis: 60%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--accent-silver);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(13, 71, 161, 0.2);
}

#contact form button.cta-button {
    background-color: #c16000; /* Tom de laranja mais escuro para o botão de contato */
    border: none;
    cursor: pointer;
}

#contact form button.cta-button:hover {
    background-color: #a85400; /* Hover ainda mais escuro */
}

/* Campo Honeypot para anti-spam */
.honeypot-field {
    display: none;
}

#form-status {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-credit a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
}

.developer-credit a:hover {
    text-decoration: underline;
}

/* Media Queries para Responsividade */

/* Tablets e dispositivos menores */
@media (max-width: 768px) {
    header nav {
        position: relative; /* Define o contexto de posicionamento para o menu */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 100%; /* Posiciona o menu rente à barra superior */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .service-cards, .about-content, .contact-content-wrapper {
        flex-direction: column;
    }

    #hero h1 {
        font-size: 2.8rem;
    }
}

/* Celulares */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}
