/* VARIÁVEIS */

:root {
  --bg: #f5f5f3;
  --text: #0a0a0a;
  --white: #ffffff;
  --black: #000000;
  --header-height: 88px;
  --radius-sm: 8px;
  --text-sm: clamp(0.9rem, 0.85rem + 0.2vw, 1rem);
}

/* BASE */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: var(--header-height);
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #ffb51b;
  outline-offset: 4px;
}

.container {
  width: min(1150px, calc(100% - 40px));
  margin-inline: auto;
  padding-inline: 6vw;
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: var(--header-height);
  padding-inline: 6vw;
  background: rgba(34, 34, 34, 0.96);
  backdrop-filter: blur(10px);
  color: var(--white);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.menu-link {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  color: #f5f1f1;
  background-color: #292929;

  transition: background-color 0.2s, color 0.2s;
}

.menu-link:hover {
  background-color: #047ecf;
  color: #fff;
}

.menu-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 42px;
}

.social-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 22px;
}

.social-header img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-header a:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}

/* BOTÃO */

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.cta-primary:hover {
  background: var(--white);
  color: var(--black);
}

/* BANNER */

.hero {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 60px 6%;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  background-image:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.58),
      rgba(0, 0, 0, 0.12)
    ),
    url("assets/fundo.jpg");

  background-position: center;
  background-size: cover;
}
.hero-conteudo {
  box-sizing: border-box;
  width: 100%;
  max-width: 650px;
  padding: 32px;

  background-color: rgba(25, 25, 25, 0.85);
  border-left: 4px solid #00b7e5;
  border-radius: 8px;

  color: #fff;
  font-family: Arial, sans-serif;
}

.hero-conteudo h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.hero-conteudo p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
}

.botao-proposta {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 6px;

  background-color: #00b7e5;
  color: #111;

  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;

  transition: background-color 0.2s, transform 0.2s;
}

.botao-proposta:hover {
  background-color: #55d9fa;
  transform: translateY(-2px);
}

.botao-proposta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 20px;
  }

  .hero-conteudo {
    padding: 24px;
  }

  .botao-proposta {
    box-sizing: border-box;
    width: 100%;
  }
}

/* VITRINE DE SERVIÇOS */
.vitrine-servicos {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.vitrine-imagem {
  display: block;
  width: 100%;
  height: auto;
}

/* Coluna sobre a lateral direita da imagem */
.opcoes-servicos {
  position: absolute;
  top: 4%;
  right: 2%;
  bottom: 4%;
  width: 36%;

  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
}

.opcao-servico {
  box-sizing: border-box;
  min-height: 0;
  padding: 10px 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #fff;
  border: 1px solid #dedede;
  border-radius: 18px;

  color: #222;
  text-decoration: none;

  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    background-color 0.2s ease;
}

.opcao-servico h3 {
  margin: 0 0 4px;
  font-size: clamp(16px, 1.5vw, 26px);
  line-height: 1.15;
}

.opcao-servico p {
  font-size: clamp(11px, 0.9vw, 15px);
  line-height: 1.3;
}

/* Esconde somente quando o JavaScript ativa o efeito */
.vitrine-servicos.animar .opcao-servico {
  opacity: 0;
  transform: translateX(70px);
  visibility: hidden;
}

/* Estado depois de entrar na tela */
.vitrine-servicos.animar.visivel .opcao-servico {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Cada caixa aparece um pouco depois da anterior */
.vitrine-servicos.visivel .opcao-servico:nth-child(2) {
  transition-delay: 0.12s;
}

.vitrine-servicos.visivel .opcao-servico:nth-child(3) {
  transition-delay: 0.24s;
}

.vitrine-servicos.visivel .opcao-servico:nth-child(4) {
  transition-delay: 0.36s;
}

.vitrine-servicos.visivel .opcao-servico:nth-child(5) {
  transition-delay: 0.48s;
}

.vitrine-servicos.visivel .opcao-servico:nth-child(6) {
  transition-delay: 0.6s;
}

.opcao-servico:hover {
  background-color: #e9faff;
}

.opcao-servico:focus-visible {
  outline: 3px solid #00b9e8;
  outline-offset: -4px;
}

/* No celular, coloca as opções abaixo da imagem */
@media (max-width: 768px) {
  .opcoes-servicos {
    position: static;
    width: auto;
    padding: 16px;
    background: #171717;
  }

  .opcao-servico {
    min-height: 110px;
  }

  .opcao-servico h3 {
    font-size: 24px;
  }

  .opcao-servico p {
    font-size: 14px;
  }
}

/* Respeita a preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  .vitrine-servicos .opcao-servico {
    transition: none;
  }
}

/* TÍTULO DOS SERVIÇOS */

.servicos-gradient {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  margin-bottom: 0;
  padding: 60px 20px;
  background: linear-gradient(
    135deg,
    #888888 0%,
    #000000 45%,
    #585858 100%
  );
  color: var(--white);
  text-align: center;
}

.servicos-gradient h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.servicos-gradient p {
  font-size: 1.05rem;
}

/* Galeria: duas fotos grandes por linha */
.gallery-grid {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;

  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}

/* Botão que envolve cada foto */
.gallery-item {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;

  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item:focus-visible {
  outline: 3px solid #00b9e8;
  outline-offset: 5px;
}

@media (hover: hover) {
  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }
}

/* Visualização ampliada */
.gallery-lightbox {
  box-sizing: border-box;
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 70px 24px 24px;

  border: none;
  background: rgba(0, 0, 0, 0.94);
}

.gallery-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.gallery-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Botão de fechar */
.gallery-close {
  position: absolute;
  top: 16px;
  right: 20px;

  width: 44px;
  height: 44px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.gallery-close:hover {
  background: #444;
}

.gallery-close:focus-visible {
  outline: 3px solid #00b9e8;
  outline-offset: 4px;
}

/* Usada enquanto a foto estiver aberta */
body.gallery-aberta {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Evita que o header fixo cubra o início da seção */
#projetos {
  scroll-margin-top: 100px;
}


/* Celular: uma foto por linha */
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .gallery-lightbox {
    padding: 70px 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    transition: none;
  }

  .gallery-item:hover {
    transform: none;
  }
}
/* Respeita quem prefere menos animações */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* RODAPÉ */

footer {
  padding-block: 2rem;
  background: #080042;
  color: var(--white);
}

.footer-content {
  font-size: var(--text-sm);
  text-align: center;
}

/* RESPONSIVIDADE */

@media (max-width: 850px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header {
    gap: 16px;
    padding-inline: 20px;
  }

  .social-header {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  header {
    gap: 10px;
    padding-inline: 12px;
  }

  .logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .logo img {
    width: auto;
    max-height: 34px;
    height: auto;
  }

  .cta-primary {
    min-height: 44px;
    padding: 10px;
    font-size: 0.75rem;
  }

  .social-header {
    gap: 10px;
  }

  .social-header img {
    width: 20px;
    height: 20px;
  }

  .services {
    padding: 60px 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-primary,
  .social-header img,
  .service-card__image-wrapper img {
    transition: none;
  }

  .social-header a:hover img,
  .service-card:hover .service-card__image-wrapper img {
    transform: none;
  }
}

