/* Mobile nav and responsive tweaks */
html {
  scroll-behavior: smooth;
}

img,
iframe {
  max-width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-accent, #c5a059);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.is-open {
    display: flex !important;
  }

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  nav.site-nav {
    flex-wrap: wrap;
    align-items: center;
  }

  nav.site-nav > .nav-brand,
  nav.site-nav > .nav-order {
    z-index: 2;
  }
}

@media (max-width: 380px) {
  .font-display.text-5xl,
  h1.font-display {
    font-size: 2.5rem !important;
  }
}

/* Footer — redes sociais */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social__link:hover {
  color: var(--color-background, #0a0a0a);
  background: var(--color-accent, #c5a059);
  border-color: var(--color-accent, #c5a059);
  transform: translateY(-2px);
}

.footer-social__link.is-placeholder {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.footer-social__icon {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
  flex-shrink: 0;
}
