/* ==========================================
   IBPM - Instituto Brasileiro de PPPs Municipais
   Arquivo CSS Customizado
   ========================================== */

/* ========== VARIÁVEIS E CORES ========== */
:root {
  --primary-color: #0056b3;
  --secondary-color: #28a745;
  --accent-color: #ffc107;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333333;
  --text-light: #6c757d;
  --border-color: #dee2e6;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ========== RESET E BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

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

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

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

/* ========== NAVBAR CUSTOMIZADA ========== */
.navbar-custom {
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-custom.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,100 600,50 T1200,50 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-section .slogan {
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

/* ========== BUTTONS ========== */
.btn-custom-primary {
  background-color: var(--secondary-color);
  border: none;
  color: var(--white);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.btn-custom-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

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

/* ========== SECTION PADRÃO ========== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-title .underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ========== CARDS ========== */
.card-custom {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}

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

.card-custom .card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  padding: 1.5rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.card-custom .card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.card-custom:hover .card-icon {
  transform: rotate(360deg);
}

.card-custom .card-body {
  padding: 2rem;
}

.card-custom .card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.card-custom .card-text {
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== VALORES E OBJETIVOS ========== */
.value-item {
  background-color: var(--light-color);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--primary-color);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.value-item h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-item p {
  color: var(--text-color);
  margin: 0;
}

/* ========== STATS / NÚMEROS ========== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  color: var(--white);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-item .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-item .stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== TIMELINE / ESTRUTURA ORGANIZACIONAL ========== */
.org-structure {
  position: relative;
  padding: 2rem 0;
}

.org-item {
  background-color: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  transition: var(--transition);
}

.org-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.org-item h4 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.org-item p {
  color: var(--text-light);
  margin: 0;
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* ========== NOTÍCIAS ========== */
.news-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.news-card img,
.news-card > div:first-child {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.news-card > div:first-child {
  transition: var(--transition);
}

.news-card:hover > div:first-child i {
  transform: scale(1.1);
  transition: var(--transition);
}

.news-card .news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.news-card .news-category {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.news-card h3 {
  font-size: 1.3rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.news-card p {
  color: var(--text-light);
  flex: 1;
}

.news-card .btn-read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.news-card .btn-read-more:hover {
  gap: 1rem;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-custom {
  background-color: var(--light-color);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.breadcrumb-custom h1 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin: 0;
}

/* ========== ACCORDION CUSTOMIZADO ========== */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background-color: var(--light-color);
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white);
}

.accordion-custom .accordion-body {
  padding: 1.5rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .stat-item .stat-number {
    font-size: 2rem;
  }
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* ========== UTILITIES ========== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-primary-custom {
  color: var(--primary-color);
}

.text-secondary-custom {
  color: var(--secondary-color);
}

.mt-section {
  margin-top: 80px;
}

.mb-section {
  margin-bottom: 80px;
}
