@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@300;400;600;700&display=swap");

/*
Theme Name: Tema novo
Author: Bruno e Matheus
Version: 1.0
*/

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* Header Styles */
header {
  width: 100%;
  max-width: 100%;
  height: 89px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(8, 55, 97, 1);
  color: rgba(255, 255, 255, 1);
}

.conteudo {
  width: 100%;
  height: 89px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.header-logos {
  width: 360px;
  height: 87px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.header-logos .logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.container-projetos {
  width: 100%;
  max-width: 1200px;
  min-height: 651.6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 50px;
  gap: 70px;
  margin: 0 auto;
  box-sizing: border-box;
}

.coluna {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 35px;
  padding: 15px 0;
}

/* Título geral - não aplicar a projetos */
.titulo:not(.container-projetos .titulo) h1 {
  font-family: "Mulish", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #083761;
  margin: 0;
  justify-content: flex-start;
}

/* Menu */
.menu {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

/* Menu Item - Hug (adapta ao conteúdo) */
.menu-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
}

/* Menu Link - Hug (adapta ao conteúdo) */
.menu-link {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-bottom 0.3s ease;
  white-space: normal;
  box-sizing: border-box;
}

.menu-link:hover {
  border-bottom: 3px solid rgba(255, 255, 255, 1);
}

/* Instagram Link */
.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.instagram-link:hover .instagram-icon {
  filter: brightness(0.7);
}

.instagram-icon {
  height: 24px;
  width: auto;
  transition: filter 0.3s ease;
}

/* Menu Text */
.menu-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: auto;
  color: white;
  font-family: var(--fontfamily-Font1, "Mulish", sans-serif);
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  line-height: var(--lineheight-25_6, 25.6px);
  letter-spacing: var(--strokeweight-1, 1px);
  text-align: left;
  text-transform: capitalize;
  white-space: normal;
  text-decoration: none;
}

/* Hamburger Menu Button */
.menu-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

.menu-hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(12px, 12px);
}

.menu-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Home Page Styles */

.home-main {
  width: 100%;
  max-width: 100%;
}

.servicos-grid {
  width: 100%;
  max-width: 1000px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  padding: 30px 20px;

  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);

  margin: 0 auto;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVIDADE MOBILE
   ============================================ */

/* Tablets (768px e abaixo) */
@media (max-width: 768px) {
  .conteudo {
    padding: 0 3%;
    height: auto;
    min-height: 89px;
    flex-wrap: nowrap;
  }

  .header-logos {
    width: auto;
    height: auto;
    order: 1;
    flex: 1;
  }

  .header-logos .logo {
    height: 50px;
  }

  .menu-hamburger {
    display: flex;
    order: 2;
    margin-right: 10px;
  }

  .menu {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: absolute;
    top: 89px;
    left: 0;
    right: 0;
    background: rgba(8, 55, 97, 1);
    flex-wrap: nowrap;
    z-index: 1000;
  }

  .menu.active {
    max-height: 400px;
  }

  .menu-item {
    padding: 0;
    width: 100%;
  }

  .menu-link {
    padding: 15px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
  }

  .menu-text {
    font-size: 14px;
    line-height: 20px;
  }

  .instagram-link {
    order: 4;
    margin-left: auto;
    padding: 0 10px;
  }

  .instagram-icon {
    height: 20px;
  }
}

/* Smartphones (480px e abaixo) */
@media (max-width: 480px) {
  header {
    height: 89px;
    padding: 0;
  }

  .conteudo {
    padding: 0 3%;
    height: 89px;
    flex-wrap: nowrap;
    gap: 0;
  }

  .header-logos {
    height: 87px;
    width: auto;
    flex-shrink: 0;
  }

  .header-logos .logo {
    height: 45px;
  }

  .menu-hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    margin: 0 10px 0 auto;
  }

  .menu-hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
    top: 89px;
    left: 0;
    right: 0;
    background: rgba(8, 55, 97, 1);
    z-index: 1000;
  }

  .menu.active {
    max-height: 500px;
  }

  .menu-item {
    width: 100%;
  }

  .menu-link {
    padding: 14px 20px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-text {
    font-size: 13px;
    line-height: 18px;
  }

  .instagram-link {
    display: none;
  }

  .instagram-icon {
    height: 18px;
  }

  /* Footer responsivo */
  footer {
    padding: 20px 15px;
  }

  footer .conteudo-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  footer .footer-copyright p {
    font-size: 12px;
  }
}

.projetos-container {
  width: 100%;
  max-width: 1290px;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5%;
}

.titulo-projeto {
  width: 100%;
  max-width: 350px;
  height: auto;
  color: rgba(8, 55, 97, 1);
  font-family: "Mulish", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 48px;
  text-align: left;
}

/* Container: Imagem (Hero) */
.container-imagem {
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
}

.texto-overlay {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  min-height: 500px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 30px 20px;
  background-color: rgb(8, 55, 97);
  color: white;
  border-radius: 5px;
}

.texto-conteudo {
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.texto-conteudo p {
  margin: 0;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.8;
  font-family: "Mulish", sans-serif;
  font-size: 20px;
}

.manifesto-component {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  align-self: center;
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  color: white;
  font-weight: bold;
}

.manifesto-component:hover span {
  opacity: 0.8;
}

.manifesto-component img {
  width: 36px;
  height: 36px;
}

.container-projetos .titulo {
  width: 100%;
  text-align: left;
}

.container-projetos .titulo h1 {
  font-family: "Mulish", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #083761;
  margin: 25px;
  text-align: left;
}

.projeto {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}

.projeto img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

.servico p {
  width: 100%;
  max-width: 475px;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(8, 55, 97, 1);
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  margin: 0;
}

.servico:nth-child(2) {
  grid-column: 2 / span 1;
}

.servico h3 {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(8, 55, 97, 1);
  font-family: "Mulish", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: normal;
  text-align: center;
  margin: 0;
}

.servico img {
  width: 50px;
  height: 50px;
}

.servico-content {
  width: 100%;
  max-width: 475px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.modal video {
  width: 100%;
  border-radius: 8px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #333;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #666;
}

.container-imagem img {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.btn-projetos {
  width: 200px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 30px 10px 30px;
  background-color: rgb(8, 55, 97);
  color: rgba(239, 235, 226, 1);
  border: none;
  border-radius: 50px;
  font-family: "Mulish", sans-serif;
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: 0%;
  text-align: center;
  cursor: pointer;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn-projetos:hover {
  color: rgb(8, 55, 97);
  background-color: white;
  border: 2px solid rgb(8, 55, 97);
  text-decoration: none;
}

.container-projetos h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
}

.servico {
  width: 100%;
  max-width: 475px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.servico img {
  width: 50px;
  height: 50px;
}

/* Hero Section */
.hero-section {
  background-image: url("<?php echo get_template_directory_uri(); ?>/assets/images/escritorio_home.png");
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
  height: 576px;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  width: 511px;
  height: 476px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
  background-color: rgb(8, 55, 97);
  border-radius: 5px;
}

.hero-text {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  font-family: "Mulish", sans-serif;
}

.manifesto-component {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  align-self: center;
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  color: white;
  font-weight: bold;
}

.manifesto-component:hover span {
  opacity: 0.8;
}

/* Projetos Section */
.projetos-section {
  width: 100%;
  max-width: 1200px;
  height: 651.6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 70px;
  padding: 50px 5% 0 5%;
  margin: 0 auto;
  box-sizing: border-box;
}

.projeto img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
}

/* Footer */
footer {
  width: 100%;
  background: rgba(8, 55, 97, 1);
}

.conteudo-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-logo {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.logo-footer {
  height: auto;
  width: auto;
  max-height: 100px;
}

.footer-copyright {
  width: 369px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 0px 10px 0px;
}

.footer-copyright p {
  width: 369px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 1);
  font-family: "Mulish", sans-serif;
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
}

/* Responsivo */
@media (max-width: 768px) {
  /* Prevenir overflow horizontal */
  * {
    max-width: 100%;
  }

  /* Header */
  header {
    height: auto;
    padding: 20px 0;
  }

  .conteudo {
    max-width: 100%;
    height: auto;
    padding: 0 20px;
    gap: 20px;
  }

  .header-logos {
    width: 100%;
    justify-content: center;
  }

  .header-logos .logo {
    height: 50px;
  }

  .menu {
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 10px;
  }

  .menu-item {
    width: 100%;
  }

  .menu-link {
    justify-content: center;
    padding: 10px 0;
  }

  .instagram-link {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  /* Container Imagem */
  .container-imagem {
    height: auto;
    min-height: 400px;
    padding: 40px 20px;
  }

  .texto-overlay {
    position: static;
    width: 100%;
    height: auto;
    padding: 30px;
    margin: 0;
    border-radius: 10px;
  }

  .texto-conteudo p {
    font-size: 16px;
    line-height: 1.5;
  }

  .manifesto-component {
    justify-content: center;
  }

  .manifesto-component img {
    width: 30px;
    height: 30px;
  }

  .manifesto-component span {
    font-size: 18px;
  }

  .container-projetos .titulo h1 {
    font-size: 28px;
    text-align: center;
    margin: 0;
  }

  .projeto img {
    max-height: 200px;
  }

  .btn-projetos {
    align-self: center;
  }

  /* Footer */
  footer {
    padding: 20px;
  }

  .conteudo-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  #closeVideo {
    top: -40px;
    right: 10px;
  }
}

/* Responsivo - Telas muito pequenas */
@media (max-width: 480px) {
  .conteudo {
    padding: 0 10px;
  }

  .header-logos .logo {
    height: 40px;
  }

  .menu-link {
    padding: 8px 10px;
  }

  .menu-text {
    font-size: 14px;
  }

  /* ===== CONTAINER IMAGEM ===== */
  .container-imagem {
    min-height: 350px;
    width: 100%;
    padding: 0;
  }

  .texto-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    padding: 20px 15px;
    gap: 20px;
    margin: 0;
    border-radius: 0;
  }

  .texto-conteudo p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .manifesto-component {
    align-self: flex-start;
    gap: 8px;
    margin-top: 5px;
  }

  .manifesto-component span {
    font-size: 13px;
  }

  .manifesto-component img {
    width: 28px;
    height: 28px;
  }

  .container-projetos .titulo {
    width: 100%;
  }

  .container-projetos .titulo h1 {
    font-size: 20px;
    margin: 0 0 15px 0;
    text-align: center;
  }

  .projeto img {
    width: 100%;
    height: 180px;
    max-height: 180px;
    object-fit: cover;
  }

  .btn-projetos {
    font-size: 12px;
    padding: 10px 15px;
  }

  .servico img {
    width: 35px;
    height: 35px;
  }

  /* ===== FOOTER ===== */
  footer {
    padding: 20px 15px;
  }

  .conteudo-footer {
    flex-direction: column;
    gap: 15px;
  }

  .footer-logo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .logo-footer {
    height: 35px;
    width: auto;
  }

  .footer-copyright {
    width: 100%;
    text-align: center;
  }

  .footer-copyright p {
    font-size: 12px;
    line-height: 16px;
    margin: 0;
  }

  /* ===== VIDEO MODAL ===== */
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: 100%;
    height: auto;
    padding: 0;
  }

  #closeVideo {
    font-size: 28px;
  }

  #myVideo {
    width: 100%;
    height: auto;
  }
}

.container-servicos {
  width: 100%;
  min-height: 522px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 15px;
  background: rgba(229, 229, 229, 1);
  margin: 0 auto;
  box-sizing: border-box;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
}

.modal video {
  width: 100%;
  border-radius: 8px;
}

#closeVideo {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ===========================================
   RESPONSIVE DESIGN - FRONT PAGE
   =========================================== */

/* TABLET BREAKPOINT - 768px */
@media (max-width: 768px) {
  /* ===== HERO SECTION ===== */
  .container-imagem {
    min-height: 350px; /* Altura reduzida para tablets */
  }

  .texto-overlay {
    position: absolute;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    max-width: 95%;
    min-height: auto;
    padding: 25px 15px; /* Padding reduzido */
  }
}

/* MOBILE BREAKPOINT - 480px */
@media (max-width: 480px) {
  /* ===== HERO SECTION ===== */
  .container-imagem {
    min-height: 300px; /* Altura ainda menor para mobile */
  }

  .texto-overlay {
    padding: 18px 12px; /* Padding m�nimo */
    gap: 15px; /* Gap reduzido */
    left: 5%;
  }

  .texto-conteudo p {
    font-size: 10px; /* Fonte menor */
    line-height: 1.4; /* Line-height otimizado */
  }

  .manifesto-component {
    gap: 6px; /* Gap m�nimo entre �cone e texto */
  }

  .manifesto-component span {
    font-size: 10px; /* Fonte menor para mobile */
  }

  .manifesto-component img {
    width: 24px; /* �cone menor */
    height: 24px;
  }

  /* ===== PROJETOS SECTION ===== */

  .container-projetos .titulo h1 {
    font-size: 18px; /* T�tulo menor */
  }

  .projeto img {
    height: 160px; /* Imagem menor */
  }

  .servico img {
    width: 32px; /* �cone menor */
    height: 32px;
  }
}

/* ===== FOOTER ===== */
footer {
  padding: 20px 15px;
}

.conteudo-footer {
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-footer {
  height: 65px;
  width: auto;
}

.footer-copyright {
  width: 100%;
  text-align: center;
}

.footer-copyright p {
  font-size: 12px;
  line-height: 16px;
  margin: 0;
}

.modal-content {
  width: 100%;
}

#closeVideo {
  font-size: 28px;
}

#myVideo {
  width: 100%;
  height: auto;
}
