:root {
  --ong-navy: #06263a;
  --ong-green: #16845f;
  --ong-green-dark: #0f6b50;
  --ong-mint: #e8f5ef;
  --ong-terracotta: #c94f36;
  --ong-paper: #fbfaf7;
  --ong-line: #dce8e2;
}

html {
  scroll-padding-top: 96px;
}

[hidden],
.hidden {
  display: none !important;
}

body {
  background:
    linear-gradient(180deg, rgba(232, 245, 239, 0.34), rgba(255, 255, 255, 0) 420px),
    var(--ong-paper);
}

body.menu-open {
  overflow: hidden;
}

#siteNav {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(6, 38, 58, 0.78);
  box-shadow: 0 18px 45px rgba(6, 38, 58, 0.2);
}

#siteNav .logo > div:first-child,
footer .flex.items-center.gap-3 > div:first-child {
  background: rgba(232, 245, 239, 0.16);
  border-color: rgba(232, 245, 239, 0.26);
}

#siteNav a,
#siteNav button {
  white-space: nowrap;
}

#siteNav nav[aria-label="Navegação principal"] {
  gap: 0.35rem;
}

#siteNav nav[aria-label="Navegação principal"] a {
  border-radius: 999px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#siteNav nav[aria-label="Navegação principal"] a:hover {
  background: rgba(255, 255, 255, 0.1);
}

#siteNav > .grid > nav {
  gap: 0.35rem;
}

#siteNav > .grid > nav a {
  border-radius: 999px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#siteNav > .grid > nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

#menuBtn {
  min-height: 44px;
  min-width: 44px;
}

#mobileMenu {
  position: fixed;
  inset: 76px 0 auto 0;
  z-index: 49;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#mobileMenu > div > div {
  border-color: rgba(220, 232, 226, 0.95);
  box-shadow: 0 24px 60px rgba(6, 38, 58, 0.2);
}

#mobileMenu a {
  min-height: 44px;
  align-items: center;
}

main section:nth-of-type(even) {
  background-color: #f4f8f5;
}

main section:nth-of-type(odd) {
  background-color: #ffffff;
}

main section:first-child {
  min-height: 760px;
  background-color: var(--ong-navy);
}

main section:first-child .absolute.inset-0.bg-gradient-to-b {
  background:
    linear-gradient(90deg, rgba(6, 38, 58, 0.9) 0%, rgba(6, 38, 58, 0.76) 42%, rgba(6, 38, 58, 0.35) 72%, rgba(6, 38, 58, 0.58) 100%),
    linear-gradient(180deg, rgba(6, 38, 58, 0.2) 0%, rgba(6, 38, 58, 0.54) 72%, #ffffff 100%);
}

main section:first-child img {
  object-position: center right;
}

main section:first-child .bg-white\/95 {
  border-radius: 18px;
}

.rounded-3xl {
  border-radius: 18px !important;
}

.rounded-2xl {
  border-radius: 14px !important;
}

.bg-emerald-600 {
  background-color: var(--ong-green) !important;
}

.hover\:bg-emerald-700:hover {
  background-color: var(--ong-green-dark) !important;
}

.text-emerald-700 {
  color: var(--ong-green-dark) !important;
}

.bg-emerald-50 {
  background-color: var(--ong-mint) !important;
}

.border-emerald-100,
.border-emerald-200 {
  border-color: #c9e7da !important;
}

a[href="#doar"] {
  background-color: var(--ong-terracotta) !important;
}

a[href="#doar"]:hover {
  background-color: #ad3e2a !important;
}

article,
aside,
main section .border.border-slate-200.bg-white,
main section .border.border-slate-200.bg-slate-50,
main section .border.border-emerald-200.bg-white,
main section .border.border-emerald-200.bg-emerald-50 {
  border-color: var(--ong-line) !important;
  box-shadow: 0 12px 32px rgba(6, 38, 58, 0.055);
}

#floatingDonate {
  display: none;
}

@media (min-width: 1024px) {
  #siteNav > .grid {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }

  .md\:flex {
    display: flex !important;
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  #siteNav > .grid {
    gap: 1rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #siteNav .hidden.md\:flex.items-center {
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 88px;
  }

  header > nav {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  #siteNav {
    border-radius: 16px;
  }

  #siteNav > .grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.75rem !important;
  }

  #siteNav .logo {
    grid-column: 1;
    min-width: 0;
    max-width: none;
    gap: 0.65rem;
  }

  #siteNav .logo > div:first-child {
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
  }

  #siteNav .logo .leading-tight {
    min-width: 0;
  }

  #siteNav .logo p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #siteNav > .grid > div:last-child {
    grid-column: 2;
    width: auto;
    gap: 0;
  }

  #siteNav .hidden.md\:flex {
    display: none !important;
  }

  #menuBtn {
    position: static !important;
    transform: none !important;
    border-radius: 12px;
    padding: 0.55rem;
  }

  #mobileMenu {
    top: 72px;
  }

  #mobileMenu > div {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  #mobileMenu .flex.flex-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  #mobileMenu .flex.flex-col a {
    display: flex;
    justify-content: center;
    text-align: center;
    background: #f8faf9;
    border: 1px solid var(--ong-line);
    font-size: 0.9rem;
  }

  #mobileMenu .mt-3.border-t {
    display: grid;
    grid-template-columns: 1fr;
  }

  #mobileMenu .mt-3.border-t a {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  main section:first-child {
    min-height: auto;
    padding-top: 5.5rem;
  }

  main section:first-child .relative.mx-auto {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  main section:first-child .inline-flex.rounded-full {
    align-items: flex-start;
    border-radius: 14px !important;
  }

  main section:first-child h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  main section:first-child .mt-8.grid {
    grid-template-columns: 1fr;
  }

  #floatingDonate {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
    border-radius: 9999px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
