/* Shared responsive overrides, loaded after all shared components. */

/* ---- Responsividade ---- */

@media (max-width: 960px), (pointer: coarse) and (orientation: portrait) and (max-width: 1200px) {
  main {
    gap: 96px;
    padding: 0 24px;
  }

  header {
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    min-height: 50px;
    margin: 12px 24px 0;
    padding: 8px 24px;
    border: 0;
    border-radius: 999px;
    transform: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .header-brand,
  .nav-right {
    min-height: 50px;
  }

  .header-brand {
    position: relative;
    z-index: 2;
  }

  .logo-mark {
    --logo-word-width: 115px;
    --logo-icon-width: 34.15px;
  }

  .nav-center {
    display: none;
  }

  .nav-right > div:first-child {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 3;
    display: flex;
    width: 40px;
    height: 40px;
  }

  .ham {
    width: 40px;
    height: 40px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: block;
    width: 100%;
    height: 100svh;
    overflow-y: auto;
    visibility: hidden;
    color: #131417;
    background: rgba(255, 255, 255, 0.84);
    border-radius: 28px 28px 0 0;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    transform: translateY(100%);
    transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1), border-radius 0.5s ease, visibility 0s linear 0.72s;
  }

  body[data-theme="dark"] .mobile-menu {
    color: var(--text-dark);
    background: rgba(12, 12, 13, 0.84);
  }

  body.menu-open .mobile-menu {
    visibility: visible;
    border-radius: 0;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .mobile-menu-links {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 112px 24px 48px;
  }

  .mobile-nav-link,
  .mobile-submenu a {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    color: inherit;
    text-decoration: none;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .mobile-nav-link {
    justify-content: space-between;
    min-height: 1.22em;
    padding: 0.08em 0;
    font-size: clamp(38px, 10vw, 60px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.055em;
  }

  .mobile-nav-link::before,
  .mobile-submenu a::before {
    content: none;
  }

  .mobile-nav-link::after {
    content: none;
  }

  .mobile-nav-link.is-current::after {
    opacity: 1;
  }

  .mobile-submenu-icon {
    position: relative;
    width: 22px;
    height: 22px;
    margin-left: 24px;
    flex: 0 0 auto;
  }

  .mobile-submenu-icon::before,
  .mobile-submenu-icon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease;
  }

  .mobile-submenu-icon::after {
    transform: rotate(90deg);
  }

  .mobile-submenu-toggle[aria-expanded="true"] .mobile-submenu-icon::after {
    transform: rotate(0deg);
  }

  .mobile-submenu {
    max-height: 0;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-submenu.is-open {
    max-height: 240px;
  }

  .mobile-submenu a {
    min-height: 42px;
    padding: 5px 0 5px 18px;
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .mobile-submenu a::after {
    content: none;
  }

  .mobile-nav-link:active,
  .mobile-submenu a:active {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-backdrop {
    display: none;
  }

  .mobile-menu-backdrop.is-visible {
    display: none;
  }

  .contact-form {
    width: 100%;
  }
}

@media (max-width: 600px) {
  main {
    gap: 72px;
    padding: 0 16px;
  }

  header {
    margin: 10px 16px 0;
    padding: 10px 16px;
  }

  .header-brand {
    gap: 10px;
  }

  .logo-mark {
    --logo-word-width: 120px;
    --logo-icon-width: 35.64px;
  }

  .light-switch {
    width: 28px;
    height: 28px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-right > div:first-child {
    display: none;
  }

  .menu-toggle,
  .ham {
    width: 40px;
    height: 40px;
  }

  .hero-section {
    min-height: 100svh;
  }

  .cards-section,
  .getintouch-section {
    min-height: 50svh;
    padding: 32px 0;
  }

  .getintouch-section {
    padding-bottom: 112px;
  }

  .contact-form {
    margin-top: 64px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-field {
    margin-bottom: 34px;
  }

  .contact-field textarea {
    min-height: 120px;
  }

  .site-footer {
    margin: 0;
    width: 100%;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.72);
  }

  body[data-theme="dark"] .site-footer {
    background: rgba(255, 255, 255, 0.015);
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding-bottom: 14px;
  }

  .footer-brand {
    order: -1;
  }

  .footer-logo {
    width: 180px;
  }

  .footer-socials {
    position: static;
    width: 100%;
    justify-content: center;
    gap: clamp(8px, 2.6vw, 13px);
    transform: none;
  }

  .footer-social {
    width: 22px;
    height: 22px;
  }

  .footer-meta {
    gap: 16px;
    padding-top: 24px;
    font-size: 11px;
  }

  .footer-legal {
    gap: 10px;
  }
}

@media (max-width: 800px) {
  .hero-liquid-content {
    row-gap: clamp(32px, 8vw, 64px);
  }

  .hero-liquid-content h1 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .hero-tags {
    font-size: clamp(32px, 9vw, 40px);
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .logo-mark {
    --logo-word-width: 103px;
    --logo-icon-width: 30.59px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-mark {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .tracking-cursor {
    display: none !important;
  }

  .site-preloader-piece {
    stroke-dashoffset: 0;
    fill-opacity: 1;
    stroke-opacity: 0;
  }
}
