/* ============================================
   RESET E BASE
============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --lilac-50: #f5f3ff;
  --lilac-100: #ede9fe;
  --lilac-200: #c4b5fd;
  --lilac-300: #a78bfa;
  --lilac-400: #8b5cf6;
  --lilac-500: #7c3aed;
  --lilac-600: #6d28d9;
  --lilac-700: #4c1d95;
  --lilac-800: #2e1065;
  --lilac-900: #1e1b4b;

  --text-dark: #1d2129;
  --text-mid: #4e5969;
  --bg-light: #ffffff;
  --bg-alt: #f7f8fa;
  --border: #e5e6eb;
  --green: #17b26a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section-alt { background: var(--bg-alt); }
.section-dark { background: #1d2129; color: #e5e7eb; }
.section-dark .section-title { color: #ffffff; }
.section-dark .section-subtitle { color: #a9aeb8; }

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  z-index: 2;
}
.logo img { height: 36px; width: auto; display: block; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  line-height: 1;
}
.logo-text span { color: var(--lilac-500); }
@media (max-width: 480px) {
  .logo img { height: 28px; }
  .logo-text { font-size: 1.05rem; }
}

.glass-nav {
  --bg: rgba(124, 58, 237, 0.08);
  --text: #4e5969;
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.6),
    inset -1px -1px 6px rgba(124, 58, 237, 0.1),
    0 4px 12px rgba(124, 58, 237, 0.08);
  overflow: hidden;
  width: fit-content;
  z-index: 1;
}
@media (min-width: 768px) { .glass-nav { display: flex; } }
.glass-nav input { display: none; }
.glass-nav label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  font-size: 14px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
  position: relative;
  z-index: 2;
  transition: color 0.3s ease-in-out;
  white-space: nowrap;
}
.glass-nav label:hover { color: var(--lilac-600); }
.glass-nav input:checked + label { color: #fff; }

.glass-glider {
  position: absolute;
  top: 0; bottom: 0;
  width: calc(100% / 3);
  border-radius: 1rem;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56),
    background 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out;
}
#nav-sobre:checked ~ .glass-glider {
  transform: translateX(0%);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), #7c3aed);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4), 0 0 10px rgba(196, 181, 253, 0.4) inset;
}
#nav-servicos:checked ~ .glass-glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), #7c3aed);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4), 0 0 10px rgba(196, 181, 253, 0.4) inset;
}
#nav-atuacao:checked ~ .glass-glider {
  transform: translateX(200%);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), #7c3aed);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.4), 0 0 10px rgba(196, 181, 253, 0.4) inset;
}

.contact-nav-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 1rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--lilac-50);
  background: linear-gradient(135deg, var(--lilac-400), var(--lilac-600));
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 2;
}
@media (min-width: 768px) { .contact-nav-btn { display: inline-flex; } }
.contact-nav-btn::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
}
.contact-nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), 0 6px 16px rgba(124, 58, 237, 0.3);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 2;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 1rem 24px;
  display: none;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
}

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #000000 50%, #2e1065 100%);
  color: var(--lilac-100);
  display: flex;
  flex-direction: column;
  margin-top: 72px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.grid-line {
  stroke: rgba(167, 139, 250, 0.15);
  stroke-width: 0.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: grid-draw 1.5s ease-out forwards;
}

.detail-dot {
  fill: rgba(167, 139, 250, 0.4);
  opacity: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}

.corner-element {
  position: absolute;
  width: 2rem; height: 2rem;
  opacity: 0;
  animation: word-appear 0.5s ease-out forwards;
  z-index: 2;
}
.corner-element .dot {
  position: absolute;
  width: 0.5rem; height: 0.5rem;
  background: var(--lilac-200);
  opacity: 0.3;
}
.corner-element.top-left { top: 2rem; left: 2rem; }
.corner-element.top-left .dot { top: 0; left: 0; }
.corner-element.top-right { top: 2rem; right: 2rem; }
.corner-element.top-right .dot { top: 0; right: 0; }
.corner-element.bottom-left { bottom: 2rem; left: 2rem; }
.corner-element.bottom-left .dot { bottom: 0; left: 0; }
.corner-element.bottom-right { bottom: 2rem; right: 2rem; }
.corner-element.bottom-right .dot { bottom: 0; right: 0; }

.floating-element {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(167, 139, 250, 0.5);
  border-radius: 50%;
  opacity: 0;
  animation: float 6s ease-in-out infinite;
  animation-play-state: paused;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .hero-content { padding: 4rem 3rem; gap: 3rem; }
}

.tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.85;
  color: var(--lilac-200);
}
@media (min-width: 768px) { .tagline { font-size: 0.8rem; } }
.tagline b { font-weight: 500; color: var(--lilac-100); }

.divider {
  margin-top: 0.75rem;
  width: 3.5rem; height: 1px;
  opacity: 0.3;
  background: linear-gradient(to right, transparent, var(--lilac-200), transparent);
}
.divider.centered {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.headline {
  max-width: 52rem;
  margin: 0 auto;
  position: relative;
}

.headline-main {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--lilac-50);
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .headline-main { font-size: 2.25rem; } }
@media (min-width: 1024px) { .headline-main { font-size: 2.75rem; } }

.headline-sub {
  font-size: 1.125rem;
  font-weight: 100;
  line-height: 1.55;
  color: var(--lilac-200);
  max-width: 40rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .headline-sub { font-size: 1.5rem; } }
@media (min-width: 1024px) { .headline-sub { font-size: 1.75rem; } }

.word {
  display: inline-block;
  opacity: 0;
  margin-right: 0.25em;
  transition: text-shadow 0.3s ease;
}

.dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: word-appear 0.5s ease-out forwards;
  animation-delay: 3s;
}
.dots span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--lilac-200);
}
.dots span:nth-child(1) { opacity: 0.4; }
.dots span:nth-child(2) { opacity: 0.6; }
.dots span:nth-child(3) { opacity: 0.4; }

#mouse-gradient {
  position: fixed;
  pointer-events: none;
  width: 24rem; height: 24rem;
  border-radius: 50%;
  filter: blur(64px);
  transition: all 0.5s ease-out;
  opacity: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 100%);
  z-index: 5;
}

/* ============================================
   SEÇÕES GENÉRICAS
============================================ */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-dark);
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-mid);
  max-width: 720px;
  margin: 0 auto 3rem;
}

.text-center { text-align: center; }

/* ============================================
   CONFIANÇA
============================================ */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
}
.trust-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--lilac-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--lilac-600);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.9375rem; color: var(--text-mid); }

/* ============================================
   O QUE FAZEMOS
============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
}
.service-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--lilac-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--lilac-600);
}
.service-icon svg { width: 20px; height: 20px; }
.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9375rem; color: var(--text-mid); }

/* ============================================
   NÚMEROS
============================================ */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) { .numbers-grid { grid-template-columns: repeat(4, 1fr); } }

.number-item { text-align: center; }
.number-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--lilac-500);
  line-height: 1;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .number-value { font-size: 4rem; } }
.number-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
}
.numbers-note {
  text-align: center;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-mid);
  margin-top: 2.5rem;
  opacity: 0.7;
}

/* ============================================
   SEGURANÇA E QUALIDADE
============================================ */
.safety-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
  color: var(--text-dark);
}
.safety-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(23, 178, 106, 0.1);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* ============================================
   ATUAÇÃO (shader Aurora Veil + LocationMap)
============================================ */
.section-dark {
  position: relative;
  background: #1d2129;
  color: #e5e7eb;
  overflow: hidden;
}

.aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.aurora-veil-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(124, 58, 237, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.section-dark .container {
  position: relative;
  z-index: 2;
}

.section-dark .section-title { color: #ffffff; }
.section-dark .section-subtitle { color: #a9aeb8; }

.coverage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.location-map {
  position: relative;
  cursor: zoom-in;
  user-select: none;
  perspective: 1000px;
  width: 240px;
  height: 140px;
}
.location-map.expanded {
  width: 360px;
  height: 280px;
  cursor: default;
}

.location-map-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(124, 58, 237, 0.15);
  transform-style: preserve-3d;
  transition:
    width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.1s ease-out,
    box-shadow 0.3s ease;
}

.location-map:hover .location-map-inner {
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(124, 58, 237, 0.35);
}

.location-map-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.3) 0%, transparent 50%, rgba(237, 233, 254, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.location-map.expanded .location-map-inner::before {
  opacity: 0;
  pointer-events: none;
}

.map-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  transition: opacity 0.3s;
  pointer-events: none;
}
.location-map.expanded .map-grid-pattern { opacity: 0; }

.map-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.map-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.map-icon {
  width: 18px;
  height: 18px;
  color: var(--lilac-500);
  transition: filter 0.3s;
  filter: drop-shadow(0 0 4px rgba(124, 58, 237, 0.3));
}
.location-map:hover .map-icon {
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

.location-map.expanded .map-icon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.map-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 9999px;
  background: rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}
.location-map:hover .map-status {
  background: rgba(124, 58, 237, 0.12);
  transform: scale(1.05);
}
.map-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lilac-400);
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.6);
}
.map-status-text {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-location {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.location-map:hover .map-location { transform: translateX(4px); }

.map-coordinates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-mid);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s, max-height 0.25s;
}
.location-map.expanded .map-coordinates {
  opacity: 1;
  max-height: 30px;
}

.map-underline {
  height: 1px;
  background: linear-gradient(to right, rgba(124, 58, 237, 0.5), rgba(139, 92, 246, 0.3), transparent);
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform 0.4s ease-out;
}
.location-map:hover .map-underline,
.location-map.expanded .map-underline {
  transform: scaleX(1);
}

.map-embed {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease 0.1s;
  z-index: 5;
}
.location-map.expanded .map-embed {
  opacity: 1;
  pointer-events: auto;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.8) hue-rotate(20deg);
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.map-open-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: rgba(29, 33, 41, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.location-map.expanded .map-open-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.map-open-btn:hover {
  background: rgba(124, 58, 237, 0.85);
  border-color: rgba(139, 92, 246, 0.5);
}

.map-open-btn svg {
  width: 11px;
  height: 11px;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%) translateY(8px);
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.location-map.expanded .map-pin {
  opacity: 1;
  animation: pin-bounce 0.4s ease-out 0.15s both;
}

.map-pin svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.5));
  display: block;
}

@keyframes pin-bounce {
  0% { transform: translate(-50%, -130%) translateY(8px); opacity: 0; }
  60% { transform: translate(-50%, -95%) translateY(8px); opacity: 1; }
  100% { transform: translate(-50%, -100%) translateY(8px); opacity: 1; }
}

/* CTA "clique para expandir" — sempre visível */
.map-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  color: var(--lilac-300);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s;
  pointer-events: none;
  letter-spacing: 0.03em;
  animation: hint-pulse 2s ease-in-out infinite;
}
.location-map:hover .map-hint { color: var(--lilac-200); }
.location-map.expanded .map-hint { opacity: 0; }

@keyframes hint-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hint-mobile { display: none; }

.map-hint-collapse {
  display: none;
}

/* ============================================
   CONTATO
============================================ */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.6),
    inset -1px -1px 6px rgba(124, 58, 237, 0.1),
    0 8px 32px rgba(124, 58, 237, 0.1);
  padding: 48px 40px;
  text-align: center;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lilac-500), transparent);
  opacity: 0.6;
}
.contact-card .otisline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lilac-600);
  margin-bottom: 0.75rem;
}
.contact-card .phone {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.contact-card .hours {
  font-size: 0.9375rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

.glass-button {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--lilac-50);
  background: linear-gradient(135deg, var(--lilac-400), var(--lilac-600));
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(124, 58, 237, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-button::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}
.glass-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(124, 58, 237, 0.5), 0 6px 16px rgba(124, 58, 237, 0.3);
}

.contact-local {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-mid);
}
.contact-local strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   RODAPÉ
============================================ */
.footer {
  background: #1d2129;
  color: #a9aeb8;
  padding: 48px 0 32px;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-logo img { height: 28px; width: auto; }
.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}
.footer-logo-text span { color: var(--lilac-300); }
.footer-tag {
  font-size: 0.8125rem;
  color: #a9aeb8;
  margin-bottom: 1.5rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a { color: #a9aeb8; transition: color 0.2s; }
.footer-nav a:hover { color: var(--lilac-300); }
.footer-compliance {
  font-size: 0.75rem;
  color: #7a808c;
  max-width: 560px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.footer-copy { font-size: 0.75rem; color: #7a808c; }

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ANIMAÇÕES
============================================ */
@keyframes word-appear {
  0% { opacity: 0; transform: translateY(20px) scale(0.85); filter: blur(8px); }
  50% { opacity: 0.85; transform: translateY(6px) scale(0.96); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes grid-draw {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  50% { opacity: 0.3; }
  100% { stroke-dashoffset: 0; opacity: 0.15; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  25% { transform: translateY(-10px) translateX(5px); opacity: 0.6; }
  50% { transform: translateY(-5px) translateX(-3px); opacity: 0.4; }
  75% { transform: translateY(-15px) translateX(7px); opacity: 0.8; }
}

/* ============================================
   NOSSA HISTÓRIA (seção cinematográfica)
============================================ */
.section-history {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0;
  color: #ffffff;
}

.history-bg {
  position: absolute;
  inset: 0;
  background-image: url('nossa-historia.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.02);
}

.history-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right,
      rgba(10, 10, 18, 0.92) 0%,
      rgba(10, 10, 18, 0.75) 45%,
      rgba(10, 10, 18, 0.65) 100%
    ),
    linear-gradient(to top,
      rgba(10, 10, 18, 0.9) 0%,
      transparent 40%
    );
  pointer-events: none;
}

.history-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .history-container {
    grid-template-columns: 5fr 5fr;
    gap: 80px;
  }
}

.history-left {
  display: flex;
  flex-direction: column;
}

.history-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.9);
  margin-bottom: 1.5rem;
}

.history-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #f5f3ff;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .history-title { font-size: 4rem; }
}

@media (min-width: 1024px) {
  .history-title { font-size: 5.5rem; }
}

.history-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lilac-300);
  margin-top: 0.5rem;
}

.history-right {
  display: flex;
  flex-direction: column;
}

.history-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(229, 231, 235, 0.9);
  margin-bottom: 1rem;
}

.history-text p:last-child {
  margin-bottom: 0;
}

/* Nossa Sede */
.history-next {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.history-next-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* ============================================
   CARROSSEL "NOSSA SEDE"
============================================ */
.carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Desktop: grid 2 colunas */
.carousel-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.carousel-slide {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.history-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  background: rgba(124, 58, 237, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.history-photo:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
}

.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.history-photo:hover img {
  transform: scale(1.06);
}

.carousel-arrow,
.carousel-dots {
  display: none;
}

/* ============================================
   LIGHTBOX (popup da imagem)
============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(124, 58, 237, 0.5);
  transform: scale(1.1);
}

/* ============================================
   MOBILE — carrosséis e ajustes
============================================ */
@media (max-width: 767px) {
  .history-bg {
    background-image: url('background-historia-mobile.jpg');
    /* ou o nome da imagem que você quer no mobile */
  }

      /* ---- CARROSSEL NOSSA SEDE (1 foto por vez) ---- */
  .carousel {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }

  .carousel-track {
    display: flex !important;
    width: 100% !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
    will-change: transform;
  }

  .carousel-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .history-photo {
    aspect-ratio: 4 / 3;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .carousel-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(29, 33, 41, 0.8);
    backdrop-filter: blur(8px);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }

  .carousel-arrow-prev { left: 8px; }
  .carousel-arrow-next { right: 8px; }

  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(196, 181, 253, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .carousel-dot.active {
    background: var(--lilac-400);
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
  }

  /* ---- CONFIANÇA / ÉTICA / QUALIDADE ---- */
  .trust-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .trust-grid::-webkit-scrollbar { display: none; }
  .trust-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 280px;
  }

  /* ---- O QUE FAZEMOS ---- */
  .services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    min-width: 280px;
  }

  /* ---- HISTÓRIA ---- */
  .history-subtitle { display: none; }
  .history-right .history-eyebrow { display: none; }

  .history-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .history-next {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .section-history {
    padding: 80px 0;
    min-height: auto;
  }

  /* ---- HINT DO MAPA ---- */
  .hint-desktop { display: none; }
  .hint-mobile { display: inline; }
}