/* Importação de fontes do Google Fonts (mantidas, mas o foco é nas cores) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Variáveis CSS para um tema BRANCO E VERDE */
:root {
    --primary-color: #242d4c; /* Azul marinho (tom escuro para contraste) */
    --secondary-color: #3BBF4F; /* Verde vibrante (seu verde principal) */
    --accent-color: #008000;   /* Verde mais escuro (para destaques sutis ou hover) */
    --light-bg: #FFFFFF;       /* Fundo branco principal */
    --dark-bg: #F5F5F5;        /* Fundo cinza muito claro para seções alternadas */
    --text-dark: #333333;      /* Texto escuro padrão */
    --text-light: #F0F0F0;     /* Texto claro em fundos escuros */
    --white: #FFFFFF;          /* Branco puro */
    --border-color: #CCCCCC;   /* Borda clara para elementos */
    --shadow-light: rgba(0,0,0,0.1); /* Sombra suave */
    --shadow-medium: rgba(0,0,0,0.15); /* Sombra média */
    --glow-effect: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color); /* Efeito de brilho verde */

    /* Fontes do site_bs_solucoes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    /* --font-mono: 'Share Tech Mono', monospace; */ /* Removida se não for usada */
}

/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Rolagem suave para os links */
}

body {
    font-family: var(--font-body);
    line-height: 1.7; /* Ligeiramente aumentado para melhor leitura */
    color: var(--text-dark); /* Cor de texto padrão */
    background-color: var(--light-bg); /* Fundo branco principal */
    overflow-x: hidden; /* Evita scroll horizontal */
    -webkit-font-smoothing: antialiased; /* Suaviza fontes */
    -moz-osx-smoothing: grayscale; /* Suaviza fontes */
}

/* Previne scroll no corpo quando menu mobile está ativo */
body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px; /* Largura ajustada */
    margin: 0 auto;
    padding: 0 25px;
}

a {
    text-decoration: none;
    color: var(--primary-color); /* Links azul marinho */
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color); /* Verde no hover */
}

ul {
    list-style: none;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 30px; /* Padding ajustado */
    border-radius: 8px; /* Borda mais suave */
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.primary-btn { /* Estilo do botão principal */
    background-color: var(--secondary-color); /* Verde vibrante */
    color: var(--white); /* Texto branco */
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px var(--shadow-light);
}

.primary-btn:hover {
    background-color: var(--primary-color); /* Azul marinho no hover */
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.secondary-btn { /* Estilo para o botão secundário (portfólio) */
    background-color: transparent;
    color: var(--primary-color); /* Azul marinho */
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 5px var(--shadow-light);
}

.secondary-btn:hover {
    background-color: var(--primary-color); /* Azul marinho no hover */
    color: var(--white); /* Texto branco */
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}


/* --- Header --- */
.header {
    background-color: var(--light-bg); /* Fundo branco */
    color: var(--primary-color); /* Azul marinho */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 3px 8px var(--shadow-light);
}

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

.header .logo img {
    height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 35px;
}

.nav-list a {
    color: var(--primary-color); /* Azul marinho */
    font-weight: 500;
    font-size: 1.05em;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color); /* Verde de destaque */
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
    box-shadow: 0 0 5px var(--secondary-color); /* Brilho verde */
}
.nav-list a:hover {
    color: var(--secondary-color); /* Verde no hover */
}


/* Hamburguer Menu (Ícone) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--secondary-color); /* Verde no foco */
    border-radius: 3px;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color); /* Azul marinho */
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animação do hamburguer ao abrir */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Linha Abaixo do Header --- */
.header-line {
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color); /* Verde */
    position: fixed;
    top: 90px; /* Ajuste para ficar abaixo do header fixo */
    left: 0;
    z-index: 999;
}

/* --- Seções Gerais --- */
section {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* Ajuste o margin-top da primeira seção para compensar o header fixo + a linha */
main section:first-of-type {
    margin-top: calc(85px + 4px + 10px);
}


h1, h2 {
    font-family: var(--font-heading);
    color: var(--primary-color); /* Azul marinho */
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h1 {
    font-size: 3.8em;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: var(--secondary-color); /* Verde */
    bottom: -15px;
    left: 20%;
    border-radius: 2px;
}

h3 {
    font-family: var(--font-heading);
    color: var(--primary-color); /* Azul marinho */
    margin-top: 15px;
    margin-bottom: 12px;
    font-size: 1.9em;
    font-weight: 600;
}

p {
    font-family: var(--font-body);
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark); /* Texto escuro */
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(36, 45, 76, 0.8), rgba(36, 45, 76, 0.8)), url('../img/hero_background.png') no-repeat center center/cover;
    color: var(--text-light);
    padding: 200px 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--text-light); /* Texto claro */
    font-size: 4.5em;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
}

.hero-content p {
    font-family: var(--font-body);
    color: var(--text-light); /* Texto claro */
    font-size: 1.6em;
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content .btn {
    opacity: 0;
    transform: translateY(30px);
}

/* Animações (geral para elementos que surgem) */
.reveal-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas para hero (para terem um atraso escalonado) */
.hero-content h1.reveal-visible { transition-delay: 0.2s; }
.hero-content p.reveal-visible { transition-delay: 0.4s; }
.hero-content .btn.reveal-visible { transition-delay: 0.6s; }


/* --- Services Section --- */
.services-section {
    background-color: var(--dark-bg); /* Fundo cinza claro */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--light-bg); /* Fundo branco */
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-color); /* Borda clara */
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--secondary-color); /* Borda verde no hover */
}

.service-card i {
    font-size: 4em;
    color: var(--secondary-color); /* Verde */
    margin-bottom: 25px;
    filter: drop-shadow(2px 2px 3px rgba(60, 191, 79, 0.3)); /* Sombra para o ícone (verde) */
}

.service-card h3 {
    margin-bottom: 18px;
    font-size: 1.6em;
    color: var(--primary-color); /* Azul marinho */
}

.service-card p {
    font-size: 1.05em;
    color: var(--text-dark); /* Texto escuro */
    margin-bottom: 0;
}

/* --- Portfolio Section --- */
.portfolio-section {
    background-color: var(--light-bg); /* Fundo branco */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.portfolio-item {
    background-color: var(--light-bg); /* Fundo branco */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
    border: 1px solid var(--border-color); /* Borda clara */
}

.portfolio-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px var(--shadow-medium);
    border-color: var(--secondary-color); /* Borda verde no hover */
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.portfolio-item-info {
    padding: 30px;
}

.portfolio-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--primary-color); /* Azul marinho */
}

.portfolio-item p {
    font-size: 1em;
    color: var(--text-dark); /* Texto escuro */
    margin-bottom: 25px;
}

.portfolio-item .btn {
    width: fit-content;
    font-size: 0.95em;
    padding: 10px 20px;
}

/* --- About Section --- */
.about-section {
    background-color: var(--dark-bg); /* Fundo cinza claro */
}

.about-section p {
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
    font-size: 1.25em;
    color: var(--text-dark); /* Texto escuro */
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--primary-color); /* Azul marinho para fundo da seção de contato */
    color: var(--text-light); /* Texto claro */
    padding: 100px 0;
}

.contact-section h2,
.contact-section p {
    color: var(--text-light); /* Texto claro */
}

.contact-section h2::after {
    background-color: var(--secondary-color); /* Verde */
    box-shadow: 0 0 10px var(--secondary-color); /* Brilho verde */
}

.contact-form {
    max-width: 650px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.1em;
    background-color: var(--white); /* Fundo branco para os campos */
    color: var(--primary-color); /* Azul marinho no texto dos campos */
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select {
    color: var(--text-dark); /* Placeholder escuro */
    opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--secondary-color), inset 0 1px 3px rgba(0,0,0,0.1); /* Brilho verde no foco */
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    overflow-x: hidden;
    word-wrap: break-word;
}

.contact-form .btn {
    align-self: center;
    width: auto;
    min-width: 220px;
    margin-top: 30px;
    background-color: var(--secondary-color); /* Verde */
    border-color: var(--secondary-color);
    color: var(--white); /* Texto branco */
}

.contact-form .btn:hover {
    background-color: var(--primary-color); /* Azul marinho no hover */
    border-color: var(--primary-color);
    color: var(--white); /* Texto branco */
    box-shadow: 0 6px 15px var(--shadow-medium);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color); /* Azul marinho no rodapé */
    color: var(--text-light); /* Texto claro */
    padding: 50px 0 30px;
    font-size: 0.95em;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Linha clara */
    box-shadow: 0 -3px 8px var(--shadow-light);
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
    flex: 1;
    min-width: 180px;
    padding: 10px;
}

.footer-col-1 {
    flex-basis: 25%;
    min-width: 250px;
    text-align: left;
}

.footer-logo img {
    height: 65px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.9em;
    color: var(--text-light); /* Texto claro */
    margin-bottom: 20px;
}

.social-icons.footer-social-left {
    text-align: left;
}

.footer-links h4, .footer-contact h4, .footer-col-3 h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color); /* Verde para títulos do footer */
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul, .footer-col-3 ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-col-3 a {
    color: var(--text-light); /* Links claros */
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    font-size: 0.95em;
}

.footer-links a:hover, .footer-col-3 a:hover {
    color: var(--secondary-color); /* Verde no hover */
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--text-light); /* Texto claro */
    font-size: 0.95em;
    text-align: left;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color); /* Verde para ícones */
    font-size: 1.1em;
}

.social-icons a {
    color: var(--text-light); /* Ícones claros */
    font-size: 1.6em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color); /* Verde no hover */
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Linha clara */
    padding-top: 25px;
    margin-top: 40px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85); /* Texto do copyright claro */
}


/* --- Responsividade (Media Queries) --- */
@media (max-width: 992px) {
    h1 {
        font-size: 3.2em;
    }
    h2 {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .hero-section {
        padding: 180px 0 120px;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    section {
        padding: 80px 0;
    }
    .service-grid, .portfolio-grid {
        gap: 25px;
    }
    .service-card, .portfolio-item {
        padding: 35px;
    }
    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-col-1, .footer-col-2, .footer-col-3, .footer-col-4 {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    .footer-logo {
        margin: 0 auto 15px;
    }
    .footer-description {
        text-align: center;
    }
    .social-icons.footer-social-left {
        text-align: center;
        margin-top: 15px;
    }
    .footer-links ul, .footer-col-3 ul {
        align-items: center;
    }
    .footer-contact p {
        text-align: center;
    }
    .social-icons {
        margin-top: 15px;
    }
    .footer-links h4, .footer-contact h4, .footer-col-3 h4 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header .nav {
        position: relative;
    }
    .hamburger-menu {
        display: block;
    }
    .nav-list {
        flex-direction: column;
        background-color: var(--primary-color); /* Fundo do menu mobile: Azul marinho */
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-list a {
        display: block;
        padding: 10px 20px;
        font-size: 1.3em;
        color: var(--text-light); /* Links claros no menu mobile */
    }
    .nav-list a::after {
        display: none;
    }
    .nav-list a:hover {
        background-color: rgba(0,0,0,0.1); /* Fundo sutil no hover */
        color: var(--secondary-color); /* Verde no hover */
    }


    .hero-section {
        padding: 150px 0 100px;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    h2 {
        font-size: 1.8em;
    }
    section {
        padding: 60px 0;
    }
    .service-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .contact-form {
        max-width: 90%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .header .logo img {
        height: 45px;
    }
    .nav-list a { /* Ajuste para o menu hamburguer em telas muito pequenas */
        font-size: 0.95em; /* Reduz ligeiramente a fonte para evitar corte de palavras */
        padding: 8px 5px; /* Reduz o padding horizontal */
        white-space: nowrap; /* Impede que o texto quebre para a próxima linha */
    }
    .hero-section {
        padding: 120px 0 80px;
    }
    .hero-content h1 {
        font-size: 2.3em;
    }
    .hero-content p {
        font-size: 1em;
    }
    h2 {
        font-size: 1.6em;
    }
    h2::after {
        width: 80%;
        left: 10%;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.95em;
    }
    .service-card, .portfolio-item {
        padding: 25px;
    }
    .service-card h3 {
        font-size: 1.4em;
    }
    .portfolio-item h3 {
        font-size: 1.3em;
    }
    .about-section p {
        font-size: 1.1em;
    }
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 15px;
        font-size: 1em;
    }
    .contact-form {
        padding: 0 10px;
    }
}

/* Estilos para o Modal de Consentimento de Cookies/Termos */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Garante que fique acima de tudo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-content {
    background-color: var(--light-bg); /* Fundo branco */
    color: var(--text-dark); /* Texto escuro */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%; /* Responsividade */
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-consent-modal.show .cookie-consent-content {
    transform: translateY(0);
}

.cookie-consent-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cookie-consent-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cookie-consent-content a {
    color: var(--secondary-color); /* Links verdes */
    font-weight: 600;
    text-decoration: underline;
    margin: 0 5px;
}

.cookie-consent-buttons {
    margin-top: 20px;
}

.cookie-consent-buttons .btn {
    padding: 12px 30px;
    font-size: 1em;
    margin: 0 10px;
    cursor: pointer;
}

/* Responsividade do modal */
@media (max-width: 550px) {
    .cookie-consent-content {
        padding: 25px;
        width: 95%;
    }
    .cookie-consent-content h3 {
        font-size: 1.5em;
    }
    .cookie-consent-content p {
        font-size: 1em;
    }
    .cookie-consent-buttons .btn {
        display: block;
        width: calc(100% - 20px); /* Ajusta a largura do botão para ocupar a maior parte da tela */
        margin: 10px auto;
    }
}