:root {
  --if-green-primary: #359830;
  --if-green-dark: #2c4420;
  --if-green-light: #6ee7b7;
  --bg-light: #f4f7f6;
  --bg-white: #ffffff;
  --text-dark: #1a252c;
  --text-muted: #4a5568;
  --border-light: #e2e8f0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --header-height: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  padding-top: var(--header-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--if-green-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--if-green-primary);
  border-radius: 2px;
}

/* Header Navbar */
.navbar {
  min-height: var(--header-height);
  height: auto;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  background: var(--bg-white) !important;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 45px;
}

.navbar-toggler {
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(53, 152, 48, 0.25);
  outline: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-left: 1rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
  color: var(--if-green-primary) !important;
}

/* Dropdown Menu */
.dropdown-menu {
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-light);
  color: var(--if-green-primary);
}

/* Mobile Navbar (Hamburger Menu) Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
  }

  .nav-link {
    margin-left: 0 !important;
    padding: 0.6rem 1rem !important;
    text-align: center;
    border-radius: 8px;
  }

  .nav-link:hover {
    background-color: var(--bg-light);
  }

  .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: 1px solid var(--border-light) !important;
    background-color: var(--bg-light) !important;
    margin: 0.5rem 0;
    text-align: center;
  }

  .dropdown-item {
    text-align: center;
    padding: 0.55rem 1rem;
  }
}

.navbar-collapse.show,
.navbar-collapse.collapsing {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections Base */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--bg-white);
}

section:nth-child(odd) {
  background-color: var(--bg-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #225932 0%, #2e7a45 50%, #194627 100%);
  padding: 4.5rem 1rem 5rem 1rem;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 3px solid var(--if-green-primary);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(167, 243, 208, 0.22) 0%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  color: #a7f3d0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: #6ee7b7;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-description {
  font-size: 1.1rem;
  color: #f0fdf4;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0;
}

/* Side Image */
.hero-img-wrapper {
  display: inline-block;
  max-width: 100%;
}

.hero-img {
  border-radius: 12px;
  max-height: 350px;
  width: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.hero-img:hover {
  transform: scale(1.02);
}

/* Generic Cards */
.card-if {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--if-green-primary);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-if:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Systems Section Checklist */
.system-features-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.system-features-list li {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
}

.system-features-list li i {
  color: var(--if-green-primary);
  font-size: 1rem;
  margin-right: 0.6rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Mapa Image Styling */
.mapa-container {
  display: inline-block;
  background: var(--bg-white);
  padding: 0.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  max-width: 100%;
  margin-top: 1rem;
}

.mapa-img {
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.mapa-img:hover {
  transform: scale(1.015);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--if-green-dark);
}

/* Profile Cards (Direção) */
.profile-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.profile-img-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  border: 4px solid var(--if-green-primary);
  padding: 4px;
  background: var(--bg-white);
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.profile-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Info Grid (COAE/CORAC/Cursos) */
.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.info-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-list strong {
  color: var(--if-green-primary);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.25rem;
}

.btn-if {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--if-green-primary);
  color: var(--bg-white);
  transition: all 0.3s;
  border: none;
}

.btn-if:hover {
  background-color: var(--if-green-dark);
  color: var(--bg-white);
}

/* Footer */
footer {
  background-color: var(--if-green-dark);
  color: var(--bg-white);
  padding: 4rem 0 2rem 0;
  text-align: center;
}

footer a {
  color: var(--if-green-light);
  text-decoration: none;
}

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

.footer-logo {
  max-height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 1rem 4rem 1rem;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  section {
    padding: 3rem 0;
  }
}