/* ====================================
   APEECENM - Modern Theme Styles
   Tema Moderno para Bludit CMS
   ==================================== */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* ====================================
   HEADER - Cabeçalho Sticky
   ==================================== */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Logotipo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 80px;
    width: auto;
    max-width: 200px;
}

/* Navegação */
nav {
    display: flex;
    gap: 5px;
}

nav a {
    color: #1a2b3c;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 16px;
    transition: all 0.3s;
    border-radius: 8px;
    font-size: 14px;
}

nav a:hover,
nav a.active {
    background: #ff8c42;
    color: white;
    transform: translateY(-2px);
}

/* ====================================
   HERO SECTION - Banner Principal
   ==================================== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.7) 0%, rgba(255, 140, 66, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    line-height: 1.8;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    font-weight: 400;
}

/* ====================================
   CONTAINER - Área de Conteúdo
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ====================================
   SECTIONS - Secções de Conteúdo
   ==================================== */
.section {
    margin-bottom: 60px;
}

.section h2 {
    color: #1a2b3c;
    margin-bottom: 30px;
    font-size: 2.2em;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff8c42 0%, #ff6b35 100%);
    border-radius: 2px;
}

.section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ====================================
   CARDS GRID - Sistema de Cards
   ==================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.15);
}

.card h3 {
    color: #1a2b3c;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.date {
    color: #ff8c42;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 12px;
    display: inline-block;
}

/* ====================================
   BUTTONS - Botões de Ação
   ==================================== */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 140, 66, 0.4);
}

/* ====================================
   CTA SECTION - Secção Call-to-Action
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, #1a2b3c 0%, #2d4a5f 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section h2::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 25px;
    opacity: 0.9;
    color: white;
}

.cta-section .cta-button {
    background: white;
    color: #ff8c42;
}

.cta-section .cta-button:hover {
    background: #f5f5f5;
}

/* ====================================
   ÓRGÃOS SOCIAIS - Cards Grid
   ==================================== */
.orgaos-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.orgao-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #ff8c42;
}

.orgao-card h3 {
    color: #ff8c42;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.orgao-card ul {
    list-style: none;
}

.orgao-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.orgao-card li:last-child {
    border-bottom: none;
}

/* ====================================
   PAGE HERO - Hero para Páginas Internas
   ==================================== */
.page-hero {
    background: linear-gradient(135deg, #1a2b3c 0%, #2d4a5f 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 1.3em;
    opacity: 0.9;
}

/* ====================================
   ARTICLES - Artigos e Conteúdo
   ==================================== */
article {
    max-width: 800px;
    margin: 0 auto;
}

article h1,
article h2,
article h3 {
    color: #1a2b3c;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    margin-bottom: 20px;
    line-height: 1.8;
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

article ul,
article ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

article blockquote {
    border-left: 4px solid #ff8c42;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

/* ====================================
   FOOTER - Rodapé
   ==================================== */
footer {
    background: #1a2b3c;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
}

.footer-email {
    font-size: 1.1em;
    margin-top: 15px;
}

.footer-email a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
}

.footer-email a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

/* ====================================
   UTILITY CLASSES - Classes Auxiliares
   ==================================== */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ====================================
   RESPONSIVE - Design Responsivo
   ==================================== */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* Hero Mobile */
    .hero-section {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    /* Page Hero Mobile */
    .page-hero h1 {
        font-size: 2em;
    }

    .page-hero p {
        font-size: 1.1em;
    }

    /* Sections Mobile */
    .section h2 {
        font-size: 1.8em;
    }

    /* Cards Mobile */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* Logo Mobile */
    .logo-container img {
        height: 60px;
    }

    /* Container Mobile */
    .container {
        padding: 40px 15px;
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 40px 20px;
    }
}

/* ====================================
   PRINT STYLES - Estilos para Impressão
   ==================================== */
@media print {
    header,
    nav,
    footer,
    .cta-button,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    .hero-section {
        height: auto;
    }

    .hero-overlay {
        display: none;
    }
}

/* ====================================
   HERO SIZES - Homepage vs Pages
   ==================================== */

/* Homepage: Banner grande (600px) */
body.home .hero-section {
    height: 600px;
}

/* Páginas internas: Banner menor (300px) */
body.page .hero-section {
    height: 300px;
}

/* Ajustar texto nas páginas internas */
body.page .hero-content h1 {
    font-size: 2.5em;
}

body.page .hero-content p {
    font-size: 1.1em;
}

/* Mobile */
@media (max-width: 768px) {
    body.home .hero-section {
        height: 500px;
    }
    
    body.page .hero-section {
        height: 250px;
    }
    
    body.page .hero-content h1 {
        font-size: 2em;
    }
}
