/*
Theme Name: IRATECH Industrial
Theme URI: https://iratechindustrial.com.br
Author: IRATECH Engenharia
Description: Tema corporativo moderno e responsivo para a IRATECH Industrial com suporte a galeria de projetos em PNG.
Version: 2.0.0
*/

/* -------------------------------------------------------------
VARIÁVEIS DE CORES E IDENTIDADE VISUAL
------------------------------------------------------------- */
:root {
  --bg-dark: #0d1b2a;
  --card-bg: #1b263b;
  --header-bg: #ffffff;
  --header-text: #101820;
  --primary-blue: #0077b6;
  --primary-blue-hover: #005f92;
  --whatsapp-green: #25d366;
  --whatsapp-green-hover: #1ebc57;
  --text-primary: #ffffff;
  --text-heading: #e0e1dd;
  --text-secondary: #778da9;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 119, 182, 0.4);
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* -------------------------------------------------------------
RESET E ESTILOS GERAIS
------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* MARCA D'ÁGUA GLOBAL (Corrigida e Visível) */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background-image: url('https://iratechind.com/wp-content/uploads/2026/09/Logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.13; /* Aumentado para 13% para dar bastante visibilidade */
  pointer-events: none;
  z-index: 0;
}

/* Regra global para controle e responsividade de imagens */
img, svg {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* -------------------------------------------------------------
ESTRUTURA GLOBAL DE SEÇÕES
------------------------------------------------------------- */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 32px;
  margin-bottom: 16px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 700;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 48px auto;
  font-size: 16px;
  line-height: 1.6;
}

/* -------------------------------------------------------------
CABEÇALHO FIXO (SITE HEADER)
------------------------------------------------------------- */
header.site-header {
  background: var(--header-bg);
  padding: 12px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding img,
.custom-logo {
  max-height: 52px !important;
  width: auto !important;
  display: block;
}

.main-navigation {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-navigation a {
  text-decoration: none;
  color: var(--header-text);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary-blue);
}

.btn-header {
  background: var(--primary-blue);
  color: var(--text-primary) !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-header:hover {
  background: var(--primary-blue-hover);
}

/* -------------------------------------------------------------
HERO SECTION
------------------------------------------------------------- */
.hero-section {
  padding: 110px 20px;
  text-align: center;
  /* Fundo semitransparente para não cobrir a marca d'água */
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(27, 38, 59, 0.85) 100%);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  color: var(--text-heading);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.3);
}

/* -------------------------------------------------------------
GRID E CARDS DE SOLUÇÕES & PROJETOS
------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* -------------------------------------------------------------
GALERIA DE PROJETOS EM PNG (FUNDO TRANSPARENTE)
------------------------------------------------------------- */
.img-container {
  width: 100%;
  height: 240px;
  background-color: var(--bg-dark);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  position: relative;
}

.project-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.card:hover .project-img {
  transform: scale(1.08);
}

/* -------------------------------------------------------------
SEÇÃO DE ORÇAMENTO
------------------------------------------------------------- */
.btn-whatsapp-large {
  background: var(--whatsapp-green);
  color: var(--text-primary);
  font-size: 16px;
}

.btn-whatsapp-large:hover {
  background: var(--whatsapp-green-hover);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* -------------------------------------------------------------
BOTÃO FLUTUANTE DO WHATSAPP
------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  width: 56px;
  height: 56px;
  bottom: 24px;
  right: 24px;
  background-color: var(--whatsapp-green);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-green-hover);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 32px !important;
  height: 32px !important;
  fill: var(--text-primary);
}

/* -------------------------------------------------------------
RESPONSIVIDADE (DISPOSITIVOS MÓVEIS)
------------------------------------------------------------- */
@media (max-width: 768px) {
  header.site-header {
    padding: 12px 16px;
  }

  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .main-navigation {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    padding: 60px 16px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .section {
    padding: 50px 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .img-container {
    height: 200px;
  }

  body::before {
    width: 350px;
    height: 350px; /* Ajusta dimensões para celular */
  }
}