@import url("index.css");
@import url("servicos.css");

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}


/* Para mobile (menu menor) */
section {
  scroll-margin-top: 360px !important;
}

/* Para desktop (menu maior) */
@media (min-width: 1000px) {
  section {
    scroll-margin-top: 90px !important; /* altura do header desktop */
  }
}


/* ======= Padding e Margin padrão para todas as seções ======= */
section {
  padding: 80px 20px;       /* Espaçamento interno vertical e horizontal */
  margin: 40px auto;        /* Espaçamento externo vertical, centraliza horizontalmente */
  max-width: 1240px;        /* Limita a largura máxima das seções */
}

/* Se desejar diferenciar o fundo de cada seção */
section:nth-child(even) {
  background-color: #f9fafa; /* tom suave alternado */
}

section:nth-child(odd) {
  background-color: #ffffff;
}

/* Títulos das seções */
section h2, section h3 {
  text-align: center;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
  color: #155724;
}

section h4 {
  text-align: center;
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif;
  color: #6c757d;
}

/* Ajustes responsivos gerais */
@media (max-width: 992px) {
  section {
    padding: 60px 15px;  /* reduz levemente o padding horizontal e vertical */
  }
}

@media (max-width: 480px) {
  section {
    padding: 50px 10px;  /* mantém padding lateral mínimo em celulares */
    margin: 20px 0;
  }

  section h2, section h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
}

/* ====== RESET LEVE ====== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #444;
  margin: 0;
  padding: 0;
  background: #f9fafa;
}

a {
  color: #009cea;
  text-decoration: none;
}

a:hover {
  color: #1eb4ff;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
  color: #198754;
  margin-top: 0;
}

img {
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  transition: transform .3s ease, box-shadow .3s ease;
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.2s;
  background-color: #198754; /* verde padrão Bootstrap */
  color: #fff;
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#backToTop:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ================================
   HEADER GERAL
================================ */

#header {
  padding: 20px 0;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: fixed;  /* fixo no topo */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}


/* ================================
   Logo e título do header
================================ */
#header .logo {
  display: flex;
  align-items: center;
  gap: 12px; /* espaçamento entre imagem e título */
}

#header .logo img {
  max-height: 55px;
}

/* Container do texto (título + assinatura) */
#header .logo div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

/* Título principal */
#headerTitle {
  font-size: 1.8rem;
  font-weight: 800;
  color: #198754;
  margin: 0;
}

#header .logo h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #198754;
  margin: 0;
  line-height: 1.1;
}


/* Assinatura (aparece apenas na página de serviços) */
#headerSignature {
  font-size: 0.9rem;
  font-weight: 400;
  color: #444;
  margin: 0;
  line-height: 1.1;
}


/* Responsivo tablets */
@media (max-width: 992px) {
  #header .logo h1 { font-size: 1.6rem; }
  #header .logo img { max-height: 50px; }
}

/* Responsivo celulares */
@media (max-width: 480px) {
  #header .logo h1 { font-size: 1.4rem; }
  #header .logo img { max-height: 45px; }
}

/* ================================
   Links desktop
================================ */
#header .menu-btn {
  display: inline-block;
  min-width: 130px;
  text-align: center;
  font-weight: 600;
  border: 2px solid rgb(47, 89, 158);
  color: rgb(47, 89, 158) !important;
  background: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all .25s ease;
  text-decoration: none; /* remove sublinhado padrão */
}

#header .menu-btn:hover {
  background: #198754;
  border-color: #198754;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none;
}

#header .menu-btn.active {
  border-bottom: 2px solid #198754;
  color: #198754 !important;
  font-weight: 700;
}

/* ================================
   Botão WhatsApp
================================ */
#header .btn-success {
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .3s ease;
}

#header .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ================================
   Botão hambúrguer
================================ */
button.btn-outline-secondary:active { transform: scale(0.92); }

/* ================================
   MENU MOBILE — BASE (desktop + tablet)
================================ */

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  background: #fff;
  border-top: 1px solid #ddd;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  display: flex;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Links */
.mobile-link {
  display: block;
  width: 90%;
  max-width: 300px;
  text-align: center;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 8px;
  margin: 3px 0;
  border: 2px solid #198754;
  color: #198754;
  background: #fff;
  font-weight: 600;
  transition: all .25s ease;
  text-decoration: none;
}

.mobile-link:hover {
  background: #198754;
  color: #fff;
}

/* Botão WhatsApp */
.mobile-nav .btn-success {
  font-size: 0.75rem;
  padding: 8px 0;
  border-radius: 50px;
  width: 90%;
  max-width: 300px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .mobile-nav {
    position: fixed;
    top: calc(var(--header-height) + 30px); /* sobe exatamente abaixo do header */
    left: 0;
    width: 100%;

    /* ✔ O menu só ocupa o espaço necessário */
    max-height: calc(100vh - var(--header-height) - 90px);

    overflow-y: auto;
    padding: 10px 0;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 9999;
  }
}


/* ================================
   Header compacto
================================ */
header.compact .logo img { max-height: 40px !important; }
header.compact h1 { font-size: 1.2rem !important; }

/* ================================
   Espaçamento links desktop
================================ */
#header nav a.menu-btn { margin-left: 15px; }

/* Remove botão do desktop, deixa mais clean */
@media (min-width: 992px) {
  button.btn-outline-secondary { display: none !important; }
}


/* ================================
   FOOTER GERAL
================================ */


/* ----- FOOTER BASE ----- */
#footer {
  background: #f7f8f9;
  color: #364146;
  font-size: 14px;
}

/* Container geral */
#footer .container {
  margin: 0 auto;
  padding: 30px;
}

/* Área superior */
#footer .footer-top {
  background: #fff;
  padding: 40px 0;
  border-top: 2px solid #e9ecee;
  border-bottom: 2px solid #e9ecee;
}

/* Texto de direitos autorais */
#footer .copyright {
  text-align: center;
  padding-top: 30px;
}

/* ----- ÍCONES SOCIAIS (opcional) ----- */
#footer .social-link i {
  transition: transform 0.2s ease;
}

#footer .social-link:hover i {
  transform: scale(1.15);
}

#footer .social-links {
  display: flex;
  gap: 15px; /* aumenta o espaço entre ícones */
}

/* ----- MOBILE ----- */
@media (max-width: 576px) {
  #footer .container {
    padding: 20px;
  }
  #footer .footer-top {
    padding: 20px 0;
  }
  
  /* Ícones mais espaçados no mobile */
  #footer .social-links {
    gap: 22px;
  }
}
