/* PrimeTech Home v36 — reparos e avaliações */
.pt-instagram-section {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 82px) 0;
  color: #eef5ff;
  background:
    radial-gradient(circle at 8% 15%, rgba(22, 140, 255, .18), transparent 32%),
    radial-gradient(circle at 92% 82%, rgba(242, 196, 92, .08), transparent 28%),
    linear-gradient(180deg, #061a35 0%, #031326 100%) !important;
}

.pt-instagram-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

.pt-instagram-section > .pt-shell {
  position: relative;
  z-index: 1;
}

.pt-instagram-header {
  align-items: end;
  margin-bottom: 24px;
}

.pt-instagram-header .pt-eyebrow { color: #f2c45c; }
.pt-instagram-header .pt-title { color: #fff !important; }
.pt-instagram-header p { color: #aebed1 !important; }

.pt-instagram-link {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.065) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.pt-instagram-link:hover {
  border-color: rgba(242,196,92,.34);
  background: rgba(255,255,255,.10) !important;
}

.pt-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px;
}

.pt-instagram-post {
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: #071b35;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}

.pt-instagram-post img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.pt-instagram-post span {
  inset: auto 10px 10px;
  color: #fff;
  background: rgba(2, 12, 27, .80);
}

.pt-google-review-section {
  overflow: hidden;
}

.pt-reviews-carousel-shell {
  display: grid !important;
  gap: 16px;
  min-width: 0;
  margin-top: 4px;
}

.pt-reviews-carousel-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pt-reviews-carousel-head > span {
  color: #dce8f5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pt-reviews-carousel-controls {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.pt-review-nav {
  display: inline-grid !important;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.07);
  cursor: pointer;
}

.pt-review-nav:hover {
  border-color: rgba(242,196,92,.42);
  background: rgba(255,255,255,.12);
}

.pt-review-nav svg { width: 18px; height: 18px; }

.pt-reviews-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pt-reviews-track {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3) !important;
  grid-template-columns: none !important;
  gap: 16px;
  overflow-x: auto !important;
  padding: 2px 0 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.pt-reviews-track::-webkit-scrollbar { display: none; }

.pt-reviews-track .pt-review-card {
  min-width: 0;
  scroll-snap-align: start;
}

.pt-reviews-dots {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 14px;
}

.pt-review-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: width .2s ease, border-radius .2s ease, background .2s ease;
}

.pt-review-dot.is-active {
  width: 25px;
  border-radius: 999px;
  background: #f2c45c;
  transform: none;
}

@media (max-width: 900px) {
  .pt-instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .pt-reviews-track {
    grid-auto-columns: calc((100% - 16px) / 2) !important;
  }
}

@media (max-width: 640px) {
  .pt-instagram-header {
    align-items: flex-start;
  }

  .pt-instagram-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 360px);
    grid-template-columns: none !important;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .pt-instagram-grid::-webkit-scrollbar { display: none; }
  .pt-instagram-post { aspect-ratio: 4 / 5; scroll-snap-align: start; }

  .pt-reviews-track {
    grid-auto-columns: 100% !important;
    touch-action: pan-x pan-y;
  }

  .pt-review-nav {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-reviews-track { scroll-behavior: auto; }
}
