/* ================================================================= */
/* TIPOGRAFIA PADRONIZADA (3 tamanhos: 2rem, 1.2rem, 1rem)           */
/* ================================================================= */

body {
  margin: 0;
  font-family: 'Noto Sans', 'Helvetica World', sans-serif;
  color: #424242;
  background-color: #efefef;
  position: relative;
  overflow-x: hidden;
  text-align: left;
  font-size: 1rem; /* texto padrão */
}

/* Títulos principais (seções) */
h2 {
  font-size: 2rem;
  color: #700000;           /* cor padrão: vermelho para seções claras */
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Títulos em seções escuras */
.services h2,
.contact h2 {
  color: #efefef;
}

/* Navegação, botões e preço em tamanho intermediário */
nav a,
.cta-button,
.price {
  font-size: 1.2rem;
}

/* Textos gerais */
p {
  font-size: 1rem;
  text-align: left;
}

.service-card p,
.more-text p,
#contact-info {
  text-align: center;
}



/* ================================================================= */
/* LAYOUT GERAL                                                      */
/* ================================================================= */

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* ================================================================= */
/* HEADER + LOGO + MENU                                              */
/* ================================================================= */

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.25rem 1rem;
  background: linear-gradient(
    90deg,
    rgba(239, 239, 239, 1) 0%,
    rgba(239, 239, 239, 1) 100%
  );
  position: sticky;
  top: 0;
  z-index: 10;
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  display: block;
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* MENU */

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

nav a {
  color: #700000;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #596000;
}

/* ================================================================= */
/* HERO                                                              */
/* ================================================================= */

.hero {
  position: relative;
  display: flex;
  justify-content: center;  /* conteúdo centralizado */
  align-items: center;
  padding: 6rem 2rem;
  min-height: 520px;

  background-image: url("https://res.cloudinary.com/de2hmcnc3/image/upload/v1764621654/1_lctyps.svg");
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;

  color: #424242;
}

/* texto com margem à esquerda */
.hero-content {
  max-width: 520px;

  padding: 1.8rem 1.5rem;
  border-radius: 12px;
  text-align: center;     /* Título, texto e botão centralizados */
  margin: 0 auto;         /* Caixa centralizada */
}

.hero-content p {

  text-align: center;     /* Título, texto e botão centralizados */
}

.cta-button {
  padding: 0.8rem 2rem;
  background-color: #700000;
  color: #EFEFEF;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.cta-button:hover {
  background: linear-gradient(135deg, #596000 0%, #960000 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* ================================================================= */
/* SEÇÕES E ALTERNÂNCIA DE CORES                                     */
/* ================================================================= */

section {
  padding: 3rem 1.5rem;
  margin: 0;
  background-color: #efefef;
}

/* seções escuras */
.services,
.contact {
  background-color: #424242;
  color: #EFEFEF;
}

/* blog e sobre permanecem claras */
.blog,
.about {
  background-color: #efefef;
  color: #424242;
}

/* ================================================================= */
/* SERVIÇOS                                                          */
/* ================================================================= */

.services h2 {
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start; /* cada card com sua própria altura */
}

.service-card {
  flex: 1 1 260px;        /* ocupa pelo menos 260px de largura */
  max-width: 360px;       /* opcional, para não ficar gigante em telas grandes */
  background-color: #596000;
  color: #EFEFEF;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease;
}

/* AJUSTE DE TAMANHO DE FONTE NAS CAIXAS */
.service-card h3 {
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
}

.service-card .price {
  font-size: 1rem;
}

.service-card:hover {
  background: linear-gradient(135deg, #596000 0%, #700000 100%);
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.price {
  color: #EFEFEF;
  font-weight: bold;
  display: block;
}

/* Texto expandido */

.toggle-box {
  display: none;
}

.service-header {
  cursor: pointer;
  display: block;
  text-align: center;
}

.more-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 0;
}

.toggle-box:checked ~ .more-text {
  max-height: 260px;
  opacity: 1;
  margin-top: 1rem;
}

/* ================================================================= */
/* BLOG                                                              */
/* ================================================================= */

.blog h2 {
  text-align: center;
}

.blog-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 1.75rem;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
/* Esconde posts filtrados */
.post-card.hidden {
  display: none !important;
}

/* Destaque para a categoria ativa */
.sidebar-list a.active {
  font-weight: 600;
  color: #700000;
}

.post-meta {
  font-size: 0.85rem;
  color: #777777;
  margin-bottom: 0.3rem;
  text-align: left;
}

.post-title {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  text-align: left;
}

.post-title a {
  text-decoration: none;
  color: #424242;
}

.post-title a:hover {
  color: #700000;
}

.post-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  text-align: left;
}

.post-readmore {
  font-size: 0.9rem;
  text-decoration: none;
  color: #700000;
  font-weight: 600;
  text-align: left !important;
}

/* Sidebar do blog (reaproveitando estilo) */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-block {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-block h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #596000;
}

.sidebar-block p {
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.sidebar-list {
  list-style: none;
  margin: 0.3rem 0 0 0;
  padding: 0;
}

.sidebar-list li + li {
  margin-top: 0.25rem;
}

.sidebar-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #424242;
}

.sidebar-list a:hover {
  color: #700000;
}

/* Página de post individual */
.post-page-main {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.single-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.25rem 1.5rem;
  background-color: #FFFFFF;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.single-post h2 {
  font-size: 1.8rem;
  color: #700000;
  margin-bottom: 0.75rem;
}

.single-post .post-meta {
  margin-bottom: 1.2rem;
}

.single-post p {
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  text-align: left;
}

.single-post h3 {
  font-size: 1.25rem;
  margin: 1.25rem 0 0.5rem 0;
  color: #596000;
}

.back-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  color: #700000;
  font-weight: 600;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* proporção 16:9 */
  height: 0;
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



/* ================================================================= */
/* SOBRE E CONTATO                                                   */
/* ================================================================= */

.about,
.contact {
  padding: 2rem;
  border-radius: 0;
  text-align: center;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  text-align: justify;
}

.contact p {
  text-align: justify;
}

/* ================================================================= */
/* FOTO DO ENGENHEIRO                                               */
/* ================================================================= */

.about-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ================================================================= */
/* RODAPÉ                                                            */
/* ================================================================= */

footer {
  text-align: center;
  padding: 2rem;
  background-color: #424242;
  color: #EFEFEF;
}
footer p {
  text-align: center;
}


/* ================================================================= */
/* BOTÃO WHATSAPP                                                    */
/* ================================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #1ebe5c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.25s ease;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #1ebe5c 0%, #596000 100%);
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* ================================================================= */
/* RESPONSIVIDADE                                                    */
/* ================================================================= */

@media (max-width: 850px) {

  .hero {
    display: block;
    padding: 0;
    min-height: auto;
    background: none;
  }

  .hero::before {
    content: "";
    display: block;
    width: 100%;
    height: 400px; /* imagem começa mais cedo visualmente */
    background-image: url("https://res.cloudinary.com/de2hmcnc3/image/upload/v1764621655/2_lgt1cz.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-content {
    margin: 1rem auto 2rem auto; /* texto começa mais cedo */
    margin-top: -160px;
    max-width: 92%;
    background: rgba(239, 239, 239, 0.9);
    padding: 1.2rem 1rem;
    text-align: center;
  }

  .hero-content .cta-button {
    display: block;
    width: fit-content;
    margin: 1rem auto 0 auto;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .logo-image {
    max-width: 340px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-block {
    flex: 1 1 240px;
  }
}

/* ================================================================= */
/* LINKS DO CONTATO                                                  */
/* ================================================================= */

#contact-info a {
  color: #EFEFEF;
}

#contact-info a:hover {
  color: #596000;
}

/* Compensa a altura do header ao clicar nos links do menu */
#hero,
#services,
#blog,
#about,
#contact {
  scroll-margin-top: 300px; /* ajuste fino conforme a altura do header */
}

/* ================================================================= */
/* FAIXAS FULL-WIDTH                                                 */
/* ================================================================= */

header,
.hero,
.services,
.blog,
.about,
.contact,
footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

/* ================================================================= */
/* IMAGENS DOS ARTIGOS                                                 */
/* ================================================================= */

.post-image img {
  width: 100%;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.post-image.full img {
  width: 100%;
  border-radius: 0;
}

.post-figure {
  text-align: center;
  margin: 1.6rem 0;
}

.post-figure img {
  max-width: 100%;
  border-radius: 10px;
}

.post-figure figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.35rem;
}

/* Layout horizontal dos artigos */
.post-card.horizontal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Texto ocupa mais espaço  */
.post-card.horizontal .post-content {
  flex: 1;
}

/* Caixa da imagem */
.post-card.horizontal .post-thumb img {
  width: 160px; /* ajuste como quiser */
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;

}

/* Responsivo: empilha no celular */
@media (max-width: 700px) {
  .post-card.horizontal {
    flex-direction: column;
    text-align: center;
  }

  .post-card.horizontal .post-thumb img {
    width: 200px;
  }
}

.post-card,
.post-card * {
  text-align: left !important;
}
