/* ============================================================
   ALPDATA — style.css  (tema CLARO)
   Branco/cinza claro + acentos vermelhos — clean corporativo
   ============================================================ */

:root {
  --red:         #C0392B;
  --red-hover:   #A93226;
  --red-glow:    rgba(192, 57, 43, 0.10);
  --red-border:  rgba(192, 57, 43, 0.25);

  --bg:          #FFFFFF;
  --bg-alt:      #F5F6F8;
  --bg-card:     #FFFFFF;
  --bg-card-alt: #F9FAFB;

  --border:      rgba(0, 0, 0, 0.08);
  --border-mid:  rgba(0, 0, 0, 0.13);

  --text:        #1A1A1A;
  --text-body:   #444450;
  --text-muted:  #7A7A8A;

  --hero-bg:     #F5F6F8;   /* hero claro, animação em tons suaves */

  --radius:      12px;
  --radius-lg:   18px;
  --transition:  0.22s ease;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.13);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-weight: 700; color: var(--text); line-height: 1.2; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-hover); }

.text-red       { color: var(--red) !important; }
.text-muted-light { color: var(--text-muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── Seções ── */
.py-section { padding: 100px 0; }
.section-dark   { background: var(--bg); }
.section-darker { background: var(--bg-alt); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

/* ── Navbar ── */
#mainNav {
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 16px 0;
}

/* Hero claro — navbar usa links escuros desde o início */
#mainNav .nav-link     { color: var(--text-body) !important; }
#mainNav .navbar-brand { color: var(--text); }

#mainNav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  padding: 10px 0;
}

#mainNav.scrolled .nav-link     { color: var(--text-body) !important; }
#mainNav.scrolled .navbar-brand { color: var(--text); }
#mainNav.scrolled .navbar-toggler { border-color: var(--border-mid); }
#mainNav.scrolled .navbar-toggler-icon {
  filter: invert(1) sepia(1) saturate(0) brightness(0.3);
}

.brand-fallback { font-size: 1.4rem; }

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 12px !important;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover { background: rgba(0,0,0,0.05); }

/* ── Botões ── */
.btn-red {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-red:hover {
  background: var(--red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.30);
}

/* ── Hero (permanece escuro para canvas) ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(245,246,248,0.82) 0%,
    rgba(245,246,248,0.60) 60%,
    rgba(192,57,43,0.04) 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.highlight-red { color: var(--red); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

.hero-badge-stack { display: flex; flex-direction: column; gap: 16px; }

.stat-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.80);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), background var(--transition);
}
.stat-badge:hover {
  border-color: var(--red-border);
  background: #fff;
}
.stat-val   { font-weight: 700; font-size: 1rem; color: var(--text); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

.scroll-down-arrow {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(0,0,0,0.25);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  transition: color var(--transition);
}
.scroll-down-arrow:hover { color: var(--red); }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Sobre ── */
.about-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about-card:hover {
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}
.about-card i { font-size: 1.2rem; flex-shrink: 0; }

/* ── Soluções ── */
.featured-solution {
  background: linear-gradient(135deg, rgba(192,57,43,0.06) 0%, #fff 70%);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.featured-solution:hover {
  border-color: rgba(192,57,43,0.45);
  box-shadow: var(--shadow-md);
}

.solution-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--red);
  margin: 0 auto;
}

.bg-red-glow {
  background: var(--red-glow);
  border: 1px solid var(--red-border);
}

.badge-featured {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.solution-card:hover {
  border-color: var(--red-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: var(--red-glow);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 20px;
}

.solution-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.solution-card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.65; }

/* ── Diferenciais ── */
.diff-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.diff-card:hover {
  border-color: var(--red-border);
  box-shadow: var(--shadow-md);
}

.featured-diff {
  border-color: var(--red-border);
  background: linear-gradient(135deg, rgba(192,57,43,0.05), #fff);
}

.diff-icon {
  width: 48px;
  height: 48px;
  background: var(--red-glow);
  border: 1px solid var(--red-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
}
.diff-card h5 { font-size: 1rem; margin-bottom: 8px; color: var(--text); }

/* ── Contato ── */
.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-item:hover { color: var(--text); }
.contact-item i { font-size: 1.2rem; flex-shrink: 0; }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
}

.form-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-control-dark,
select.form-control-dark {
  background: var(--bg-alt) !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control-dark:focus,
select.form-control-dark:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12) !important;
  outline: none;
  background: #fff !important;
}
.form-control-dark::placeholder { color: rgba(0,0,0,0.28); }
select.form-control-dark option { background: #fff; color: var(--text); }
textarea.form-control-dark { resize: vertical; min-height: 110px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ── Footer ── */
.footer-dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-brand { font-size: 1.3rem; }

.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--red); }

/* ── WhatsApp flutuante ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.40);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.50);
}

/* ── Responsivo ── */
@media (max-width: 991px) {
  .py-section { padding: 72px 0; }
  .hero-title  { font-size: 2.4rem; }
}
@media (max-width: 767px) {
  .py-section          { padding: 56px 0; }
  .contact-form-card   { padding: 24px 20px; }
  .featured-solution   { padding: 24px 20px; }
  .diff-card           { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
