* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, sans-serif;
  color: #0c2559;
}

.container {
  width: min(100% - 40px, 1180px);
  margin: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  background: linear-gradient(90deg, #07531f, #003f16);
  color: #fff;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
}

.topmeta {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-main {
  display: grid;
  min-height: 140px;
  grid-template-columns: 390px 1fr;
  gap: 42px;
  align-items: center;
}

.brand img {
  width: 355px;
}

.search {
  display: grid;
  height: 55px;
  grid-template-columns: 1fr 220px 130px;
  overflow: hidden;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(8, 36, 68, 0.06);
}

.search input,
.search select {
  padding: 0 22px;
  border: 0;
  outline: 0;
  color: #13306b;
}

.search select {
  border-left: 1px solid #e3e8ee;
}

.search button {
  border: 0;
  background: #06491c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.nav {
  border-block: 1px solid #e2e7eb;
}

.nav ul {
  display: grid;
  min-height: 54px;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(9, auto);
  list-style: none;
}

.nav li {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #edf0f3;
}

.nav a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
}

.nav i {
  font-size: 17px;
}

.nav .active {
  border-bottom: 3px solid #2f953e;
  color: #0b5d25;
}

.hero {
  height: 257px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12) 58%, transparent), url("../_assets/hero-alambari.png") center / cover no-repeat;
}

.hero__inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.hero__copy {
  color: #fff;
}

.hero__title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__icon {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #178443, #07551f);
  color: #fff;
  font-size: 31px;
}

.hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  text-transform: uppercase;
}

.listing {
  padding: 20px 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #07551f;
  font-size: 12px;
}

.listing__header h2 {
  margin: 0 0 5px;
  color: #07551f;
  font-size: 27px;
}

.listing__header p {
  margin: 0 0 22px;
  color: #194229;
  font-size: 13px;
}

.organization-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.organization-card {
  display: block;
  min-height: 230px;
  padding: 18px 16px;
  border: 1px solid #e2e6eb;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 2px 7px rgba(17, 40, 69, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.organization-card:hover,
.organization-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(17, 40, 69, 0.10);
}

.organization-logo {
  display: grid;
  width: 104px;
  height: 104px;
  margin: 0 auto 13px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #0d6a25;
  border-radius: 50%;
  background: #fff;
}

.organization-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.organization-logo--icon {
  background: #07551f;
  color: #fff;
  font-size: 48px;
}

.organization-card h3 {
  margin: 0 0 8px;
  color: #07551f;
  font-size: 15px;
  line-height: 1.3;
}

.organization-card p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.4;
}

.organization-card .city {
  color: #526478;
  font-size: 11px;
}

footer {
  padding: 18px 0 22px;
  background: linear-gradient(90deg, #07541f, #003b16);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 190px;
  gap: 38px;
  align-items: center;
}

.brandPref img {
  width: 217px;
}

footer p,
footer a {
  display: block;
  margin: 4px 0;
  font-size: 11px;
  line-height: 1.45;
}

footer h2 {
  font-size: 12px;
  text-transform: uppercase;
}

footer span {
  color: #ff3551;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.top {
  position: fixed;
  right: 28px;
  bottom: 22px;
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0c702c;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .topmeta .data-formatada {
    display: none;
  }

  .header-main {
    grid-template-columns: 280px 1fr;
  }

  .brand img {
    width: 270px;
  }

  .search {
    grid-template-columns: 1fr 110px;
  }

  .search select {
    display: none;
  }

  .nav ul {
    overflow-x: auto;
    grid-template-columns: repeat(9, 150px);
  }

  .organization-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    font-size: 10px;
  }

  .topmeta {
    display: none;
  }

  .header-main {
    min-height: 96px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 245px;
  }

  .search {
    grid-column: 1 / -1;
    height: 48px;
    grid-template-columns: 1fr 105px;
    margin-bottom: 12px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: #07511d;
    color: #fff;
    font-size: 20px;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    display: block;
    overflow: visible;
  }

  .nav li {
    border-bottom: 1px solid #edf0f3;
  }

  .nav a {
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .hero {
    height: 280px;
    background-position: 55% center;
  }

  .hero__title {
    gap: 14px;
  }

  .hero__icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    font-size: 26px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .listing__header h2 {
    font-size: 23px;
  }

  .organization-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .organization-card {
    min-height: 0;
  }

  .brandPref img {
    width: 170px;
    margin: 0 auto;
  }

  .textFooter {
    text-align: center;
  }
}
