:root {
  --bg-color: linear-gradient(135deg, #ffd1dc, #ffffff);
  --text-color: #1a1a1a;
  --btn-bg: #ffffff;
  --btn-text: #1a1a1a;
  --accent-color: #ff6b00;
  --accent-hover: #e55a00;
  --footer-title-color: #000000;
}

body.dark-mode {
  --bg-color: linear-gradient(135deg, #2a0033, #000000);
  --text-color: #f1f1f1;
  --btn-bg: #222;
  --btn-text: #f1f1f1;
  --footer-title-color: #f1f1f1;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  min-height: 100vh;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  padding-bottom: 100px; /* MAIS espaço para evitar sobreposição */
}

h1, h2 {
  font-family: 'Bebas Neue', sans-serif;
}

.logo-text {
  font-family: 'Lobster', cursive;
}

#logo {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: background-color 0.4s;
}

.slider .icon {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background-color: white;
  background-image: url("img/light-mode.png");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s ease, background-image 0.4s ease;
}

input:checked + .slider {
  background-color: #ffcc00;
}

input:checked + .slider .icon {
  transform: translateX(20px);
  background-image: url("img/night-mode.png");
}

h1 {
  font-size: 1.8rem;
  margin: 10px 0;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.links .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.15);
  cursor: pointer;
}

.links .btn:hover {
  background: #ffcc00;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0,0,0,0.25);
}

.btn i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.social-icons {
  margin-top: 30px;
  margin-bottom: 60px; /* MAIS espaço para evitar sobreposição */
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--btn-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icons a:hover {
  color: #111;
  transform: translateY(-3px);
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup.ativo {
  display: flex;
  animation: fadeInPopup 0.3s ease-in-out;
}

.popup-conteudo {
  background: #fff;
  color: #333;
  padding: 25px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-conteudo h2 {
  margin-bottom: 15px;
  font-family: 'Bebas Neue', sans-serif;
}

.popup-conteudo p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.popup-fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--btn-text);
  transition: transform 0.2s;
}

.popup-fechar:hover {
  transform: scale(1.2);
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden-box {
  display: none;
}

.hidden-box.ativo {
  display: block;
}

#btn-quem-somos {
  display: block;
  margin: 12px auto;
  padding: 8px 16px;     
  font-size: 14px;         
  border-radius: 10px;
  color: var(--btn-text);
  text-decoration: none;
  text-align: center;
  transition: 0.3s;
}

#btn-quem-somos:hover {
  background: #ffcc00; 
}

/* ===== RODAPÉ COM LINHAS MAIS FINAS E PRÓXIMAS ===== */
.footer {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 6px 4px 4px;
  text-align: center;
  width: 100%;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  z-index: 100;
  margin-top: auto;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.divisoria-empresa {
  height: 0.5px; /* LINHA MAIS FINA */
  background: rgba(0, 0, 0, 0.08);
  margin: 6px auto 4px;
  width: 90%;
}

body.dark-mode .divisoria-empresa {
  background: rgba(255, 255, 255, 0.08);
}

/* Linha acima dos títulos - MAIS FINA E PRÓXIMA */
.titulo-com-linha {
  position: relative;
  margin-bottom: 3px; /* MAIS PRÓXIMO */
}

.titulo-com-linha::before {
  content: '';
  position: absolute;
  top: -2px; /* LINHA BEM PRÓXIMA */
  left: 0;
  right: 0;
  height: 0.5px; /* LINHA MAIS FINA */
  background: rgba(0, 0, 0, 0.08);
}

body.dark-mode .titulo-com-linha::before {
  background: rgba(255, 255, 255, 0.08);
}

.rodape-colunas {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.coluna {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0 3px;
}

.sobre-nos {
  flex: 1.2;
}

.contato {
  flex: 0.8;
}

.coluna h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 2px; /* MAIS PRÓXIMO */
  color: var(--footer-title-color);
  display: flex;
  align-items: center;
  gap: 2px;
  padding-top: 4px; /* Compensa a linha próxima */
}

.coluna h3 i {
  font-size: 0.6rem;
}

.coluna p {
  font-size: 14px;
  line-height: 1.1;
  margin-bottom: 2px;
  opacity: 0.9;
}

.coluna p i {
  margin-right: 3px;
  width: 10px;
  text-align: center;
  color: var(--footer-title-color);
  font-size: 0.55rem;
}

.info-empresa {
  margin-top: 1px;
}

.info-empresa p {
  font-size: 0.58rem;
  opacity: 0.8;
  margin: 0;
}

body.dark-mode .footer {
  background: #222;
  color: #f1f1f1;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .rodape-colunas {
    gap: 8px;
  }
  
  .coluna h3 {
    font-size: 0.65rem;
  }
  
  .coluna p {
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 5px 3px 3px;
    position: relative;
  }
  
  .rodape-colunas {
    flex-direction: column;
    gap: 10px;
  }
  
  .coluna {
    text-align: center;
    padding: 0 2px;
  }
  
  .sobre-nos, .contato {
    flex: 1;
  }
  
  .coluna h3 {
    justify-content: center;
    font-size: 0.7rem;
    padding-top: 3px;
  }
  
  .divisoria-empresa {
    margin: 5px auto 3px;
    height: 0.5px;
  }
  
  .container {
    min-height: auto;
    padding-bottom: 90px;
  }
  
  .social-icons {
    margin-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
    padding-bottom: 100px;
  }

  .links .btn {
    font-size: 0.8rem;
    padding: 10px;
    margin: 10px 0;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.85rem;
  }
  
  .coluna h3 {
    font-size: 0.65rem;
  }
  
  .coluna p {
    font-size: 0.58rem;
    line-height: 1.1;
  }
  
  .info-empresa p {
    font-size: 0.52rem;
  }
  
  .footer {
    padding: 4px 2px 2px;
  }
  
  .rodape-colunas {
    gap: 8px;
  }
  
  .social-icons {
    margin-bottom: 55px;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }
  
  .titulo-com-linha::before {
    top: -1px;
  }
}

@media (max-width: 360px) {
  .coluna h3 {
    font-size: 0.6rem;
  }
  
  .coluna p {
    font-size: 0.52rem;
  }
  
  .info-empresa p {
    font-size: 0.48rem;
  }
  
  .container {
    padding-bottom: 85px;
  }
  
  .social-icons {
    margin-bottom: 45px;
  }
}