/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Cabeçalho fixo */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #1b4332; /* verde escuro */
  color: #C9A227;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  padding: 15px 0;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}

/* ======== MENU DESKTOP ======== */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #d4af37; /* tom dourado */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #fff;
}

/* ======== HAMBURGER ======== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #ffd700;
}

/* Seções */
.section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 120px 20px 80px; /* espaço para o header fixo */
}

section {
  scroll-margin-top: 90px;
}

.content {
  max-width: 800px;
}

.section h2 {
  color: #1b4332;
  margin-bottom: 20px;
  font-size: 2em;
}

.section p {
  font-size: 1.1em;
  line-height: 1.6em;
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 15px;
}

section {
  scroll-margin-top: 90px;
}

#sobre {
  /*padding-top: 120px; /* aumenta o espaçamento superior */
  margin-top: 10px; /* cria o espaço antes da seção */
}

#sobre p {
  text-align: justify;
  text-justify: inter-word;
}

/* Área dos cards - base */
.cards {
  display: flex; 
  justify-content: center;     /* centraliza os cards */
  align-items: stretch;
  flex-wrap: nowrap;           /* impede quebra no desktop */
  gap: 40px;                   /* espaço uniforme entre os cards */
  width: 100%;                 /* ocupa toda a largura disponível */
  max-width: 1300px;           /* limita a largura total */
  margin: 0 auto;              /* centraliza o conjunto */
  padding: 40px 20px;          /* leve espaçamento interno */
}

.card {
  background: white;
  padding: 50px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  flex: 0 0 360px;             /* largura fixa e proporcional */
  min-height: 260px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Redes sociais */
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.social {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

.facebook { background-color: #1877f2; }
.instagram { background-color: #e4405f; }
.linkedin { background-color: #0077b5; }
.whatsapp { background-color: #25d366; }

.social:hover {
  transform: scale(1.05);
  opacity: 0.85;
}

/* Rodapé */
footer {
  text-align: center;
  background-color: #1b4332;
  color: #C9A227;
  padding: 20px 0;
}

/* Animações de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop grande: força 3 (ou mais) cards em uma linha sem quebra */
@media (max-width: 1200px) {
  .menu {
    display: none; /* Menu hambúrguer pode ser adicionado futuramente */
  }

  header .container {
    justify-content: center;
  }

  .cards {
    flex-wrap: nowrap;      /* sem quebra em telas grandes */
  }

  /* Se você tem 3 cards, musar 32% cada garante que caiba lado a lado */
  .card {
    flex: 0 0 32%;
    max-width: 32%;
  }
}

/* ===== Responsividade ===== */
/* ======== MENU MOBILE ======== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 65px;
    right: 0;
    background-color: #004d40;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .nav-menu.open {
    height: 160px; /* altura quando aberto */
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  /* Animação do botão ao abrir */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}

/* Quebra apenas no tablet e mobile */
@media (max-width: 992px) {
  .cards {
    flex-wrap: wrap;           /* permite quebra */
    justify-content: center;   /* mantém centralizado */
    gap: 30px;
  }
  .card {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

@media (max-width: 600px) {
  .card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
