:root {
    --primary: #1b4332; /* Verde escuro natureza */
    --secondary: #2d6a4f; /* Verde intermediário */
    --accent: #d4a373; /* Tom terroso / areia */
    --bg-light: #f4f6f4; /* Fundo claro */
    --text-dark: #2b2b2b; /* Texto principal */
    --text-light: #6c757d; /* Texto secundário */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, .logo {
    font-family: 'Merriweather', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s;
    }

        .nav-menu a:hover {
            color: var(--secondary);
        }

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 67, 50, 0.75), rgba(45, 106, 79, 0.75)), url('../img/guamaré-mangue.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--text-dark);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background: #bc8a59;
        color: var(--white);
    }

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.2rem;
        color: var(--primary);
        margin-bottom: 10px;
    }

    .section-title p {
        color: var(--text-light);
        font-size: 1.1rem;
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.text-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.text-center-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

    .text-center-block p {
        margin-bottom: 20px;
    }

.card-highlight {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}

    .card-highlight h3 {
        color: var(--primary);
        margin-bottom: 15px;
    }

    .card-highlight ul {
        list-style: none;
    }

    .card-highlight li {
        margin-bottom: 12px;
        font-size: 1rem;
    }

/* Footer */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsivo */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Estilos do Painel de Utilidade Pública */
.tide-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tide-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 6px;
    font-weight: 500;
}

.tide-type.low {
    color: #b5838d;
}

.tide-type.high {
    color: var(--secondary);
}

.tide-graph-box {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.graph-label {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.85;
}

.visual-wave {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px dashed rgba(255,255,255,0.4);
    padding-top: 5px;
    opacity: 0.9;
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.weather-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* Seção com Fundo Temático de Manguezal */
.mangue-panel-section {
    position: relative;
    /* Aqui você pode apontar para uma foto real do mangue de Guamaré na pasta img/ */
    background: linear-gradient(rgba(15, 38, 28, 0.85), rgba(27, 67, 50, 0.90)), url('../img/guamaré-mangue.jpg') center/cover no-repeat;
    padding: 100px 0;
    color: var(--white);
}

.light-title h2 {
    color: var(--white) !important;
}

.light-title p {
    color: #d8f3dc !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 30px;
    margin-top: 40px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .card-header-flex h3 {
        color: var(--primary);
        font-size: 1.3rem;
    }

.badge-official {
    font-size: 0.75rem;
    background: var(--bg-light);
    color: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Gráfico */
.canvas-container {
    position: relative;
    height: 220px;
    width: 100%;
}

.tide-summary-footer {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* Métricas Meteorológicas */
.meteo-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.metric-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-light);
    padding: 12px 15px;
    border-radius: 8px;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.alert-box-maritime {
    background: #fdf0ed;
    border-left: 4px solid #e76f51;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #6b2d14;
}

/* Responsividade do Painel */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.canvas-container {
    position: relative;
    height: 240px;
    width: 100%;
    background: #f4f6f4;
    border-radius: 8px;
    padding: 10px;
}
/* Fundo do painel do gráfico com a nova proporção do manguezal */
.dashboard-card.chart-card {
    background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)), url('../img/mangue.png') bottom center / cover no-repeat;
}