/*
Theme Name: Opcyde TOTVS Layout
Theme URI: https://opcyde.com/
Author: OPCYDE
Author URI: https://opcyde.com/
Description: Tema WordPress inspirado no layout da TOTVS, focado em geração de leads para o ERP OPCYDE e aplicativos personalizados.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: opcyde-totvs
*/

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #001f3f;
  background: #ffffff;
  line-height: 1.5;
}

a {
  color: #004aad;
}

a:hover {
  opacity: 0.85;
}

/* LAYOUT GERAL */
.opcyde-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============== HEADER ESTILO TOTVS =============== */

/* Barra superior fina */
.top-bar {
  background: #0b1020;
  color: #dce2f0;
  font-size: 0.78rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 6px 0;
}

.top-bar-links {
  display: flex;
  gap: 16px;
}

.top-bar-links a {
  color: #dce2f0;
  text-decoration: none;
}

/* Faixa principal do header */
.site-header {
  width: 100%;
  background: #000000;
/* background: #ffffff */	
  border-bottom: 1px solid #e3e7f0;
  z-index: 1000;
}

.site-header-main {
  /* faixa principal abaixo da top-bar */
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #001f3f;
}

/* Logo do header - controle de tamanho */
.site-logo img {
  max-height: 44px;   /* ajuste aqui */
  width: auto;
  height: auto;
  display: block;
}

/* MENU PRINCIPAL */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.92rem;
}

.main-nav a {
  text-decoration: none;
  color: #001f3f;
  padding-bottom: 2px;
}

.main-nav a:hover {
  border-bottom: 2px solid #5f3ad6; /* roxo estilo ação */
}

/* CTA HEADER */
.header-cta {
  display: flex;
  gap: 10px;
}

/* BOTÕES */
.btn-primary {
  background: #001871;           /* Cor Opcyde */
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  display: inline-block;
}

.btn-outline {
  background: #25D366;           /* Cor Whatsapp */
  border-radius: 999px;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px 18px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-block;
}

/* =============== HERO =============== */
.hero-opcyde {
  padding: 80px 0;
  background: #f5f7fb;
}

.hero-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #cccccc;
}

.hero-title {
  font-size: 2.4rem;
  margin: 10px 0 15px;
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #FFFFFF;
}

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

.hero-image {
  flex: 1 1 320px;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =============== KPIs =============== */
.kpi-section {
  background: #ffffff;
  padding: 30px 0;
}

.kpi-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  text-align: center;
}

.kpi-item {
  flex: 1 1 200px;
}

.kpi-number {
  font-size: 2rem;
  font-weight: 700;
  color: #004aad;
}

/* =============== SEGMENTOS =============== */
.segments-section {
  padding: 60px 0;
  background: #f5f7fb;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #001f3f;
}

.section-subtitle {
  margin-bottom: 30px;
  max-width: 700px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* =============== SOLUÇÕES =============== */
.solutions-section {
  padding: 60px 0;
  background: #ffffff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card-soft {
  border-radius: 10px;
  padding: 20px;
  background: #f5f7fb;
}

/* =============== CTA + FORM LEAD =============== */
.lead-section {
  padding: 60px 0;
  background: #001871;
  color: #ffffff;
}

.lead-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.lead-intro {
  flex: 1 1 260px;
}

.lead-form-wrapper {
  flex: 1 1 260px;
  background: #dce2f0;
  color: #001f3f;
  padding: 20px;
  border-radius: 12px;
}

.lead-form-wrapper label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.lead-form-wrapper input,
.lead-form-wrapper select,
.lead-form-wrapper textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.lead-form-wrapper button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #004aad;
  color: #ffffff;
  font-weight: 600;
}

/* =============== FOOTER =============== */
.site-footer {
  background: #0b1020;
  color: #dce2f0;
  padding: 40px 0 20px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #252a3a;
  padding-top: 12px;
  text-align: center;
  font-size: 0.8rem;
}


/* Fundo compartilhado entre HEADER e HERO */
/*.site-header,*/
.hero-opcyde {
  background-image: url('https://opcyde.com/wp-content/uploads/2025/12/Bunner-4.png'); /* TROCAR pela sua URL */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

/* Deixar o header “por cima” da imagem, sem barra branca */
.site-header {
  border-bottom: none;
  background-color: transparent;
}

/* O hero já tem a imagem, então tiramos o fundo cinza anterior se ainda tiver */
.hero-opcyde {
  /* se ainda houver background antigo em outro lugar, isso garante que a imagem apareça */
  background-color: transparent;
}


/* =============== RESPONSIVO =============== */
@media (max-width: 900px) {
  .main-nav {
    display: none; /* por enquanto some no mobile, depois podemos fazer o menu sanduíche */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-inner {
    flex-wrap: wrap;
  }

  .header-cta {
    margin-left: auto;
  }
}

/* ===== Social icons – base ===== */
.opcyde-social {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.opcyde-social a {
  --size: 28px;
  width: var(--size);
  height: var(--size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  outline: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* Estados (foco/hover/ativo) com alto contraste e hit target */
.opcyde-social a:focus-visible {
  box-shadow: 0 0 0 3px rgba(192,57,43,.35); /* vermelho institucional com alpha */
}

.opcyde-social a:hover { transform: translateY(-1px); }
.opcyde-social a:active { transform: translateY(0); }

/* ===== Temas por marca ===== */
.opcyde-social a.instagram { background: #ffffff; }
.opcyde-social a.instagram svg { fill: #C0392B; }        /* vermelho da marca OPCYDE */

.opcyde-social a.linkedin { background: #ffffff; }
.opcyde-social a.linkedin svg { fill: #0A66C2; }         /* cor oficial LinkedIn */

/* Opcional: versão em rodapé mais discreta */
.footer .opcyde-social a {
  --size: 32px;
  background: #f7f7f7;
}

/* Ajustes em dark mode (se houver) */
@media (prefers-color-scheme: dark) {
  .footer .opcyde-social a { background: #2a2a2a; }
  .opcyde-social a.instagram svg { fill: #E74C3C; }
}