@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #117cff;
  --primary-color-dark: #0d59b5;
  --text-dark: #111827;
  --text-light: #6b7280;
  --extra-light: #f3f4f6;
  --white: #ffffff;
  --max-width: 1200px;

  --shadow-md: 0 10px 15px rgba(17, 124, 255, 0.10);
  --shadow-lg: 0 20px 25px rgba(17, 124, 255, 0.15);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.section__header {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 2.5rem;
}

.section__description {
  color: var(--text-light);
  line-height: 1.75rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  white-space: nowrap;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Acessibilidade foco */
:focus-visible {
  outline: 2px dashed var(--primary-color);
  outline-offset: 3px;
}

/* Header */
.header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("assets/header.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  padding: 2rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--extra-light);
  transition: 0.5s;
  z-index: -1;
  transform: translateY(-100%);
}
.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  color: var(--primary-color);
}
.nav__links a:hover {
  color: var(--primary-color-dark);
}

.nav__btns {
  display: none;
}

.header__container {
  padding-block: 10rem;
}

.header__container p {
  margin-bottom: 1rem;
  color: var(--white);
}

.header__container h1 {
  margin-bottom: 2rem;
  max-width: 600px;
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2; /* corrigido para responsivo */
  color: var(--white);
}

.header__flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.header__card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__card span {
  padding: 2px 10px;
  font-size: 2rem;
  color: var(--primary-color);
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.header__card h5 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.header__card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

/* About */
.about__header {
  margin-bottom: 4rem;
  display: grid;
  gap: 2rem;
}

.about__grid {
  display: grid;
  grid-auto-rows: max-content;

}

.about__card {
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 320px;       /* defina 280–360px conforme sua imagem */
  display: flex;           /* ancora o conteúdo ao rodapé do card */
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;               /* evita desalinhamentos por margens */
  background-size: cover;  /* já estava, reforço aqui */
  background-position: center center;
  background-repeat: no-repeat;
}

.about__card:nth-child(1) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("assets/about-1.png");
}
.about__card:nth-child(2) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("assets/about-2.png");
}
.about__card:nth-child(3) {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("assets/about-3.png");
}

.about__card p {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.about__card h4 {
  max-width: 250px;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  line-height: 2rem;
}

/* FAQ */
.faq__container {
  display: grid;
  gap: 2rem;
}

.faq__image {
  overflow: hidden;
}

.faq__image img {
  max-width: 450px;
  margin-inline: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.faq__content .section__header {
  margin-bottom: 1rem;
}

.faq__grid {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.faq__card {
  padding: 1rem;
  display: grid;
  gap: 10px;
  background-color: var(--extra-light);
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 12px rgba(17, 124, 255, 0.08); /* ↓ levemente */
  transition: box-shadow .2s ease, background-color .2s ease;
}

.faq__card.active {
  box-shadow: 0 8px 20px rgba(17, 124, 255, 0.10); /* ↓ levemente */
}

.faq__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer; /* melhor UX */
}

.faq__header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq__header span {
  font-size: 1.5rem;
  transition: 0.3s;
}

.faq__card.active .faq__header span {
  transform: rotate(180deg);
}

.faq__description {
  color: var(--text-light);
  display: none;
}
.faq__card.active .faq__description {
  display: block;
}


/* Produtos (galeria) */
.article__container :is(.section__subheader, .section__header) {
  text-align: center;
}

.article__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.article__card {
  background: var(--white);
  border-radius: 10px;
  overflow: visible;                 /* não corta o conteúdo fora da mídia */
  box-shadow: 0 6px 12px rgba(165, 205, 255, 0.158);
  transition: transform .25s ease, box-shadow .25s ease;
}
.article__card:hover {
  transform: translateY(-2px);
}

/* Imagem SEM corte e com altura fixa (menor) */
.article__media {
  position: relative;
  height: 220px;                     /* tamanho fixo */
  overflow: hidden;                  /* recorta o zoom */
  border-top-left-radius: 10px;      /* acompanha o card */
  border-top-right-radius: 10px;
  cursor: zoom-in;
  display: flex;                     /* centraliza a imagem */
  align-items: center;
  justify-content: center;
  background: #fff;
}
.article__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;               /* não corta */
  transform: none;
  will-change: transform;
  transition: transform .2s ease;
}
/* Zoom sutil e contido */
.article__card:hover .article__media img {
  transform: scale(1.03);
}

.article__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(transparent, rgba(0,0,0,0.18));
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.article__card:hover .article__media::after {
  opacity: 1;
}

.article__meta {
  margin: 0.75rem 1rem 0.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article__card p { font-weight: 500; color: var(--text-light); }
.article__card a { font-weight: 500; color: var(--primary-color); }
.article__card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 1rem 1rem 1rem;
}

/* Banner */
.client__container :is(.section__subheader, .section__header) {
  text-align: center;
}

.swiper {
  margin-top: 2rem;
  width: 100%;
  padding-bottom: 3rem;
}

.banner {
  background-color: var(--extra-light);
}

.banner__container {
  display: grid;
  gap: 2rem;
}

.banner__content .section__header {
  margin-bottom: 1rem;
}

.banner__form form {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner__form input {
  width: 100%;
  padding: 0.75rem;
  outline: none;
  border: 1px solid var(--text-light);
  border-radius: 5px;
}

/* Footer */
.footer__container {
  display: grid;
  gap: 4rem 2rem;
}

/* Garante que cada coluna do rodapé empilhe h4 + conteúdo */
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

/* Evita que o grid “centralize” verticalmente as colunas */
.footer__container {
  align-items: start;
}


.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.footer__col p {
  max-width: 350px;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.footer__links {
  display: grid;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--text-light);
}
.footer__links a:hover {
  color: var(--primary-color);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__socials a {
  padding: 3px 8px;
  font-size: 1.25rem;
  color: var(--primary-color);
  background-color: var(--extra-light);
  border-radius: 5px;
}
.footer__socials a:hover {
  color: var(--white);
  background-color: var(--primary-color);
}

.footer__bar {
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
}

/* Lightbox */
/* Lightbox — overlay escuro; só a IMAGEM tem fundo branco */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);   /* site visível com opacidade */
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
  padding: 2rem;
}
.lightbox.open { display: flex; }

/* Figure sem cartão/branco ao redor */
.lightbox__figure {
  padding: 0;                     /* remove “moldura” */
  background: transparent;        /* sem fundo no container */
  border-radius: 0;
  box-shadow: none;
  max-width: min(820px, 88vw);
  max-height: 65vh;
  display: grid;
  justify-items: center;
  gap: .5rem;
}

/* A IMAGEM ganha o fundo branco e o radius */
.lightbox__figure img {
  max-width: 100%;
  max-height: 56vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;               /* branco só atrás da imagem */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Legenda sem cartão, apenas texto sobre o overlay */
.lightbox__figure figcaption {
  color: #e5e7eb;
  text-align: center;
  font-size: .95rem;
}

/* Controles */
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  padding: .65rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
  backdrop-filter: blur(4px);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev  { left: 16px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 16px; top: 50%; transform: translateY(-50%); }


/* Compensação âncoras com header fixo */
#home, #about, #faq, #article, #contact {
  scroll-margin-top: 90px;
}

/* Trava scroll quando menu aberto */
body.no-scroll {
  overflow: hidden;
}

/* Contato no rodapé */
.contact__list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
}
.contact__list i {
  font-size: 1.1rem;
  color: var(--primary-color);
  background: var(--extra-light);
  border-radius: 6px;
  padding: 6px;
  line-height: 1;
}
.contact__list a {
  color: var(--text-light);
}
.contact__list a:hover {
  color: var(--primary-color);
}

/* Responsivo */
@media (width > 540px) {
  .article__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: 2 colunas iguais no tablet */
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col:first-child {
    grid-area: unset;
  }
}

@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .nav__header {
    flex: 1;
    padding: 0;
    background-color: transparent;
  }

  .nav__logo a {
    font-size: 1.5rem;
  }

  .nav__logo a span {
    color: var(--primary-color);
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    padding: 0;
    flex-direction: row;
    background-color: transparent;
    transform: none;
  }

  .nav__links a {
    color: var(--white);
  }

  .nav__btns {
    display: flex;
    flex: 1;
  }

  .nav__btns .btn {
    color: var(--primary-color);
    background-color: var(--white);
  }

  .header__container {
    padding-block: 8rem 12rem;
  }

  .about__header {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__card {
    padding: 5rem 2rem;
  }

  .faq__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .article__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banner__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  /* Footer: 4 colunas no desktop pequeno */
  .footer__container {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }

  .footer__col:first-child {
    grid-area: unset;
  }
}

@media (width > 1024px) {
  .article__grid {
    gap: 2rem;
  }

  .lightbox__figure { max-width: min(900px, 88vw); max-height: 70vh; }
  .lightbox__figure img { max-height: 60vh; }
}

