* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Instrument Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;

}

*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--chumbo);
}

:root {
    --chumbo: #1d1d1d;
    --chumboclaro: #1d1d1d;
    --branco: #F5F5F5;
    --roxo: #9F00FF;
}

a {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.background-header {
    background-color: #000000b6;
    height: 100vh;
}

.header-container video {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.header-content {
    width: 80%;
    margin: 0 auto;
    height: 85vh;
    /* ocupa a tela toda */
    display: flex;
    justify-content: center;
    /* centro horizontal */
    align-items: center;
    /* centro vertical */
}

.header-content h3 {
    font-weight: 800;
    font-size: 85px;
    color: #fff;
}

.header-text p {
    width: 55%;
    margin-bottom: 32px;
    padding: 22px 0;
    color: #FFF;
}

.header-text a {
    padding: 12px 32px;
    border-radius: 50px;
    border: 1px solid var(--roxo);
    color: #FFF;
    font-size: 14px;
    text-decoration: none;
    margin-right: 20px;
}

.header-text a:hover {
    background-color: var(--roxo);
    transition: 0.4s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    width: 72%;
    padding-top: 4ch;
}

.logo-nav {
    width: 220px;
}

.btn-contact a {
    background-color: var(--roxo);
    color: var(--branco);
    text-decoration: none;
    padding: 12px 17px;
    border-radius: 20px;
    display: inline-block;
}

.btn-contact a:hover {
    background-color: var(--chumbo);
    transition: 0.4s ease;
}

.btn-contact a img {
    margin-left: 10px;
    transform: rotate(45deg);
}

.btn-contact a:hover img {
    transition: 0.4s ease;
    transform: rotate(0);
}

.container-about {
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
    width: 70%;
    padding: 125px 0;
}

.left-about-container {
    width: 50%;
}

.right-about-container {
    width: 50%;
}

.left-about-container h2 {
    font-size: 60px;
    color: var(--branco);
    font-weight: 500;
}

.left-about-container p {
    width: 80%;
    color: var(--branco);
    padding: 40px 0;
    line-height: 28px;
}

.title-h2 h2 {
    margin: 0 auto;
    width: 40%;
    text-align: center;
    font-size: 60px;
    margin-bottom: 6%;
    color: var(--branco);
    font-weight: 600;
}

.container-services {
    /* Largura fluida + limite máximo */
    width: min(70%, 100%);
    margin: 40px auto;
    padding: 16px;
    display: grid;
    /* Responsivo automático:
         - cada card tem no mínimo 220px
         - quando não couber mais, quebra para a linha de baixo
         - ocupa o espaço disponível com 1fr */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

}

.topic-service {
    background: var(--chumbo);
    color: white;
    padding: 0 20px;
    text-align: left;
}

.topic-service h3 {
    padding: 20px 0;
    font-weight: 600;
}

.topic-service p {
    font-weight: 100;
    line-height: 28px;
}

.topic-service:nth-child(1),
.topic-service:nth-child(2),
.topic-service:nth-child(3) {
    border-right: 1px #353535 solid;
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
        /* laptops */
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        /* tablets */
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
        /* celulares */
    }
}

.pulse-img {
    /* ajuste o tamanho da imagem */
    height: auto;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    /* aumenta levemente */
    100% {
        transform: scale(1);
    }
}

.blog h2 {
    margin: 0 auto;
    width: 60%;
    text-align: center;
    font-size: 60px;
    margin-top: 8%;
    margin-bottom: 3%;
    color: var(--branco);
    font-weight: 600;
}

.news-grid {
    --gap: 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0 auto;
    padding: 24px;
    max-width: 1280px;
}

/* Quebras responsivas */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ====== Card ====== */
.news-card {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  isolation: isolate;               /* garante o overlay correto */
  aspect-ratio: 9 / 14;             /* controla a altura do card */
}

/* Imagem por trás do texto */
.news-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .6s ease, filter .6s ease;
}

/* Degradê para leitura do texto */
.news-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 35%,
    rgba(0,0,0,.55) 65%,
    rgba(0,0,0,.80) 100%
  );
  z-index: 1;
}

/* Conteúdo sobre a imagem */
.news-content {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  display: grid;
  gap: 6px;
}

/* Data */
.news-meta {
  font-size: .875rem;
  opacity: .9;
}

/* Título */
.news-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Link ocupando o card todo (opcional) */
.news-card a {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Hover suave */
.news-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.05);
}
.news-card:hover .news-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.news-card.featured img {
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1.02); }
  50%      { transform: scale(1.08); }
}

/* ====== Tablets grandes (até 1200px) ====== */
@media (max-width: 1200px) {
  nav {
    width: 90%;
  }
  .header-text p {
    width: 70%;
  }
  .left-about-container h2 {
    font-size: 48px;
  }
  .title-h2 h2 {
    width: 60%;
    font-size: 48px;
  }
}

/* ====== Tablets médios (até 992px) ====== */
@media (max-width: 992px) {
  .header-content h3 {
    font-size: 60px;
    text-align: center;
  }
  .header-text p {
    width: 90%;
    text-align: center;
    margin: 0 auto 32px auto;
  }
  .header-text {
    text-align: center;
  }
  nav {
    width: 90%;
    flex-direction: column;
    gap: 20px;
  }
  .container-about {
    flex-direction: column;
    width: 90%;
    gap: 40px;
    padding: 80px 0;
  }
  .left-about-container,
  .right-about-container {
    width: 100%;
    text-align: center;
  }

  .left-about-container p {
    width: 100%;
  }
  .title-h2 h2 {
    width: 80%;
    font-size: 42px;
  }
}

/* ====== Celulares grandes (até 768px) ====== */
@media (max-width: 768px) {
  .header-content h3 {
    font-size: 42px;
  }
  .header-text p {
    font-size: 16px;
    line-height: 24px;
  }
  .left-about-container h2 {
    font-size: 36px;
  }
  .left-about-container p {
    font-size: 15px;
    line-height: 24px;
  }
  .title-h2 h2 {
    font-size: 32px;
    width: 90%;
  }
  .topic-service {
    border-right: none !important;
    border-bottom: 1px solid #353535;
    text-align: center;
  }
  .topic-service:last-child {
    border-bottom: none;
  }
}

/* ====== Celulares pequenos (até 480px) ====== */
@media (max-width: 480px) {
  .header-content {
    width: 90%;
    height: auto;
    padding-top: 140px;
  }
  .header-content h3 {
    font-size: 65px;
  }
  .header-text p {
    font-size: 18px;
    width: 100%;
    margin-bottom: 24px;
  }
  .header-text a {
    display: inline-block;
    gap: 20px 0;
    margin: 10px auto;
    font-size: 13px;
    text-align: center;
  }
  .logo-nav {
    width: 220px;
  }
  .btn-contact a {
    font-size: 13px;
    padding: 10px 14px;
  }
  .left-about-container h2 {
    font-size: 52px;
  }
  .title-h2 h2 {
    font-size: 40px;
    width: 100%;
  }

  .right-about-container img{
    width: 100%;
  }

  .service-content{
    margin: 42px 0;
  }

}
