/**
 * Estilos globais — reset, tipografia base, layout shell,
 * botões, header, drawer mobile e footer (todas as páginas).
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.625;
  color: var(--color-neutral-600);
  background: var(--color-neutral-50);
  -webkit-font-smoothing: antialiased;
}

svg {
  display: block;
}

iconify-icon {
  display: inline-flex;
  flex-shrink: 0;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-green-800);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top 200ms;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Container ── */
.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
  transition:
    background 200ms ease,
    box-shadow 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-green-800);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-green-700);
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background: transparent;
  color: var(--color-green-800);
  border: 1.5px solid var(--color-green-800);
}

.btn-secondary:hover {
  background: var(--color-green-50);
}

.btn-secondary-white {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background 250ms ease,
    box-shadow 250ms ease;
  padding: 0;
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-neutral-200);
}

#site-header.at-top {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--site-header-height);
  gap: 24px;
  overflow: hidden;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-svg {
  height: 56px;
  width: auto;
  transition:
    opacity 200ms ease,
    filter 250ms ease;
  filter: none;
}

#site-header.at-top .header-logo-svg {
  filter: brightness(0) invert(1);
}

.header-logo:hover .header-logo-svg {
  opacity: 0.8;
}

.header-logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-neutral-950);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

#site-header.at-top .header-logo-name {
  color: var(--color-white);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition:
    color 150ms,
    background 150ms;
}

.nav-link:hover {
  color: var(--color-green-800);
  background: var(--color-green-50);
}

#site-header.at-top .header-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#site-header.at-top .header-nav .nav-link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-header {
  padding: 9px 18px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--color-neutral-800);
  flex-shrink: 0;
  transition:
    background 150ms,
    color 150ms;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: 2px;
}

#site-header.at-top .menu-toggle {
  color: var(--color-white);
}

#site-header.at-top .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle iconify-icon {
  transition:
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] iconify-icon {
  transform: rotate(90deg);
}

@media (max-width: 1280px) {
  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.mobile-drawer.open .drawer-overlay {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--color-white);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-neutral-100);
  flex-shrink: 0;
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.drawer-logo-mark {
  height: 48px;
  width: auto;
}

.drawer-logo-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-neutral-800);
  letter-spacing: -0.01em;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-neutral-100);
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--color-neutral-600);
  transition:
    background 150ms,
    color 150ms;
}

.drawer-close:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-950);
}

.drawer-close:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: 2px;
}

.drawer-body {
  flex: 1;
  padding: 12px 12px 0;
  overflow-y: auto;
}

.drawer-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-neutral-400);
  padding: 16px 8px 8px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-neutral-800);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition:
    background 150ms,
    color 150ms;
}

.drawer-link:hover {
  background: var(--color-green-50);
  color: var(--color-green-800);
}

.drawer-link:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: -2px;
}

.drawer-link[aria-current="page"] {
  background: var(--color-green-100);
  color: var(--color-green-800);
  font-weight: 600;
}

.drawer-link-arrow {
  color: var(--color-neutral-400);
  transition:
    color 150ms,
    transform 150ms;
}

.drawer-link:hover .drawer-link-arrow {
  color: var(--color-green-600);
  transform: translateX(2px);
}

.drawer-footer {
  padding: 16px 12px 20px;
  border-top: 1px solid var(--color-neutral-100);
  flex-shrink: 0;
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--color-green-800);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  transition:
    background 200ms ease,
    box-shadow 200ms ease;
}

.drawer-cta:hover {
  background: var(--color-green-700);
  box-shadow: var(--shadow-green);
}

.drawer-cta:focus-visible {
  outline: 2px solid var(--color-green-600);
  outline-offset: 2px;
}

.mobile-drawer.open .drawer-link {
  animation: drawer-item-in 300ms ease both;
}

.mobile-drawer.open .drawer-link:nth-child(1) {
  animation-delay: 60ms;
}

.mobile-drawer.open .drawer-link:nth-child(2) {
  animation-delay: 90ms;
}

.mobile-drawer.open .drawer-link:nth-child(3) {
  animation-delay: 120ms;
}

.mobile-drawer.open .drawer-link:nth-child(4) {
  animation-delay: 150ms;
}

.mobile-drawer.open .drawer-link:nth-child(5) {
  animation-delay: 180ms;
}

.mobile-drawer.open .drawer-link:nth-child(6) {
  animation-delay: 210ms;
}

@keyframes drawer-item-in {
  from {
    opacity: 0;
    transform: translateX(10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-panel,
  .drawer-overlay,
  .menu-toggle iconify-icon {
    transition: none;
  }

  .mobile-drawer.open .drawer-link {
    animation: none;
  }
}

/* ── FOOTER ── */
#site-footer {
  background: var(--color-green-900);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-svg {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 260px;
}

.footer-social {
  margin-top: 20px;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.footer-social-link:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--color-gold-500);
  outline-offset: 2px;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 150ms;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-links a[aria-current="page"] {
  color: var(--color-gold-400);
  font-weight: 600;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.footer-contact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-500);
}

.footer-contact-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 150ms;
}

a.footer-contact-value:hover {
  color: var(--color-white);
}

.footer-address {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  font-style: normal;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}
