@charset "UTF-8";

/* ======================================================
   BASE
====================================================== */
body {
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-geist {
  font-family: 'Geist', sans-serif;
}

/* ======================================================
   ANIMAÇÕES
====================================================== */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeSlideIn .7s ease-out both;
}

.delay-1 {
  animation-delay: .1s;
}

.delay-2 {
  animation-delay: .2s;
}

.delay-3 {
  animation-delay: .3s;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes products-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, .55),
      0 20px 40px rgba(34, 211, 238, .35);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(34, 211, 238, 0),
      0 20px 40px rgba(34, 211, 238, .35);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0),
      0 20px 40px rgba(34, 211, 238, .35);
  }
}

/* ======================================================
   VISUAIS
====================================================== */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ======================================================
   BOTÃO SHINY
====================================================== */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.shiny {
  --angle: 0deg;
  position: relative;
  isolation: isolate;
  border-radius: 9999px;
  padding: 0 1.25rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .2s ease;
}

.shiny:hover {
  transform: translateY(-1px);
}

.shiny::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle), transparent 30%, #22d3ee, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spin 4s linear infinite;
}

/* ======================================================
   HERO
====================================================== */
.hero-bg {
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0% {
    transform: scale(1.05) translateY(0);
  }

  50% {
    transform: scale(1.1) translateY(-20px);
  }

  100% {
    transform: scale(1.05) translateY(0);
  }
}

/* ======================================================
   CLIENTS CAROUSEL
====================================================== */
.animate-marquee {
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* ======================================================
   SERVICES
====================================================== */

/* ======================================================
   SERVICES MODAL (PRECISION ENGINEERING STYLE)
====================================================== */
.service-block.service-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .service-block.service-modal-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.service-image-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(34, 211, 238, 0.2);
  position: relative;
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.service-image-wrapper:hover img {
  transform: scale(1.05);
}

/* CROSSHAIR OVERLAY ON MODAL IMAGE */
.service-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(34, 211, 238, 0.1);
  pointer-events: none;
}

.service-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.service-pill {
  padding: .4rem .9rem;
  font-size: .75rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .02);
  color: #94a3b8;
  cursor: pointer;
  font-family: 'Geist', monospace;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.service-pill:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #cbd5f5;
  background: rgba(34, 211, 238, 0.05);
}

.service-pill.active {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.8);
  color: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.15);
}

.service-text h3 {
  font-family: 'Geist', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.service-text p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.service-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.service-thumbs img {
  width: 80px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.2s;
}

.service-thumbs img.active,
.service-thumbs img:hover {
  opacity: 1;
  border-color: #22d3ee;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}




/* ======================================================
   PRODUCTS
====================================================== */
.products-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: products-marquee 45s linear infinite;
}

.products-track:hover {
  animation-play-state: paused;
}

.product-card {
  width: 320px;
  background: rgba(255, 255, 255, .75);
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* (seu conteúdo do card continua como já está no HTML) */

/* ======================================================
   MODALS
====================================================== */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 23, .85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
}

.service-modal.active {
  display: flex;
}

.service-modal-content {
  max-width: 1100px;
  width: 90%;
  background: #020617;
  /* slate-950/harder black */
  border-radius: 4px;
  /* Sharp technical corners */
  padding: 0;
  /* Remove padding here, handle inside */
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Base mechanical border */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* TECH BORDER ACCENTS for Modal */
.service-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  z-index: 10;
}

.service-modal-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.2), transparent);
  z-index: 10;
}

.service-modal-inner-padding {
  padding: 2.5rem;
}


.service-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

/* ======================================================
   WHATSAPP
====================================================== */
.whatsapp-pulse {
  animation: whatsapp-pulse 2.8s ease-out infinite;
}

.whatsapp-pulse:hover {
  animation-play-state: paused;
}

/* ===============================
   COOKIE BANNER — POPUP COMPACTO (BOTTOM-LEFT)
   =============================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  width: auto;
}


.cookie-banner.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity .25s ease, transform .25s ease;
}

.cookie-banner__inner {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 14px;

  max-width: 520px;
  width: min(520px, calc(100vw - 48px));
  padding: 14px 16px;

  border-radius: 16px;
  background: linear-gradient(180deg, #0b1220, #070d18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* TEXTO */
.cookie-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5f5;
}

.cookie-banner__title {
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.cookie-banner__desc {
  margin: 0;
}

.cookie-banner__links {
  margin-top: 6px;
  font-size: 12px;
}

.cookie-link {
  color: #93c5fd;
  text-decoration: none;
}

.cookie-link:hover {
  text-decoration: underline;
}

.cookie-sep {
  margin: 0 6px;
  color: rgba(203, 213, 245, .6);
}

/* AÇÕES */
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

/* BOTÕES */
.cookie-btn {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
}

.cookie-btn--primary {
  background: #22d3ee;
  border: 1px solid rgba(34, 211, 238, .9);
  color: #020617;
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 640px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner__inner {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: space-between;
  }
}

/* ================================
   MODAL DE PREFERÊNCIAS
================================ */

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.cookie-modal.active {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(6px);
}

.cookie-modal__panel {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px;
  color: #e5e7eb;
}

.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  width: auto;
}

.cookie-banner__inner {
  pointer-events: all;
}

.cookie-modal {
  z-index: 10000;
}

.service-block.reverse>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===============================
   COOKIE SIMPLE — FIX DEFINITIVO
   =============================== */

.cookie-simple {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;

  max-width: 420px;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  background: linear-gradient(180deg, #0b1220, #070d18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;

  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  color: #cbd5f5;
  font-size: 13px;
  line-height: 1.4;
}

.cookie-simple p {
  margin: 0;
  flex: 1;
}

/* AÇÕES */
.cookie-simple__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* BOTÕES */
.cookie-simple button {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

/* BOTÃO ACEITAR */
#cookieSimpleAccept {
  background: #22d3ee;
  color: #020617;
  font-weight: 600;
}

/* BOTÃO FECHAR */
#cookieSimpleClose {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
}

/* MOBILE */
@media (max-width: 640px) {
  .cookie-simple {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-simple__actions {
    justify-content: space-between;
  }
}

.cookie-simple {
  pointer-events: auto;
}

.cookie-simple.hidden {
  display: none;
  pointer-events: none;
}

/* ===============================
   PRODUTOS — TEXTO LEGÍVEL
================================ */

.product-card {
  background: rgba(255, 255, 255, 0.85);
  position: relative;
}

/* camada de texto */
.product-card-content {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg,
      rgba(6, 182, 212, 0.08),
      rgba(16, 185, 129, 0.10));
  backdrop-filter: blur(6px);
}

/* título */
.product-card-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f766e;
  /* verde institucional */
  margin-bottom: 0.25rem;
}

/* descrição */
.product-card-content p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #0369a1;
  /* azul institucional */
}

/* ===============================
   SERVIÇOS — PADRONIZAÇÃO DE IMAGENS
================================ */

/* wrapper da imagem */
.service-image-wrapper {
  width: 100%;
  height: 420px;
  /* ALTURA PADRÃO — igual à 2ª imagem */
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* imagem em si */
.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* garante enquadramento uniforme */
  object-position: center;
  transition: transform .6s ease;
}

/* hover mantido */
.service-image-wrapper:hover img {
  transform: scale(1.06);
}

/* MOBILE */
@media (max-width: 768px) {
  .service-image-wrapper {
    height: 280px;
  }
}

/* ===============================
   WHATSAPP — MODAL PRODUTOS
================================ */

.product-modal-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
}

.whatsapp-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  /* médio porte */
  padding: 0 22px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;

  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);

  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;

  box-shadow:
    0 10px 24px rgba(34, 211, 238, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .35);

  transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(34, 211, 238, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .45);
}

/* ================================
   SERVICE MODAL — THUMBNAILS
================================ */
.service-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.service-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-thumb:hover {
  transform: translateY(-1px);
}

.service-thumb.active {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, .55);
  border-color: rgba(34, 211, 238, .65);
}

/* ================================
   SERVIÇOS — THUMBNAILS NO MODAL
================================ */
.service-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.service-thumbs img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.service-thumbs img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.service-thumbs img.active {
  opacity: 1;
  border-color: rgba(34, 211, 238, .75);
  box-shadow: 0 10px 30px rgba(34, 211, 238, .12);
}

/* TEXTO DE APOIO — MODAL PRODUTO */
.product-modal-helper {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
  /* slate-400 */
  max-width: 420px;
}

/* =====================================
   AJUSTES MOBILE-FIRST — VIA MAIS
   (NÃO ALTERAR ACIMA)
===================================== */

/* 1️⃣ Reduz densidade de texto no mobile */
@media (max-width: 768px) {
  .service-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 2️⃣ Espaçamento vertical mais refinado */
@media (max-width: 768px) {
  section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  #servicos {
    padding-top: 3.5rem;
  }
}

/* 3️⃣ Melhor respiro entre imagem e texto */
@media (max-width: 768px) {
  .service-block {
    gap: 1.75rem;
  }
}

/* 4️⃣ Foco em uma ação no mobile */
@media (max-width: 768px) {
  .service-actions a:not(:last-child) {
    display: none;
  }
}

/* 5️⃣ Modal confortável no mobile */
@media (max-width: 768px) {
  .service-modal-content {
    max-height: 96vh;
    padding: 0;
    overflow-y: auto;
  }

  .service-modal-inner-padding {
    padding: 1.25rem;
  }

  /* Redução drástica da imagem para priorizar texto sem depender de rolagem */
  .service-image-wrapper {
    height: 180px !important;
    border-radius: 0.75rem;
  }

  .service-text h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .service-text p {
    font-size: 0.875rem;
    line-height: 1.5;
    padding-left: 0.75rem;
    display: block !important;
    /* Sobrescreve o clamp se houver */
    -webkit-line-clamp: unset !important;
  }

  .service-thumbs img {
    width: 60px;
    height: 40px;
    border-radius: 8px;
  }

  .service-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(2, 6, 23, 0.8);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
  }
}

/* 6️⃣ Contraste correto nos textos dos produtos */
.products-section .product-card-content h4 {
  color: #0ea5e9;
}

.products-section .product-card-content p {
  color: #10b981;
}