/* Reset e fonte */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #111;
}

/* Barra superior com fundo laranja */
.top-bar {
  background-color: #e76b00;
  color: white;
  padding: 10px 0;
  font-size: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  z-index: 100;
  position: relative;
}

/* Linha de informações dentro da faixa */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
}

/* Estilo dos textos */
.contact-info span {
  font-size: 15px;
  white-space: nowrap;
  color: white;
}

/* Ícones Font Awesome */
.contact-info i {
  margin-right: 6px;
  color: white;
}

/* Ícones personalizados (imagem) */
.contact-info img.icon-social {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Hero */
.hero {
  background-image: url("../static/bg-serralheria.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-hero {
  position: absolute;
  top: 55px;
  left: 130px;
}

.logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* NAVBAR CENTRALIZADA */
.navbar {
  position: absolute;
  top: 60px;
  left: 130px;
  right: 130px;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  flex: 1;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.orcamento-btn {
  margin-left: auto;
}

.btn-orcamento {
  background-color: #e76b00;
  color: white;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-orcamento:hover,
.btn-orcamento:focus {
  background-color: #ff8000;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  outline: none;
}

.submenu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: #111;
  padding: 10px 0;
  border-radius: 4px;
  z-index: 99;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li {
  padding: 8px 20px;
}

.submenu li a {
  color: white;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

.submenu li a:hover {
  background-color: #333;
}

.btn-orcamento-segundo {
  margin-top: 35px;
  background-color: #e76b00;
  color: white;
  padding: 10px 22px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.btn-orcamento-segundo:hover {
  background-color: #ff8000;
  transform: translateY(-2px);
}

.btn-centralizado {
  display: flex;
  justify-content: center;
}

.btn-vermais {
  background-color: #e76b00;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  margin-top: auto;
  transition: all 0.3s ease;
}

.btn-vermais:hover {
  background-color: #ff8000;
  transform: translateY(-2px);
}

.hero-content {
  max-width: 800px;
  margin-top: 60px;
}

.titulo-branco {
  color: white;
  font-size: 48px;
  margin-bottom: 10px;
}

.faixa-laranja {
  display: inline-block;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  border: 2px solid #e76b00;
  padding: 8px 18px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 20px;
}

.texto-explicativo {
  color: white;
  font-size: 22px;
  line-height: 1.8;
  margin-top: 30px;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.texto-explicativo.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  height: 100vh;
  background-image: url("../static/bg-serralheria.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* importante para cortar qualquer excesso */
}

.curva-hero svg {
  display: block;
  width: 100%;
  height: 120px;
}

.intro-texto {
  padding: 100px 50px 80px; /* padding-top aumentado para 100px e bottom para 80px */
  margin-top: 1px;
  text-align: center;
}

.intro-texto h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.linha-laranja {
  height: 4px;
  width: 100px;
  background-color: #e76b00;
  margin: 0 auto 30px auto;
}

.intro-texto p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 900px;
  margin: 20px auto 0; /* adicionei um pequeno espaçamento acima do parágrafo */
}

.servicos-grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 50px;
}

.servico-box {
  background-color: #111;
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 500px;
}

.servico-box.branco {
  background-color: white;
  color: black;
}

.servico-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.servico-box img:hover {
  transform: scale(1.05);
}

.servico-box h3 {
  margin-top: 10px;
  font-size: 18px;
  text-align: center;
}

.servico-box p {
  font-size: 14px;
  margin: 10px 0 20px;
  text-align: center;
}

.info-section {
  background-color: #111;
  padding: 0;
}

.info-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 700px;
}

.info-imagem {
  flex: 1;
  background-image: url("../static/fundo-info.png");
  background-size: cover;
  background-position: center;
}

.info-texto-lateral {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-texto-lateral h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.info-texto-lateral p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.info-texto-lateral a {
  display: inline-block;
  margin-top: 10px;
  background-color: #e76b00;
  padding: 10px 25px;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.feedback-area {
  background-color: #111;
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.feedback-container {
  max-width: 900px;
  margin: auto;
}

.feedback-area h2 {
  font-size: 30px;
  margin-bottom: 15px;
  color: white;
}

.feedback-area p {
  font-size: 17px;
  color: #ccc;
}

/* Fundo da seção de projetos */
.fundo-projetos {
  position: relative;
  background-image: url("../static/fundo-projetos.png"); /* ajuste o caminho se for necessário */
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  overflow: hidden;
}

/* Escurecimento da imagem de fundo */
.fundo-projetos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* ajuste a opacidade aqui */
  z-index: 1;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(231, 107, 0, 0.85);
  color: white;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  background-color: rgba(255, 128, 0, 0.9);
}

.arrow.left {
  left: -40px;
}

.arrow.right {
  right: -40px;
}

.texto-explicativo-orcamento {
  text-align: center;
  max-width: 900px;
  margin: 60px auto 40px auto;
  line-height: 1.8;
}

.texto-explicativo-orcamento h2 {
  font-size: 28px;
  color: #111;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-explicativo-orcamento p {
  font-size: 18px;
  color: #333;
  margin: 5px 0;
}

.linha-laranja {
  width: 80px;
  height: 4px;
  background-color: #e76b00;
  margin: 10px auto 25px auto;
}

.form-orcamento {
  background-color: white;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto 80px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-orcamento h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #111;
}

.form-orcamento label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.form-orcamento input,
.form-orcamento select,
.form-orcamento textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: #111;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-orcamento input:focus,
.form-orcamento select:focus,
.form-orcamento textarea:focus {
  border-color: #e76b00;
  outline: none;
}

.form-orcamento button {
  width: 100%;
  background-color: #e76b00;
  color: white;
  font-weight: bold;
  font-size: 17px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-orcamento button:hover,
.form-orcamento button:focus {
  background-color: #ff8000;
  transform: translateY(-2px);
  outline: none;
}
.orcamento-wrapper {
  background: linear-gradient(to bottom, #fff 0%, #fdf3ec 100%);
  padding: 80px 20px;
}

/* RODAPÉ */
.rodape {
  background-color: #111;
  color: #fff;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.rodape-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.rodape-logo img {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.rodape-info p {
  margin: 6px 0;
}

.rodape-social a {
  margin-right: 15px;
  display: inline-block;
}

.rodape-social img.icon-social {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.rodape-social img.icon-social:hover {
  transform: scale(1.1);
}

.rodape-copy {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  font-size: 13px;
  color: #ccc;
}

.galeria-projetos {
  background-color: white;
  padding: 80px 30px 60px;
  text-align: center;
}

.galeria-projetos h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #111;
}

.galeria-descricao {
  font-size: 17px;
  color: #444;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.galeria-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.galeria-grid img:hover {
  transform: scale(1.03);
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.mostrar {
  opacity: 1;
  transform: translateY(0);
}

.texto-projetos {
  position: relative;
  z-index: 2;
  margin-bottom: 50px;
  text-align: center;
  color: white;
}

.texto-projetos h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-projetos p {
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.carousel-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 30px;
  margin-bottom: 80px;
}

.carousel {
  width: 1200px;
  height: 800px;
}

.carousel img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.fundo-projetos {
  position: relative;
  background-image: url("../static/fundo-galeria-de-projetos.png");
  background-size: cover;
  background-position: center;
  padding: 80px 20px;
  overflow: hidden;
}

.fundo-projetos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.texto-projetos {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  margin-bottom: 50px;
}

.texto-projetos h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-projetos p {
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.carousel-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 30px;
  margin-bottom: 80px;
}

.carousel {
  position: relative;
  width: 700px;
  height: 420px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: #e76b00;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* ESSENCIAL para não deslocar a seta */
  line-height: 1; /* Alinha verticalmente a fonte */
  text-align: center;
}

.arrow:hover {
  background-color: #ff8000;
  transform: translateY(-50%) scale(1.08);
}

.arrow.left {
  left: 60px;
}

.arrow.right {
  right: 60px;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/*  MOBILE  */

/* RESPONSIVO MOBILE SEM ALTERAR O DESKTOP */
@media screen and (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  .top-bar,
  .contact-info {
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    text-align: center;
  }

  .logo-hero {
    top: 20px;
    left: 20px;
    width: 100px;
  }

  .navbar {
    flex-direction: column;
    padding: 0 15px;
    left: 0;
    right: 0;
    top: 130px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .orcamento-btn {
    margin: 10px auto 0;
  }

  .hero-content {
    padding: 0 15px;
    margin-top: 200px;
  }

  .titulo-branco {
    font-size: 32px;
  }

  .texto-explicativo {
    font-size: 18px;
    line-height: 1.6;
  }

  .intro-texto,
  .info-texto-lateral,
  .texto-projetos,
  .galeria-projetos,
  .form-orcamento,
  .orcamento-wrapper,
  .feedback-area,
  .rodape {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .servicos-grade {
    grid-template-columns: 1fr !important;
    padding: 30px 15px;
  }

  .servico-box {
    min-height: auto;
    padding: 20px 10px;
  }

  .info-wrapper {
    flex-direction: column;
    height: auto;
  }

  .info-texto-lateral {
    padding: 30px 20px;
    text-align: center;
  }

  .carousel-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 10px;
  }

  .carousel {
    width: 100% !important;
    height: auto !important;
  }

  .form-orcamento {
    padding: 20px;
  }

  .form-orcamento button {
    width: 100%;
  }

  .rodape-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .rodape-logo img {
    margin-bottom: 10px;
  }

  .rodape-social a {
    margin-right: 10px;
  }

  .btn-orcamento,
  .btn-orcamento-segundo,
  .btn-vermais {
    width: 100%;
    max-width: 250px;
    margin: 15px auto 0 auto;
    text-align: center;
  }

  .texto-explicativo-orcamento h2 {
    font-size: 24px;
  }

  .texto-explicativo-orcamento p {
    font-size: 16px;
  }
}

/* ===== Ajustes para ficar "como no PC" no mobile ===== */

/* Top bar mais compacta */
@media (max-width: 768px) {
  .top-bar { padding: 8px 0; }
  .top-bar .contact-info { gap: 10px; }
  .top-bar .contact-info span { font-size: 13px; }
  .top-bar img.icon-social { width: 16px; height: 16px; vertical-align: -3px; }
}

/* Hero interno das páginas "ver mais" */
.pagina-modelo, .hero-interno {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .pagina-modelo, .hero-interno {
    background-attachment: scroll !important; /* evita bug no mobile */
  }
}

/* Títulos e espaçamentos (como no PC, só levemente menores) */
.titulo-pagina { font-size: 30px; font-weight: 800; margin: 18px 0 6px; text-align: center; }
.subtitulo-pagina { font-size: 15px; color: #e9e9e9; text-align: center; margin: 0 auto 10px; max-width: 820px; }

@media (max-width: 768px) {
  .titulo-pagina { font-size: 26px; margin-top: 14px; }
  .subtitulo-pagina { font-size: 14px; }
}

/* Botão "Voltar para o Início" alinhado e menor */
.btn-voltar, .botao-voltar, .btn-back {
  display: inline-block;
  margin: 12px 0 6px 0;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}

/* Containers iguais aos do index */
.container, .section-interna, .secao, .wrapper {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Grade de modelos (mantém cara de PC com 2 colunas no mobile “grande”) */
.cards-modelos, .cards-servicos, .grid-4, .grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1200px) {
  .cards-modelos, .cards-servicos, .grid-4, .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .cards-modelos, .cards-servicos, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards-modelos, .cards-servicos, .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Cartões consistentes (sem “amassar” imagem) */
.card-modelo, .card-servico {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.card-modelo img, .card-servico img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .card-modelo img, .card-servico img { height: 220px; }
}
.card-modelo .conteudo, .card-servico .conteudo { padding: 16px 16px 18px; }

/* Espaçamento do bloco de abertura das páginas "ver mais" */
.bloco-intro-vermais { padding: 60px 0 24px; }
@media (max-width: 768px) {
  .bloco-intro-vermais { padding: 42px 0 16px; }
}

/* ====== AVALIAÇÕES (GOOGLE / TRUSTINDEX) — restaurado ====== */
.avaliacoes {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  color: #000;
}
.avaliacoes h2 {
  color: #000;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.avaliacoes .linha-laranja {
  width: 80px;
  height: 4px;
  background: #e76b00;
  margin: 8px auto 24px;
  border-radius: 2px;
}
/* centraliza e limita largura do widget injetado */
.avaliacoes .ti-widget,
.avaliacoes [class^="ti-"],
.avaliacoes [class*=" ti-"]{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
/* remove margens exageradas que às vezes vêm no widget */
.avaliacoes .ti-controls,
.avaliacoes .ti-rating-text { margin: 0 auto !important; }

/* ====== EFEITO DE ENTRADA “Você verá modelos de:” ====== */
/* Estado inicial (fora da tela) */
.intro-modelos .linha-1,
.intro-modelos .linha-2 {
  opacity: 0;
  transform: translateY(40px);
  transition: transform .8s ease, opacity .8s ease;
  will-change: transform, opacity;
}
/* Stagger (entra a linha-1, depois o título) */
.intro-modelos .linha-1.mostrar { transition-delay: .05s; }
.intro-modelos .linha-2.mostrar { transition-delay: .15s; }
/* Faixa laranja animada */
.intro-modelos .linha-laranja {
  width: 80px;
  height: 4px;
  background: #e76b00;
  margin: 8px auto 0;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .6s ease .25s;
}
.intro-modelos .linha-laranja.mostrar { transform: scaleX(1); }

/* ====== LEGENDA DA GALERIA (no estilo do título) ====== */
#galeria-caption.carousel-caption{
  display:block;
  width:fit-content;
  max-width:min(92vw, 920px);
  margin:12px auto 0;     /* centraliza e aproxima do carrossel */
  padding:0;
  background:transparent; border:0; box-shadow:none;

  color:#fff;
  font-weight:900; font-size:22px;
  line-height:1.3; letter-spacing:.3px;
  text-align:center; text-transform:uppercase;
  text-shadow:0 2px 6px rgba(0,0,0,.45);
  transform: translateY(-6px); /* sobe um pouco */
}
#galeria-caption.carousel-caption::after{
  content:""; display:block; width:70px; height:4px;
  background:#e76b00; border-radius:3px; margin:8px auto 0;
}
/* reserva mínima pra não “pular” quando estiver sem texto */
#galeria-caption:empty{ min-height: 20px; }
