/* ==========================================================
   SJ LAVAGEM A SECO
   RESPONSIVIDADE
========================================================== */

/* ==========================================================
   ATÉ 1100PX
========================================================== */
@media (max-width: 1100px) {
  :root {
    --header-height: 78px;
  }

  .mv-header__nav {
    gap: 16px;
  }

  .mv-header__nav a {
    font-size: 0.82rem;
  }

  .mv-header__brand-text span {
    display: none;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-grid .image-card:last-child {
    grid-column: span 2;
    min-height: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about {
    gap: 44px;
  }
}

/* ==========================================================
   ATÉ 900PX
========================================================== */
@media (max-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .mv-header__nav,
  .mv-header__actions {
    display: none;
  }

  .mv-header__menu-btn {
    display: block;
  }

  .mv-mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(7, 11, 13, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .mv-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mv-mobile-menu > a:not(.mv-mobile-menu__whatsapp) {
    padding: 13px 4px;
    color: #dfe8ea;
    font-size: 0.92rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  }

  .mv-mobile-menu__whatsapp {
    min-height: 48px;
    margin-top: 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #04110f;
    font-size: 0.9rem;
    font-weight: 900;
  }

  .hero {
    min-height: 820px;
  }

  .hero__shade {
    background:
      linear-gradient(
        90deg,
        rgba(3, 8, 10, 0.94) 0%,
        rgba(3, 8, 10, 0.78) 56%,
        rgba(3, 8, 10, 0.45) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #071012 100%);
  }

  .hero__copy {
    max-width: 650px;
  }

  .hero__copy h1 {
    font-size: clamp(3.2rem, 10vw, 5.6rem);
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__image {
    min-height: 470px;
  }

  .about__image img {
    min-height: 470px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer__column:last-child {
    grid-column: span 2;
  }
}

/* ==========================================================
   ATÉ 700PX
========================================================== */
@media (max-width: 700px) {
  .container,
  .mv-header__container,
  .footer__grid,
  .footer__bottom {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 74px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero__bg {
    object-position: 60% center;
  }

  .hero__shade {
    background: linear-gradient(
      180deg,
      rgba(3, 8, 10, 0.2) 0%,
      rgba(3, 8, 10, 0.68) 34%,
      rgba(3, 8, 10, 0.97) 78%,
      #071012 100%
    );
  }

  .hero__content {
    padding-top: 150px;
    padding-bottom: 54px;
  }

  .hero__copy h1 {
    margin-top: 13px;
    font-size: clamp(2.85rem, 14vw, 4.4rem);
  }

  .hero__copy h1 small {
    font-size: 0.43em;
  }

  .hero__copy > p {
    font-size: 0.98rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-benefit {
    justify-content: center;
    min-height: 42px;
    padding-inline: 10px;
    text-align: center;
    font-size: 0.73rem;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid .image-card:last-child {
    grid-column: auto;
  }

  .image-card,
  .solution-grid .image-card:last-child {
    min-height: 390px;
  }

  .before-after {
    gap: 10px;
  }

  .before-after__label {
    top: 10px;
    left: 10px;
    min-width: 64px;
    padding: 7px 10px;
    font-size: 0.66rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card__number {
    margin-bottom: 22px;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .about__image,
  .about__image img {
    min-height: 420px;
  }

  .portfolio-grid {
    gap: 10px;
  }

  .final-cta {
    padding: 84px 0;
  }

  .final-cta__content h2 {
    font-size: clamp(2.2rem, 11vw, 3.45rem);
  }

  .footer {
    padding-top: 54px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__column:last-child {
    grid-column: auto;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 36px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .modal {
    padding: 18px;
  }

  .modal__close {
    top: 14px;
    right: 14px;
  }
}

/* ==========================================================
   ATÉ 520PX
========================================================== */
@media (max-width: 520px) {
  :root {
    --header-height: 72px;
  }

  .mv-header__logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .mv-header__brand-text strong {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero__copy h1 {
    font-size: clamp(2.65rem, 14vw, 3.8rem);
  }

  .hero__benefits {
    grid-template-columns: 1fr;
  }

  .hero-benefit {
    justify-content: flex-start;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after__card {
    aspect-ratio: 4 / 3;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================
   TELAS PEQUENAS
========================================================== */
@media (max-width: 380px) {
  .mv-header__brand-text strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero__copy h1 {
    font-size: 2.45rem;
  }

  .button {
    padding-inline: 18px;
  }
}

/* ==========================================================
   INSTAGRAM MOBILE
========================================================== */

.mv-mobile-menu__instagram {
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 8px;

  border-radius: 999px;

  background: rgba(7, 11, 13, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: #d8e1e4;

  font-size: 0.84rem;
  font-weight: 800;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.mv-mobile-menu__instagram:hover {
  background: rgba(7, 11, 13, 1);

  border-color: rgba(25, 199, 181, 0.4);

  color: var(--primary);
}
