/* AMCH — paleta: teal, lima, laranja, branco */
:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-footer: #0c4a4a;
    --lime: #84cc16;
    --orange: #f97316;
    --orange-hover: #ea580c;
    --text: #374151;
    --text-muted: #6b7280;
    --surface-muted: #f3f4f6;
    --font: "Montserrat", system-ui, -apple-system, sans-serif;
    /* Imagem do hero (troque o caminho se precisar) */
    --hero-photo: url("/images/logo_home.png");
    /* Sobreposição teal→lima: alfa maior = foto um pouco mais suavizada */
    --hero-overlay-start: rgba(15, 118, 110, 0.52);
    --hero-overlay-mid: rgba(15, 118, 110, 0.32);
    --hero-overlay-end: rgba(132, 204, 22, 0.36);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
}

a {
    color: inherit;
}

/* ——— Cabeçalho ——— */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand__mark svg {
    display: block;
    flex-shrink: 0;
}

.brand__logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand__name {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--teal-dark);
    letter-spacing: 0.02em;
}

.brand__tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.25;
    max-width: 220px;
}

@media (min-width: 640px) {
    .brand__tagline {
        font-size: 0.72rem;
        max-width: 400px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--teal-dark);
}

.btn-login {
    background: var(--teal);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-login:hover {
    background: var(--teal-dark);
}

.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--teal-dark);
    padding: 4px 8px;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .brand {
        order: 0;
    }

    .btn-login {
        order: 3;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 4;
        padding: 12px 0 4px;
        border-top: 1px solid #eee;
        gap: 0;
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        padding: 14px 8px;
        border-bottom: 1px solid #f3f4f6;
    }
}

/* ——— Hero home + CTA faixa ——— */
.hero--home,
.cta-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-color: var(--teal-dark);
    background-image: linear-gradient(
            90deg,
            var(--hero-overlay-start) 0%,
            var(--hero-overlay-mid) 42%,
            var(--hero-overlay-end) 100%
        ),
        var(--hero-photo);
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .hero--home {
        min-height: 520px;
    }
}

.hero__inner,
.cta-banner__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 560px;
    color: #fff;
    text-align: left;
}

.hero--home h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.55),
        0 4px 28px rgba(0, 0, 0, 0.35);
}

.hero__lead {
    margin: 0 0 28px;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Botões */
.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: var(--orange-hover);
}

.btn--large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ——— Seções texto ——— */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 24px;
    text-align: center;
}

.section--about {
    background: #fff;
}

.section--benefits {
    background: var(--surface-muted);
}

.section__title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--teal-dark);
}

.section__text {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section__text--narrow {
    max-width: 640px;
}

/* ——— Cards benefícios ——— */
.benefit-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

@media (min-width: 768px) {
    .benefit-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

.benefit-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 16px;
}

.benefit-card__icon--green {
    background: #16a34a;
}

.benefit-card__icon--blue {
    background: #2563eb;
}

.benefit-card__icon--orange {
    background: var(--orange);
}

.benefit-card__title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--teal-dark);
}

.benefit-card__text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ——— CTA banner (home) ——— */
.cta-banner__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.cta-banner__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    max-width: 640px;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ——— Rodapé ——— */
.site-footer {
    background: var(--teal-footer);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 28px 20px 32px;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.88rem;
}

.site-footer__credit {
    margin: 10px 0 0;
    font-size: 0.75rem;
    opacity: 0.65;
}

.site-main {
    min-height: 40vh;
}

/* ——— Páginas internas (compat.) ——— */
.hero:not(.hero--home) {
    background: linear-gradient(135deg, var(--teal-dark), #15803d);
    color: #fff;
    padding: 48px 24px;
    text-align: center;
}

.sobre {
    color: var(--text);
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 25px;
    width: 260px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin-top: 10px;
    color: #1f2937;
}

.card p {
    font-size: 14px;
    color: #6b7280;
}

.cta {
    padding: 48px 24px;
}

/* ——— Postagens (home) ——— */
.section--posts {
    background: #fff;
    text-align: left;
}

.section--posts .section__title {
    text-align: center;
    margin-bottom: 36px;
}

.posts-layout {
    display: grid;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 880px) {
    .posts-layout {
        grid-template-columns: 1.15fr 1fr;
        gap: 40px;
    }
}

.post-destaque {
    background: var(--surface-muted);
    border-radius: 16px;
    padding: 28px 26px;
    border: 1px solid #e5e7eb;
}

.post-destaque__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-destaque__badge {
    background: var(--teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.post-destaque__title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
}

.post-destaque__title a {
    color: var(--teal-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.post-destaque__title a:hover {
    color: var(--teal);
}

.post-destaque__excerpt {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.post-destaque__link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--orange);
    text-decoration: none;
}

.post-destaque__link:hover {
    text-decoration: underline;
}

.posts-lista-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px 20px 18px;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}

.posts-lista__heading {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-dark);
}

.posts-lista {
    list-style: none;
    margin: 0;
    padding: 0;
}

.posts-lista li + li {
    border-top: 1px solid #f3f4f6;
}

.posts-lista__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 4px;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 8px;
}

.posts-lista__item:hover {
    background: var(--surface-muted);
}

.posts-lista__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.posts-lista__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.posts-lista__ver-todas {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
}

.posts-lista__ver-todas:hover {
    text-decoration: underline;
}

.btn--ghost {
    background: transparent;
    color: var(--teal-dark) !important;
    border: 2px solid var(--teal);
}

.btn--ghost:hover {
    background: rgba(13, 148, 136, 0.08);
}

.post-body {
    line-height: 1.65;
    color: var(--text);
}

.post-body p {
    margin: 0 0 1em;
}

/* ——— Listagem /noticias ——— */
.noticias-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.noticias-page__empty {
    text-align: center;
    padding: 24px 0 48px;
}

.noticias-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noticias-list > li + li {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.noticias-list__item {
    margin: 0;
}

.noticias-list__date {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.noticias-list__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.noticias-list__title a {
    color: var(--teal-dark);
    text-decoration: none;
}

.noticias-list__title a:hover {
    color: var(--teal);
}

.noticias-list__excerpt {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.noticias-list__more {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--orange);
    text-decoration: none;
}

.noticias-list__more:hover {
    text-decoration: underline;
}

.noticias-page__pager {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.noticias-page__pager nav {
    display: inline-block;
}

.noticias-page__pager .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.noticias-page__pager .pagination li {
    margin: 0;
}

.noticias-page__pager .pagination a,
.noticias-page__pager .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    border: 1px solid #e5e7eb;
    background: #fff;
}

.noticias-page__pager .pagination a:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.noticias-page__pager .pagination li.active span {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

.noticias-page__pager .pagination li.disabled span {
    opacity: 0.45;
    cursor: not-allowed;
}
