/* --- style.css para Mofo em Albufeira Guia (Final) --- */

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

/* Variáveis CSS para Cores e Fontes */
:root {
    --primary-color: #3B82F6; /* Azul moderno */
    --secondary-color: #6B7280; /* Cinza para texto secundário */
    --text-color: #1F2937; /* Cor principal do texto */
    --background-color: #F9FAFB; /* Fundo muito claro */
    --light-gray: #E5E7EB; /* Cinza claro para bordas/separadores */
    --white: #FFFFFF;
    --accent-color: #10B981; /* Verde para botões de destaque */

    --font-family-primary: 'Inter', sans-serif;
    --font-family-headings: 'Inter', sans-serif;
}

/* Body: Estilos Globais */
body {
    font-family: var(--font-family-primary);
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Principal */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
header {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

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

header h1 {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Main Content Area --- */
main {
    flex-grow: 1;
    padding: 2.5rem 0;
}

/* Hero Section (Apenas para a Index) */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--white), var(--background-color));
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-section h2 {
    font-family: var(--font-family-headings);
    font-size: 2.75rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.button-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.button-primary:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

/* Latest Articles Section (Apenas para a Index) */
.latest-articles {
    padding: 2rem 0;
}

.latest-articles h3 {
    font-family: var(--font-family-headings);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
}

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

.article-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.article-card img.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.article-card h4 {
    font-family: var(--font-family-headings);
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 1.25rem 1.25rem 0.75rem 1.25rem;
    font-weight: 600;
}

.article-card h4 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.article-card h4 a:hover {
    color: var(--primary-color);
}

.article-card p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin: 0 1.25rem 1rem 1.25rem;
    flex-grow: 1;
}

.article-card .read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0 1.25rem 1.25rem 1.25rem;
    transition: color 0.3s ease;
}

.article-card .read-more:hover {
    color: var(--accent-color);
}

/* --- Estilos para as Páginas de Artigo (content-section) --- */
.content-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    font-family: var(--font-family-headings);
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center; /* Título principal do artigo agora centralizado */
}

.content-section h3 {
    font-family: var(--font-family-headings);
    font-size: 1.75rem;
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    text-align: justify;
}

.content-section ul, .content-section ol {
    list-style-position: outside;
    margin-left: 20px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.content-section ul li, .content-section ol li {
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 2.5rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- General Text Styles (Globais, mas content-section tem precedência) --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: var(--light-gray);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--secondary-color);
    margin-top: 3rem;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

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

footer a:hover {
    color: var(--accent-color);
}

/* --- Responsividade (Mobile-First) --- */

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

    header .container {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    nav ul li {
        margin: 0.5rem 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-gray);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

    .hero-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .latest-articles h3 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        margin-bottom: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .content-section p, .content-section ul, .content-section ol {
        font-size: 0.95rem;
    }

    footer .container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    .hero-section h2 {
        font-size: 1.75rem;
    }

    .latest-articles h3 {
        font-size: 1.5rem;
    }
}
