/*
Theme Name: Termical Premium
Author: Henrique Emiliano Santos
Description: Tema Industrial de Alta Performance.
Version: 3.2
Text Domain: termical
*/


/* ============================================
   RESET E VARIÁVEIS (BASE)
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg: hsl(220, 25%, 7%);
  --fg: hsl(210, 20%, 90%);
  --card: hsl(220, 20%, 11%);
  --card-fg: hsl(210, 20%, 90%);

  --primary: #3A9ED8;
  --primary-fg: hsl(220, 25%, 7%);

  --secondary: hsl(220, 15%, 16%);
  --secondary-fg: hsl(210, 20%, 85%);
  --muted: hsl(220, 15%, 16%);
  --muted-fg: hsl(215, 15%, 55%);
  --border: hsl(220, 15%, 18%);

  --radius: 0.375rem;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --gradient-hero: linear-gradient(135deg, hsla(220, 25%, 7%, 0.85), hsla(220, 25%, 7%, 0.4));

  --gradient-primary: linear-gradient(135deg, hsl(210, 90%, 55%), hsl(210, 95%, 65%));
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   UTILITÁRIOS E BOTÕES
   ============================================ */
.font-script { font-family: var(--font-script); }
.font-display { font-family: var(--font-display); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-height: 48px;
  padding: 0.9rem 1.6rem;

  border-radius: 0.5rem;
  border: 1px solid transparent;

  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;

  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;

  white-space: nowrap;
  cursor: pointer;

  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
/* ============================================
   NAVBAR (CABEÇALHO)
   ============================================ */
.navbar .container { 
  display: flex; 
  align-items: center; /* Isso centraliza verticalmente a logo, o menu e os botões */
  justify-content: space-between; 
  height: 5rem; 
}

/* Ajuste específico para a marca não ter folgas estranhas */
.navbar-brand { 
  display: flex; 
  align-items: center; 
  gap: 0.25rem;
  height: 100%; /* Faz a área da logo ocupar toda a altura do container */
}

/* =========================================================
   AQUI É ONDE VOCÊ CONTROLA A LOGO NO CELULAR
   ========================================================= */
@media (max-width: 700px) {
  .navbar-brand {
    /* 1. AJUSTA O TAMANHO (Altura da Logo) */
    height: 45px !important; /* Mude para 35px ou 40px se quiser menor */
  }
}
.logo-text { font-size: 1.5rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.15em; color: var(--fg); }
.logo-accent { color: #3A9ED8; }
.logo-sub { display: none; font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-fg); margin-left: 0.25rem; margin-top: 0.5rem; }
@media (min-width: 640px) { .logo-sub { display: block; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
/* ============================================
   LINKS DO MENU MAIORES E EM AZUL
   ============================================ */
.nav-links a { 
  font-size: 1rem !important; /* <-- AUMENTAMOS O TAMANHO (Aprox. 18px) */
  font-weight: 700 !important;   /* <-- Deixamos a fonte mais forte (Negrito) */
  letter-spacing: 0.08em; 
  text-transform: uppercase; 
  color: #3A9ED8 !important;     /* <-- COLOCAMOS O SEU AZUL COMO COR FIXA */
  transition: color 0.3s; 
}

/* Efeito ao passar o mouse */
.nav-links a:hover { 
  color: #ffffff !important;     /* <-- Fica branco (ou mude para outro tom) para dar contraste ao passar o mouse */
}

.nav-actions { display: none; align-items: center; gap: 0.75rem; }
@media (min-width: 1024px) { .nav-actions { display: flex; } }

.mobile-toggle { display: block; color: var(--fg); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1.5rem; background: var(--bg); border-top: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a { font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-fg); transition: color 0.3s; }
.mobile-menu a:hover { color: #3A9ED8; }

/* ============================================
   HERO (FAIXA ESTREITA E CONTEÚDO)
   ============================================ */
.hero { 
  position: relative; 
  display: block; 
  min-height: auto; 
  padding-top: 5rem; 
  padding-bottom: 4rem;
  background: var(--bg);
}

/* ============================================
   HERO (ENCAIXE PERFEITO COM O CABEÇALHO)
   ============================================ */
.hero { 
  position: relative; 
  display: block; 
  min-height: auto; 
  /* O padding-top fixo foi removido daqui e passou para as regras abaixo */
  padding-bottom: 4rem;
  background: var(--bg);
}

/* 1. O Encaixe no Celular (Menu normal de 80px) */
@media (max-width: 991px) {
  .hero { 
    padding-top: 5rem !important; 
  }
}

/* 2. O Encaixe no PC (Menu gigante) */
@media (min-width: 992px) {
  
  /* 1. FECHANDO O BURACO: Sobe a imagem até encostar no menu */
  .hero { 
    /* Reduzi para 100px. Se a imagem entrar atrás do menu, aumente para 110px.
       Se ainda sobrar uma fresta preta, diminua para 90px. */
    padding-top: 100px !important; 
  }

  /* 2. DANDO ALTURA: Aumenta a "janela" da foto no PC */
  .hero-bg {
    height: 550px !important; /* Uma altura excelente para mostrar as 3 máquinas */
    margin-top: 0 !important;
    display: block !important;
  }

  /* 3. TRAVA ANTI-ESMAGAMENTO: Preenche o quadro sem distorcer */
  .hero-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    object-position: center !important;
    max-height: none !important; /* Destrói limites de altura do tema */
    min-height: 100% !important; /* Garante o preenchimento total */
  }
}

.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to bottom, rgba(7,9,15,0.05) 50%, var(--bg) 100%); 
}

.hero-content { 
  position: relative; 
  z-index: 10; 
  max-width: 800px; 
  margin: 0 auto; 
  text-align: center; 
  padding: 0 1.5rem; 
}

/* =========================================================
   ESTILO DA LETRA CURSIVA (Mobile First)
   ========================================================= */

/* 1. REGRA BASE: COMO VAI APARECER NO CELULAR */
.hero-script { 
  font-family: var(--font-script); 
  color: #3A9ED8; 
  font-size: 2.25rem !important; /* Tamanho reduzido e elegante para o celular */
  display: block; 
  margin-bottom: 0.5rem; 
  text-align: center !important; /* Trava o alinhamento no centro no mobile */
  margin-left: -2rem !important;     /* Zera qualquer deslocamento lateral antigo */
}

/* 2. REGRA DESKTOP: COMO VAI APARECER NO COMPUTADOR */
@media (min-width: 768px) { 
  .hero-script { 
    font-size: 3.5rem !important; /* Aumenta a fonte para dar imponência no monitor */
  } 
}

.hero h1 { 
  font-size: 2.25rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: -0.01em; 
  line-height: 1.1; 
  color: var(--fg); 
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); } }

.hero p { 
  margin: 1.5rem auto 2.5rem; 
  font-size: 1.125rem; 
  color: hsla(210, 20%, 85%, 0.8); 
  line-height: 1.7; 
}
@media (min-width: 768px) { .hero p { font-size: 1.25rem; } }

.hero-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  justify-content: center; 
  margin-bottom: 2.5rem;
}

.hero-watermark { display: none; }

/* ============================================
   SOBRE NÓS & ESTATÍSTICAS
   ============================================ */
.about { 
  padding: 1rem 0 6rem;
  margin-top: -1rem;
  background: var(--bg);
}

.about-grid { 
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) { 
  .about-grid { 
    grid-template-columns: 1fr 1fr;
  } 
}

.about-script { 
  font-family: var(--font-script);
  color: #3A9ED8;
  font-size: 1.5rem;
}

.about h2 { 
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--fg);
  margin-top: 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) { 
  .about h2 { 
    font-size: 2.5rem;
  } 
}

.about p { 
  margin-top: 1.5rem;
  color: var(--muted-fg);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ============================================
   ESTATÍSTICAS
   ============================================ */
.stats-grid { 
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  overflow: visible !important;
  padding: 5px;
}

.stat-card { 
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
  box-sizing: border-box;
  margin: 1px;
}

.stat-card:hover { 
  border-color: hsla(28, 95%, 55%, 0.4);
}

.stat-value { 
  font-size: 2.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #3A9ED8;
}

@media (min-width: 768px) { 
  .stat-value { 
    font-size: 3rem;
  } 
}

.stat-label { 
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem !important;
    padding: 0 !important;
  }

  .stat-card {
    padding: 0.85rem 0.4rem !important;
    margin: 0 !important;
  }

  .stat-value {
    font-size: 1.5rem !important;
  }

  .stat-label {
    font-size: 0.65rem !important;
    letter-spacing: 0 !important;
  }
}

/* ============================================
   SERVIÇOS (ACORDEÃO)
   ============================================ */
.services { 
  position: relative;
  padding: 0 0 3rem;
}

.services-grid { 
  display: grid;
  min-height: 700px;
}

@media (min-width: 1024px) { 
  .services-grid { 
    grid-template-columns: 1fr 1fr;
  } 
}

.services-image { 
  position: relative;
  overflow: hidden;
}

.services-image img { 
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.services-image::before { 
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3A9ED8;
  z-index: 2;
}

.services-content { 
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 2rem;
}

@media (min-width: 768px) { 
  .services-content { 
    padding: 4rem;
  } 
}

.accordion-item { 
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child { 
  border-bottom: none;
}

.accordion-header { 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
}

.accordion-header:hover .accordion-title { 
  color: #3A9ED8;
}

.accordion-header-left { 
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accordion-bar { 
  width: 4px;
  height: 2rem;
  border-radius: 9999px;
  background: #3A9ED8;
  opacity: 0;
  transition: opacity 0.3s;
}

.accordion-header:hover .accordion-bar { 
  opacity: 1;
}

.accordion-title { 
  font-size: 1.125rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  transition: color 0.3s;
}

@media (min-width: 768px) { 
  .accordion-title { 
    font-size: 1.25rem;
  } 
}

.accordion-icon { 
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: color 0.3s;
}

.accordion-item.active .accordion-icon { 
  color: #3A9ED8;
}

.accordion-body { 
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.accordion-item.active .accordion-body { 
  max-height: 300px;
  opacity: 1;
}

.accordion-body p { 
  padding: 0 0 1.5rem 1.25rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

/* ============================================
   PROJETOS (ESTUDOS DE CASO)
   ============================================ */
.projects { 
  padding: 0 0 6rem;
  margin-top: 0;
  background: var(--bg); 
}
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.projects-header .script { font-family: var(--font-script); color: #3A9ED8; font-size: 1.5rem; }
.projects-header h2 { font-size: 1.875rem; font-weight: 700; color: var(--fg); margin-top: 0.5rem; }
@media (min-width: 768px) { .projects-header h2 { font-size: 3rem; } }
.projects-all { display: none; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #3A9ED8; letter-spacing: 0.08em; text-transform: uppercase; transition: gap 0.3s; }
@media (min-width: 768px) { .projects-all { display: inline-flex; } }
.projects-all:hover { gap: 0.75rem; }

.projects-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card { cursor: pointer; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-card:hover .project-img .project-overlay { background: transparent; }
.project-img { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-overlay { position: absolute; inset: 0; background: hsla(220, 25%, 7%, 0.2); transition: background 0.3s; }
.project-info { margin-top: 1.25rem; }
.project-category { font-size: 0.75rem; font-weight: 600; color: #3A9ED8; letter-spacing: 0.08em; text-transform: uppercase; }
.project-title { font-size: 1.25rem; font-family: var(--font-display); font-weight: 700; color: var(--fg); margin-top: 0.25rem; }
.project-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: #2F8FBF; letter-spacing: 0.05em; transition: gap 0.3s; }
.project-link:hover { gap: 0.75rem; }

/* ============================================
   CTA (CHAMADA PARA AÇÃO)
   ============================================ */
.cta { 
  position: relative;
  padding: 3rem 0 6rem;
  background: var(--bg);
}
.cta-watermark { position: absolute; right: -5%; top: 50%; transform: translateY(-50%); font-size: 18rem; font-family: var(--font-display); font-weight: 700; color: hsla(210, 20%, 90%, 0.02); line-height: 1; user-select: none; pointer-events: none; display: none; white-space: nowrap; }
@media (min-width: 1280px) { .cta-watermark { display: block; } }
.cta-content { position: relative; z-index: 10; max-width: 42rem; }
.cta-script { font-family: var(--font-script); color: #3A9ED8; font-size: 1.875rem; }
.cta h2 { font-size: 2.25rem; font-weight: 700; color: var(--fg); text-transform: uppercase; margin-top: 0.5rem; }
@media (min-width: 768px) { .cta h2 { font-size: 3.75rem; } }
.cta p { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted-fg); line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* ============================================
   RODAPÉ (FOOTER)
   ============================================ */
.footer { 
  background: var(--card); 
  border-top: 1px solid var(--border); 
  padding: 4rem 0; 
}

.footer-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr 1fr !important;
    gap:25px;
    align-items:start;
}

/* logo */
.footer-grid > div:nth-child(1){
grid-column:1;
}

/* contato */
.footer-grid > div:nth-child(2){
grid-column:2;
}

/* acesso rapido */
.footer-grid > div:nth-child(3){
grid-column:3;
}

/* soluções sobe para coluna 1 */
.footer-grid > div:nth-child(4){
grid-column:1;
}

/* setores */
.footer-grid > div:nth-child(5){
grid-column:2;
}

.footer-column{
  display:flex;
  flex-direction:column;
  gap:15px;
}

@media(max-width:768px){
.footer-grid{
grid-template-columns:1fr;
}
}

/* tablet */
@media (min-width: 768px) { 
  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
  } 
}

/* desktop */
@media (min-width: 1024px) { 
  .footer-grid { 
    grid-template-columns: 1fr 1fr;
  } 
}

/* organização interna */
.footer-column{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}

.footer h4 { 
  font-family: var(--font-display); 
  font-weight: 700; 
  color: #3A9ED8; 
  margin-bottom: 1rem; 
}
.footer-contact { font-size: 0.875rem; color: orange; }
.footer-contact p { margin-bottom: 0.25rem; }
.footer-contact .contact-line { display: flex; align-items: center; gap: 0.5rem; color: red; margin-top: 0.5rem; }
.footer-contact .contact-line svg { color: orange !important; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: orange; transition: color 0.3s; }
.footer-links a:hover { color:#3A9ED8; }
.footer-links a.active { color: #3A9ED8; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.75rem; color: var(--muted-fg); }
.scroll-top { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted-fg); transition: all 0.3s; }
.scroll-top:hover { color: #3A9ED8; border-color: #3A9ED8; }

/* ============================================
   ANIMAÇÕES (SCROLL)
   ============================================ */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

/* ============================================
   ESTILOS DO DEPOIMENTO E SEÇÃO SOBRE NÓS
   ============================================ */
.about { 
  padding: -10rem 0 6rem !important; 
  margin-top: -12rem; 
}

.texto-diretor {
  font-style: italic; 
  border-left: 4px solid #3A9ED8; 
  padding-left: 1rem; 
  margin: 1.5rem 0; 
  color: var(--muted-fg); 
  font-size: 1.125rem; 
  line-height: 1.7;
}

.assinatura-diretor {
  font-weight: 700; 
  color: var(--fg); 
  margin-top: 0.5rem; 
  font-family: var(--font-body);
}

.assinatura-diretor span {
  color: #3A9ED8; 
  font-size: 0.75rem; 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
  font-weight: 600;
}

/* ============================================
   CORREÇÕES ANTI-ESTOURO PARA MOBILE
   ============================================ */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

p, h1, h2, h3, h4, h5, h6, a, span, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .hero-bg {
    height: 240px !important; 
    min-height: 150px !important;
    max-height: 150px !important;
    margin-bottom: 1.5rem !important;
  }

  .container { padding: 0 15px; width: 100%; overflow-x: hidden; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero h1 { 
  font-size: 2rem;
  line-height: 1.2;
}
  
  /* --- PUXA A SEÇÃO BEM MAIS PARA CIMA NO CELULAR --- */
  .about { 
    padding: 0 0 4rem !important; 
    margin-top: -5rem !important; /* <--- Puxa como um ímã para cima! */
  }
  
  /* --- PUXA OS PROJETOS PARA CIMA NO CELULAR --- */
  .projects { 
    padding: 1rem 0 4rem !important; 
    margin-top: -3rem !important; 
  }
  
  .cta, .footer { padding: 4rem 0; }
  
  /* --- AJUSTE PARA A PALAVRA "REFRIGERAÇÃO" NÃO QUEBRAR NO CELULAR --- */
  .cta h2 { 
    font-size: 1.8rem !important; 
  }

  .services-content { padding: 3rem 1.5rem; }
  
  /* --- LETRA AINDA MENOR NO CELULAR (0.75rem) --- */
  .texto-diretor {
    font-size: 0.75rem !important; 
    line-height: 1.4;
  }
  
  /* --- MÁGICA: 2 COLUNAS NO CELULAR SEM ESTOURAR --- */
  .stats-grid { 
    grid-template-columns: 1fr 1fr !important; 
    gap: 0.5rem !important; 
  }
  .stat-card { padding: 1rem 0.5rem !important; }
  .stat-value { font-size: 1.5rem !important; }
  .stat-label { 
    font-size: 0.65rem !important; 
    letter-spacing: 0 !important; 
  }

  .fade-left, .fade-right { transform: translateY(30px) !important; }
  .fade-left.visible, .fade-right.visible { transform: translateY(0) !important; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up,
  .fade-left,
  .fade-right,
  .fade-up.visible,
  .fade-left.visible,
  .fade-right.visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
#sobre,
#solucoes,
#projetos,
#contato {
  scroll-margin-top: 10px;
}
#sobre{
  opacity: 1 !important;
  transform: none !important;
  position: relative;
  z-index: 2;
  scroll-margin-top: 140px;
}
#solucoes {
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 768px) {
  #solucoes {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* ============================================
   AJUSTES MOBILE DE POSICIONAMENTO
   ============================================ */

/* =========================================================
   RODAPÉ (DESKTOP)
   ========================================================= */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-column h4 {
  margin-top: 0;
  margin-bottom: 8px;
}

/* =========================================================
   AJUSTES GERAIS PARA CELULAR (MOBILE)
   ========================================================= */
@media (max-width: 768px) {

  /* 1. Espaçamentos das Seções (Consolidados) */
  .about {
    margin-top: -13rem !important;
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  .services {
    margin-top: -40px !important;
    padding-bottom: 3rem !important;
  }

  .projects {
    margin-top: -2rem !important;
    padding-top: 0rem !important;
    padding-bottom: 4rem !important;
  }

  .cta {
    margin-top: -1rem !important;
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
  }

  /* 2. Elementos Internos (Consolidados) */
  .projects-header {
    margin-top: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .contato-divider {
    margin-top: -50px !important;
    padding: 6px 0;
  }

  #solucoes .section-tag {
    margin-top: 35px !important;
  }

  /* 3. Rodapé Mobile (Consolidado) */
  .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }

  .footer-grid > div {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Impede quebras de texto esquisitas no celular */
  .footer-contact p,
  .footer-contact .contact-line,
  .footer-links li a {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
}
/* =========================================================
   FORÇAR LOGO PARA A ESQUERDA NO CELULAR
   ========================================================= */
@media (max-width: 600px) {
  nav.navbar a.navbar-brand {
    margin-right: auto !important; /* Empurra o botão do menu lá para a direita */
    
    /* AQUI ESTÁ O SEGREDO DO ALINHAMENTO ESQUERDO: */
    margin-left: -30px !important; /* Puxa a logo para a esquerda. Quanto mais negativo (-20px, -30px), mais colada na borda ela fica. */
  }
}

.hero-bg {
    height: 35vh !important;       /* Ocupa só 35% da tela (deixa espaço para o texto) */
    min-height: 400px !important;  /* Baixamos a trava de segurança para 250px */
    margin-bottom: 1.5rem !important; /* Reduz o buraco em branco entre a foto e o título */
  }

 /* =========================================================
   REVELAR 100% DA IMAGEM ORIGINAL NO CELULAR
   ========================================================= */
@media (max-width: 768px) {
  
  /* 1. Removemos a trava de 400px e abrimos a janela para o tamanho da tela */
  .hero-bg {
    height: 45vh !important; /* 100vh = 100% da altura da tela do celular */
    margin-bottom: -25px !important; /* Tira a margem para a imagem colar no resto do conteúdo */
  }

  /* 2. Garantimos que a foto acompanhe a nova janela aberta */
  .hero-bg img {
    height: 45vh !important;
    /* O object-fit: cover continua aqui para garantir que preencha a tela perfeitamente */
  }
}
/* =========================================================
   CONTROLE DA LOGO (QUALQUER TELA MAIOR QUE UM CELULAR)
   ========================================================= */
@media (min-width: 769px) {
  
  /* 1. Aumenta o teto do menu para a logo não ficar esmagada */
  .navbar,
  .navbar .container {
    min-height: 20px !important; 
  }

  /* 2. Dispara a logo para 170px */
  .navbar .navbar-brand img,
  .navbar .custom-logo,
  .navbar-brand .custom-logo,
  img.custom-logo {
    height: 170px !important;  
    max-height: 115% !important;
    max-width: none !important;
    width: auto !important;
    min-height: 0 !important;

    /* Controle de movimentação (Opcional) */
    transform: translate(-30px, 0px) !important; 
  }
}