/* ────────────────────────────────────────────────────── */
/*		          sobrenos_styles.css		          */
/* ────────────────────────────────────────────────────── */

/* Variáveis */
:root {
  --bg-light: #f1f1f1;
  --text-dark: #222;
  --header-height: 80px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  /* no global overflow:hidden: por padrão rola o body */
}

/* ============ LOGO + MENU ============ */
.main-nav {
  display: flex;
  align-items: center;      /* centra verticalmente logo+menu */
  justify-content: center;  /* centra horizontalmente o conjunto */
  height: var(--header-height);
  padding: 0 20px;
}
.logo-link {
  display: block;
  height: var(--header-height);
  margin-right: 40px;
}
.logo-img {
  display: block;
  max-height: 100%;
  width: auto;
}
.menu-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  height: 100%;
  align-items: center;
}
.menu-list li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: #000;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Main flexível */
main {
  flex: 1;                        /* ocupa o espaço entre header e footer */
  margin-top: var(--header-height);
  overflow-y: auto;               /* scroll interno no main (desktop/tablet) */
}

/* Sobre Nós Section */
.about-section {
  min-height: calc(100% - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.about-container {
  max-width: 900px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 30px 40px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.about-container h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.about-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Footer */
.contact-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background: #f1f1f1;
  color: #222;
  padding: 60px 40px 20px;
  justify-content: center;
  gap: 60px;
}
.contact-footer .footer-column {
  flex: 0 1 auto;
  text-align: center;
}
.contact-footer .footer-column h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: bold;
}
.contact-footer .footer-column p {
  font-size: .9rem;
  margin-bottom: 4px;
}
.contact-footer .footer-logo img {
  max-width: 160px;
  height: auto;
}

/* WhatsApp Chat */
.whatsapp-chat {
  position: fixed;
  bottom: 20px; right: 20px;
  display: flex; align-items: center;
}
.chat-bubble {
  background: #fff; padding: 10px 15px;
  border-radius: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-right: 10px; font-size: .9rem;
}
.whatsapp-icon img {
  width: 32px; height: 32px;
}

/* ========== MEDIA QUERIES PARA RESPONSIVIDADE ========== */

/* Tablets e smartphones em paisagem (≤768px) */
@media (max-width: 768px) {
  /* ajusta container e texto */
  .about-section {
    padding: 40px 10px;
  }
  .about-container {
    padding: 20px;
    max-width: 100%;
  }
  .about-container h1 {
    font-size: 1.6rem;
  }
  .about-container p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  /* menu e footer mais compactos */
  .menu-list {
    gap: 1rem;
  }
  .menu-list li a {
    font-size: 0.9rem;
  }
  .contact-footer {
    padding: 40px 20px;
    gap: 30px;
  }
  .contact-footer .footer-column {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}

/* Smartphones (≤480px) */
@media (max-width: 480px) {
  /* libera rolagem no body inteiro */
  body {
    overflow-y: auto;
  }
  main {
    overflow: visible;  /* main cresce, sem scroll interno */
  }

  /* sobre nós */
  .about-section {
    padding: 20px 8px;
  }
  .about-container {
    padding: 15px 20px;
  }
  .about-container h1 {
    font-size: 1.4rem;
  }
  .about-container p {
    font-size: 0.8rem;
  }

  /* menu e footer ainda mais compactos */
  .menu-list {
    gap: 0.8rem;
  }
  .menu-list li a {
    font-size: 0.8rem;
  }
  .contact-footer {
    padding: 20px 10px;
    gap: 15px;
  }
}
