/*
Theme Name: SISCOND
Theme URI: https://siscond.online
Author: N. S. de Lima (BIOME Projetos Ambientais)
Author URI: https://siscond.online
Description: Tema personalizado para o aplicativo SISCOND – Monitoramento de Gestão para Licenças Ambientais. Este tema fornece páginas dedicadas para apresentar o aplicativo, suas funcionalidades, informações institucionais, links de download e área de login para a intranet.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siscond
*/

/* Importa uma fonte moderna do Google para melhor legibilidade */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset básico para remover margens e paddings padrões */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
}

a {
  color: #1abc9c;
  text-decoration: none;
}
a:hover {
  color: #16a085;
}

header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #27ae60;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav ul li a:hover {
  color: #e67e22;
}

/* Hero com imagem de fundo personalizada. O background será definido via CSS e adaptado para exibir
   o banner abstrato juntamente com o telefone do aplicativo. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem;
  margin-top: 0;
  background-image: url('images/banner-bg.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

/* Sobreposição para melhorar a legibilidade do texto no banner */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Conteúdo do hero deve estar acima da sobreposição */
.hero > * {
  position: relative;
  z-index: 1;
}

/* Ajuste do texto do hero para harmonizar com o novo banner */
.hero-text {
  flex: 1;
  padding-right: 2rem;
  color: #ecf0f1;
}

/* Títulos maiores e mais claros para o hero */
.hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ecf0f1;
}

/* Subtítulo no banner */
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #ecf0f1;
  max-width: 600px;
}

/* Ajuste da imagem do celular dentro do banner */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image .hero-phone {
    border-radius: 80px;   /* ajuste o valor conforme o seu design */
    overflow: hidden;      /* garante que apenas a área arredondada fique visível */
    max-width: 100%;       /* mantém a imagem responsiva */
}

/* A imagem do celular terá sombra e arredondamento para destacar no banner */
/* A imagem do celular terá uma largura reduzida para melhor balanceamento visual */
.hero-image img {
  max-width: 50%;
  height: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  border-radius: 1rem;
}

/* Carrossel de telas do SISCOND no herói */
.phone-carousel {
    position: relative;
    max-width: 450px;   /* aumenta tamanho */
    width: 80%;         /* ocupa grande parte da coluna */
    margin: 0 auto;
    overflow: hidden;
}
.phone-carousel .carousel-wrapper {
    display: flex;
    transition: transform 0.6s ease-in-out;
}
.phone-carousel .carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone-carousel .carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.phone-carousel .carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.phone-carousel .carousel-control.prev { left: 10px; }
.phone-carousel .carousel-control.next { right: 10px; }


.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.features img {
  width: 100%;
  max-width: 800px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.about {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  line-height: 1.5;
  color: #34495e;
}

.about p {
  margin-bottom: 1rem;
}

/* Estilo para cartão de informações institucionais na página Quem Somos */
.about-card {
  background: #eaf6ea;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  color: #2c3e50;
}

.about-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-item i {
  color: #27ae60;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.download-buttons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #27ae60;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s ease-in-out;
}

.download-buttons a i {
  font-size: 1.2rem;
}

.download-buttons a:hover {
  background: #219150;
}

/* Botão usado na página inicial */
.download-button {
  display: inline-block;
  background: #27ae60;
  color: #ffffff;
  padding: 0.9rem 1.8rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background 0.2s ease-in-out;
  margin-top: 1rem;
}
.download-button:hover {
  background: #219150;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }
  .hero-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  /* Ajuste da imagem do celular em telas menores */
  .hero-image img {
    max-width: 70%;
  }
}

/* Estilo para carrossel de funcionalidades */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
}

.carousel img {
  flex: 0 0 auto;
  width: 250px;
  height: 500px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  scroll-snap-align: start;
}

/* Esconde as barras de rolagem */
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.site-footer {
    background-color: #2d3e50;
    color: #fff;
    padding: 40px 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-col h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 5px;
}

.footer-col ul li a {
    color: #a8c4e4;
    text-decoration: none;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #a8c4e4;
}

/* === Página de Funcionalidades === */
.functionalities-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.functionalities-section h2 {
  text-align: center;
  font-size: 2.4rem;
  color: #27ae60;
  margin-bottom: 3rem;
}

/* Container de cada funcionalidade */
    /* Reset básico */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: sans-serif; background: #f8f9fa; color: #2c3e50; line-height: 1.6; }

    /* Seção Funcionalidades */
    .functionalities-section {
      max-width: 800px;
      margin: 2rem auto;
      padding: 0 1rem;
    }
    .functionalities-section h2 {
      font-size: 2rem;
      text-align: center;
      color: #27ae60;
      margin-bottom: 1.5rem;
    }

    /* Cada funcionalidade */
    .functionalities-section .function-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid #ddd;
    }
    .functionalities-section .function-item:last-child {
      border-bottom: none;
    }

    /* Alterna direção ímpar/par */
    .functionalities-section .function-item:nth-child(2n) {
      flex-direction: row-reverse;
    }

    /* Imagem pequena */
    .functionalities-section .item-image {
      flex: 0 0 80px;
	  display: inline-block;
      cursor: zoom-in;
    }
    .functionalities-section .item-image img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	  opacity: 0.8;
      transition: opacity 0.2s;
    }

    /* Texto ao lado */
    .functionalities-section .item-text {
      flex: 1;
    }
    .functionalities-section .item-text h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: #2c3e50;
    }
    .functionalities-section .item-text p {
      text-align: justify;
      font-size: 0.95rem;
      color: #444;
    }

    /* Responsivo: empilha em mobile */
    @media (max-width: 600px) {
      .functionalities-section .function-item {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
      }
      .functionalities-section .item-image {
        margin-bottom: 0.75rem;
      }
      .functionalities-section .item-text p {
        text-align: left;
      }
    }

    /* Footer simples */
    footer {
      text-align: center;
      padding: 2rem 1rem;
      color: #888;
      font-size: 0.9rem;
    }
/* style.css */
/* esconde o toggle em desktop */
.menu-toggle { display: none; }
/* nav tradicional em desktop */
.main-nav ul { display: flex; gap:1.5rem; }

/* em telas até 768px, vira menu mobile */
@media (max-width: 768px) {
  /* mostra o hamburger */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px; height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 3px;
    background: #27ae60;
    border-radius: 2px;
  }

  /* esconde nav por padrão */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav li + li {
    border-top: 1px solid #eee;
  }
  .main-nav a {
    display: block;
    padding: 1rem;
  }

  /* quando .active, expande o nav */
  .main-nav.active {
    max-height: 500px; /* valor acima do necessário */
  }
}

