@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Lato:wght@400;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #ffffff;
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('./background.jpeg') no-repeat center center / cover;
    z-index: -2;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

::placeholder { color: #555; opacity: 1; }
::-ms-input-placeholder { color: #555; }

.skip-link {
  position: absolute;
  top: -1000px;
  left: 8px;
  z-index: 10000;
  background: #3A4D28;
  color: #fff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #F7EFE0; }
::-webkit-scrollbar-thumb {
  background-color: #3A4D28;
  border-radius: 8px;
  border: 3px solid #F7EFE0;
}
::-webkit-scrollbar-thumb:hover { background-color: #B83A23; }

.header-gaia {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background-color: #F7EFE0;
  border-bottom: 4px solid #3A4D28;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  gap: 15px;
  font-family: 'Merriweather', serif;
}

.header-gaia.shrink {
  height: 80px;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 50px;
  background-color: rgba(247, 239, 224, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(58, 77, 40, 0.15);
}

.logo-container {
  width: 150px;
  height: 150px;
  transition: all 0.5s ease;
  position: relative;
}

.header-gaia.shrink .logo-container {
  width: 80px;
  height: 80px;
}

.header-gaia.shrink .nav-menu {
  margin-top: 0;
}

@keyframes revelarLogo {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    filter: sepia(1) hue-rotate(60deg) saturate(3) brightness(0.7) blur(6px);
  }
  35% {
    opacity: 1;
    transform: scale(1.1) rotate(3deg);
    filter: sepia(1) hue-rotate(60deg) saturate(3) brightness(0.9) blur(0);
  }
  55% {
    transform: scale(0.95) rotate(-2deg);
    filter: sepia(0.5) hue-rotate(25deg) saturate(1.8) brightness(1);
  }
  75% {
    transform: scale(1.03) rotate(0.5deg);
    filter: sepia(0) hue-rotate(0deg) saturate(1) brightness(1);
  }
  90% {
    transform: scale(0.99) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: none;
  }
}

.logo-container::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(184, 58, 35, 0.12), transparent 70%);
  z-index: 0;
  opacity: 0;
  animation: brilho 3s ease-in-out infinite alternate;
  animation-delay: 2.5s;
  pointer-events: none;
}

@keyframes brilho {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.15); }
}

@keyframes pulsarSombra {
  0%, 100% {
    filter: drop-shadow(0 4px 8px rgba(58, 77, 40, 0.1));
  }
  50% {
    filter: drop-shadow(0 12px 20px rgba(58, 77, 40, 0.18));
  }
}

@keyframes respirar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  animation: revelarLogo 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             respirar 4s ease-in-out 1.2s infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  margin-top: -14px;
}

.nav-item a {
  text-decoration: none;
  color: #3A4D28;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 16px;
  transition: color 0.3s ease;
}

.nav-item a:hover {
  color: #B83A23;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #B83A23;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item a:hover::after {
  width: 100%;
}


.gaia-popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(58, 77, 40, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: gaiaFadeIn 0.2s ease;
}
.gaia-popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border-top: 4px solid #B83A23;
  animation: gaiaSlideUp 0.3s ease;
  text-align: center;
}
.gaia-popup-box.popup-success {
  border-top-color: #3A4D28;
}
.gaia-popup-message {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
  font-family: 'Merriweather', serif;
  font-weight: 400;
  white-space: pre-wrap;
}
.gaia-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.gaia-popup-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 20px;
  box-sizing: border-box;
  font-family: 'Merriweather', serif;
  outline: none;
  transition: border-color 0.2s;
}
.gaia-popup-input:focus {
  border-color: var(--cor-oliva);
  box-shadow: 0 0 0 3px rgba(58,77,40,0.3);
}

@keyframes gaiaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gaiaSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.btn-gaia {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 14px;
  cursor: pointer;
  border: 2.5px solid transparent;
  background: linear-gradient(#F7EFE0, #F7EFE0) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-gaia:active {
  transform: scale(0.96);
}

.btn-gaia-solid {
  background: linear-gradient(#3A4D28, #3A4D28) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(58, 77, 40, 0.3);
}
.btn-gaia-solid:hover {
  background: linear-gradient(#2c3a1e, #2c3a1e) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 77, 40, 0.4);
}

.btn-gaia-outline {
  color: #3A4D28;
}
.btn-gaia-outline:hover {
  background: linear-gradient(#3A4D28, #3A4D28) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gaia-terracota {
  background: linear-gradient(#B83A23, #B83A23) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(184, 58, 35, 0.3);
}
.btn-gaia-terracota:hover {
  background: linear-gradient(#9c2e1b, #9c2e1b) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 58, 35, 0.4);
}

.btn-gaia-terracota-outline {
  color: #B83A23;
}
.btn-gaia-terracota-outline:hover {
  background: linear-gradient(#B83A23, #B83A23) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gaia-sm {
  padding: 10px 24px;
  font-size: 0.95rem;
}

.btn-gaia-block {
  width: 100%;
  text-align: center;
}


.btn-gaia-salvar {
  border-radius: 14px;
  padding: 16px 36px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.3s ease;
  font-family: 'Syne', sans-serif;
  background: linear-gradient(#3A4D28, #3A4D28) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(58, 77, 40, 0.3);
}
.btn-gaia-salvar:hover {
  background: linear-gradient(#2c3a1e, #2c3a1e) padding-box,
              linear-gradient(135deg, #3A4D28, #B83A23) border-box;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 77, 40, 0.4);
}


.btn-gaia-close {
  background: #f1f1f1;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-gaia-close:hover {
  background: #e1e1e1;
  color: #000;
}


.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #3A4D28;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger span + span {
  margin-top: 6px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}


@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
  }
  .header-gaia.shrink .hamburger {
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
  }
  .header-gaia.shrink .hamburger span {
    background: #3A4D28;
  }

  .header-gaia {
    height: 130px;
    gap: 8px;
    padding: 10px 0;
  }
  .header-gaia.shrink {
    height: 60px;
    padding: 0 20px;
    gap: 6px;
    flex-direction: row;
  }
  .logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
  }
  .header-gaia.shrink .logo-container {
    position: static;
    width: 65px;
    height: 65px;
    transform: none;
  }

  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(247, 239, 224, 0.98);
    gap: 0;
    padding: 15px 0;
    border-top: 2px solid #3A4D28;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .nav-menu.open {
    display: flex;
  }
  .header-gaia.shrink .nav-menu {
    top: 100%;
    border-top: 2px solid #3A4D28;
  }
  .nav-item {
    width: 100%;
    text-align: center;
  }
  .nav-item a {
    display: block;
    padding: 14px 20px;
    font-size: 13px;
    letter-spacing: 1px;
  }
  .nav-item a::after {
    display: none;
  }

  
  .btn-gaia {
    padding: 14px 28px;
    font-size: 1rem;
  }
  .btn-gaia-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  .btn-gaia-block {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-gaia {
    height: 110px;
    gap: 5px;
    padding: 8px 0;
  }
  .header-gaia.shrink {
    height: 50px;
    padding: 0 12px;
  }
  .logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
  }
  .header-gaia.shrink .logo-container {
    position: static;
    width: 55px;
    height: 55px;
    transform: none;
  }
  .nav-item a {
    font-size: 12px;
    padding: 12px 16px;
  }
}


.footer-gaia {
  background: linear-gradient(180deg, #F7EFE0 0%, #f0e6d3 100%);
  border-top: 2px solid #3A4D28;
  padding: 24px 40px 18px;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-logo {
  width: 50px;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: block;
  filter: grayscale(20%);
}
.footer-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}
.footer-center {
  text-align: center;
  color: #3A4D28;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-center p {
  margin: 1px 0;
  font-weight: 400;
  font-family: 'Syne', sans-serif;
}
.footer-center a {
  color: #B83A23;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  position: relative;
}
.footer-center a:hover {
  color: #9c2e1b;
}
.footer-center a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #B83A23;
  transition: width 0.3s ease;
}
.footer-center a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-logo {
    display: none;
  }
  .footer-center {
    font-size: 0.75rem;
  }
  .footer-gaia {
    padding: 20px 20px 16px;
  }
}


.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.avatar-opcao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #fafafa;
  transition: all .18s ease;
  user-select: none;
}
.avatar-opcao:hover {
  background: #FAE9C6;
  transform: scale(1.06);
  border-color: #e0d0b0;
  box-shadow: 0 4px 12px rgba(58,77,40,.12);
}
.avatar-opcao.selecionado {
  border-color: #B83A23;
  background: linear-gradient(135deg, #FAE9C6 0%, #f5e2b4 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(184,58,35,.18);
}
.avatar-svg-wrap {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.avatar-svg-wrap svg {
  width: 100%;
  height: 100%;
}
.avatar-opcao .avatar-svg-wrap {
  width: 68px;
  height: 68px;
}
.avatar-opcao.selecionado .avatar-svg-wrap {
  box-shadow: 0 0 0 3px #B83A23, 0 0 16px rgba(184,58,35,.28);
}
.avatar-opcao span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a7860;
  text-transform: uppercase;
}

.page-header {
  text-align: center;
  padding: 50px 20px 40px;
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header h1 {
  color: #3A4D28;
  font-family: 'Fauna One', serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-header p {
  color: #333;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

.page-header p a {
  color: #B83A23;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}
.page-header p a:hover { color: #9c2e1b; }

@media (max-width: 768px) {
  .avatar-grid { grid-template-columns: repeat(3, 1fr); }
  .page-header { padding: 30px 15px 20px; }
  .page-header h1 { font-size: 2rem; }
  .page-header p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .avatar-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 1.6rem; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}