/* ==========================================================
   MV MANANCIAL VICTORY
   RESPONSIVE.CSS
========================================================== */

/* ==========================================================
   ATÉ 1180px — NOTEBOOKS / DESKTOP MENOR
========================================================== */

@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - 36px), 1120px);
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 0.74rem;
  }

  .button--header {
    padding-inline: 18px;
  }

  .hero__content {
    width: min(calc(100% - 36px), 1120px);
  }

  .hero__copy {
    width: 56%;
    max-width: 600px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    gap: 50px;
  }
}

/* ==========================================================
   ATÉ 980px — TABLETS / NOTEBOOK PEQUENO
========================================================== */

@media (max-width: 980px) {
  html {
    scroll-padding-top: 76px;
  }

  .header {
    height: 74px;
  }

  .header__content {
    gap: 14px;
  }

  .nav {
    display: none;
  }

  .button--header {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .mobile-menu {
    top: 74px;
  }

  /* HERO */

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .hero__bg {
    object-position: 68% center;
  }

  .hero__shade {
    background: linear-gradient(
      90deg,
      #f5f1eb 0%,
      rgba(245, 241, 235, 0.98) 30%,
      rgba(245, 241, 235, 0.88) 50%,
      rgba(245, 241, 235, 0.34) 72%,
      transparent 100%
    );
  }

  .hero__content {
    width: min(calc(100% - 32px), 900px);
    min-height: 620px;
  }

  .hero__copy {
    width: 64%;
    max-width: 570px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 5.8vw, 4.1rem);
  }

  .hero__benefits {
    max-width: 520px;
  }

  /* FAIXA DE DESTAQUES */

  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  /* SEÇÕES */

  .section {
    padding: 84px 0;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    min-height: 430px;
  }

  /* ANTES E DEPOIS */

  .before-after {
    gap: 18px;
  }

  .before-after__card {
    min-height: 360px;
  }

  /* SOBRE */

  .about {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about__content {
    max-width: 720px;
  }

  .about__image {
    height: 500px;
  }

  /* PORTFÓLIO */

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FOOTER */

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ==========================================================
   ATÉ 768px — TABLET VERTICAL / CELULAR GRANDE
========================================================== */

@media (max-width: 768px) {
  .container {
    width: min(calc(100% - 28px), 720px);
  }

  /* HEADER */

  .brand__mark {
    width: 44px;
    height: 44px;
  }

  .brand__text strong {
    font-size: 0.82rem;
  }

  .brand__text span {
    font-size: 0.58rem;
  }

  /* HERO */

  .hero {
    padding-top: 74px;
    background: #f5f1eb;
  }

  .hero__bg {
    object-position: 70% center;
  }

  .hero__shade {
    background: linear-gradient(
      90deg,
      rgba(245, 241, 235, 1) 0%,
      rgba(245, 241, 235, 0.99) 36%,
      rgba(245, 241, 235, 0.92) 58%,
      rgba(245, 241, 235, 0.55) 78%,
      rgba(245, 241, 235, 0.25) 100%
    );
  }

  .hero__content {
    width: min(calc(100% - 28px), 720px);
    min-height: 610px;
  }

  .hero__copy {
    width: 76%;
    max-width: 520px;
  }

  .hero .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero .eyebrow::before {
    width: 32px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 8vw, 3.6rem);
    line-height: 1;
  }

  .hero h1 small {
    font-size: 0.58em;
  }

  .hero__copy > p {
    max-width: 470px;
    font-size: 0.94rem;
  }

  .hero__actions {
    flex-wrap: wrap;
  }

  .hero__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 500px;
    gap: 14px 22px;
  }

  /* SERVIÇOS */

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* ANTES E DEPOIS */

  .before-after {
    grid-template-columns: 1fr;
  }

  .before-after__card {
    min-height: 400px;
  }

  /* SOBRE */

  .about__features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */

  .final-cta {
    min-height: 430px;
    padding: 70px 0;
  }
}

/* ==========================================================
   ATÉ 600px — CELULARES
========================================================== */

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 24px), 560px);
  }

  /* HEADER */

  .header {
    height: 70px;
  }

  .mobile-menu {
    top: 70px;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
  }

  .brand__text strong {
    max-width: 210px;
    font-size: 0.72rem;
  }

  .brand__text span {
    margin-top: 3px;
    font-size: 0.52rem;
    letter-spacing: 0.09em;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  /* HERO */

  .hero {
    padding-top: 70px;
    min-height: auto;
  }

  .hero__bg {
    position: absolute;
    object-position: 69% center;
    opacity: 0.34;
  }

  .hero__shade {
    background: linear-gradient(
      90deg,
      rgba(245, 241, 235, 0.99) 0%,
      rgba(245, 241, 235, 0.97) 55%,
      rgba(245, 241, 235, 0.8) 100%
    );
  }

  .hero__content {
    width: min(calc(100% - 24px), 560px);
    min-height: auto;
    padding: 56px 0 54px;
  }

  .hero__copy {
    width: 100%;
    max-width: 100%;
  }

  .hero .eyebrow {
    margin-bottom: 16px;
    font-size: 0.65rem;
  }

  .hero .eyebrow::before {
    width: 26px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    letter-spacing: -0.045em;
  }

  .hero h1 small {
    margin-top: 9px;
    font-size: 0.55em;
  }

  .hero__copy > p {
    max-width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  /* BOTÕES HERO */

  .hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .hero__actions .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.75rem;
  }

  /* BENEFÍCIOS HERO */

  .hero__benefits {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
  }

  .hero-benefit {
    gap: 10px;
  }

  .hero-benefit strong {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .hero-benefit span {
    font-size: 0.68rem;
  }

  /* FAIXA DE DESTAQUES */

  .trust-strip__grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item {
    min-height: 95px;
    padding: 18px 12px;
  }

  .trust-item strong {
    font-size: 0.93rem;
  }

  .trust-item span {
    font-size: 0.66rem;
  }

  /* SEÇÕES */

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2,
  .about h2,
  .final-cta h2 {
    font-size: clamp(1.95rem, 9.5vw, 2.8rem);
    line-height: 1.05;
  }

  .section-heading p {
    margin-top: 15px;
    font-size: 0.9rem;
  }

  /* SOLUÇÕES */

  .image-card {
    min-height: 370px;
  }

  .image-card__content {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .image-card__content h3 {
    font-size: 1.35rem;
  }

  /* ANTES E DEPOIS */

  .before-after__card {
    min-height: 320px;
  }

  /* SERVIÇOS */

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-card__number {
    margin-bottom: 22px;
  }

  .service-card h3 {
    font-size: 1.08rem;
  }

  /* SOBRE */

  .about {
    gap: 34px;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .about__image {
    height: 390px;
  }

  /* PORTFÓLIO */

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* CTA FINAL */

  .final-cta {
    min-height: 400px;
    padding: 60px 0;
  }

  .final-cta p {
    font-size: 0.92rem;
  }

  .final-cta .button {
    width: 100%;
    max-width: 360px;
  }

  /* FOOTER */

  .footer {
    padding-top: 50px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__grid > div:first-child {
    grid-column: auto;
  }

  .brand--footer {
    width: auto;
  }

  .footer__bottom {
    margin-top: 38px;
  }

  /* WHATSAPP */

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
  }

  /* MODAL */

  .modal {
    padding: 18px;
  }

  .modal__close {
    top: 12px;
    right: 15px;
  }
}

/* ==========================================================
   ATÉ 380px — CELULARES PEQUENOS
========================================================== */

@media (max-width: 380px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand__text strong {
    max-width: 175px;
    font-size: 0.66rem;
  }

  .brand__text span {
    font-size: 0.48rem;
  }

  .hero__content {
    width: calc(100% - 20px);
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 2.15rem;
  }

  .hero__copy > p {
    font-size: 0.86rem;
  }

  .trust-item {
    padding-inline: 8px;
  }

  .trust-item strong {
    font-size: 0.82rem;
  }

  .trust-item span {
    font-size: 0.6rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   PREFERÊNCIA POR MENOS ANIMAÇÃO
========================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal--scale,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   HERO MOBILE - MESMO VISUAL DO DESKTOP
========================================================== */

@media (max-width: 600px) {
  .hero {
    position: relative;
    min-height: 760px;
    padding-top: 70px;

    display: flex;
    align-items: center;

    background: #f5f1eb;
    overflow: hidden;
  }

  /* FOTO CONTINUA VISÍVEL */

  .hero__bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /* joga os móveis mais para a direita */
    object-position: 67% center;

    opacity: 1;

    z-index: 0;
  }

  /* MESMO EFEITO DO DESKTOP,
     MAS ADAPTADO PARA TELA ESTREITA */

  .hero__shade {
    position: absolute;
    inset: 0;

    z-index: 1;

    background: linear-gradient(
      90deg,
      rgba(245, 241, 235, 1) 0%,
      rgba(245, 241, 235, 0.98) 38%,
      rgba(245, 241, 235, 0.88) 58%,
      rgba(245, 241, 235, 0.48) 78%,
      rgba(245, 241, 235, 0.12) 100%
    );
  }

  /* CONTEÚDO */

  .hero__content {
    position: relative;
    z-index: 2;

    width: calc(100% - 32px);
    min-height: 690px;

    margin: 0 auto;
    padding: 45px 0;

    display: flex;
    align-items: center;
  }

  .hero__copy {
    width: 100%;
    max-width: 390px;
  }

  /* PEQUENO TÍTULO */

  .hero .eyebrow {
    margin-bottom: 17px;

    font-size: 0.62rem;
    letter-spacing: 0.13em;
  }

  .hero .eyebrow::before {
    width: 28px;
  }

  /* TÍTULO */

  .hero h1 {
    max-width: 350px;

    font-size: clamp(2.35rem, 11vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .hero h1 span {
    display: block;
    color: var(--brand-red);
  }

  .hero h1 small {
    display: block;

    margin-top: 9px;

    font-size: 0.52em;
    line-height: 1.1;
  }

  /* DESCRIÇÃO */

  .hero__copy > p {
    max-width: 335px;

    margin-top: 20px;

    font-size: 0.82rem;
    line-height: 1.55;

    color: #3e3e3e;
  }

  /* BOTÕES */

  .hero__actions {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 9px;

    margin-top: 23px;
  }

  .hero__actions .button {
    width: 100%;
    max-width: 340px;

    min-height: 48px;

    font-size: 0.68rem;
  }

  /* BENEFÍCIOS - 2 POR LINHA */

  .hero__benefits {
    width: 100%;
    max-width: 350px;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 15px 12px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .hero-benefit {
    display: flex;
    align-items: center;

    gap: 8px;
  }

  .hero-benefit strong {
    width: 27px;
    height: 27px;
    min-width: 27px;

    font-size: 0.7rem;
  }

  .hero-benefit span {
    font-size: 0.55rem;
    line-height: 1.25;
  }
}
