/* Reset de Estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

/* ===== Cores e Fontes ===== */
:root {
  --body-color: #f4f4f4;
  --nav-color: #4070F4;
  --text-color: #ffffff;
  --primary-color: #004953;
  --secondary-color: #f39c12;
}

/* ===== Body ===== */
body, html {
  height: 100%;
  background-color: var(--body-color);
  scroll-behavior: smooth;
}

/* ===== Navbar ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--nav-color);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-bar {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

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

.menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #dcdcdc;
}

.nav-links .highlighted {
  background-color: #ffffff;
  color: var(--nav-color);
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nav-links .highlighted:hover {
  background-color: #dce4fb;
  color: #2f5fe4;
}

.hamburger {
  display: none;
  flex-direction: column;
  width: 40px;
  height: 30px;
  justify-content: space-between;
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1100;
}

.hamburger .bar {
  width: 100%;
  height: 4px;
  background-color: #ffffff;
  border-radius: 5px;
  margin: 3px 0;
}

/* ===== Galeria de Vídeos ===== */
.galeria-section {
  padding: 60px 30px;
  background-color: #ffffff;
  text-align: center;
}

.galeria-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.galeria-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  justify-items: center;
}

.galeria-container video {
  max-height: 550px; /* altura máxima menor */
  width: 90%;        /* largura maior para esticar horizontalmente */
  max-width: 1000px;  /* limita largura máxima para não ficar enorme */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
  margin: 10px auto 0 auto; /* margem superior de 30px para espaçar para baixo do header */
  object-fit: cover; /* ajuda a preencher o espaço sem deformar demais */
}



.galeria-container video:hover {
  transform: scale(1.05);
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .galeria-container {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: var(--nav-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .body-image {
    height: auto;
  }

  .full-width-image {
    height: auto;
  }

  .servicos-grid, .depoimentos-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Full-width Image Section ===== */
.full-width-image {
  width: 100%;
  height: 100vh;
  padding-top: 70px;
  overflow: hidden;
}

.body-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Gallery Section ===== */
.gallery-section {
  padding: 60px 30px;
  background-color: #ffffff;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== Services Section ===== */
.servicos-section {
  padding: 60px 30px;
  background-color: #ffffff;
  text-align: center;
}

.servicos-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.servico-card {
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.servico-card i {
  font-size: 3rem;
  color: var(--nav-color);
  margin-bottom: 20px;
}

.servico-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.servico-card p {
  font-size: 1rem;
  color: #666666;
}

/* ===== Seção Quem Somos ===== */
.quemsomos-section {
  padding: 80px 30px;
  background-color: #ffffff;
  text-align: center;
}

.quemsomos-section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.quemsomos-section p {
  font-size: 1.2rem;
  color: #555;
  margin: 0 auto 50px;
  max-width: 700px;
}

/* Grid de conteúdo */
.quemsomos-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Card de cada item */
.quemsomos-item {
  background-color: #f9f9f9;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.quemsomos-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.quemsomos-item i {
  font-size: 3rem;
  color: var(--nav-color);
  margin-bottom: 20px;
}

.quemsomos-item h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.quemsomos-item p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--nav-color);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 16px;
  line-height: 1.5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 280px;
  min-width: 280px;
}

.footer-about h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-about p {
  color: #dce4fbcc;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  max-width: fit-content;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #dce4fbcc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce4fbcc;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 18px;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  color: #dce4fbcc;
  margin-right: 15px;
  font-size: 22px;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #a6b1ffcc;
  border-top: 1px solid #3050d733;
  padding-top: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    min-width: auto;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-links ul li {
    margin-bottom: 8px;
  }

  .footer-social a {
    margin-right: 10px;
    font-size: 20px;
  }
}


/* Responsividade */
@media (max-width: 768px) {
  .quemsomos-section {
    padding: 60px 15px;
  }

  .quemsomos-section h2 {
    font-size: 2rem;
  }

  .quemsomos-section p {
    font-size: 1.1rem;
  }

  .quemsomos-item {
    padding: 25px 20px;
  }
}

/* ===== Depoimentos Section ===== */
.depoimentos-section {
  padding: 60px 30px;
  background-color: #ecf0f1;
  text-align: center;
}

.depoimentos-section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.depoimento-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.depoimento-text {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.stars {
  margin-bottom: 10px;
}

.stars i {
  color: var(--secondary-color);
}

.cliente-nome {
  font-weight: bold;
  margin-top: 10px;
  color: var(--primary-color);
}

/* Modal container - escondido por padrão */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000; /* acima do resto do conteúdo */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* scroll se necessário */
  background-color: rgba(0, 0, 0, 0.5); /* fundo escuro semi-transparente */
}

/* Conteúdo do modal */
.modal-content {
  background-color: #fff;
  margin: 10% auto; /* centralizado verticalmente com margem e horizontalmente */
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  position: relative;
}

/* Botão fechar */
.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}


/* ===== Footer ===== */
.footer {
  background-color: var(--nav-color);
  color: var(--text-color);
  padding: 40px 20px 20px;
  font-size: 16px;
  line-height: 1.5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 280px;
  min-width: 280px;
}

.footer-about h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-about p {
  color: #dce4fbcc;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  max-width: fit-content;
  text-align: left;
  margin-left: 0;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #dce4fbcc;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 4px 0;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.footer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dce4fbcc;
  justify-content: flex-start;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 18px;
}

.footer-social {
  margin-top: 10px;
}

.footer-social a {
  color: #dce4fbcc;
  margin-right: 15px;
  font-size: 22px;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-social a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #a6b1ffcc;
  border-top: 1px solid #3050d733;
  padding-top: 15px;
}

/* Sublinhado específico para o logo JapiClean no rodapé */
.footer-logo {
  text-decoration: underline;
  text-decoration-color: var(--secondary-color);
  text-decoration-thickness: 2px;
}

/* ===== Responsividade para rodapé ===== */
@media (max-width: 600px) {
  .footer-about h3,
  .footer-links h4,
  .footer-contact h4 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
    padding: 20px 10px !important;
  }

  .footer-about,
  .footer-links,
  .footer-contact {
    min-width: auto !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .footer-contact p {
    justify-content: center !important;
  }

  .footer-links ul {
    margin: 0 auto !important;
    display: block !important;
    text-align: center !important;
  }

  .footer-links ul li a {
    display: inline-block !important;
    padding: 6px 10px !important;
  }

  /* Mantém o sublinhado no logo JapiClean */
  .footer-logo {
    text-decoration: underline !important;
    text-decoration-color: var(--secondary-color) !important;
    text-decoration-thickness: 2px !important;
  }
}



/* ===== Responsividade ===== */
@media screen and (max-width: 600px) {
  .servicos-grid, .depoimentos-grid {
    grid-template-columns: 1fr;
  }
}