/*
Theme Name: Scoelho Soluções
Theme URI: 
Author: Seu nome
Description: Tema para engenharia elétrica e mecânica
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #d34404;
  --yellow-dark: #fcbc7a;
  --dark: #0a0a0a;
  --dark2: #111111;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --gray: #888;
  --gray2: #555;
  --light: #f5f5f5;
  --white: #ffffff;
  --blue-vision: #044b78;
  --whatsapp-green: #25d366;
}

html { scroll-behavior: smooth; }

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

/* --- NAVEGAÇÃO --- */
nav {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 100;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(245,197,24,0.15);
  padding: 0 5%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Alterado para visible para não cortar o brilho do logo */
  overflow: visible; 
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.95) 0%,
    rgba(10,10,10,0.92) 100%
  );
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}

.nav-logo,
.nav-links,
.nav-cta {
  position: relative;
  z-index: 1;
}

.nav-logo img {
  height: 120px; /* Ajustado de 120x para 85px para caber no nav de 100px */
  width: auto;
  display: block;
  /* Remove o fundo preto da imagem e mescla com a cor da barra */
  mix-blend-mode: screen; 
  /* Realça as cores do logo após a mesclagem */
  filter: brightness(1.1) contrast(1.1);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--yellow);
}

.nav-cta {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  text-decoration: none;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--yellow-dark) !important;
}

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: 0.3s;
}

/* --- HERO SECTION --- */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(ellipse at 60% 50%, rgba(245, 197, 24, 0.1) 0%, transparent 80%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, #0a0a0a 100%),
    url('assets/img/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,197,24,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,24,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.hero-content { max-width: 700px; position: relative; z-index: 2; }

.hero-badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  background: rgba(245,197,24,0.1); 
  border: 1px solid rgba(245,197,24,0.3); 
  color: var(--yellow); 
  font-size: 0.8rem; 
  font-weight: 600; 
  padding: 6px 14px; 
  border-radius: 100px; 
  margin-bottom: 24px; 
  text-transform: uppercase; 
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
h1 .accent { color: var(--yellow); }
.hero-desc { font-size: 1.1rem; color: var(--gray); margin-bottom: 40px; max-width: 560px; }

.btn-primary, .btn-secondary { padding: 14px 28px; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; }
.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-secondary { border: 1px solid rgba(255,255,255,0.2); color: var(--white); }

.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--yellow); }
.stat-label { font-size: 0.8rem; color: var(--gray); text-transform: uppercase; }

/* --- SOBRE / MVV --- */
#sobre { background: var(--dark); padding: 100px 5%; }

.mvv-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mvv-card-horizontal {
    display: flex;
    background-color: var(--dark2);
    border-radius: 4px;
    overflow: hidden;
    min-height: 140px;
    transition: transform 0.3s ease;
}

.mvv-card-horizontal:hover { transform: translateX(10px); }

.mvv-img-side {
    flex: 0 0 140px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.mvv-card-horizontal:nth-child(1) .mvv-img-side { background-color: var(--yellow); }
.mvv-card-horizontal:nth-child(2) .mvv-img-side { background-color: var(--blue-vision); }
.mvv-card-horizontal:nth-child(3) .mvv-img-side { background-color: var(--white); background-size: contain; background-position: center; background-repeat: no-repeat; }

.mvv-content { padding: 25px 35px; display: flex; flex-direction: column; justify-content: center; }
.mvv-content .service-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--yellow); }
.mvv-content p { color: var(--white); font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* --- SERVIÇOS --- */
#servicos { background: var(--dark2); padding: 100px 5%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card { background: var(--dark3); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: 0.3s; text-decoration: none; color: inherit; }
.service-img-top { height: 180px; width: 100%; background-size: cover; background-position: center; border-bottom: 2px solid var(--yellow); background-color: var(--dark4); }
.service-info { padding: 30px; }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.service-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }
.service-card:hover { transform: translateY(-5px); border-color: var(--yellow); }

/* --- SEÇÕES GERAIS --- */
section { padding: 100px 5%; }
.section-tag { color: var(--yellow); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; display: block; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-desc { color: var(--gray); max-width: 540px; margin-bottom: 60px; }

#portfolio { background: var(--dark2); }

/* --- CONTATO --- */
#contato { background: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--dark4); border: 1px solid rgba(255,255,255,0.1); padding: 12px; color: white; border-radius: 8px; outline: none; }
.form-submit { width: 100%; background: var(--yellow); border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.form-submit:hover { background: var(--yellow-dark); }

/* --- FOOTER --- */
footer { background: var(--dark2); padding: 48px 5% 28px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray2); }

.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.footer-socials a { color: #ffffff; font-size: 1.2rem; width: 40px; height: 40px; background: #222; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; text-decoration: none; }
.footer-socials a:hover { background: var(--yellow); color: var(--dark) !important; }

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; /* Ajustado de 200px para 40px para melhor usabilidade */
    right: 40px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) { 
    .contact-grid, .footer-top { grid-template-columns: 1fr; } 
    .nav-links { display: none; } 
    .hamburger { display: flex; }
    .mvv-card-horizontal { flex-direction: column; }
    .mvv-img-side { flex: 0 0 100px; width: 100%; background-size: 50px; }
    .mvv-content { padding: 20px; text-align: center; }
    .nav-logo img { height: 60px; } /* Logo menor no mobile */
}

/* --- DETALHES PÁGINAS INTERNAS --- */
.detail-container {
    max-width: 1200px;
    margin: -50px auto 80px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    padding: 60px;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.crea-footer-img {
    height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}