:root {
  --green: #007443;
  --blue: #30439a;
  --red: #f51b25;
  --orange: #f4562c;
  --yellow: #ffb344;
  --ink: #151515;
  --white: #fff;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.container {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("assets/images/acolhimento.png") center 0% / cover no-repeat;
}
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding-top: 39px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav a {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 5px;
  background: #fff;
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}
.menu-toggle {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(686px, calc(100% - 40px));
  padding-top: 68px;
  text-align: center;
}
.hero-logo {
  width: 510px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15));
}
.hero h1 {
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
}
.block {
  position: absolute;
  z-index: 3;
}
.block-yellow {
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  background: var(--yellow);
}
.flag {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  width: 240px;
  height: 200px;
}
.flag i,
.flag b {
  display: block;
  height: 50%;
}
.flag i {
  background: var(--red);
}
.flag b {
  background: var(--blue);
}
.hero-green {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 332px;
  height: 100px;
  background: var(--green);
}

.intro {
  padding: 40px 20px 64px;
  text-align: center;
}
.intro h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.48;
  font-weight: 700;
}
.social {
  display: inline-block;
  position: relative;
  margin-top: 38px;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.25;
  text-decoration: none;
}
.social::after {
  content: "";
  position: absolute;
  width: 134px;
  height: 2px;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  background: #ef1d22;
  transition: width 0.25s;
}
.social:hover::after {
  width: 100%;
}

.story {
  position: relative;
  padding-bottom: 30px;
}
.feature {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: end;
  position: relative;
  margin-bottom: 54px;
  padding: 27px 0 0 35px;
}
.feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 42%;
  height: 225px;
  background: var(--green);
}
.feature-photo {
  height: 235px;
  overflow: hidden;
}
.feature-photo img,
.story-photo,
.impact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
}
.feature:hover .feature-photo img,
.story-row:hover .story-photo,
.impact:hover .impact-photo img {
  transform: scale(1.025);
  filter: saturate(1.04);
}
.feature-copy {
  display: flex;
  align-items: center;
  min-height: 235px;
  padding: 34px 33px;
  color: #fff;
  background: var(--blue);
}
.feature-copy p,
.impact-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.story-row {
  position: relative;
  display: grid;
  grid-template-columns: 56% 44%;
  align-items: center;
  gap: 38px;
  margin-bottom: 32px;
}
.story-row-reverse {
  grid-template-columns: 43% 57%;
}
.story-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
}
.story-photo {
  height: 200px;
}
.ornament {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  animation: ornament-float 5s ease-in-out infinite alternate;
}
.ornament-orange {
  right: -126px;
  top: -61px;
  width: 180px;
}
.ornament-yellow {
  left: -124px;
  top: -16px;
  width: 170px;
}

.impact {
  position: relative;
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: stretch;
  margin-top: 31px;
}
.impact-copy {
  display: flex;
  align-items: center;
  min-height: 233px;
  padding: 34px 23px;
  color: #fff;
  background: var(--green);
}
.impact-photo {
  height: 233px;
  overflow: hidden;
  outline: 22px solid var(--red);
  outline-offset: -1px;
}
.impact-photo img {
  object-position: 50% 56%;
}
.ornament-blue {
  width: 108px;
  right: -174px;
  top: 80px;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 65px 20px 80px;
}
.footer img {
  width: 255px;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.js .hero-logo,
.js .hero h1 {
  opacity: 0;
  transition:
    opacity 1.4s ease-in-out,
    transform 1.4s ease-in-out;
}

.js .hero-logo {
  transform: translateY(10px);
}

.js .hero-logo {
  transition-delay: 0.18s;
}

.js .hero h1 {
  transform: translateY(10px);
  transition-delay: 0.34s;
}

.js.page-loaded .hero-logo,
.js.page-loaded .hero h1 {
  opacity: 1;
  transform: none;
}

@keyframes ornament-float {
  to {
    transform: translateY(7px) rotate(1.5deg);
  }
}

@media (max-width: 900px) {
  .nav-links {
    gap: 30px;
  }
  .nav a {
    font-size: 14px;
  }
  .flag {
    width: 110px;
    height: 130px;
  }
  .hero-green {
    width: 180px;
    height: 55px;
  }
  .ornament {
    opacity: 0.75;
  }
  .ornament-orange {
    right: -60px;
  }
  .ornament-yellow {
    left: -60px;
  }
  .ornament-blue {
    right: -55px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, 560px);
  }
  .hero {
    height: 640px;
    min-height: 640px;
    background-position: 58% center;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.13);
  }
  .nav {
    justify-content: flex-end;
    padding-top: 22px;
  }
  .menu-toggle {
    position: relative;
    z-index: 10;
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
  }
  .menu-toggle span {
    height: 2px;
    background: currentColor;
    transition:
      transform 0.25s,
      opacity 0.25s;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-links {
    position: fixed;
    inset: 0 0 auto auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    width: min(84vw, 330px);
    padding: 90px 35px 40px;
    transform: translateX(105%);
    background: var(--blue);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: none;
  }
  .nav a {
    font-size: 15px;
  }
  .hero-content {
    z-index: 2;
    padding-top: 120px;
  }
  .hero-logo {
    width: min(390px, 88vw);
  }
  .hero h1 {
    margin-top: 38px;
    font-size: 25px;
    line-height: normal;
  }
  .block-yellow {
    width: 44px;
    height: 44px;
  }
  .flag {
    width: 72px;
    height: 120px;
  }
  .hero-green {
    width: 130px;
    height: 45px;
  }
  .intro {
    padding: 46px 0 65px;
  }
  .intro h2 {
    font-size: 18px;
  }
  .desktop-only {
    display: none;
  }
  .social {
    font-size: 22px;
  }
  .feature,
  .story-row,
  .story-row-reverse,
  .impact {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature {
    padding: 20px 0 0 20px;
    margin-bottom: 45px;
  }
  .feature::before {
    width: 72%;
    height: 210px;
  }
  .feature-photo {
    height: 250px;
  }
  .feature-copy {
    min-height: auto;
    padding: 28px 24px;
  }
  .story-row {
    margin-bottom: 45px;
  }
  .story-copy {
    padding: 28px 5px;
  }
  .story-row .story-photo {
    order: -1;
    height: 245px;
  }
  .story-row-reverse .story-photo {
    order: 0;
  }
  .story-row-reverse .story-copy {
    order: 1;
  }
  .impact-copy {
    min-height: auto;
    padding: 30px 24px;
  }
  .impact-photo {
    height: 260px;
    outline-width: 12px;
  }
  .ornament {
    display: none;
  }
  .footer {
    padding: 55px 20px 65px;
  }
  .footer img {
    width: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transform: none;
    transition: opacity 1.2s ease-in-out;
  }
  .hero-logo,
  .hero h1,
  .ornament {
    animation: none;
  }
  .js .hero-logo,
  .js .hero h1 {
    transform: none;
    transition: opacity 1.2s ease-in-out;
  }
}
