/* ===== MOBILE (até 479px) ===== */
@media (max-width: 479px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }

  .grid {
    gap: 16px;
  }

  /* Header compacto */
  .logo {
    padding: 6px 10px;
    border-radius: 12px;
  }

  .logo img {
    height: 28px;
  }

  .header__actions .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__actions .btn .btn__label {
    display: none;
  }

  /* Hero mobile */
  .hero__media {
    min-height: 55vh;
    background-size: cover;
  }

  .hero__content {
    padding: 0 8px;
  }

  .hero__title {
    font-size: 1.75rem;
    margin-bottom: 8px;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero__arrow--prev {
    left: 8px;
  }

  .hero__arrow--next {
    right: 8px;
  }

  .hero__strip {
    padding: 10px 0;
    font-size: 0.85rem;
  }

  /* Service cards */
  .service-card img {
    height: 140px;
  }

  .service-card__content {
    padding: 16px;
    gap: 10px;
  }

  .service-card__content h3 {
    font-size: 1.1rem;
  }

  .service-card__content p {
    font-size: 0.9rem;
  }

  .service-card__content .btn {
    padding: 12px 16px;
    min-height: 48px;
  }

  /* Brands grid */
  .brands-grid {
    gap: 16px;
  }

  .brand-item {
    padding: 12px 14px;
  }

  .brand-item img {
    max-width: 80px;
    max-height: 40px;
  }

  /* Why section */
  .why-card {
    padding: 20px 16px;
    gap: 10px;
  }

  .why-card__icon {
    width: 56px;
    height: 56px;
  }

  .why-card h3 {
    font-size: 1.1rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  /* Tradition card */
  .tradition-card div:last-child {
    padding: 18px 16px;
  }

  .tradition-card h3 {
    font-size: 1.2rem;
  }

  .tradition-card p {
    font-size: 0.9rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 18px 16px;
  }

  .testimonial-card__foto {
    width: 48px;
    height: 48px;
  }

  /* Location */
  .location-card__content {
    padding: 16px;
  }

  .location-card__item {
    font-size: 0.9rem;
    flex-wrap: wrap;
  }

  .location-card__item--schedule span {
    font-size: 0.85rem;
  }

  .map-card {
    min-height: 260px;
  }

  /* Floating button - safe area */
  .floating-action {
    bottom: max(22px, env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .floating-action img {
    width: 24px;
    height: 24px;
  }

  section {
    scroll-margin-top: 90px;
  }
}

/* ===== TABLET (480px - 767px) ===== */
@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --header-h: 72px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  .logo img {
    height: 38px;
  }

  .header__actions .btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .service-card img {
    height: 160px;
  }
}

/* ===== TABLET (600px - 767px) ===== */
@media (min-width: 600px) {
  .header__actions {
    flex-direction: row;
    width: auto;
  }

  .header__actions .btn {
    width: auto;
    justify-content: center;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .logo img {
    width: 150px;
  }
}

/* ===== TABLET GRANDE / DESKTOP (768px+) ===== */
@media (min-width: 768px) {
  :root {
    --header-h: 84px;
  }

  .header__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero__media {
    min-height: 70vh;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__media {
    min-height: 75vh;
  }
}

/* ===== Melhorias touch em todos os dispositivos touch ===== */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }
}
