* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #17352a;
  background: #f8fbf9;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #e3ece7;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand img {
  height: 44px;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #1f5f4b;
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover {
  color: #0f3629;
}

.menu-toggle {
  display: none;
  border: 1px solid #1f5f4b;
  color: #1f5f4b;
  border-radius: 8px;
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}

.hero {
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-image: url("04/cartao.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  
}

.hero-content {
  position: relative;
  color: #ffffff;
  padding: 80px 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  margin: 0 0 18px;
  max-width: 680px;
}

.hero p {
  margin: 0 0 26px;
  max-width: 640px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #1f8e5f;
  color: #ffffff;
}

.btn.primary:hover {
  background: #18734d;
}

.btn.secondary {
  background: #ffffff;
  color: #14553e;
  border: 1px solid #c8dfd5;
}

.btn.secondary:hover {
  background: #eef7f2;
}

.btn.full {
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section.gray {
  background: #eef6f1;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  max-height: 420px;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #d6e8de;
  border-radius: 12px;
  padding: 18px;
}

.card h3 {
  margin-top: 0;
  color: #16543d;
}

.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.hidden {
  display: none !important;
}

.modal-card {
  width: min(760px, 100%);
  background: #ffffff;
  border-radius: 14px;
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow: auto;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

form {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bfd8cc;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.status {
  min-height: 22px;
  font-weight: 700;
  color: #9f1f1f;
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.links-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.link-item {
  border: 1px solid #d6e6df;
  border-radius: 10px;
  padding: 14px;
  background: #fbfefd;
}

.link-item h4 {
  margin: 0 0 6px;
  color: #1c5f47;
}

.link-item p {
  margin: 3px 0;
}

.link-item a {
  color: #0e6f4b;
  word-break: break-all;
}

.link-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0ebe5;
}

button.btn-small {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
}

button.btn-secondary {
  background: #ffffff;
  color: #14553e;
  border: 1px solid #c8dfd5;
}

button.btn-secondary:hover {
  background: #eef7f2;
}

button.btn-danger {
  background: #fff5f5;
  color: #b42318;
  border: 1px solid #f0c4c0;
}

button.btn-danger:hover {
  background: #fde8e8;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding-bottom: 15px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-wrapper {
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}
