/* ==========================================================================
   UTILITIES — Classes utilitárias e animações
   ========================================================================== */

/* ── Display ─────────────────────────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Margens / Padding ───────────────────────────────────────────────────────── */
.mt-auto  { margin-top: auto; }
.mb-0     { margin-bottom: 0; }
.mb-4     { margin-bottom: var(--space-4); }
.mb-6     { margin-bottom: var(--space-6); }
.mb-8     { margin-bottom: var(--space-8); }
.mb-12    { margin-bottom: var(--space-12); }

/* ── Posição ─────────────────────────────────────────────────────────────────── */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Animações de entrada (Intersection Observer) ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-24px);
}
.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(24px);
}
.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}
.reveal--scale.is-visible {
  transform: scale(1);
}

/* Delay utilitários */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── WhatsApp float ──────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: #25d366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  color: white;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: white;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ── 404 ─────────────────────────────────────────────────────────────────────── */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-20);
}

.error-404__code {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: var(--weight-bold);
  line-height: 1;
  color: var(--color-primary-container);
  opacity: 0.2;
  margin-bottom: var(--space-4);
  display: block;
}

.error-404__title {
  font-family: var(--font-headline);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.error-404__text {
  font-size: var(--text-lg);
  color: var(--color-on-surface-variant);
  max-width: 480px;
  margin: 0 auto var(--space-8);
}

/* ── Search results ──────────────────────────────────────────────────────────── */
.search-results-header {
  margin-bottom: var(--space-8);
}

.search-results-query {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-outline);
}

.search-results-query span {
  color: var(--color-primary-container);
}

.no-results {
  text-align: center;
  padding-block: var(--space-20);
}

.no-results__icon {
  font-size: 4rem;
  color: var(--color-outline);
  margin-bottom: var(--space-4);
}

.no-results__title {
  font-family: var(--font-headline);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.no-results__text {
  color: var(--color-on-surface-variant);
  margin-bottom: var(--space-8);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb {
  margin-bottom: var(--space-5);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-outline);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  color: var(--color-outline-variant);
}

.breadcrumb li a {
  color: var(--color-on-surface-variant);
  transition: color var(--transition-fast);
}
.breadcrumb li a:hover { color: var(--color-primary-container); }

.breadcrumb li[aria-current="page"] {
  color: var(--color-primary-container);
}

/* Rank Math breadcrumb override */
.rank-math-breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-outline);
  margin-bottom: var(--space-5);
}

.rank-math-breadcrumb a {
  color: var(--color-on-surface-variant);
  transition: color var(--transition-fast);
}
.rank-math-breadcrumb a:hover { color: var(--color-primary-container); }

/* ── Shapes decorativos de engrenagem ───────────────────────────────────────── */
.decor-gear {
  position: absolute;
  color: var(--color-primary-container);
  pointer-events: none;
  z-index: 0;
}

.decor-gear--outline {
  opacity: 0.14;
}

.decor-gear--solid {
  opacity: 0.08;
}

.decor-gear--spin {
  animation: tgs-spin-slow 40s linear infinite;
}

@keyframes tgs-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .decor-gear--spin { animation: none; }
}

/* Tamanhos pré-definidos */
.decor-gear--sm { width: 64px;  height: 64px; }
.decor-gear--md { width: 140px; height: 140px; }
.decor-gear--lg { width: 240px; height: 240px; }
.decor-gear--xl { width: 380px; height: 380px; }

/* Posições pré-definidas (relativas à seção com position:relative) */
.decor-gear--top-right    { top: -40px; right: -40px; }
.decor-gear--top-left     { top: -30px; left: -30px; }
.decor-gear--bottom-right { bottom: -50px; right: -30px; }
.decor-gear--bottom-left  { bottom: -50px; left: -60px; }

/* ── Padrão de fundo em grade (pontos) ──────────────────────────────────────── */
.bg-dot-grid {
  position: relative;
}

.bg-dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgb(240 163 0) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--color-outline-variant);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* ── Imagem de fundo de seção com overlay ───────────────────────────────────── */
.section-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.section-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /* background: var(--color-background); */
  opacity: 0.9;
}

/* ── Map embed ───────────────────────────────────────────────────────────────── */
.map-embed {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-outline-variant);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.88) hue-rotate(180deg);
  opacity: 0.85;
}

/* ── Background section ─────────────────────────────────────────────────────────── */

.bg-r-gradient-1 {
  background: radial-gradient(150% 100% at 50% 120%, hsl(30deg 97.99% 76.79% / 65%) 0% 5%, hsl(35deg 100% 89.22%) 50%, transparent 90% 100%);
}

.bg-r-gradient-2 {
  background: radial-gradient(100% 100% at 0% 0%, hsl(30deg 97.99% 76.79% / 65%) 0% 5%, hsl(35deg 100% 89.22%) 50%, transparent 90% 100%);
}

.bg-r-gradient-3::before {
  content:"";
  background: radial-gradient(100% 100% at 0% 0%, hsl(30deg 97.99% 76.79% / 65%) 0% 5%, hsl(35deg 100% 89.22%) 50%, transparent 90% 100%);
  position: absolute;
  inset: 0;
  z-index: 0;
}

.img-diferenciais {
    width: auto;
    height: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
    opacity: 0.2;
}