/* ============================================================
   TchelloTech — main.css
   Estilos globais compartilhados por todas as páginas
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue:        #0078d4;
  --blue-dark:   #005a9e;
  --blue-light:  #eff6ff;
  --text:        #1a1a2e;
  --muted:       #6b7280;
  --border:      #e5e7eb;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --radius:      12px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow:      0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.13);
}

html  { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo .logo-box {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo .logo-box svg { fill: #fff; width: 18px; height: 18px; }

.nav-logo .brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.4px;
}

.nav-logo .brand span { color: var(--blue); }

/* Menu principal */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a { background: var(--blue-light); color: var(--blue); }

.nav-menu > li > a .chevron {
  width: 14px; height: 14px;
  fill: currentColor;
  transition: transform .2s;
  flex-shrink: 0;
}

.nav-menu > li:hover > a .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
}

.nav-menu > li:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  transition: background .12s;
}

.dropdown a:hover { background: var(--blue-light); color: var(--blue); }

.dropdown .dd-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown .dd-text { line-height: 1.3; }

.dropdown .dd-text small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* CTA direita */
.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}

.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,120,212,.3);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

/* Botões hero (maiores) */
.btn-hero {
  padding: 13px 28px;
  font-size: 15px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary { background: #fff; color: var(--blue); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn-hero-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ============================================================
   LAYOUT — SEÇÕES
   ============================================================ */
.section { padding: 72px 24px; }
.section.gray { background: var(--bg); }

.container { max-width: 1180px; margin: 0 auto; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ============================================================
   HERO (genérico — pode ser sobrescrito por página)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #0f2044 0%, #0078d4 60%, #50c8f0 100%);
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #e0f0ff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: .3px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero h1 em { font-style: normal; color: #7dd3fc; }

.hero p {
  font-size: 17px;
  color: #bfdbfe;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   CARDS GENÉRICOS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-hover {
  transition: box-shadow .2s, transform .15s, border-color .2s;
  cursor: pointer;
}
.card-hover:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .15s, border-color .2s;
  cursor: pointer;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Product tiles */
.products-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.product-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .15s, transform .1s, border-color .15s;
  box-shadow: var(--shadow-sm);
}

.product-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.product-tile .tile-icon { font-size: 30px; line-height: 1; }
.product-tile .tile-name { font-size: 13px; font-weight: 600; color: var(--text); }

.product-tile .tile-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
}

/* Resource cards */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
  cursor: pointer;
}

.resource-card:hover { box-shadow: var(--shadow); border-color: #bfdbfe; }

.resource-card .res-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.resource-card .res-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.resource-card .res-body p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.res-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.badge-blue   { background: #dbeafe; color: #2563eb; }
.badge-green  { background: #dcfce7; color: #16a34a; }
.badge-purple { background: #ede9fe; color: #7c3aed; }
.badge-orange { background: #ffedd5; color: #ea580c; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-yellow { background: #fef9c3; color: #a16207; }

/* Status pill (inline) */
.status-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.pill-green  { background: #dcfce7; color: #16a34a; }
.pill-yellow { background: #fef9c3; color: #a16207; }
.pill-blue   { background: #dbeafe; color: #2563eb; }
.pill-red    { background: #fee2e2; color: #dc2626; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(130deg, #0f2044, #0078d4);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1180px;
}

.cta-banner h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.4px;
  margin-bottom: 8px;
}

.cta-banner p { font-size: 15px; color: #93c5fd; }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   DEMO BANNER (aviso de conteúdo demonstrativo)
   ============================================================ */
.demo-banner {
  background: #fefce8;
  border-bottom: 2px solid #fde047;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: #713f12;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.demo-banner strong { font-weight: 700; }

/* ============================================================
   UNDER CONSTRUCTION BLOCK
   ============================================================ */
.under-construction {
  text-align: center;
  padding: 80px 24px;
  max-width: 540px;
  margin: 0 auto;
}

.under-construction .uc-icon {
  font-size: 56px;
  margin-bottom: 20px;
  line-height: 1;
}

.under-construction h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.under-construction p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  background: var(--white);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.3px;
}

.footer-brand span { color: var(--blue); }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a { font-size: 13px; color: var(--muted); transition: color .12s; }
.footer-links a:hover { color: var(--blue); }

.footer-copy { font-size: 12px; color: var(--muted); }

/* ============================================================
   UTILITÁRIOS DE COR (background soft)
   ============================================================ */
.bg-blue-soft   { background: #dbeafe; }
.bg-purple-soft { background: #ede9fe; }
.bg-green-soft  { background: #dcfce7; }
.bg-orange-soft { background: #ffedd5; }
.bg-teal-soft   { background: #ccfbf1; }
.bg-red-soft    { background: #fee2e2; }
.bg-yellow-soft { background: #fef9c3; }
.bg-pink-soft   { background: #fce7f3; }
.bg-indigo-soft { background: #e0e7ff; }
.bg-cyan-soft   { background: #cffafe; }
.bg-slate-soft  { background: #f1f5f9; }
.bg-moss-soft   { background: #ecfdf5; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 900px) {
  .cta-banner { text-align: center; justify-content: center; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .section  { padding: 52px 20px; }
  .cta-banner { padding: 40px 28px; }
  .products-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .products-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 64px 20px 52px; }
}
