/* ==========================================================
   EXTIMOTA EXTINTORES
   RESPONSIVE.CSS

   IMPORTANTE:
   Este arquivo deve ser carregado DEPOIS do styles.css
========================================================== */

/* ==========================================================
   01. AJUSTES GERAIS
========================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 40px, var(--container));
}

.ext-hero__content,
.ext-hero__visual,
.image-card,
.service-card,
.about__content,
.about__image,
.portfolio-item,
.footer__column {
  min-width: 0;
}

/* ==========================================================
   02. NOTEBOOK / TELAS MENORES
   até 1150px
========================================================== */

@media (max-width: 1150px) {
  /* HEADER */

  .mv-header__container {
    gap: 18px;
  }

  .mv-header__nav {
    gap: 20px;
  }

  .mv-header__nav a {
    font-size: 0.8rem;
  }

  .mv-header__whatsapp {
    padding: 0 15px;
  }

  /* HERO */

  .ext-hero__container {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(350px, 0.85fr);

    gap: 45px;
  }

  .ext-hero h1 {
    font-size: clamp(2.8rem, 4.6vw, 3.8rem);
  }

  /* SERVIÇOS */

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* FOOTER */

  .footer__grid {
    gap: 35px;
  }
}

/* ==========================================================
   03. TABLET / MENU MOBILE
   até 992px
========================================================== */

@media (max-width: 992px) {
  /* ======================================================
     ESTRUTURA GERAL
  ====================================================== */

  .section {
    padding: 85px 0;
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  /* ======================================================
     HEADER
  ====================================================== */

  .mv-header {
    height: 74px;
  }

  .mv-header.is-scrolled,
  .mv-header.scrolled {
    height: 70px;
  }

  .mv-header__nav,
  .mv-header__actions {
    display: none;
  }

  .mv-header__menu-btn {
    display: block;
    flex-shrink: 0;
  }

  .mv-header__logo {
    width: 46px;
    height: 46px;
  }

  .mv-header__brand-text strong {
    font-size: 0.86rem;
  }

  .mv-header__brand-text span {
    font-size: 0.67rem;
  }

  /* MENU ABERTO */

  .mv-mobile-menu {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  /* ======================================================
     HERO
  ====================================================== */

  .ext-hero {
    min-height: auto;

    padding: 125px 0 75px;
  }

  .ext-hero__container {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .ext-hero__content {
    max-width: 760px;
  }

  .ext-hero h1 {
    max-width: 720px;

    font-size: clamp(2.8rem, 7vw, 4.2rem);
  }

  .ext-hero__description {
    max-width: 680px;
  }

  .ext-hero__visual {
    width: 100%;
    max-width: 720px;

    margin: 0 auto;
  }

  .ext-hero__image {
    width: 100%;

    aspect-ratio: 16 / 10;
  }

  /* FAIXA VERMELHA */

  .ext-highlight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px 10px;
  }

  .ext-highlight__item:nth-child(2)::after {
    display: none;
  }

  /* ======================================================
     SOLUÇÕES
  ====================================================== */

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-card {
    min-height: 420px;
  }

  .solution-grid .image-card:last-child {
    grid-column: 1 / -1;
  }

  /* ======================================================
     SERVIÇOS
  ====================================================== */

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ======================================================
     SOBRE
  ====================================================== */

  .about {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .about__content {
    max-width: 760px;
  }

  .about__image {
    width: 100%;

    min-height: 500px;
  }

  .about__image img {
    min-height: 500px;
  }

  /* ======================================================
     PORTFÓLIO
  ====================================================== */

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ======================================================
     ATENDIMENTO
  ====================================================== */

  #atendimento .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* ======================================================
     CTA FINAL
  ====================================================== */

  .final-cta {
    padding: 90px 0;
  }

  .final-cta h2 {
    font-size: clamp(2.4rem, 7vw, 4rem);
  }

  /* ======================================================
     FOOTER
  ====================================================== */

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 45px;
  }

  .footer__description {
    max-width: 420px;
  }
}

/* ==========================================================
   04. TABLET PEQUENO
   até 768px
========================================================== */

@media (max-width: 768px) {
  /* ======================================================
     GERAL
  ====================================================== */

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section-heading p {
    font-size: 0.95rem;
  }

  /* ======================================================
     HERO
  ====================================================== */

  .ext-hero {
    padding: 110px 0 60px;
  }

  .ext-hero__container {
    gap: 45px;
  }

  .ext-hero h1 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);

    line-height: 1.03;
  }

  .ext-hero__description {
    font-size: 1rem;

    line-height: 1.65;
  }

  .ext-hero__actions {
    margin-top: 28px;
  }

  .ext-hero__trust {
    gap: 12px 18px;
  }

  .ext-hero__image {
    aspect-ratio: 4 / 3;
  }

  .ext-hero__badge {
    min-width: 260px;

    right: 15px;
    bottom: 15px;

    padding: 15px;
  }

  /* ======================================================
     SOLUÇÕES
  ====================================================== */

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .solution-grid .image-card:last-child {
    grid-column: auto;
  }

  .image-card {
    min-height: 390px;
  }

  /* ======================================================
     SOBRE
  ====================================================== */

  .about__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__image,
  .about__image img {
    min-height: 440px;
  }

  /* ======================================================
     CTA
  ====================================================== */

  .final-cta {
    padding: 80px 0;
  }

  .final-cta::before {
    width: 450px;
    height: 450px;
  }

  /* ======================================================
     RODAPÉ
  ====================================================== */

  .footer {
    padding-top: 60px;
  }

  .footer__bottom {
    flex-direction: column;

    align-items: flex-start;

    margin-top: 45px;
  }

  /* ======================================================
     WHATSAPP
  ====================================================== */

  .whatsapp-float {
    right: 18px;
    bottom: 18px;

    width: 54px;
    height: 54px;
  }
}

/* ==========================================================
   05. CELULAR
   até 600px
========================================================== */

@media (max-width: 600px) {
  /* ======================================================
     GERAL
  ====================================================== */

  .container {
    width: calc(100% - 28px);
  }

  .section {
    padding: 62px 0;
  }

  /* ======================================================
     HEADER
  ====================================================== */

  .mv-header__container {
    width: calc(100% - 28px);
  }

  .mv-header__logo {
    width: 43px;
    height: 43px;

    border-radius: 8px;
  }

  .mv-header__brand {
    gap: 9px;
  }

  .mv-header__brand-text strong {
    font-size: 0.78rem;
  }

  .mv-header__brand-text span {
    font-size: 0.62rem;
  }

  /* ======================================================
     HERO
  ====================================================== */

  .ext-hero {
    padding: 100px 0 48px;
  }

  .ext-hero__eyebrow {
    font-size: 0.68rem;

    margin-bottom: 15px;
  }

  .ext-hero__eyebrow::before {
    width: 24px;
  }

  .ext-hero h1 {
    max-width: 100%;

    font-size: clamp(2.2rem, 11vw, 3rem);

    line-height: 1.04;

    letter-spacing: -0.045em;
  }

  .ext-hero__description {
    margin-top: 20px;

    font-size: 0.93rem;

    line-height: 1.65;
  }

  /* BOTÕES */

  .ext-hero__actions {
    flex-direction: column;

    width: 100%;

    gap: 10px;
  }

  .ext-btn {
    width: 100%;

    min-height: 52px;

    padding: 0 18px;
  }

  /* DIFERENCIAIS */

  .ext-hero__trust {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    margin-top: 23px;
  }

  .ext-trust-item {
    font-size: 0.78rem;
  }

  .ext-hero__note {
    line-height: 1.5;
  }

  /* FOTO */

  .ext-hero__visual {
    width: 100%;
  }

  .ext-hero__image-wrapper::before {
    top: -7px;
    right: -7px;

    border-radius: 18px;
  }

  .ext-hero__image {
    aspect-ratio: 4 / 4.1;

    border-radius: 18px;
  }

  /* BADGE */

  .ext-hero__badge {
    position: relative;

    right: auto;
    bottom: auto;

    width: calc(100% - 24px);
    min-width: 0;

    margin: -32px auto 0;

    z-index: 3;

    padding: 14px;
  }

  .ext-hero__badge-icon {
    width: 42px;
    height: 42px;

    font-size: 1.25rem;
  }

  .ext-hero__badge strong {
    font-size: 0.88rem;
  }

  .ext-hero__badge span {
    font-size: 0.68rem;
  }

  /* ======================================================
     FAIXA ABAIXO DA HERO
  ====================================================== */

  .ext-highlight {
    padding: 22px 0;
  }

  .ext-highlight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px 6px;
  }

  .ext-highlight__item::after {
    display: none;
  }

  .ext-highlight__item strong {
    font-size: 0.86rem;
  }

  .ext-highlight__item span {
    font-size: 0.7rem;
  }

  /* ======================================================
     SOLUÇÕES
  ====================================================== */

  .image-card {
    min-height: 370px;

    border-radius: 15px;
  }

  .image-card__content {
    padding: 23px;
  }

  .image-card__content h3 {
    font-size: 1.3rem;
  }

  .image-card__content p {
    font-size: 0.86rem;
  }

  /* ======================================================
     SERVIÇOS
  ====================================================== */

  .services-grid {
    grid-template-columns: 1fr;

    gap: 13px;
  }

  .service-card {
    min-height: auto;

    padding: 23px;
  }

  .service-card__number {
    margin-bottom: 24px;

    font-size: 1.6rem;
  }

  /* ======================================================
     SOBRE
  ====================================================== */

  .about {
    gap: 38px;
  }

  .about__content h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .about__content > p {
    font-size: 0.92rem;
  }

  .about__features {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .about__features > div {
    padding: 15px;
  }

  .about__image,
  .about__image img {
    min-height: 380px;
  }

  .about__image {
    border-radius: 18px;
  }

  /* ======================================================
     PORTFÓLIO
  ====================================================== */

  .portfolio-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .portfolio-item {
    aspect-ratio: 4 / 3;

    border-radius: 12px;
  }

  /* ======================================================
     ATENDIMENTO
  ====================================================== */

  #atendimento .services-grid {
    grid-template-columns: 1fr;
  }

  #atendimento .service-card {
    min-height: auto;
  }

  /* ======================================================
     CTA FINAL
  ====================================================== */

  .final-cta {
    padding: 70px 0;
  }

  .final-cta h2 {
    font-size: clamp(2.2rem, 10vw, 3rem);

    line-height: 1.05;
  }

  .final-cta p {
    font-size: 0.92rem;
  }

  .final-cta .button {
    width: 100%;
  }

  /* ======================================================
     FOOTER
  ====================================================== */

  .footer {
    padding-top: 52px;
  }

  .footer__grid {
    width: calc(100% - 28px);

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .footer__description {
    max-width: 100%;
  }

  .footer__bottom {
    width: calc(100% - 28px);

    margin-top: 40px;

    padding-bottom: 90px;
  }

  /* ======================================================
     MODAL
  ====================================================== */

  .modal {
    padding: 15px;
  }

  .modal__close {
    top: 15px;
    right: 15px;

    width: 42px;
    height: 42px;
  }

  /* ======================================================
     WHATSAPP FIXO
  ====================================================== */

  .whatsapp-float {
    right: 15px;
    bottom: 15px;

    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================
   06. CELULARES PEQUENOS
   até 400px
========================================================== */

@media (max-width: 400px) {
  .container {
    width: calc(100% - 24px);
  }

  .mv-header__container {
    width: calc(100% - 24px);
  }

  .mv-header__brand-text strong {
    font-size: 0.7rem;
  }

  .mv-header__brand-text span {
    font-size: 0.58rem;
  }

  .ext-hero h1 {
    font-size: 2.05rem;
  }

  .ext-highlight__grid {
    grid-template-columns: 1fr;
  }

  .ext-highlight__item {
    padding: 5px 0;
  }

  .ext-hero__badge {
    width: calc(100% - 16px);
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .about__image,
  .about__image img {
    min-height: 340px;
  }
}
