/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - DIFRISUL
   ========================================================================== */
:root {
  --blue: #0b78d0;
  --blue-light: #2fa7ff;
  --green: #43b449;
  --green-light: #68dc72;
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.62);
  --glass-dark: rgba(5, 22, 38, 0.58);
  --glass-blue: rgba(7, 52, 92, 0.52);
  --glass-green: rgba(11, 80, 63, 0.54);
  --border-blue: rgba(70, 169, 255, 0.55);
  --border-green: rgba(92, 220, 112, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--white);
  background: #03121f;
  overflow: hidden;
}

/* ==========================================================================
   SPOTLIGHT BACKGROUND REVEAL (Images occupying entire screen in desktop)
   ========================================================================== */
.split-bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-revealed, .bg-blurred {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-blurred {
  z-index: 1;
}

/* Dark overlay containing all vignetting gradients and ambient glows */
.bg-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background:
    /* Filtro de vinheta horizontal e centro */
    linear-gradient(90deg, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.08) 34%, rgba(0,0,0,0.12) 65%, rgba(0,0,0,0.36) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.22) 74%, rgba(0,0,0,0.45) 100%),
    /* Gradiente vertical escuro */
    linear-gradient(180deg, rgba(1, 13, 25, 0.20) 0%, rgba(1, 13, 25, 0.45) 52%, rgba(1, 13, 25, 0.75) 100%),
    /* Brilhos coloridos de fundo */
    radial-gradient(circle at 50% 20%, rgba(31, 163, 199, 0.22), transparent 34%),
    radial-gradient(circle at 75% 50%, rgba(69, 180, 73, 0.14), transparent 30%);
}

.bg-revealed {
  z-index: 3;
  /* Estado inicial: máscara posicionada fora da tela */
  -webkit-mask-image: radial-gradient(circle 300px at -500px -500px, black 15%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.15) 75%, transparent 100%);
  mask-image: radial-gradient(circle 300px at -500px -500px, black 15%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.15) 75%, transparent 100%);
}

/* ==========================================================================
   ANEL INTERATIVO E ONDAS (MOUSE EFFECT)
   ========================================================================== */
.mouse-follower-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(16, 185, 129, 0.35); /* Verde institucional por padrão */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(15, 98, 254, 0.25), inset 0 0 10px rgba(16, 185, 129, 0.25);
  mix-blend-mode: screen;
  transform: translate(-100px, -100px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mouse-follower-ring.hover-blue {
  border-color: var(--blue-light);
  box-shadow: 0 0 25px rgba(47, 167, 255, 0.4), inset 0 0 15px rgba(47, 167, 255, 0.4);
}

.mouse-follower-ring.hover-green {
  border-color: var(--green-light);
  box-shadow: 0 0 25px rgba(104, 220, 114, 0.4), inset 0 0 15px rgba(104, 220, 114, 0.4);
}

/* Onda de Clique (Ripple) */
.click-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, rgba(15, 98, 254, 0.1) 75%, transparent 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  animation: rippleAnimation 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes rippleAnimation {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }
  100% {
    width: 160px;
    height: 160px;
    opacity: 0;
  }
}

/* ==========================================================================
   CONTENT LAYOUT & ELEMS (REFINED STRUCTURE)
   ========================================================================== */
.page {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: transparent; /* Permite visualizar o wrapper de fundo fixo */
}

/* Moldura branca elegante ao redor do site */
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 22px;
  margin: 8px;
  z-index: 4;
}

.content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 3vh 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* TOPO */
.header-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 24px;
}

.brand img {
  width: 140px;
  max-width: 40vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.36));
}

.construction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 16px;
  margin: 0 0 32px;
  border: 1.2px solid rgba(119, 218, 96, 0.8);
  border-radius: 999px;
  color: #a6ef8d;
  background: rgba(3, 24, 27, 0.46);
  box-shadow:
    0 0 18px rgba(73, 202, 86, 0.14),
    inset 0 0 8px rgba(73, 202, 86, 0.06);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-title {
  text-align: center;
  font-size: clamp(22px, 2.4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #f7fbff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  margin: 0 0 24px;
  white-space: nowrap;
}

.hero-subtitle {
  max-width: 650px;
  text-align: center;
  font-size: clamp(13px, 1vw, 15.5px);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 6px 15px rgba(0,0,0,0.36);
  margin: 0 auto;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 24px;
  width: min(1080px, calc(100% - 40px));
  margin-bottom: 50px;
}

.service-card {
  position: relative;
  min-height: 0;
  padding: 40px 32px 28px;
  border-radius: 18px;
  overflow: visible;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, filter 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card.distribuidora {
  border: 1.2px solid var(--border-blue);
  background:
    linear-gradient(180deg, rgba(13, 63, 107, 0.58) 0%, rgba(4, 27, 48, 0.66) 100%);
}

.service-card.distribuidora:hover {
  border-color: var(--blue-light);
  box-shadow: 0 20px 48px rgba(11, 120, 208, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.service-card.logistica {
  border: 1.2px solid var(--border-green);
  background:
    linear-gradient(180deg, rgba(21, 113, 91, 0.56) 0%, rgba(5, 43, 43, 0.66) 100%);
}

.service-card.logistica:hover {
  border-color: var(--green-light);
  box-shadow: 0 20px 48px rgba(67, 180, 73, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 35%);
  opacity: 0.9;
}

.service-icon {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.distribuidora .service-icon {
  background: linear-gradient(180deg, #1475ce 0%, #095aa6 100%);
  border: 1.2px solid rgba(111, 198, 255, 0.85);
}

.logistica .service-icon {
  background: linear-gradient(180deg, #45ad54 0%, #247b34 100%);
  border: 1.2px solid rgba(144, 238, 154, 0.85);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 1.8;
  fill: none;
}

.service-card h2 {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 8px 20px rgba(0,0,0,0.32);
  white-space: nowrap;
  margin: 0;
}

.service-card p {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(11.5px, 0.85vw, 13px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.features {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin: 6px 0;
}

.features li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: clamp(11px, 0.8vw, 12.5px);
  font-weight: 500;
  line-height: 1.4;
}

.features li:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.check {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
}

.distribuidora .check {
  border: 1.3px solid #40adff;
  color: #70c4ff;
  box-shadow: 0 0 10px rgba(35, 152, 255, 0.18);
}

.logistica .check {
  border: 1.3px solid #74df79;
  color: #91f08f;
  box-shadow: 0 0 10px rgba(99, 228, 93, 0.18);
}

.service-button {
  margin-top: auto;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(12px, 0.85vw, 13px);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.service-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.distribuidora .service-button {
  background: linear-gradient(180deg, #147bd5 0%, #075da8 100%);
  border: 1px solid rgba(94, 188, 255, 0.58);
  box-shadow: 0 10px 24px rgba(0, 111, 202, 0.24);
}

.logistica .service-button {
  background: linear-gradient(180deg, #44b752 0%, #2f8739 100%);
  border: 1px solid rgba(146, 238, 148, 0.58);
  box-shadow: 0 10px 24px rgba(38, 166, 59, 0.24);
}

.button-arrow {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.92);
  color: #17476a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* RODAPÉ */
.bottom-bar {
  width: min(1080px, calc(100% - 40px));
  min-height: 0;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 42px 1fr 1px 220px;
  align-items: center;
  gap: 20px;
  border-radius: 14px;
  border: 1px solid rgba(106, 200, 232, 0.25);
  background: rgba(6, 34, 51, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.construction-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 218, 78, 0.25);
  background: rgba(10, 35, 44, 0.52);
}

.construction-icon svg {
  width: 22px;
  height: 22px;
  stroke: #a6d94d;
  fill: none;
  stroke-width: 1.4;
}

.bottom-text h3 {
  font-size: clamp(12.5px, 0.9vw, 14px);
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.bottom-text p {
  font-size: clamp(10.5px, 0.8vw, 12px);
  line-height: 1.4;
  color: rgba(255,255,255,0.75);
}

.divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.18);
}

.whatsapp-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-circle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #42dc62 0%, #209d3a 100%);
  box-shadow:
    0 10px 24px rgba(45, 210, 82, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.28);
  border: 1.5px solid rgba(255,255,255,0.88);
}

.whatsapp-circle svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.whatsapp-data span {
  display: block;
  color: #68dc72;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 2px;
}

.whatsapp-data strong {
  display: block;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: #ffffff;
}

/* BOTÃO FLUTUANTE COM TEXTO GIRANDO */
.floating-whatsapp {
  position: fixed;
  right: 50px;
  bottom: 50px;
  z-index: 99;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  overflow: visible;
  background: radial-gradient(circle at 35% 25%, #70f284 0%, #2bc44e 48%, #189536 100%);
  box-shadow:
    0 0 0 10px rgba(56, 217, 93, 0.10),
    0 0 0 1px rgba(255,255,255,0.24),
    0 16px 40px rgba(20, 210, 74, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 20px rgba(56, 217, 93, 0.15),
    0 0 0 1px rgba(255,255,255,0.30),
    0 26px 64px rgba(20, 210, 74, 0.35);
}

.floating-whatsapp .whatsapp-icon-svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.18));
}

/* Texto curvado girando ao redor do ícone */
.floating-label-svg {
  position: absolute;
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: spin-label 28s linear infinite;
}

.floating-label-svg text {
  fill: rgba(255, 255, 255, 0.7);
  font-size: 9.5px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 1.8px;
}

@keyframes spin-label {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
  .content {
    width: min(940px, calc(100% - 36px));
    padding-top: 20px;
  }

  .cards {
    width: min(740px, 100%);
    gap: 20px;
    margin-bottom: 30px;
  }
}

@media (max-width: 992px) {
  .split-bg-wrapper {
    display: block !important;
  }
  
  .bg-revealed {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    opacity: 1;
    z-index: 1;
  }
  
  .bg-blurred {
    display: none;
  }
  
  .bg-dark-overlay {
    z-index: 2;
    background:
      linear-gradient(90deg, rgba(0,0,0,0.56) 0%, rgba(0,0,0,0.12) 34%, rgba(0,0,0,0.2) 65%, rgba(0,0,0,0.46) 100%),
      radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 74%, rgba(0,0,0,0.55) 100%),
      linear-gradient(180deg, rgba(1, 13, 25, 0.45) 0%, rgba(1, 13, 25, 0.7) 52%, rgba(1, 13, 25, 0.92) 100%);
  }
  
  .mouse-follower-ring, .click-ripple {
    display: none !important;
  }
  
  body {
    background-image: none !important;
    background-color: #03121f;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 760px) {
  .content {
    width: min(100% - 28px, 520px);
    padding: 24px 0 100px;
    justify-content: flex-start;
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    gap: 0;
  }

  .page {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  .header-intro {
    margin-bottom: 40px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .brand img {
    width: 130px;
  }

  .construction-badge {
    min-height: 22px;
    padding: 0 12px;
    font-size: 8px;
    letter-spacing: 2px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    white-space: normal;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 0;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
    width: 100%;
  }

  .service-card {
    min-height: auto;
    padding: 38px 24px 22px;
    gap: 12px;
  }

  .service-card h2 {
    font-size: 19px;
    white-space: normal;
  }

  .service-card p {
    font-size: 12px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bottom-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
    width: 100%;
  }

  .construction-icon {
    margin: 0 auto;
  }

  .divider {
    display: none;
  }

  .whatsapp-inline {
    justify-content: center;
  }

  .whatsapp-data strong {
    font-size: 18px;
  }

  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  .floating-whatsapp .whatsapp-icon-svg {
    width: 24px;
    height: 24px;
  }

  .floating-label-svg {
    display: none;
  }
}

/* ==========================================================================
   BADGES E ANIMAÇÕES DE DESTAQUE DE CTA
   ========================================================================== */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-self: center;
  margin-top: 10px;
}

.logistica-badge {
  background: rgba(3, 30, 20, 0.65);
  border: 1px solid rgba(116, 223, 121, 0.45);
  color: #a2f2a7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #74df79;
  border-radius: 50%;
  box-shadow: 0 0 8px #74df79;
  animation: badge-pulse 1.8s infinite ease-in-out;
}

@keyframes badge-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(116, 223, 121, 0.7);
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(116, 223, 121, 0);
  }
  100% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(116, 223, 121, 0);
  }
}

@keyframes button-pulse-glow {
  0% {
    box-shadow: 0 10px 24px rgba(38, 166, 59, 0.24), 0 0 0 0 rgba(116, 223, 121, 0.35);
  }
  50% {
    box-shadow: 0 10px 28px rgba(38, 166, 59, 0.35), 0 0 0 8px rgba(116, 223, 121, 0);
  }
  100% {
    box-shadow: 0 10px 24px rgba(38, 166, 59, 0.24), 0 0 0 0 rgba(116, 223, 121, 0);
  }
}

.logistica .service-button {
  animation: button-pulse-glow 2.5s infinite ease-in-out;
}

/* Animação rápida de clique tátil para transição de aba */
.service-card.card-clicked {
  transform: scale(1.04);
  filter: brightness(1.1);
  box-shadow: 0 20px 40px rgba(67, 180, 73, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}



