/*
Theme Name: Governo Presente
Theme URI: https://example.com/governo-presente
Author: Antigravity
Author URI: https://example.com
Description: A modern, clean, and accessible theme designed for government and public service portals.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: governo-presente
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --color-primary: #004282;
    /* Deep Government Blue */
    --color-primary-dark: #002d59;
    --color-secondary: #009c3b;
    /* Flag Green */
    --color-secondary-dark: #00732b;
    --color-accent: #ffdf00;
    /* Flag Yellow */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-main: 'Karla', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.3s ease;
}

/* ==========================================================================
   Reset & Typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: var(--spacing-xs) 0;
    text-decoration: none;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: #FFED00;
    text-decoration: underline;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-image: linear-gradient(to right, #293258, rgba(0, 45, 89, 0.1)), url('assets/images/banner-doutora-oftamologia-governo-presente-amazonas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    padding: calc(var(--spacing-xl) + 75px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: var(--spacing-xl) 0;
    background-color: #F5F4EB;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: #096905;
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.service-excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   Mão Estendida Section
   ========================================================================== */
.css-masonry {
    column-count: 2;
    column-gap: 20px;
}

.css-masonry .masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.news-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-white);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--color-border);
}

.news-content {
    padding: var(--spacing-md);
}

.news-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
    display: flex;
    gap: var(--spacing-xs);
}

.news-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.news-title a {
    color: var(--color-text);
}

.news-title a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #1B1C17;
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-widget h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

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

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.site-info {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.logo-rodape {
    margin-bottom: 32px;
}

.logo-rodape a {
    display: block;
    width: 200px !important;
    margin: 0 auto;
}

.logo-rodape img {
    margin: 0 auto;
    width: 200px;
}

/* ==========================================================================
   Main Content Area (Fallback)
   ========================================================================== */
.site-main {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}

.post-article {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-details {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 1px solid #E5E5E5;
}

.faq-details summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #191C1C;
    margin: 0;
}

.faq-details summary::-webkit-details-marker {
    display: none;
}

.faq-details[open] summary .ph-caret-down {
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 12px;
    color: #4A4A4A;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .main-navigation {
        display: none;
        /* In a real theme, add mobile menu toggle */
    }

    .hero-buttons {
        flex-direction: column;
    }
}