/* Ajustes de tela, hover e reducao de movimento. Carregar por ultimo. */

@media (hover: hover) {
  .btn-primary:hover,
  .btn-whatsapp:hover,
  .store-btn:hover,
  .scroll-top:hover {
    transform: translateY(-2px);
  }

  .btn-outline:hover,
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--orange);
    color: var(--orange);
  }

  .btn-ghost:hover {
    color: var(--white);
    background: var(--orange);
  }

  .js .tool-card.is-visible:hover,
  .js .contact-card.is-visible:hover,
  .js .diff-item.is-visible:hover,
  .js .stat-item.is-visible:hover,
  .tool-card:hover,
  .contact-card:hover,
  .diff-item:hover,
  .stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 130, 28, 0.35);
  }

  .socials a:hover {
    background: var(--orange);
    color: #1c130c;
    transform: translateY(-3px);
  }

  .footer-nav a:hover,
  .footer-contact a:hover,
  .footer-policies a:hover,
  .brand-row a:hover {
    color: var(--orange-deep);
  }
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions .btn,
  .actions .store-btn {
    width: auto;
  }

  .actions-center {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.7fr 1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-bottom .brand-row {
    grid-column: 1 / -1;
  }

  .brand-row {
    justify-content: flex-end;
  }
}

@media (min-width: 981px) {
  :root {
    --nav-h: 78px;
  }

  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 1.15rem;
    background: transparent;
    transform: none;
    visibility: visible;
  }

  .nav-menu a {
    min-height: 0;
    padding: 0.35rem 0;
    border-bottom: 0;
    font-size: 0.95rem;
    position: relative;
  }

  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  .nav-menu a:not(.btn):hover::after,
  .nav-menu a:not(.btn).active::after {
    transform: scaleX(1);
  }

  .nav-menu {
    margin-left: auto;
  }

  .nav-cta-item {
    margin-top: 0;
    margin-left: 0.35rem;
  }

  .nav-menu .nav-cta-item a {
    min-height: 42px;
    padding: 0 1.15rem;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
  }

  .hero {
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 3.5rem;
  }

  .hero-layout,
  .solutions-layout,
  .download-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
  }

  .about-layout,
  .diff-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }

  .diff-layout {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .diff-layout > .reveal {
    order: 0;
  }

  .nav-cta-item a {
    width: auto;
  }

  .section-header .lead {
    margin-inline: auto;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .visual-stage {
    width: min(100%, 460px);
    min-height: 340px;
    max-height: 420px;
    margin-inline: auto;
    justify-self: end;
  }

  .media-frame {
    min-height: 0;
    max-height: 460px;
  }

  .visual-stage img {
    max-height: 300px;
  }
}

@media (min-width: 640px) and (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: clip;
  }

  .container {
    width: min(1120px, calc(100% - 2.5rem));
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: var(--nav-h) 0 2rem;
  }

  .hero-layout {
    width: 100%;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: min(100%, 26rem);
    margin-inline: auto;
  }

  .hero .eyebrow {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.45rem);
    max-width: 10.5em;
  }

  .hero .lead {
    max-width: 22rem;
    font-size: 1.08rem;
  }

  .hero .actions {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header,
  .solutions-copy,
  .download .reveal,
  .diff-layout > .reveal,
  .about-layout > .reveal {
    text-align: left;
  }

  .section-header {
    max-width: none;
    margin: 0 0 1.35rem;
  }

  .section-header .lead,
  .solutions-copy .lead,
  .about-layout .lead,
  .diff-layout .lead,
  .download .lead {
    margin-inline: 0;
    max-width: none;
  }

  .section-title {
    font-size: clamp(1.9rem, 8.2vw, 2.4rem);
  }

  .actions,
  .tool-card,
  .contact-card,
  .stat-item,
  .diff-item,
  .store-btn {
    width: 100%;
  }

  .checklist li {
    align-items: flex-start;
  }

  .checklist li span {
    min-width: 0;
  }

  .tools-grid,
  .contact-grid,
  .stats,
  .diff-list {
    gap: 0.85rem;
  }

  .footer-grid,
  .footer-bottom {
    justify-items: start;
    width: 100%;
  }

  .footer-legal,
  .footer-policies,
  .brand-row {
    width: 100%;
  }

  .hero-visual,
  .media-frame,
  .footer-logo img,
  .brand-row img {
    display: none;
  }

  .nav-logo img {
    width: 72px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .nav-logo span {
    font-size: 0.98rem;
  }

  .hero h1 {
    max-width: none;
  }

  .scroll-top {
    width: 50px;
    height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
