/* Estilo para o site público */
:root {
    --primary-color: #005A9C; /* Azul corporativo */
    --secondary-color: #333333;
    --dark-theme-bg: #1C1C1C; /* Fundo escuro para header/footer */
    --accent-color: #F5A623; /* Laranja/Amarelo para destaque */
    --background-color: #FDFDFD;
    --white-color: #FFFFFF;
    --light-gray-color: #f4f4f4;
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--background-color);
    color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); color: var(--primary-color); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); }
p { margin-bottom: 1rem; }
ul { list-style-position: inside; padding-left: 1rem; margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #003d69; }

/* Cabeçalho e Navegação */
.main-header { 
    background-color: var(--dark-theme-bg); 
    padding: 0.5rem 0;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid #333;
}
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-header .logo img { 
    height: 46px;
    width: auto;
    transition: transform 0.3s ease;
}
.main-header .logo img:hover {
    transform: scale(1.05);
}
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; padding: 0; }
.main-nav a { 
    font-weight: 700; 
    font-family: var(--font-title); 
    font-size: 0.9rem; 
    text-transform: uppercase;
    color: var(--white-color);
    padding: 1rem 0;
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0.8rem;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}
.main-nav a.active {
    color: var(--accent-color);
}

.nav-cta { background-color: var(--primary-color); color: var(--white-color); padding: 0.6rem 1.2rem; border-radius: 5px; transition: all 0.3s ease; }
.nav-cta:hover { background-color: #0077cc; color: var(--white-color); transform: translateY(-2px); }
.nav-cta.cta-active {
    background-color: var(--accent-color);
    color: var(--white-color);
}
.nav-cta::after { display: none; }

.menu-toggle { 
    display: none; 
    font-size: 1.8rem; 
    background: none; 
    border: none; 
    cursor: pointer;
    color: var(--white-color);
}

/* Seção Hero (Home) */
.hero-with-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--white-color);
    text-align: center;
    padding: 8rem 1rem;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.cta-button { background-color: var(--primary-color); color: var(--white-color); padding: 1rem 2rem; border-radius: 50px; font-weight: 700; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; display: inline-block; }
.cta-button:hover { background-color: #003d69; transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }

/* Seções de Conteúdo */
main section { padding: 4rem 0; }
.intro { text-align: center; padding-top: 5rem; padding-bottom: 5rem; }
.subtitle { max-width: 800px; margin-left: auto; margin-right: auto; font-size: 1.1rem; color: #555; }
.full-width-image {
    padding: 0;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}
.content-block {
    text-align: center;
    padding: 5rem 1rem;
}
.content-block h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}
.content-block p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Páginas de Conteúdo Genéricas */
.content-page { padding-top: 2rem; }
.content-page h1 { text-align: center; margin-bottom: 2rem; }
.content-page .subtitle { text-align: center; margin-bottom: 3rem; }
.content-image { float: left; margin-right: 2rem; margin-bottom: 1rem; border-radius: 8px; max-width: 400px; width: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.service-item { 
    background-color: var(--white-color); 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 2rem; 
    margin-bottom: 2rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: -2rem -2rem 1.5rem -2rem;
}
.cta-button-secondary { background-color: var(--accent-color); color: var(--white-color); padding: 0.8rem 1.5rem; border-radius: 5px; font-weight: 700; font-family: var(--font-title); transition: all 0.3s ease; display: inline-block; border: none; cursor: pointer; }
.cta-button-secondary:hover { background-color: #d18c1b; }

/* Página de Lista de Artigos */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.article-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--secondary-color);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.article-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.article-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}
.article-card-content p {
    flex-grow: 1;
    color: #555;
}
.read-more {
    font-weight: 700;
    color: var(--primary-color);
    align-self: flex-start;
}

/* Página de Artigo Individual */
.single-article { max-width: 800px; margin: 0 auto; }
.single-article-header { text-align: center; margin-bottom: 3rem; border-bottom: 1px solid #eee; padding-bottom: 2rem; }
.single-article-header .article-meta { font-size: 0.9rem; color: #777; margin-top: -0.5rem; }
.article-featured-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 2rem; }
.article-content { font-size: 1.1rem; line-height: 1.8; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--primary-color); margin-top: 2rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content a { text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }

/* Página de Contato */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--light-gray-color);
    border-radius: 8px;
}
.contact-detail-item h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.contact-detail-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
}
.contact-form-container { max-width: 700px; margin: 2rem auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.form-feedback {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.form-feedback.success {
    background-color: #def4f0;
    color: #008361;
    border: 1px solid #00b090;
}
.form-feedback.error {
    background-color: #ffe8ef;
    color: #d63163;
    border: 1px solid #d63163;
}
.contact-form-container form label { display: block; margin-bottom: 0.5rem; font-family: var(--font-title); font-weight: 700; }
.contact-form-container form input, .contact-form-container form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-body); }
.contact-form-container form button { width: 100%; }

/* Rodapé */
.main-footer { 
    background-color: var(--dark-theme-bg); 
    color: var(--light-gray-color); 
    text-align: center; 
    padding: 2rem 0; 
    margin-top: 4rem; 
    font-size: 0.9rem; 
}

/* Responsividade */
@media (max-width: 768px) {
    .main-nav { 
        position: absolute; 
        top: 100%; 
        right: 0; 
        background-color: var(--dark-theme-bg);
        width: 100%; 
        border-bottom: 1px solid #333;
        flex-direction: column; 
        padding: 1rem; 
        transform: translateY(-150%); 
        transition: transform 0.3s ease-in-out; 
    }
    .main-nav.active { transform: translateY(0); }
    .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
    .main-nav li { width: 100%; text-align: center; }
    .main-nav a { display: block; padding: 1rem; }
    .main-nav a:hover::after { width: 0; }
    .menu-toggle { display: block; }
    .content-image { float: none; display: block; margin: 0 auto 2rem auto; max-width: 400px; }
    .full-width-image { height: 250px; }
}
