body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

body.home .header {
  position: absolute;
  background: transparent;
}

body.home .header.scrolled {
  background: rgba(10, 37, 64, 0.95);
  position: fixed;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  background: rgba(10, 37, 64, 0.95);
}


.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header nav a:hover {
  color: #d0e4ff;
}

.header nav a {
  color: #fff;
}

body.home .header nav a {
  color: #fff;
}

body.home .header nav a:hover {
  color: #d0e4ff;
}


.logo {
  height: 70px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.btn-menu {
  background: #0078d4;
  padding: 8px 14px;
  border-radius: 4px;
}

.hero {
  background: #e6f0fa;
  padding: 80px 0;
  text-align: center;
}

.servicos {
  padding: 60px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.diferenciais {
  background: #e6f0fa;
  color: black;
  padding: 60px 0;
}

.contratos {
  padding: 60px 0;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #0078d4;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
}

.footer {
  background: #0a2540;
  color: #fff;
  padding: 12px 0; /* bem mais compacto */
  font-size: 13px;
}

.footer-line {
  text-align: center;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p {
  margin: 0;
  line-height: 1.4;
}

.servicos-premium {
  padding: 50px 0;
  background: linear-gradient(180deg, #f4f6f8, #ffffff);
  text-align: center;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.premium-card {
  background: white;
  padding: 45px 30px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  position: relative;
}

.premium-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.premium-card .icon {
  font-size: 42px;
  margin-bottom: 20px;
}

.premium-card h3 {
  color: #0a2540;
  margin-bottom: 12px;
}

.servico-detalhado-premium {
  padding: 90px 0;
}

.detalhe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.detalhe-texto h2 {
  color: #0a2540;
}

.detalhe-texto ul {
  margin-top: 20px;
  padding-left: 20px;
}

.detalhe-visual {
  display: flex;
  justify-content: center;
}

.visual-box {
  background: linear-gradient(135deg, #0a2540, #0078d4);
  color: white;
  padding: 60px 40px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.premium-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0078d4, #0a2540);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-card:hover::after {
  opacity: 1;
}

.hero-contrato {
  background: linear-gradient(135deg, #0a2540, #0078d4);
  color: white;
  padding: 90px 0;
  text-align: center;
}

.contrato-sobre {
  padding: 80px 0;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.beneficios-contrato {
  background: #f4f6f8;
  padding: 80px 0;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.beneficio-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.beneficio-card:hover {
  transform: translateY(-8px);
}

.como-funciona {
  padding: 80px 0;
  text-align: center;
}

.passos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.passo {
  width: 200px;
}

.passo span {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #0078d4;
  color: white;
  border-radius: 50%;
  line-height: 50px;
  font-weight: bold;
  margin-bottom: 15px;
}

.cta {
  background: #0a2540;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.cta h2 {
  margin-bottom: 15px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 25px;
}


.cta .btn {
  background: #0078d4;
  color: white;
  font-weight: bold;
  padding: 14px 28px;
}

.hero-contato {
  background: #f4f6f8;
  padding: 50px 0;
  text-align: center;
}

.contato-area {
  padding: 90px 0;
}

.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 60px;
  align-items: flex-start;
}

.contato-info h2,
.contato-form h2 {
  color: #0a2540;
  margin-bottom: 15px;
}

.contato-info ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.contato-info li {
  margin-bottom: 10px;
}

.contato-form form {
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.contato-form input,
.contato-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contato-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contato-form button {
  border: none;
  cursor: pointer;
}

.sobre-bloco {
  padding: 35px 0;
}

.sobre-bloco h2 {
  margin-bottom: 10px;
}

.sobre-bloco p {
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: center;
}

.sobre-destaque {
  background: linear-gradient(135deg, #0a2540, #0078d4);
  color: white;
  padding: 40px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 20px rgba(0,0,0,0.2);
}

.sobre-destaque span {
  font-size: 36px;
  font-weight: bold;
}

section + section {
  border-top: 1px solid #eee;
}

.bloco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
  align-items: center;
}

.bloco-texto h2 {
  color: #0a2540;
  margin-bottom: 10px;
}

.bloco-texto ul {
  margin-top: 15px;
  padding-left: 20px;
}

.bloco-texto li {
  margin-bottom: 8px;
}

.bloco-tag {
  background: linear-gradient(135deg, #0a2540, #0078d4);
  color: white;
  padding: 35px 30px;
  border-radius: 14px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  line-height: 1.5;
}

.servicos-hero {
  background: url("assets/img/infra-ti.jpg") center/cover no-repeat;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.servicos-overlay {
  background: rgba(10, 37, 64, 0.75); /* azul escuro PcHelp */
  width: 100%;
  height: 100%;
  padding: 60px 0;
}

.servicos-conteudo {
  color: #fff;
  max-width: 700px;
}

.servicos-conteudo h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.servicos-conteudo p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.servicos-lista {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.servicos-lista li {
  margin-bottom: 8px;
  font-size: 16px;
}

.btn-light {
  background: #fff;
  color: #0a2540;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.carousel-simples {
  margin: 0px 0;
}

.carousel-container {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-radius: 0px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
    background: linear-gradient(
    to right,
    rgba(10, 37, 64, 0.92) 0%,
    rgba(10, 37, 64, 0.85) 35%,
    rgba(10, 37, 64, 0.4) 60%,
    rgba(10, 37, 64, 0) 100%
  );
  color: #fff;
}

.carousel-overlay h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.carousel-overlay p {
  font-size: 18px;
  max-width: 520px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 37, 64, 0.85);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 5;
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* ===== PÁGINA DE CONTATO ===== */

.page-contato .container {
  max-width: 1100px;
}

/* Estrutura do formulário */
.page-contato form {
  max-width: 500px;
  margin: 0px auto;
}

/* Campos */
.page-contato input,
.page-contato textarea {
  width: 100%;
  padding: 14px 6px;
  margin-bottom: 16px;

  border: 1px solid #ccc;
  border-radius: 6px;

  background: #fff;
  color: #0a2540;

  font-size: 15px;
}

.page-contato input::placeholder,
.page-contato textarea::placeholder {
  color: #777;
}

/* Foco */
.page-contato input:focus,
.page-contato textarea:focus {
  outline: none;
  border-color: #0a2540;
}

/* Botão */
.page-contato button,
.page-contato .btn {
  width: 35%;
  padding: 14px;
  background: #0a2540;
  color: #fff;

  border: none;
  border-radius: 6px;

  font-size: 18px;
  cursor: pointer;
}

.page-contato button:hover {
  background: #083059;
}

/* ==========================
   AJUSTES MOBILE (SAFE MODE)
   ========================== */
@media (max-width: 768px) {

  /* HEADER */
  body.home .header {
    position: relative;
    background: rgba(10, 37, 64, 0.95);
  }

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

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 6px 10px;
    font-size: 14px;
  }

  .logo {
    height: 55px;
  }

  /* HERO / SEÇÕES */
  .hero,
  .hero-contrato,
  .hero-contato {
    padding: 45px 0;
  }

  section {
    padding: 45px 0 !important;
  }

  /* TEXTOS */
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* GRIDS */
  .detalhe-grid,
  .sobre-grid,
  .bloco-grid,
  .contato-grid {
    gap: 30px;
  }

  /* CARDS PREMIUM */
  .premium-card {
    padding: 30px 20px;
  }

  /* VISUAL BOX */
  .visual-box {
    padding: 35px 20px;
    font-size: 16px;
  }

  /* PASSOS */
  .passo {
    width: 100%;
  }

  /* FORMULÁRIO */
  .contato-form form {
    padding: 30px 20px;
  }

  .page-contato button,
  .page-contato .btn {
    width: 100%;
  }

  /* CAROUSEL */
  .carousel-container {
    height: 420px;
  }

  .carousel-overlay {
    padding: 30px 20px;
    background: rgba(10, 37, 64, 0.85);
  }

  .carousel-overlay h2 {
    font-size: 26px;
  }

  .carousel-overlay p {
    font-size: 15px;
  }

  /* FOOTER (preserva visual original) */
  .footer {
    padding: 18px 10px;
    font-size: 12px;
  }

  .footer p {
    line-height: 1.5;
  }
}

/* REMOVE ESPAÇO ENTRE HEADER E CAROUSEL NO MOBILE */
@media (max-width: 768px) {

  /* garante que o header não empurre o conteúdo */
  body.home .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }

  /* remove qualquer margem superior do carousel */
  .carousel-simples,
  .carousel-container {
    margin-top: 0 !important;
  }

  /* garante que o overlay encoste no topo */
  .carousel-overlay {
    padding-top: 0;
  }
}
