@import url('variables.css');

/* ============ Reset e Base ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f9f9f9;
    color: var(--cinza-neutro);
    line-height: 1.6;
}

/* ============ Tipografia ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--cinza-neutro);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    color: #555;
}

/* ============ Hero Section ============ */
.home-hero {
    position: relative;
    min-height: 500px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #e6f7ff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-success {
    background: var(--verde-folha);
    border-color: var(--verde-folha);
}

.hero-buttons .btn-success:hover {
    background: #45a049;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============ Categories Section ============ */
.categories-section {
    background: #fff;
    padding: 4rem 0 !important;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--verde-petroleo);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #888;
    font-size: 1.1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    background: #f8f8f8;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 200px;
}

.category-card:hover {
    border-color: var(--verde-folha);
    background: #f0f8f5;
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h4 {
    margin-bottom: 0.5rem;
    color: var(--verde-petroleo);
}

.category-card p {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

/* ============ Featured Posts Section ============ */
.featured-posts-section {
    padding: 4rem 0 !important;
}

.featured-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.featured-card-header {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.featured-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-body .card-title {
    color: var(--cinza-neutro);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.post-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.post-card-header {
    height: auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-body .card-title {
    color: var(--cinza-neutro);
    font-weight: 700;
    line-height: 1.3;
}

/* ============ CTA Section ============ */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--verde-petroleo), var(--verde-folha));
    border-radius: 15px;
    margin: 3rem;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.2rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-light {
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ============ Alerts ============ */
.alert-lg {
    padding: 2rem;
    font-size: 1.1rem;
}

/* ============ Badge ============ */
.badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 50px;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Responsive Design ============ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }

    .section-title {
        font-size: 1.8rem;
    }

    .featured-card-header {
        height: 200px;
    }

    .category-card {
        padding: 1.5rem;
        min-height: 150px;
    }

    .category-icon {
        font-size: 2rem;
    }

    .cta-section {
        margin: 1.5rem;
    }

    .cta-section h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .home-hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-card-header {
        height: 150px;
    }

    .post-card-header {
        min-height: 100px;
        font-size: 1.5rem;
    }

    .category-card {
        padding: 1rem;
        min-height: 120px;
    }

    .category-icon {
        font-size: 1.8rem;
    }

    .cta-section {
        margin: 1rem;
        padding: 2rem 1rem !important;
    }

    .cta-section h2 {
        font-size: 1.4rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }
}

.page-hero p,
.guia-hero p {
  max-width: 700px;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.page-hero h1,
.guia-hero h1 {
  color: #fff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.guia-label {
  color: #d9fff2;
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.guia-searchbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.guia-searchbar .form-control {
  border-radius: 999px;
  min-height: 56px;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.guia-searchbar .btn {
  min-width: 130px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.page-content,
.guia-content {
  padding: 2.5rem 0 4rem;
}

.page-content .subtitle,
.guia-summary .subtitle {
  display: block;
  color: var(--verde-petroleo);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.page-section {
  margin-bottom: 2.5rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.card.page-card,
.card.page-panel,
.card.page-item {
  border-radius: 24px;
  overflow: hidden;
}

.card.page-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.card.page-panel .card-body,
.card.page-card .card-body {
  padding: 1.5rem;
}

.page-card h3,
.card.page-panel h3 {
  margin-bottom: 1rem;
}

.page-card p,
.card.page-panel p {
  color: #475569;
}

.guia-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-pill {
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: #ffffff;
  color: #102a43;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: all 0.24s ease;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: var(--verde-folha);
  background: var(--verde-folha);
  color: #fff;
}

.filter-pill .badge {
  margin-left: 0.5rem;
  opacity: 0.95;
}

.guia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.guia-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
}

.guia-card-cover {
  min-height: 150px;
  background-color: #f4f7f4;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.guia-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.business-category {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--verde-petroleo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guia-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.business-address,
.business-contact {
  color: #475569;
  font-size: 0.95rem;
}

.business-contact div {
  margin-top: 0.25rem;
}

.guia-card-actions {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.guia-card-actions .btn {
  min-width: 130px;
}

/* Comunicados de utilidade pública */
.comunicado-hero {
  background:
    linear-gradient(180deg, rgba(9, 42, 82, 0.9), rgba(8, 57, 79, 0.9)),
    url('/assets/img/placeholder-classificado.svg') center/cover no-repeat;
}

.comunicado-card {
  border: 0;
  border-left: 7px solid #1976d2;
  background: #ffffff;
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
}

.comunicado-card--informativo {
  border-left-color: #1976d2;
}

.comunicado-card--atencao {
  border-left-color: #f9a825;
}

.comunicado-card--urgente {
  border-left-color: #c62828;
}

.comunicado-card__image {
  height: 190px;
  object-fit: contain;
  background: #f5f7fb;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.comunicado-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.comunicado-card__meta span {
  border-radius: 999px;
  background: #e3f2fd;
  color: #0d47a1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
}

.comunicado-card--atencao .comunicado-card__meta span {
  background: #fff8e1;
  color: #8a5c00;
}

.comunicado-card--urgente .comunicado-card__meta span {
  background: #ffebee;
  color: #b71c1c;
}

.comunicado-card h3 {
  color: #102a43;
  font-size: 1.35rem;
  line-height: 1.25;
}

.comunicado-card__text {
  color: #263238;
  font-size: 1rem;
  line-height: 1.75;
}

.comunicado-card__info {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  color: #334155;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.comunicado-card__info div + div {
  margin-top: 0.35rem;
}

.comunicado-card__actions {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.vagas-hero {
  background: linear-gradient(180deg, rgba(10, 45, 74, 0.82), rgba(0, 74, 68, 0.78)), url('/assets/img/banners/lagoa-itamogi.jpg') center/cover no-repeat;
}

.vaga-card {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
}

.vaga-card__image {
  align-items: center;
  background: #eef5f2;
  display: flex;
  height: 190px;
  justify-content: center;
  overflow: hidden;
}

.vaga-card__image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.vaga-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.vaga-card__meta span {
  background: #e8f5e9;
  border-radius: 999px;
  color: #1b5e20;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
}

.vaga-card .card-title {
  color: var(--verde-petroleo);
  font-size: 1.25rem;
  line-height: 1.3;
}

.vaga-card__details {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  color: #334155;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.vaga-card__details div + div {
  margin-top: 0.35rem;
}

.vaga-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.privacy-hero {
  background: linear-gradient(135deg, rgba(10, 45, 74, 0.96), rgba(0, 74, 68, 0.9));
}

.privacy-content h2 {
  color: var(--verde-petroleo);
  font-size: 1.35rem;
  margin-top: 1.75rem;
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content li {
  margin-bottom: 0.45rem;
}

@media (max-width: 991px) {
  .page-hero,
  .guia-hero {
    min-height: 360px;
  }

  .page-hero-content,
  .guia-hero-content {
    padding: 3rem 0;
  }
}

@media (max-width: 767px) {
  .navbar { flex-direction: column; }
  .full-carousel { height: 250px; }
  .guia-searchbar {
    grid-template-columns: 1fr;
  }
}
