:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 11rem;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.font-editorial {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.contact-input {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  box-shadow: none;
}

.contact-input::placeholder {
  color: #64748b;
}

.contact-input:disabled {
  cursor: not-allowed;
  background: #f8fafc;
  opacity: 1;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #15803d;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 60;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #0f172a;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-link:hover {
  color: #fde68a;
}

.site-header :focus-visible {
  outline-color: #fde68a;
}

@media (max-width: 767px) {
  .site-header #menu {
    max-height: 60svh;
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 0.375rem;
    padding: 1rem;
    background: #14532d;
  }
}

.section-label {
  color: #166534;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.hero-cinematic {
  background-image: url("../fundo-hero.png");
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 13rem;
}

.hero-title {
  font-size: clamp(2rem, 5.2vw, 4.5rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.hero-cinematic :focus-visible {
  outline-color: #fde68a;
}

.entrance {
  animation: entrance 500ms ease-out both;
}

@keyframes entrance {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* No celular, cada slide mantém largura de desktop e pode ser explorado
   por rolagem interna, sem reduzir tabelas e gráficos a texto ilegível. */
@media (max-width: 767px) {
  .demo-frame {
    height: min(72svh, 620px);
    min-height: 430px;
    aspect-ratio: auto;
    border-width: 8px;
    border-radius: 1.25rem;
  }

  #demo-carousel-track > div {
    overflow-x: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #demo-carousel-track > div:not(.demo-login) > aside {
    display: none;
  }

  #demo-carousel-track > div:not(.demo-login) > main {
    flex: 0 0 820px;
  }

  #demo-carousel-track .demo-login {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
  }

  #demo-carousel-track .demo-login > div {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
