/* Salviani Manutenção Industrial — folha de estilo do site */
/* Layout simples e responsivo, no estilo de site de pequena empresa (meados dos anos 2010). */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #3a3f44;
  background-color: #eef0f2;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #1f4e79;
}

a:hover {
  color: #16395a;
}

/* ---- Container central ---- */
.container {
  width: 1020px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---- Topo: marca e contato ---- */
.site-header {
  background-color: #ffffff;
  border-top: 3px solid #1f4e79;
  border-bottom: 1px solid #e1e5e9;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 12px;
  background-color: #1f4e79;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  border-radius: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 21px;
  font-weight: bold;
  color: #1f3247;
}

.brand-tagline {
  font-size: 12.5px;
  color: #6a7681;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.header-aside {
  text-align: right;
  font-size: 12.5px;
  color: #6a7681;
  line-height: 1.4;
}

.header-aside-label {
  display: block;
}

.header-aside-email {
  font-weight: bold;
  white-space: nowrap;
}

/* ---- Menu de navegação ---- */
.menu {
  background-color: #1f4e79;
}

.menu-inner {
  width: 1020px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 0 18px;
}

.menu a {
  display: block;
  padding: 12px 16px;
  color: #dce6f0;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.menu a:hover {
  background-color: #1a4368;
  color: #ffffff;
}

.menu a.active {
  color: #ffffff;
  background-color: #1a4368;
  border-bottom-color: #d9a441;
}

/* ---- Hero (página inicial) ---- */
.hero {
  position: relative;
  background-color: #dbe6f0;
  border-bottom: 1px solid #cdd6df;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-caption {
  position: absolute;
  left: 0;
  bottom: 20px;
  max-width: 62%;
  margin-left: max(18px, calc((100% - 1020px) / 2 + 18px));
  background-color: rgba(22, 57, 90, 0.9);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 4px;
}

.hero-caption h1 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: #ffffff;
}

.hero-caption p {
  margin: 0;
  font-size: 14.5px;
  color: #e4ecf3;
}

/* ---- Cabeçalho das páginas internas ---- */
.page-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e1e5e9;
}

.page-header .container {
  padding-top: 22px;
  padding-bottom: 18px;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  color: #1f3247;
  padding-left: 12px;
  border-left: 4px solid #1f4e79;
}

/* ---- Conteúdo ---- */
.content {
  background-color: #eef0f2;
}

.content .container {
  background-color: #ffffff;
  border: 1px solid #e1e5e9;
  border-top: none;
  padding: 24px 28px 28px 28px;
}

.content h2 {
  font-size: 18px;
  color: #1f4e79;
  margin: 26px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #e7ebef;
}

.content h2:first-child {
  margin-top: 4px;
}

.content h3 {
  font-size: 15.5px;
  color: #2c3e50;
  margin: 0 0 6px 0;
}

p {
  margin: 0 0 14px 0;
}

ul.lista {
  padding-left: 20px;
  margin: 8px 0 14px 0;
}

ul.lista li {
  margin-bottom: 9px;
}

/* Imagens dentro do conteúdo */
.foto {
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  background-color: #ffffff;
  overflow: hidden;
}

.foto-dir {
  float: right;
  width: 250px;
  margin: 4px 0 14px 20px;
}

/* Grade de serviços (home) */
.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 6px -8px 4px -8px;
}

.grid .item {
  flex: 1 1 300px;
  margin: 8px;
  padding: 16px 16px 16px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  background-color: #fafbfc;
}

.grid .item h3 {
  margin-top: 0;
  padding-left: 40px;
  min-height: 30px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 30px 30px;
}

.grid .item p {
  margin-bottom: 0;
  font-size: 14px;
  color: #50575d;
}

/* Blocos de serviço (página de serviços) */
.servico {
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  background-color: #ffffff;
  padding: 16px 18px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 49, 71, 0.04);
}

.servico h2 {
  margin-top: 0;
  border-bottom: none;
  padding: 0 0 0 46px;
  min-height: 36px;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 36px 36px;
}

/* Ícones */
.ic-preventiva { background-image: url("../img/ic-preventiva.svg"); }
.ic-corretiva  { background-image: url("../img/ic-corretiva.svg"); }
.ic-mecanica   { background-image: url("../img/ic-mecanica.svg"); }
.ic-eletrica   { background-image: url("../img/ic-eletrica.svg"); }
.ic-preditiva  { background-image: url("../img/ic-preditiva.svg"); }
.ic-montagem   { background-image: url("../img/ic-montagem.svg"); }
.ic-reparos    { background-image: url("../img/ic-reparos.svg"); }

/* Destaque / chamada (callout) */
.faixa-confianca {
  background-color: #f1f6fb;
  border: 1px solid #d6e2ee;
  border-left: 4px solid #1f4e79;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 20px 0;
  overflow: hidden;
}

.faixa-confianca p {
  margin: 0;
  font-size: 14.5px;
  color: #3a4a59;
}

/* Botão */
.botao {
  display: inline-block;
  background-color: #1f4e79;
  color: #ffffff;
  text-decoration: none;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.botao:hover {
  background-color: #16395a;
  color: #ffffff;
}

.botao:active {
  border-style: inset;
}

/* Formulário de contato */
.form-contato label {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: bold;
  color: #2c3e50;
}

.form-contato input,
.form-contato textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 14px;
  border: 1px solid #c8cfd6;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #3a3f44;
  background-color: #ffffff;
}

.form-contato input:focus,
.form-contato textarea:focus {
  outline: none;
  border-color: #1f4e79;
  box-shadow: 0 0 0 2px rgba(31, 78, 121, 0.15);
}

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

.contato-info {
  background-color: #fafbfc;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 18px;
  overflow: hidden;
}

.contato-info p {
  margin-bottom: 5px;
}

.contato-info p:last-child {
  margin-bottom: 0;
}

/* ---- Rodapé ---- */
.site-footer {
  background-color: #2c3e50;
  color: #c6cfd8;
  padding: 22px 0 26px 0;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 24px;
}

.rodape a {
  color: #ffffff;
}

.rodape p {
  margin: 3px 0;
}

.site-footer .legal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #43566a;
  color: #a9b4bf;
  font-size: 12px;
}

/* ---- Telas pequenas ---- */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-aside {
    text-align: left;
    margin-top: 10px;
  }

  .menu-inner {
    flex-direction: column;
    padding: 0;
  }

  .menu a {
    border-bottom: 1px solid #1a4368;
    border-left: 3px solid transparent;
  }

  .menu a.active {
    border-bottom-color: #1a4368;
    border-left-color: #d9a441;
  }

  .hero-caption {
    position: static;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .content .container {
    padding: 18px 16px 22px 16px;
  }

  .foto-dir {
    float: none;
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 6px auto 16px auto;
  }
}
