/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores principais */
  --gold-primary: #FFD700;
  --gold-secondary: #FFA500;
  --gold-dark: #B8860B;
  --silver-primary: #C0C0C0;
  --silver-secondary: #808080;
  --silver-dark: #696969;
  --white: #FFFFFF;
  --black: #000000;
  --text-dark: #333333;
  --text-medium: #666666;
  --text-light: #999999;

  /* Gradientes */
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-silver: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
  --gradient-gold-silver: linear-gradient(135deg, #FFD700 0%, #C0C0C0 50%, #FFD700 100%);
  --gradient-hero: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(192, 192, 192, 0.1) 100%);

  /* Sombras */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
  --shadow-silver: 0 4px 20px rgba(192, 192, 192, 0.3);

  /* Transições */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.navbar { padding: 1rem 0; }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.logo span {
  color: var(--silver-dark);
  font-size: 0.9rem;
  font-weight: 400;
  display: block;
  margin-top: -5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover { color: var(--gold-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition-fast);
}

.nav-link:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 3px 0;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  z-index: 0;            /* cria stacking context */
  isolation: isolate;    /* garante que o ::before fique atrás */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('assets/images/white_gold_silver_bg.jpg') center/cover;
  opacity: 0.05;
  z-index: 0;            /* fundo */
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;            /* conteúdo acima do fundo */
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: slideInLeft 1s ease-out both; /* mantém estado final */
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.gradient-text {
  background: var(--gradient-gold-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--silver-primary);
}

.btn-secondary:hover {
  background: var(--gradient-silver);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  animation: slideInRight 1s ease-out both;
  will-change: transform, opacity;
  backface-visibility: hidden;
  z-index: 1;           /* acima do ::before */
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0);
}

.floating-elements {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;           /* sobre a imagem, atrás do header fixo */
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px; height: 60px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-gold);
}

.icon-1 { top: 20%; right: 10%; animation-delay: 0s; }
.icon-2 { bottom: 30%; left: 10%; animation-delay: 1s; background: var(--gradient-silver); box-shadow: var(--shadow-silver); }
.icon-3 { top: 60%; right: 20%; animation-delay: 2s; }

/* Seções gerais */
section { padding: 5rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient-gold-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* Sobre Nós */
.about {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(192, 192, 192, 0.05) 100%);
  position: relative;
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gold-dark);
}

.about-text p {
  margin-bottom: 2rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.about-image { position: relative; z-index: 1; }
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  display: block;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--gradient-gold-silver);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  width: 80px; height: 80px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem; color: var(--white);
}

.service-card:nth-child(even) .service-icon { background: var(--gradient-silver); }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul { list-style: none; }

.service-card li {
  padding: 0.3rem 0;
  color: var(--text-medium);
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--gold-primary);
  font-weight: bold;
}

/* ----- Solutions ----- */
.solutions {
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 40%);
  padding: 72px 0;
}

.solutions .section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin-bottom: 8px;
}

.solutions .section-header p {
  color: #6b7280;
  margin: 0 auto 32px;
}

.solution-item {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* texto maior que a imagem */
  gap: 40px;
  align-items: center;
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
  margin-bottom: 32px;
}

.solution-item.reverse { grid-template-columns: 1fr 1.15fr; }

.solution-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.solution-title h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin: 0 0 6px;
}

.solution-title .subtitle {
  color: #9ca3af;
  margin: 0 0 14px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 6px 0 16px;
  padding: 0;
  list-style: none;
}

.kpi {
  background: #fff8db; /* amarelo claro */
  border: 1px solid #f5e7a1;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 #fffbe8;
}
.kpi strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  color: #b58900; /* amarelo queimado */
}
.kpi span {
  display: block;
  font-size: 12px;
  color: #7c7c7c;
  margin-top: 2px;
}

.solution-text {
  color: #4b5563;
  margin: 6px 0 12px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 16px;
  padding: 0;
  list-style: none;
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}
.benefits i { color: #b58900; }

/* Responsivo para solutions */
@media (max-width: 980px) {
  .solution-item,
  .solution-item.reverse {
    grid-template-columns: 1fr;
  }
  .solution-item.reverse .solution-media { order: 2; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; }
}

/* Tecnologias */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition-medium);
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.tech-category h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  background: var(--gradient-gold-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tech-items { display: flex; flex-direction: column; gap: 1rem; }

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  transition: var(--transition-fast);
}

.tech-item:hover { background: rgba(255, 215, 0, 0.2); }

.tech-item i { font-size: 1.5rem; color: var(--gold-primary); }

/* Contato */
.contact {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(192, 192, 192, 0.05) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  color: var(--gold-primary);
  font-size: 1.2rem;
  width: 20px;
}

.social-links { display: flex; gap: 1rem; margin-top: 2rem; }

.social-link {
  width: 50px; height: 50px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(192, 192, 192, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 0.5rem; }

.footer-section ul li a {
  color: var(--silver-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover { color: var(--gold-primary); }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--silver-dark);
  color: var(--silver-primary);
}

/* Animações */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Responsividade */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title { font-size: 2.5rem; }

  .about-content,
  .solution-item,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats { justify-content: center; flex-wrap: wrap; }

  .services-grid { grid-template-columns: 1fr; }

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

  .hero-buttons { justify-content: center; }

  .floating-icon { width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .hero-title { font-size: 2rem; }
  .section-header h2 { font-size: 2rem; }
  .service-card, .tech-category { padding: 1.5rem; }
  .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  width: 60px; height: 60px;
  bottom: 20px; right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.4);
  color: #fff;
}



/* --- FIX: imagem intermitente na seção "Sobre" --- */
.about {
  position: relative;
  z-index: 0;          /* cria um stacking context local */
  isolation: isolate;  /* garante que nada externo cruze camadas */
}

.about-image {
  position: relative;
  z-index: 1;          /* fica acima de qualquer background da seção */
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);        /* promove o container pra GPU */
  -webkit-transform: translateZ(0);
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;           /* impede queda de opacidade por herança/anim. */
  visibility: visible !important;
  transform: translateZ(0);         /* promove a própria imagem */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* Se algum overlay interno vier a existir no futuro, ele não rouba clique */
.about * { pointer-events: auto; }


/* --- FIX: imagens intermitentes na seção "Soluções" --- */
.solutions {
  position: relative;
  z-index: 0;            /* cria stacking context da seção */
  isolation: isolate;
}

.solution-item {
  position: relative;    /* novo contexto pros filhos */
  z-index: 1;
  will-change: transform, opacity;
  backface-visibility: hidden;
  contain: paint;        /* limita repaints à área do card */
}

.solution-media {
  position: relative;
  z-index: 1;
}

.solution-media img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0);        /* promove a imagem pra GPU */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* garante que o conteúdo do card não “apague” a imagem por layering */
.service-card {
  position: relative;
  z-index: 2;            /* acima do fundo, no mesmo card */
}

/* variação reverse continua estável */
.solution-item.reverse .solution-media { order: initial; }


/* Mobile: imagem SEMPRE por último nos cases */
@media (max-width: 980px) {
  .solution-item,
  .solution-item.reverse {
    grid-template-columns: 1fr; /* 1 coluna */
  }

  /* texto primeiro */
  .solution-item .service-card,
  .solution-item.reverse .service-card {
    order: 1;
  }

  /* imagem depois */
  .solution-item .solution-media,
  .solution-item.reverse .solution-media {
    order: 2;
  }
}

/* --- FIX: logo piscando no header --- */
.header{
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* melhora no Safari */
  z-index: 1000;

  /* estabiliza a camada fixa com blur */
  will-change: transform;
  transform: translateZ(0);
  isolation: isolate;   /* stacking context próprio */
  contain: paint;       /* limita repaints */
}

.logo{
  position: relative;
  z-index: 1; /* acima de qualquer pseudo-elemento */
}

.logo img{
  display: block;       /* remove linha de base que pode “pular” */
  width: 150px;         /* casa com o atributo */
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);     /* promove o logo para GPU */
  -webkit-transform: translateZ(0);
  image-rendering: auto;
}


/* ==== FIX definitivo: logo invisível/piscando no header ==== */

/* 1) Simplifica a camada do header (evita bugs com blur + transform/contain) */
.header{
  /* mantém seu visual */
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);

  /* REMOVE efeitos que podem “apagar” filhos em algumas GPUs */
  transform: none !important;
  will-change: auto !important;
  isolation: auto !important;
  contain: none !important;
}

/* 2) Garante altura mínima e layout estável do container */
.nav-container{
  min-height: 64px;            /* espaço p/ logo caber sempre */
}

/* 3) Promove a imagem do logo e impede blend/opacity estranhos */
.logo{
  position: relative;
  z-index: 1;
}

.logo img{
  display: block;
  max-height: 52px;            /* ajusta a gosto */
  width: auto;                  /* respeita proporção */
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;

  /* promove pra GPU sem transformar o header inteiro */
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* 4) (opcional) se ainda piscar em iOS antigo, reduza o blur */
@supports (-webkit-touch-callout: none) {
  .header{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}



