/* ===========================
   SGMAN - Global Styles (Modern)
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --primary: #0a0f1e;
  --secondary: #0d1b35;
  --accent: #00e5a0;
  --accent2: #2563eb;
  --text: #e8eaf0;
  --text-muted: #8892a4;
  --border: rgba(255,255,255,0.08);
}

body {
  font: 15px/1.5 'DM Sans', Arial, Helvetica, sans-serif;
  background: var(--primary);
  color: var(--text);
}

#hubspot-messages-iframe-container { z-index: 1 !important; }

/* ── Nav scroll effect ─────────────────────────── */

.blur-nav {
  backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(10,15,30,0.88) !important;
}

nav { transition: all 0.4s ease; }

/* ── Cookie alert ──────────────────────────────── */

#cookie-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  display: flex !important;
  background: rgba(13,27,53,0.95);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 14px 16px;
  width: 90%;
  font-size: 12px;
  color: var(--text-muted);
  transform: translate(-50%, 200%);
  transition: 0.5s ease-in-out;
  z-index: 1000;
  max-width: 1200px;
}

#cookie-alert a { color: var(--accent); }

#cookie-alert button {
  background: linear-gradient(135deg, var(--accent2), #7c3aed);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 6px 16px;
  font-weight: 600;
  white-space: nowrap;
}

#cookie-alert.visible { transform: translate(-50%, 0px); }

/* ── WhatsApp ──────────────────────────────────── */

.whatsapp-container {
  z-index: 100;
  position: fixed;
  bottom: 30px;
  right: 15px;
  background: rgba(13,27,53,0.98);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

form.whatsapp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.whatsapp-form button {
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.whatsapp-form button:hover { transform: scale(1.02); }

.whatsapp-form input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.9rem;
}
.whatsapp-form input::placeholder { color: var(--text-muted); }
.whatsapp-form input:focus {
  outline: none;
  border-color: rgba(0,229,160,0.4);
}

.whatsapp-form-header {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: white;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.close-whatsapp-form {
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.close-whatsapp-form:hover { opacity: 1; }

.whatsapp-icon img {
  z-index: 100;
  position: fixed;
  bottom: 30px;
  right: 15px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  border-radius: 15px;
  transition: 0.2s ease-in-out;
  width: 60px;
  cursor: pointer;
}

.whatsapp-icon img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}

/* ── Logo ──────────────────────────────────────── */

.logo {
  background-image: url('../imgs/logo_rect_shadow.png');
  width: 60px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 50px;
  vertical-align: middle;
  display: inline-block;
  margin-right: 15px;
}

#branding {
  display: inline-block;
  vertical-align: middle;
  font-size: 30px;
  color: #e2e4e7;
  font-family: 'Righteous', cursive;
}

/* ── Header ────────────────────────────────────── */

.header {
  border-bottom: 1px solid rgba(0,229,160,0.15);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Cards marketing ────────────────────────────── */

.marketing .card-deck .card:hover { transform: scale(1.05); }
.marketing .card-deck .card { transition: 0.5s; }

.marketing-00, .marketing-01, .marketing-02, .marketing-03 {
  background-size: cover;
  width: 100%;
  height: 100%;
}
.marketing-00 { background-image: url(../imgs/software-background.webp); background-position: center; }
.marketing-01 { background-image: url(../imgs/marketing_everywhere.webp); background-position: center; }
.marketing-02 { background-image: url(../imgs/Industria-4.0-2.webp); background-position: right; }
.marketing-03 { background-image: url(../imgs/collaborative.webp); background-position: center; }

.botons {
  width: 250px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin: auto;
  background-size: cover;
  transition: 0.3s;
}
.botons:hover { transform: scale(1.05); }

/* ── Carousel ───────────────────────────────────── */

.carousel-caption {
  background: rgba(10,15,30,0.7);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  text-shadow: 2px 2px 3px rgba(0,0,0,.5);
  backdrop-filter: blur(10px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: fit-content;
  width: 90%;
  border: 1px solid var(--border);
}

.carousel-inner {
  border-bottom: 1px solid rgba(0,229,160,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Plan badge colors ──────────────────────────── */

.bronze { background: linear-gradient(135deg, #cd7f32, #ffb975); }
.prata  { background: linear-gradient(135deg, #8f8f8f, #d4d4d4); }
.ouro   { background: linear-gradient(135deg, #ffc107, #ff9800); }

/* ── Feature img ────────────────────────────────── */

.feature-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.featurette-heading { margin-top: 0; }

.pointer { cursor: pointer; }

/* ── AJAX Loader ────────────────────────────────── */

.ajax-loader {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  z-index: 99999;
  display: none;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(10px);
}

.ajax-loader img {
  position: relative;
  top: 50%; left: 50%;
  width: 80px;
  margin-top: -40px;
  margin-left: -40px;
}

iframe { width: 100%; }

.aspect-ratio {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 51%;
}
.aspect-ratio iframe {
  position: absolute;
  width: 100%; height: 100%;
  left: 0; top: 0;
}

/* ── Alerts ─────────────────────────────────────── */

#alerta-sucesso, #alerta-erro {
  position: fixed;
  top: 0px;
  z-index: 9999;
  width: 100%;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  #cookie-alert {
    flex-wrap: wrap;
  }
  #cookie-alert button {
    width: 100%;
    margin-top: 8px;
  }
}
