/* =====================================================
   DROYDS FUTURISTIC THEME
   Identidade Visual: Preto + Azul #32b6ff
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --blue: #32b6ff;
  --blue-dark: #1a7ab5;
  --blue-glow: rgba(50, 182, 255, 0.4);
  --blue-glow-soft: rgba(50, 182, 255, 0.15);
  --black: #05060f;
  --black-card: #0c0e1a;
  --black-card2: #111326;
  --black-border: rgba(50, 182, 255, 0.2);
  --white: #ffffff;
  --gray: #a0aec0;
  --gray-dark: #4a5568;
  --transition: all 0.3s ease;
}

/* ---- RESET GLOBAL ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
}

p { color: var(--gray); margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =====================================================
   PRELOADER
   ===================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 60px; height: 60px;
  border: 3px solid var(--black-card2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--blue);
  color: var(--black) !important;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px var(--blue-glow);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--white); color: var(--black) !important; transform: translateY(-3px); }

/* =====================================================
   HEADER / NAV
   ===================================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 0;
  transition: var(--transition);
}
/* backdrop-filter no ::before para não criar containing block para filhos position:fixed */
#header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
  z-index: -1;
  transition: var(--transition);
}
#header.scrolled::before {
  background: rgba(5, 6, 15, 0.97);
  box-shadow: 0 4px 30px rgba(50, 182, 255, 0.08);
}
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo img { height: 68px; width: auto; filter: drop-shadow(0 0 10px rgba(50,182,255,0.35)); }

/* ---- NAV ---- */
.nav-menu ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-menu ul li a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}
.nav-menu ul li a:hover,
.nav-menu ul li.active > a {
  color: var(--blue);
  background: var(--blue-glow-soft);
}
/* Access System button */
.nav-menu .btn-access a {
  background: var(--blue);
  color: var(--black) !important;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-size: 0.82rem;
  box-shadow: 0 0 16px var(--blue-glow);
}
.nav-menu .btn-access a:hover {
  background: var(--white);
  box-shadow: 0 0 24px rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ---- DROPDOWN ---- */
.nav-menu .drop-down { position: relative; }
.nav-menu .drop-down > a::after {
  content: ' ▾';
  font-size: 0.7rem;
  opacity: 0.6;
}
.nav-menu .drop-down ul {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--black-card2);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 0.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px var(--blue-glow-soft);
  flex-direction: column;
  gap: 0;
  z-index: 100;
}
.nav-menu .drop-down:hover ul { display: flex; }
.nav-menu .drop-down ul li a {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  color: var(--gray);
  display: block;
}
.nav-menu .drop-down ul li a:hover { color: var(--blue); background: var(--blue-glow-soft); }
.nav-menu .drop-down ul hr {
  border-color: var(--black-border);
  margin: 0.25rem 0.75rem;
}

/* Mobile hamburger */
.mobile-nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* =====================================================
   HERO SECTION — HYPERSPACE
   ===================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  padding-top: 70px;
}

/* Hyperspace canvas — fills entire hero */
#hyperspace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: crosshair;
}

/* CRT scanlines overlay for extra sci-fi feel */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
}

/* Vignette */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5,6,15,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
  /* subtle text shadow to stay readable over canvas */
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(5,6,15,0.6);
  border: 1px solid var(--blue-glow);
  color: var(--blue);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.8s ease both;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue), 0 0 14px var(--blue);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
#heroTagline {
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: inline-block;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--blue), 0 0 14px var(--blue); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--blue); }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-title .highlight {
  color: var(--blue);
  text-shadow: 0 0 30px rgba(50, 182, 255, 0.5);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ---- SCROLL INDICATOR ---- */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease 1.4s both;
}
.scroll-mouse {
  width: 26px; height: 42px;
  border: 2px solid rgba(50,182,255,0.5);
  border-radius: 13px;
  position: relative;
  box-shadow: 0 0 12px rgba(50,182,255,0.2);
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--blue);
  border-radius: 2px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.6s ease-in-out infinite;
  box-shadow: 0 0 6px var(--blue);
}
@keyframes wheelScroll {
  0% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0; }
  81% { top: 6px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* =====================================================
   ABOUT GRID
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-content { padding: 0; }
}

/* =====================================================
   CLIENTES — MARQUEE CAROUSEL
   ===================================================== */
#clientes {
  background: var(--black-card);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.marquee-outer {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;        /* clip horizontal scroll */
  padding: 4px 0;          /* room for hover lift */
}

/* Fade edges */
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--black-card) 0%, transparent 100%);
}
.marquee-fade-right {
  right: 0;
  background: linear-gradient(-90deg, var(--black-card) 0%, transparent 100%);
}

.marquee-track {
  overflow: visible;
  margin-bottom: 1rem;
  padding: 12px 0;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  cursor: grab;
  animation: marqueeLeft 45s linear infinite;
  user-select: none;
}
.marquee-inner:active { cursor: grabbing; }
.marquee-reverse { animation: marqueeRight 50s linear infinite; }

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-item {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  background: var(--black-card2);
  border: 1px solid rgba(50,182,255,0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}

/* Neon glow layer behind — always subtly visible */
.marquee-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: transparent;
  box-shadow: inset 0 0 14px rgba(50,182,255,0.07);
  transition: box-shadow 0.35s ease;
}

/* Bottom line accent */
.marquee-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.marquee-item:hover {
  border-color: rgba(50,182,255,0.65);
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    0 0 18px rgba(50,182,255,0.35),
    0 0 40px rgba(50,182,255,0.15),
    0 12px 30px rgba(0,0,0,0.5);
  background: rgba(50,182,255,0.06);
  z-index: 5;
}
.marquee-item:hover::before {
  box-shadow: inset 0 0 24px rgba(50,182,255,0.18);
}
.marquee-item:hover::after { opacity: 1; }

.marquee-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(0.45) brightness(1.15) contrast(1.05);
  transition: filter 0.35s ease;
  pointer-events: none;
}
.marquee-item:hover img {
  filter: grayscale(0) brightness(1.3) contrast(1.1) drop-shadow(0 0 10px rgba(50,182,255,0.5));
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary-d {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--black) !important;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 20px var(--blue-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary-d:hover {
  background: var(--white);
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
  transform: translateY(-2px);
  color: var(--black) !important;
}

.btn-outline-d {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white) !important;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--black-border);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-d:hover {
  border-color: var(--blue);
  color: var(--blue) !important;
  background: var(--blue-glow-soft);
  transform: translateY(-2px);
}

/* =====================================================
   SECTIONS COMMON
   ===================================================== */
section { padding: 6rem 0; }

.section-tag {
  display: inline-block;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
}
.section-tag::before {
  content: '// ';
  opacity: 0.5;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title .accent { color: var(--blue); }

.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--gray);
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================================================
   CARDS
   ===================================================== */
.card-d {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card-d::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: var(--transition);
}
.card-d:hover {
  border-color: rgba(50,182,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--blue-glow-soft);
}
.card-d:hover::before { opacity: 1; }

/* =====================================================
   ABOUT SECTION
   ===================================================== */
#about {
  background: var(--black);
  position: relative;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  border-radius: 20px;
  filter: brightness(0.85) saturate(0.9);
  transition: var(--transition);
}
.about-img-wrap:hover img { filter: brightness(1) saturate(1); }
.about-img-glow {
  position: absolute;
  inset: 0;
  border: 1px solid var(--black-border);
  border-radius: 20px;
  box-shadow: inset 0 0 40px rgba(50,182,255,0.05);
}
.about-img-badge {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  background: rgba(5,6,15,0.9);
  border: 1px solid var(--black-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.about-img-badge .number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.about-img-badge .label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.about-content { padding: 1rem 0 1rem 2rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.stat-item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
}
.stat-item:hover { border-color: var(--blue); }
.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
#services { background: var(--black-card); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.4s ease;
}
.service-card:hover {
  border-color: rgba(50,182,255,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 25px var(--blue-glow-soft);
}
.service-card:hover::after { width: 100%; }

.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-glow-soft);
  border: 1px solid var(--blue-glow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--black);
  box-shadow: 0 0 20px var(--blue-glow);
}

.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}
.service-desc { font-size: 0.875rem; color: var(--gray); line-height: 1.6; }

/* =====================================================
   SKILLS SECTION
   ===================================================== */
#skills {
  background: var(--black);
  position: relative;
  overflow: hidden;
}
#skills::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(50,182,255,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.skill-item:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--blue-glow-soft);
}

.skill-ring-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 1rem;
}

.skill-ring-svg { transform: rotate(-90deg); }
.skill-ring-bg { fill: none; stroke: var(--black-card2); stroke-width: 6; }
.skill-ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s ease;
  filter: drop-shadow(0 0 6px var(--blue));
}

.skill-percent {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

/* =====================================================
   WORK WITH US (CTA)
   ===================================================== */
#work-cta {
  background: var(--black-card);
  position: relative;
  overflow: hidden;
}
#work-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,182,255,0.05) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.cta-img {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--black-border);
  box-shadow: 0 0 40px rgba(50,182,255,0.1);
}
.cta-img img {
  width: 100%;
  filter: brightness(0.75) saturate(0.8);
  display: block;
}
.cta-text .section-title { margin-bottom: 0.75rem; }
.cta-text p { margin-bottom: 2rem; }

/* =====================================================
   CONTACT SECTION
   ===================================================== */
#contact { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  transition: var(--transition);
}
.contact-info-item:hover { border-color: var(--blue); }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--blue-glow-soft);
  border: 1px solid var(--blue-glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-text strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
}
.contact-info-text span { color: var(--gray); font-size: 0.875rem; }

/* ---- CONTACT FORM ---- */
.contact-form-wrap {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 20px;
  padding: 2.5rem;
}
.contact-form-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
}
.form-control-d {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control-d:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(50,182,255,0.1);
}
.form-control-d::placeholder { color: var(--gray-dark); }
textarea.form-control-d { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-notice {
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--black-card);
  border-top: 1px solid var(--black-border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--black-border);
  margin-bottom: 1.5rem;
}
.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--gray); max-width: 280px; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: var(--black-card2);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
  box-shadow: 0 0 12px var(--blue-glow);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: var(--gray);
  font-size: 0.875rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--blue); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray-dark); margin: 0; }
.footer-bottom a { color: var(--blue); font-size: 0.8rem; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* AOS-like reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  #header .container {
    padding: 0 1rem;
    height: 60px;
  }
  #header .logo img,
  .logo img {
    height: 38px !important;
    max-height: 38px !important;
  }
  .nav-menu { display: none; }
  .mobile-nav-toggle {
    display: flex !important;
    flex-shrink: 0;
    position: static !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    top: auto !important;
    right: auto !important;
    z-index: auto !important;
  }

  .mobile-nav-open .nav-menu {
    display: block;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: rgba(5,6,15,0.98);
    padding: 2rem;
    overflow-y: auto;
    z-index: 1001;
  }
  .mobile-nav-open .nav-menu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .mobile-nav-open .nav-menu ul li { width: 100%; }
  .mobile-nav-open .nav-menu ul li a { font-size: 1.1rem; padding: 0.75rem 1rem; }
  .mobile-nav-open .nav-menu .drop-down ul {
    display: flex;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--black-card2);
    padding: 0.5rem;
    border-radius: 12px;
    margin-top: 0.25rem;
  }

  .about-content { padding: 1rem 0; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-img { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hero-title { font-size: 2rem; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   ENCONTRE REVENDA / OUTROS
   ===================================================== */
.revenda-section {
  background: linear-gradient(135deg, var(--black-card) 0%, var(--black) 100%);
  border-top: 1px solid var(--black-border);
  border-bottom: 1px solid var(--black-border);
  padding: 3rem 0;
}

/* Tipografia */
.text-blue { color: var(--blue); }
.text-gray { color: var(--gray); }

/* Container */
.container-d {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid helpers */
.row-d {
  display: grid;
  gap: 2rem;
}
.col-2 { grid-template-columns: 1fr 1fr; }
.col-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .col-2, .col-3 { grid-template-columns: 1fr; }
}

/* =====================================================
   BOOTSTRAP COMPAT (para encontre_revenda + outras páginas)
   ===================================================== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col-md-4 { width: 33.333%; padding: 0 15px; }
.col-md-6 { width: 50%; padding: 0 15px; }
.col-md-12 { width: 100%; padding: 0 15px; }
.col-12 { width: 100%; padding: 0 15px; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.p-3 { padding: 1rem; }
.h-100 { height: 100%; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.w-100 { width: 100%; }

.form-control {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--black-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  margin-bottom: 1rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2332b6ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(50,182,255,0.1);
}
.form-control option { background: var(--black-card2); color: var(--white); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
}

/* Bootstrap Card — revenda result cards */
.card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  color: var(--white);
}
.card:hover {
  border-color: rgba(50,182,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px var(--blue-glow-soft);
}
.card-body { padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--white); font-family: 'Space Grotesk', sans-serif; }
.card p { font-size: 0.85rem; color: var(--gray); margin-bottom: 0.4rem; }
.card p strong { color: var(--white); }
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.25rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-decoration: none; font-family: 'Space Grotesk', sans-serif; }
.btn-success { background: #25d366; color: #000; }
.btn-success:hover { background: #20bd5a; transform: translateY(-1px); color: #000; }

/* Secção encontre revenda */
#divEncontreRevenda {
  padding: 0;
  background: transparent;
}
#divEncontreRevenda .contact-inner { padding: 0; }
#divEncontreRevenda .contact-overly { display: none; }
#divEncontreRevenda .section-headline h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}
#divEncontreRevenda .container { max-width: 100%; padding: 0; }

/* Revenda section wrapper */
.revenda-section { padding: 4rem 0; }
.revenda-section .section-headline { text-align: center; }

@media (max-width: 768px) {
  .col-md-4 { width: 100%; }
  .col-md-6 { width: 100%; }
}

/* =====================================================
   REVENDAS SECTION
   ===================================================== */
#revendas {
  background: var(--black);
  position: relative;
}

.revendas-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

/* ---- Mapa ---- */
.mapa-wrap { position: relative; }

.mapa-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  font-family: 'Space Grotesk', sans-serif;
}

.mapa-container {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 0 40px rgba(50,182,255,0.05);
}

.brazil-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* State paths */
#brazilMap path {
  fill: var(--black-card2);
  stroke: rgba(50,182,255,0.25);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}
#brazilMap path.has-revenda {
  fill: rgba(50,182,255,0.18);
  stroke: rgba(50,182,255,0.5);
}
#brazilMap path.hovered {
  fill: rgba(50,182,255,0.28);
  stroke: var(--blue);
  filter: drop-shadow(0 0 6px rgba(50,182,255,0.4));
}
#brazilMap path.selected {
  fill: rgba(50,182,255,0.45);
  stroke: var(--blue);
  stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(50,182,255,0.6));
}
.state-label {
  fill: rgba(255,255,255,0.55);
  font-size: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  pointer-events: none;
  text-anchor: middle;
  letter-spacing: 0.02em;
}

.mapa-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.active-dot { background: var(--blue); box-shadow: 0 0 6px var(--blue); }
.all-dot { background: var(--black-card2); border: 1px solid rgba(50,182,255,0.3); }

/* ---- Cards ---- */
.revendas-cards-wrap { min-height: 300px; }

.revendas-filter-info {
  font-size: 0.8rem;
  color: var(--blue);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--blue-glow-soft);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  display: inline-block;
}

.revendas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.revenda-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.revenda-card:hover {
  border-color: rgba(50,182,255,0.45);
  box-shadow: 0 0 24px var(--blue-glow-soft), 0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.revenda-card.hidden { display: none; }

.revenda-card-header {
  position: relative;
  background: var(--black-card2);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-bottom: 1px solid var(--black-border);
}
.revenda-logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.revenda-logo img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1.1);
}

.revenda-badge-uf {
  position: absolute;
  top: 0.6rem; right: 0.75rem;
  background: var(--blue);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
}

.revenda-card-body {
  padding: 1.1rem 1.25rem 0.75rem;
  flex: 1;
}
.revenda-card-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.3;
}
.revenda-cidade {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
}
.revenda-cidade i { color: var(--blue); margin-right: 0.3rem; }

.revenda-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}
.btn-revenda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-whats {
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366;
}
.btn-whats:hover {
  background: #25d366;
  color: #000;
  border-color: #25d366;
  box-shadow: 0 0 14px rgba(37,211,102,0.4);
}
.btn-email {
  background: var(--blue-glow-soft);
  border: 1px solid var(--black-border);
  color: var(--blue);
}
.btn-email:hover {
  background: var(--blue);
  color: var(--black);
  border-color: var(--blue);
  box-shadow: 0 0 14px var(--blue-glow);
}

.revendas-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
  color: var(--gray);
  background: var(--black-card);
  border: 1px dashed var(--black-border);
  border-radius: 16px;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .revendas-layout { grid-template-columns: 1fr; }
  .mapa-container { max-width: 400px; margin: 0 auto; }
}

/* =====================================================
   WHATSAPP FLOAT BUTTON
   ===================================================== */
.whats-float {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  animation: wFloatIn 0.6s ease 1.5s both;
}

@keyframes wFloatIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.whats-float-inner {
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.whats-float-inner svg { width: 30px; height: 30px; }

@keyframes wPulse {
  0%  { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  60% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.whats-float-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(8px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.whats-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #111;
}
.whats-float:hover .whats-float-inner {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whats-float:hover .whats-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =====================================================
   LOADER TECNOLÓGICO (substitui o antigo)
   ===================================================== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Remove old ring */
.preloader-ring { display: none; }

.loader-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem;
  width: min(380px, 90vw);
}

.loader-logo {
  animation: loaderLogoPulse 1.5s ease-in-out infinite alternate;
}
.loader-logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(50,182,255,0.7));
}
@keyframes loaderLogoPulse {
  from { filter: drop-shadow(0 0 12px rgba(50,182,255,0.5)); opacity:.85; }
  to   { filter: drop-shadow(0 0 28px rgba(50,182,255,1));   opacity:1; }
}

.loader-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(50,182,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), #a8e0ff);
  border-radius: 2px;
  transition: width .28s ease;
  box-shadow: 0 0 12px var(--blue);
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  animation: barShine .6s ease-in-out infinite;
}
@keyframes barShine { 0%,100%{opacity:0;} 50%{opacity:1;} }

.loader-status {
  font-family: 'Orbitron', monospace;
  font-size: .72rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .18em;
  text-align: center;
  min-height: 1.2em;
  animation: statusFlicker .08s step-end infinite;
}
@keyframes statusFlicker { 0%,100%{opacity:1;} 50%{opacity:.85;} }

.loader-dots {
  display: flex;
  gap: .4rem;
}
.loader-dots span {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: dotBounce 1s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce { 0%,80%,100%{transform:scale(.8);opacity:.4;} 40%{transform:scale(1.2);opacity:1;} }

/* Corner brackets */
.loader-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: rgba(50,182,255,0.5);
  border-style: solid;
}
.loader-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.loader-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.loader-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.loader-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* =====================================================
   REVENDAS — placeholder & panel updates
   ===================================================== */
.revendas-panel {
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.revendas-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 3rem 2rem;
  background: var(--black-card);
  border: 1px dashed rgba(50,182,255,0.2);
  border-radius: 20px;
  gap: 1rem;
  animation: fadeIn .5s ease;
}
.placeholder-icon svg { width: 60px; height: 60px; animation: placeholderPulse 3s ease-in-out infinite; }
@keyframes placeholderPulse { 0%,100%{transform:scale(1);opacity:.7;} 50%{transform:scale(1.05);opacity:1;} }
.revendas-placeholder h4 { font-size: 1.1rem; color: var(--white); margin: 0; font-family: 'Space Grotesk', sans-serif; }
.revendas-placeholder p  { color: var(--gray); font-size: .9rem; margin: 0; }

.revendas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.mapa-selected-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  padding: .5rem 1rem;
  background: var(--blue-glow-soft);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--blue);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.mapa-clear {
  margin-left: auto;
  background: none;
  border: 1px solid rgba(50,182,255,0.3);
  color: var(--gray);
  border-radius: 6px;
  padding: .2rem .6rem;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Space Grotesk', sans-serif;
}
.mapa-clear:hover { border-color: var(--blue); color: var(--blue); }

/* =====================================================
   BRAZIL MAP — SVG text labels fix
   ===================================================== */
#brazilMap text.state-label {
  font-size: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  fill: rgba(255,255,255,0.6);
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* =====================================================
   OVERRIDES ESPECÍFICOS — CORRIGE app.css
   ===================================================== */

/* Logo header — desktop */
#header .logo img,
.logo img {
  max-height: none !important;
  height: 52px !important;
  width: auto !important;
  filter: drop-shadow(0 0 10px rgba(50,182,255,0.35)) !important;
}
@media (max-width: 992px) {
  #header .logo img,
  .logo img {
    height: 38px !important;
    max-height: 38px !important;
  }
}

/* Preloader — app.css usa div#preloader com fundo branco */
div#preloader {
  background: #05060f !important;
  background-image: none !important;
}
div#preloader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =====================================================
   STATE SELECTOR (substitui o mapa SVG)
   ===================================================== */
.estado-selector {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.estados-region {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.region-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
  padding-left: .2rem;
}

.estados-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.estado-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--black-card2);
  border: 1px solid rgba(50,182,255,0.14);
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .04em;
  user-select: none;
  position: relative;
}
.estado-btn:hover {
  border-color: rgba(50,182,255,.4);
  color: var(--blue);
  background: rgba(50,182,255,.08);
  transform: translateY(-2px);
}
.estado-btn.has-revenda {
  border-color: rgba(50,182,255,.45);
  color: var(--blue);
  background: rgba(50,182,255,.1);
  box-shadow: 0 0 10px rgba(50,182,255,.15);
}
.estado-btn.has-revenda::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 5px; height: 5px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 4px var(--blue);
}
.estado-btn.selected {
  background: var(--blue) !important;
  color: var(--black) !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 18px rgba(50,182,255,.55) !important;
  transform: translateY(-2px) scale(1.08) !important;
}

.estado-legend {
  display: flex;
  gap: 1.25rem;
  font-size: .75rem;
  color: var(--gray);
  padding-top: .25rem;
}
.estado-legend span { display: flex; align-items: center; gap: .4rem; }
.legend-has { width:8px;height:8px;background:var(--blue);border-radius:50%;box-shadow:0 0 5px var(--blue); }
.legend-no  { width:8px;height:8px;background:var(--gray-dark);border-radius:50%; }

/* closest revenda notice */
.revenda-closest-notice {
  background: rgba(50,182,255,0.07);
  border: 1px solid rgba(50,182,255,0.25);
  border-radius: 12px;
  padding: .75rem 1rem;
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.revenda-closest-notice i { color: var(--blue); font-size: 1rem; }
.revenda-closest-notice strong { color: var(--white); }

/* =====================================================
   CONTACT — só info, sem formulário
   ===================================================== */
.contact-only {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-only-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-only-right {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.contact-only-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.contact-quote {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  color: rgba(50,182,255,.12);
  line-height: 1;
  margin-bottom: -.5rem;
}
.contact-cta-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.3;
}
.contact-cta-sub {
  font-size: .9rem;
  color: var(--gray);
}
.contact-cta-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.btn-whats-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #25d366;
  color: #000 !important;
  padding: .9rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  box-shadow: 0 0 20px rgba(37,211,102,.35);
  transition: all .3s ease;
}
.btn-whats-main:hover {
  background: #20bd5a;
  box-shadow: 0 0 32px rgba(37,211,102,.55);
  transform: translateY(-2px);
  color: #000 !important;
}
.btn-email-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: transparent;
  color: var(--blue) !important;
  padding: .9rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .95rem;
  border: 1px solid var(--black-border);
  transition: all .3s ease;
}
.btn-email-main:hover {
  border-color: var(--blue);
  background: var(--blue-glow-soft);
  transform: translateY(-2px);
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--black-border);
  margin: 0;
}

.contact-social-row {
  display: flex;
  gap: .75rem;
  align-items: center;
}
.contact-social-label {
  font-size: .75rem;
  color: var(--gray-dark);
  font-family: 'Space Grotesk', sans-serif;
  margin-right: .25rem;
}

@media (max-width: 768px) {
  .contact-only { grid-template-columns: 1fr; }
  .estado-btn { width: 40px; height: 40px; font-size: .56rem; }
}
