/* Importação de Fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* Variáveis CSS para Cores */
:root {
    --primary-blue-dark: #1e3a5f;
    --primary-blue-medium: #2b5a92;
    --light-gray-bg: #f8f8f8;
    --dark-text: #333333;
    --medium-text: #666666;
    --white: #ffffff;
    --accent-color: #2b5a92; /* Usando o azul médio como cor de destaque */
    --border-color: #e0e0e0;
}

/* Reset Básico e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden; /* Previne rolagem horizontal indesejada */
}

a {
    text-decoration: none;
    color: var(--primary-blue-medium);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-dark);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue-dark);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaço extra abaixo de imagens */
}

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

.section-padding {
    padding: 5em 0;
}

.bg-light {
    background-color: var(--light-gray-bg);
}

.bg-dark {
    background-color: var(--primary-blue-dark);
    color: var(--white);
}

.bg-dark h2, .bg-dark p {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3em;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.9em 2.2em;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-light-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-light-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue-dark);
}

/* Header */
.main-header {
    background-color: var(--primary-blue-dark);
    padding: 1em 0;
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.main-header .logo img {
    height: 40px; /* Ajuste o tamanho do logo */
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2.5em;
}

.main-nav ul li a {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1em;
    position: relative;
    padding-bottom: 0.3em;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Esconder por padrão em desktop */
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8em;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh; /* Altura da seção hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra toda a área */
    filter: brightness(0.5); /* Escurece a imagem para o texto se destacar */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2em;
    animation: fadeIn 1s ease-out; /* Animação de entrada */
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 0.2em;
    color: var(--white);
}

.hero-content p {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 1.5em;
    color: var(--white);
}

/* Services Section */
.services-section h2 {
    text-align: center;
    margin-bottom: 2em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.service-item {
    background-color: var(--white);
    padding: 2.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5em;
    color: var(--accent-color);
    margin-bottom: 0.6em;
}

.service-item h3 {
    color: var(--primary-blue-dark);
    margin-bottom: 0.8em;
}

.service-item p {
    color: var(--medium-text);
    margin-bottom: 1.2em;
}

.service-item .read-more {
    font-weight: 700;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
}

.service-item .read-more i {
    margin-left: 0.5em;
    transition: transform 0.3s ease;
}

.service-item .read-more:hover i {
    transform: translateX(5px);
}

/* Portfolio Section */
.portfolio-section h2 {
    text-align: center;
    margin-bottom: 2em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(30,58,95,0.9) 0%, rgba(30,58,95,0) 100%);
    color: var(--white);
    padding: 1.5em;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    margin-bottom: 0.3em;
    color: var(--white);
}

.portfolio-overlay span {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Call to Action Section (CTA) */
.cta-section {
    padding: 6em 0;
    background-image: linear-gradient(rgba(30,58,95,0.85), rgba(30,58,95,0.85)), url('cta-background.jpg'); /* Adicione uma imagem de fundo para o CTA */
    background-size: cover;
    background-position: center;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 0.8em;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 2em auto;
}


/* Footer */
.main-footer {
    background-color: var(--primary-blue-dark);
    color: var(--white);
    padding: 4em 0 2em 0;
    font-size: 0.95em;
}

.main-footer a {
    color: var(--white);
    opacity: 0.8;
}

.main-footer a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 0.8em;
}

.footer-col .footer-logo {
    height: 45px; /* Ajuste o tamanho do logo no rodapé */
    margin-bottom: 1em;
}

.footer-col p {
    margin-bottom: 1em;
    color: rgba(255,255,255,0.8);
}

.footer-col i {
    margin-right: 0.8em;
    color: var(--accent-color);
}

.social-links a {
    display: inline-block;
    color: var(--white);
    font-size: 1.4em;
    margin-right: 1em;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animações (Exemplo) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 992px) {
    .main-nav {
        display: none; /* Esconde o menu de navegação padrão */
    }

    .main-header .container {
        justify-content: space-between; /* Ajusta logo e botão de toggle */
    }

    .menu-toggle {
        display: block; /* Mostra o botão de menu hamburguer */
    }

    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.3em;
    }

    .services-grid, .portfolio-grid, .footer-grid {
        grid-template-columns: 1fr; /* Coluna única em telas menores */
    }

    .service-item, .portfolio-item {
        margin-bottom: 1.5em;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .section-padding {
        padding: 3em 0;
    }

    .hero-section {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }

    .main-header .logo img {
        height: 35px;
    }

    /* Adicionar aqui estilos para o menu mobile quando ativado por JS */
}

@media (max-width: 480px) {
    .container {
        padding: 0 1em;
    }

    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    
    .btn {
        padding: 0.7em 1.5em;
        font-size: 0.9em;
    }

    .hero-content {
        padding: 1em;
    }
}