/* =========================================================
   ARTES VISUAIS — Responsivo
   Apple-inspired breakpoints
   ========================================================= */

/* =========== 0. Hero Perfil — Mobile =========== */
@media (max-width: 540px) {
  .hero-profile {
    padding-top: 60px;
    padding-bottom: var(--space-5);
    min-height: 100svh;
    align-items: center;
    padding-inline: 0.75rem;
  }

  .hero-profile__card {
    padding: 2.25rem 1.5rem 1.75rem;
    border-radius: 24px;
    gap: 1.5rem;
    max-width: 100%;
  }

  .hero-profile__avatar {
    width: 96px;
    height: 96px;
  }

  .hero-profile__name {
    font-size: clamp(1.5rem, 1.1rem + 2.5vw, 2rem);
  }

  .hero-profile__bio {
    font-size: 0.88rem;
  }

  .profile-link {
    padding: 0.85em 1em;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .profile-badge {
    font-size: 0.72rem;
    padding: 0.32em 0.8em;
  }
}

/* =========== 1. Hero Perfil — Tablet+ =========== */
@media (min-width: 541px) {
  .hero-profile__card {
    padding: 3rem 2.75rem 2.5rem;
  }

  .hero-profile__avatar {
    width: 120px;
    height: 120px;
  }
}

/* =========== 2. Grid Responsivo =========== */
.catalog-category-section__grid,
.product-grid {
  display: grid;
  /* Mobile: 1 coluna */
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 440px) {
  .catalog-category-section__grid,
  .product-grid {
    /* Mobile large: 2 colunas */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 768px) {
  .catalog-category-section__grid,
  .product-grid {
    /* Tablet: 3 colunas */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (min-width: 1200px) {
  .catalog-category-section__grid,
  .product-grid {
    /* Desktop: 4 colunas */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* =========== 3. Cards em mobile — proportion A4, sem altura fixa =========== */
@media (max-width: 639px) {
  .product-card__body {
    padding: 0.65rem 0.75rem 0.75rem;
    gap: 0.2rem;
  }

  .product-card__category {
    font-size: 0.65rem;
  }

  .product-card__name {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .product-card__items li {
    font-size: 0.68rem;
  }

  .product-card__sku {
    font-size: 0.67rem;
  }

  .product-card__actions {
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .btn-primary-quote {
    padding: 0.45em 0.6em;
    font-size: 0.74rem;
    width: 100%;
    text-align: center;
  }

  .btn-link-details {
    font-size: 0.7rem;
    padding: 0.2em 0;
    text-align: center;
  }
}

/* =========== 4. Header Mobile =========== */
@media (max-width: 899px) {
  .site-header__inner {
    height: 60px;
    padding: 0 20px;
    gap: 12px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    border-radius: 9px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .nav-desktop { display: none; }

  .quote-toggle {
    width: 40px;
    height: 40px;
  }
  .quote-toggle svg {
    width: 19px;
    height: 19px;
  }

  .site-header__actions .btn.btn-primary.btn-sm {
    padding: 0 16px;
    height: 40px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .menu-toggle svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 540px) {
  .brand__name {
    display: none;
  }
}

@media (max-width: 680px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.55rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    column-gap: 0.5rem;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn {
    flex-shrink: 0;
    padding: 0.48em 0.9em;
    font-size: 0.78rem;
  }

  .search-field {
    width: 100%;
    min-width: 100%;
    padding: 0.5em 0.95rem;
  }
  .search-field input {
    font-size: 0.86rem;
  }

  .btn-see-all {
    width: 100%;
    justify-content: center;
  }

  .modal {
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 24px 24px 0 0;
  }

  .catalog__head {
    margin-bottom: 1.5rem;
  }
  .catalog__head h2 {
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  }
}

/* =========== 5. Telas muito pequenas (<420px) =========== */
@media (max-width: 420px) {
  .site-header__inner {
    height: 56px;
    padding: 0 14px;
    gap: 8px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    font-size: 0.74rem;
  }

  .quote-toggle {
    width: 38px;
    height: 38px;
  }
  .quote-toggle svg { width: 18px; height: 18px; }

  .site-header__actions .btn.btn-primary.btn-sm {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
  }
  .site-header__wa-text { display: none; }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .menu-toggle svg { width: 18px; height: 18px; }

  .mobile-drawer nav a {
    font-size: 1.75rem;
  }

  .final-cta h2 {
    font-size: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  }
  .final-cta p.lead {
    font-size: 1rem;
  }
}

/* =========== 6. Services / How =========== */
@media (max-width: 819px) {
  .services__list .service-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-block: 1.5rem;
  }
  .services__list .service-item h3 {
    font-size: 1.25rem;
  }
  .services__list .service-item p {
    font-size: 0.92rem;
  }
}

@media (max-width: 719px) {
  .how__steps li {
    padding-block: 1rem 1.4rem;
  }
  .how__steps h3 {
    font-size: 1.08rem;
  }
  .how__steps p {
    font-size: 0.92rem;
  }
}

/* =========== 7. CTA & Rodapé Mobile =========== */
@media (max-width: 680px) {
  .final-cta {
    padding-block: 4rem;
  }
  .final-cta__actions {
    gap: 0.55rem;
  }
  .final-cta__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer__inner {
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .site-footer h5 {
    margin-bottom: 1rem;
  }
}

/* =========== 8. Acessibilidade =========== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .product-card:hover .product-card__media img { transform: none; }
  .hero-profile__bg { animation: none !important; }
}
