/* ============================================================
   Tradesparq PT-BR — Stylesheet Global
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #fff;
  padding-top: 80px; /* compensar nav fixa */
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- Botões ------------------------------------------------- */
.ts-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.ts-btn--primary {
  background: #e53935;
  color: #fff;
  border: 2px solid #e53935;
}
.ts-btn--primary:hover { background: #c62828; border-color: #c62828; }
.ts-btn--outline {
  background: transparent;
  color: #333;
  border: 2px solid #ccc;
}
.ts-btn--outline:hover { border-color: #e53935; color: #e53935; }
.ts-btn--white {
  background: #fff;
  color: #e53935;
  border: 2px solid #fff;
}
.ts-btn--white:hover { background: #f5f5f5; }
.ts-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
}
.ts-btn--ghost:hover { background: rgba(255,255,255,.15); }

/* --- Navegação --------------------------------------------- */
.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  height: 80px;
}
.ts-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ts-nav__logo img { height: 44px; }
.ts-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.ts-nav__item > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  border-radius: 4px;
  transition: color .2s;
  white-space: nowrap;
}
.ts-nav__item > a:hover,
.ts-nav__item.active > a { color: #e53935; }
.ts-nav__arrow { font-size: 10px; margin-left: 3px; }

/* Dropdown */
.ts-nav__item--has-dropdown { position: relative; }
.ts-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px 0;
  z-index: 100;
}
.ts-nav__item--has-dropdown:hover .ts-nav__dropdown,
.ts-nav__item--has-dropdown.open .ts-nav__dropdown { display: block; }
.ts-nav__dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #555;
  transition: background .15s, color .15s;
}
.ts-nav__dropdown li a:hover { background: #fff5f5; color: #e53935; }

/* Ações */
.ts-nav__actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Hambúrguer mobile */
.ts-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.ts-nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.ts-nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ts-nav__hamburger.active span:nth-child(2) { opacity: 0; }
.ts-nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Section helpers --------------------------------------- */
.ts-section { padding: 80px 0; }
.ts-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ts-section__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.ts-section__subtitle {
  font-size: 15px;
  text-align: center;
  color: #666;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* --- HOME: Hero -------------------------------------------- */
.ts-hero {
  min-height: 520px;
  background: url('../images/home/home_banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0;
  position: relative;
}
.ts-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,20,50,.45);
}
.ts-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: #fff;
}
.ts-hero__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 600px;
  margin-bottom: 32px;
}
.ts-hero__title span { color: #ff6b6b; }
.ts-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- HOME: Seção de Estatísticas (counter) ----------------- */
.ts-stats {
  background: url('../images/home/homeBg2.png') center/cover no-repeat;
  padding: 60px 0;
  color: #fff;
}
.ts-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.ts-stats__number { font-size: 42px; font-weight: 700; }
.ts-stats__label { font-size: 14px; margin-top: 6px; opacity: .85; }

/* --- HOME: Seção de Regiões -------------------------------- */
.ts-regions { background: #f8f9fb; }
.ts-regions__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
  flex-wrap: wrap;
}
.ts-regions__tab {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  color: #666;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.ts-regions__tab:hover { color: #e53935; }
.ts-regions__tab.active { color: #e53935; border-bottom-color: #e53935; font-weight: 700; }
.ts-regions__panel { display: none; }
.ts-regions__panel.active { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.ts-regions__img { flex: 1; min-width: 280px; }
.ts-regions__img img { width: 100%; border-radius: 8px; }
.ts-regions__text { flex: 1; min-width: 260px; }
.ts-regions__text h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: #1a1a2e; }
.ts-regions__text p { font-size: 15px; color: #555; line-height: 1.75; margin-bottom: 20px; }

/* --- HOME: Seção "Para Todos" (cards) ---------------------- */
.ts-for-all { background: #fff; }
.ts-for-all__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ts-for-all__card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}
.ts-for-all__card:hover { transform: translateY(-4px); }
.ts-for-all__card__front,
.ts-for-all__card__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity .3s;
}
.ts-for-all__card__front {
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.ts-for-all__card__back {
  background: rgba(20,30,80,.88);
  color: #fff;
  opacity: 0;
  text-align: left;
  padding: 24px;
}
.ts-for-all__card:hover .ts-for-all__card__front { opacity: 0; }
.ts-for-all__card:hover .ts-for-all__card__back { opacity: 1; }
.ts-for-all__card__back h4 { font-size: 16px; margin-bottom: 10px; }
.ts-for-all__card__back p { font-size: 13px; line-height: 1.6; opacity: .9; }

/* --- HOME: Seção "Plataforma Inteligente" (section3) ------- */
.ts-platform { background: #f8f9fb; }
.ts-platform__item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.ts-platform__item:last-child { margin-bottom: 0; }
.ts-platform__item--reverse { flex-direction: row-reverse; }
.ts-platform__text { flex: 1; min-width: 260px; }
.ts-platform__text h3 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; }
.ts-platform__text p { font-size: 15px; color: #555; line-height: 1.8; }
.ts-platform__img { flex: 1; min-width: 280px; text-align: center; }
.ts-platform__img img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* --- HOME: CTA Final --------------------------------------- */
.ts-cta {
  background: url('../images/home/footerBg.jpg') center/cover no-repeat;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
  position: relative;
}
.ts-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20,30,80,.6);
}
.ts-cta__content { position: relative; z-index: 1; }
.ts-cta__title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.ts-cta__sub { font-size: 16px; opacity: .85; margin-bottom: 32px; }
.ts-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* --- PRODUCTS: Hero ---------------------------------------- */
.ts-products-hero {
  background: url('../images/products/Products_bg.jpg') center/cover no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
  position: relative;
}
.ts-products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,20,50,.5);
}
.ts-products-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: #fff;
  text-align: center;
}
.ts-products-hero__content h1 { font-size: 34px; font-weight: 700; max-width: 780px; margin: 0 auto; line-height: 1.4; }

/* --- PRODUCTS: Section comum ------------------------------- */
.ts-prod-section {
  padding: 80px 0;
}
.ts-prod-section--bg {
  background: url('../images/products/sectionbg1.png') center/cover no-repeat;
}
.ts-prod-section__head {
  text-align: center;
  margin-bottom: 50px;
}
.ts-prod-section__head h2 { font-size: 30px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.ts-prod-section__head p { font-size: 15px; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.7; }

/* Itens de feature (ícone + texto) */
.ts-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.ts-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ts-feature__icon { width: 48px; flex-shrink: 0; }
.ts-feature__icon img { width: 100%; }
.ts-feature__text h4 { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.ts-feature__text p { font-size: 14px; color: #666; line-height: 1.65; }

/* Layout com imagem ao lado */
.ts-split {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}
.ts-split--reverse { flex-direction: row-reverse; }
.ts-split__text { flex: 1; min-width: 260px; }
.ts-split__text h2 { font-size: 28px; font-weight: 700; color: #1a1a2e; margin-bottom: 16px; }
.ts-split__text p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.ts-split__img { flex: 1; min-width: 260px; text-align: center; }
.ts-split__img img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }

/* Lista de bullets de features */
.ts-feat-list { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.ts-feat-list__item { display: flex; gap: 14px; align-items: flex-start; }
.ts-feat-list__item img { width: 36px; flex-shrink: 0; }
.ts-feat-list__item div h4 { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.ts-feat-list__item div p { font-size: 14px; color: #666; line-height: 1.6; }

/* Cards "Como podemos ajudar" */
.ts-help {
  background: url('../images/products/helpBg.jpg') center/cover no-repeat;
  padding: 80px 0;
  position: relative;
}
.ts-help::before { content: ''; position: absolute; inset: 0; background: rgba(15,20,50,.55); }
.ts-help__content { position: relative; z-index: 1; }
.ts-help__title { font-size: 30px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 48px; }
.ts-help__cards { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.ts-help__card {
  width: 180px;
  min-height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: transform .3s;
}
.ts-help__card:hover { transform: translateY(-6px); }

/* --- Footer ------------------------------------------------ */
.ts-footer {
  background: #111827;
  color: #ccc;
  padding: 60px 0 0;
}
.ts-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.ts-footer__brand { flex: 1; min-width: 220px; }
.ts-footer__logo { height: 44px; margin-bottom: 20px; }
.ts-footer__address { font-size: 13px; line-height: 1.8; color: #999; margin-bottom: 24px; }
.ts-footer__address strong { color: #fff; }
.ts-footer__social { display: flex; align-items: center; gap: 14px; }
.ts-footer__social span { font-size: 13px; color: #999; }
.ts-footer__social a img { width: 28px; opacity: .7; transition: opacity .2s; }
.ts-footer__social a:hover img { opacity: 1; }
.ts-footer__links { flex: 1; min-width: 180px; }
.ts-footer__links ul { display: flex; flex-wrap: wrap; gap: 10px 40px; }
.ts-footer__links li a { font-size: 14px; color: #999; transition: color .2s; }
.ts-footer__links li a:hover { color: #fff; }
.ts-footer__bottom {
  border-top: 1px solid #222;
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
  color: #555;
}

/* --- Responsivo -------------------------------------------- */
@media (max-width: 992px) {
  .ts-nav__menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    z-index: 999;
  }
  .ts-nav__menu.open { display: flex; }
  .ts-nav__item > a { padding: 12px 24px; width: 100%; }
  .ts-nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }
  .ts-nav__item--has-dropdown.open .ts-nav__dropdown { display: block; }
  .ts-nav__actions { display: none; }
  .ts-nav__hamburger { display: flex; }

  .ts-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .ts-for-all__grid { grid-template-columns: repeat(2, 1fr); }
  .ts-features { grid-template-columns: 1fr; }
  .ts-split, .ts-split--reverse, .ts-platform__item, .ts-platform__item--reverse { flex-direction: column; }
  .ts-hero__title { font-size: 26px; }
  .ts-prod-section__head h2 { font-size: 22px; }
}

@media (max-width: 576px) {
  .ts-stats__grid { grid-template-columns: 1fr 1fr; }
  .ts-for-all__grid { grid-template-columns: 1fr; }
  .ts-hero__title { font-size: 22px; }
  .ts-help__cards { flex-direction: column; align-items: center; }
}
