/* 1. VARIÁVEIS GLOBAIS */
:root {
  --red: #E53935;
  --red-dark: #C62828;
  --black: #000000;
  --white: #FFFFFF;

  --font-heading: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --transition: 0.3s ease;
}

/* 2. RESET & BASE */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* 3. CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 4. TOPO WHATSAPP */
.top-whatsapp {
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.top-whatsapp .icon-whatsapp {
  width: 1.5rem;
  height: auto;
}

.top-whatsapp .telefones {
  display: flex;
  gap: 1rem;
}

.top-whatsapp .telefones li {
  background: var(--white);
  color: var(--red);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-weight: 400;
}

/* 5. HEADER */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--red-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 3rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
}

.menu-toggle img {
  width: 3rem;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
}

.site-nav ul li a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--black);
  position: relative;
}

.site-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: var(--red);
  bottom: -6px;
  left: 0;
  transition: width var(--transition);
}

.site-nav ul li a:hover::after {
  width: 100%;
}

/* 6. HERO / BANNER */
.hero {
  position: relative;
  background-image: url('../img/bg_intro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 1;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-content .btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  transition: filter var(--transition);
}

.hero-content .btn:hover {
  filter: brightness(0.9);
}

/* Seção “A Empresa” */
.empresa {
  padding: 4rem 0;
  background: var(--white);
}

.empresa h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}
.empresa h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto 0;
}

.empresa-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

/* Colunas lado a lado a partir de tablets/desktop */
@media (min-width: 768px) {
  .empresa-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.empresa .texto {
  font-size: 1rem;
  color: var(--black);
  line-height: 1.6;
}

.empresa .imagem img {
  width: 100%;           /* garante responsividade */
  border: 4px solid var(--red);
  border-radius: 4px;
  object-fit: cover;
}

/* 8. SEÇÃO “SERVIÇOS” */
.servicos {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}
.servicos h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}
.servicos h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto 0;
}
.servicos .cards {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .servicos .cards {
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  }
}
.servicos .card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.servicos .card img {
  width: 15rem;
  margin-bottom: 1rem;
}
.servicos .card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.servicos .card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.servicos .btn-card {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  transition: filter var(--transition);
}
.servicos .btn-card:hover {
  filter: brightness(0.9);
}

/* SEÇÃO MIP */
.mip {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.mip h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.mip h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto 0;
}

.mip-content {
  display: flex;
  flex-direction: column;   /* SEMPRE coluna */
  align-items: center;      /* centraliza horizontalmente */
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;       /* botão e texto centralizados */
}

.mip-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
}

.icon-mip {
  width: 4rem;
  height: auto;
}

.mip .btn {
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  transition: filter var(--transition);
}
.mip .btn:hover {
  filter: brightness(0.9);
}



/* === Seção Produtos === */
.produtos {
  padding: 4rem 0;
  background: var(--white);
  text-align: center;
}

.produtos h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}
.produtos h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  margin: 0.5rem auto 2rem;
}

/* Conteúdo e checklist */
.produtos-content {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: left;
}

.lista-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1rem 2rem;
  padding: 0;
  margin-top: 1rem;
}

.lista-produtos li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
}

.lista-produtos li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--red);
  font-weight: 600;
}

/* Galeria de marcas */
.lista-marcas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.lista-marcas li {
  list-style: none;
}

.lista-marcas img {
  height: 3rem;
  filter: grayscale(100%);
  transition: filter var(--transition), transform var(--transition);
}

.lista-marcas img:hover {
  filter: none;
  transform: scale(1.1);
}


/* background e texto */
.site-footer {
  background: var(--black);
  color: var(--white);
}

/* grid de colunas */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  padding: 3rem 0;
  justify-items: center;    /* centraliza cada coluna */
  text-align: center;       /* centraliza conteúdo */
}

/* cabeçalhos com underline */
.footer-inner .col h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 0.75rem;
}
.footer-inner .col h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--red);
}



/* ícones de redes em quadrados */
.footer-inner .col.redes a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.5rem;
  border: 2px solid var(--red);
  border-radius: 4px;
  transition: background var(--transition), border-color var(--transition);
}
.footer-inner .col.redes a:hover {
  background: var(--red);
}
.footer-inner .col.redes img {
  width: 1.25rem;
  filter: none;
  transition: filter var(--transition);
}
.footer-inner .col.redes a:hover img {
  filter: brightness(0.9);
}

/* barra inferior vermelha */
.barra-inferior {
  background: var(--red-dark);
  text-align: center;
  padding: 0.75rem 0;
  font-size: 0.85rem;
}


/* 12. RESPONSIVIDADE */
@media (min-width: 768px) {
  .empresa-inner {
    grid-template-columns: 1fr 1fr;
  }
  .servicos .cards {
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .site-nav.open {
    max-height: 300px;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
  }
}

.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: green;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform .2s;
  z-index:1000;
}
.fab-whatsapp:hover {
  transform: scale(1.1);
}
.fab-whatsapp img {
  width: 60%;
  height: auto;
}

@media (max-width: 768px) {
  /* Torna a nav fixa em toda a tela */
  .site-nav {
    display: none;             /* ainda escondida por padrão */
    position: fixed;           /* fixa na viewport */
    top: 0; left: 0;
    width: 100%;
    /* ajusta embaixo da barra vermelha e do header (se header for 4rem de altura) */
    /* aqui subtraímos 4rem, mas ajuste se seu header tiver outra altura */
    height: calc(100vh - 3rem);
    margin-top: 6rem;          /* empurra para baixo a partir do header */
    background: var(--white);
    overflow-y: auto;          /* rolamento interno */
    z-index: 1500;             /* acima de tudo */
  }
  
  /* abertura */
  .site-nav.open {
    display: block;
  }

  /* lista vertical */
  .site-nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 1rem 0;
  }
  .site-nav li {
    margin: 0.5rem 0;
    text-align: center;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 1rem;
  }

  /* opcional: ocultar o scroll da página principal enquanto o menu estiver aberto */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  /* Se estiver usando .service-item / .service-image */
  .service-item .service-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;    /* garante que ocupe toda a largura no mobile */
  }
  .service-item .service-image img {
    margin: 0 auto !important;  /* centraliza o img dentro do flexbox */
    max-width: 80%;             /* ou ajuste para o tamanho desejado */
    height: auto;
  }

  /* Caso seu card seja .card */
  .card {
    text-align: center !important;
  }
  .card img {
    display: inline-block !important;
    margin: 0 auto 1rem !important;
    max-width: 80%;             /* ajuste conforme necessário */
    height: auto;
  }
}