/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* TEXTOS */
p {
  margin-bottom: 20px;
}

ul {
  list-style-position: inside;
  margin-bottom: 20px;
}

h1, h2, h3 {
  margin-top: 30px;
  margin-bottom: 20px;
  line-height: 1.4;
  text-align: center;
}

/* HEADER */
.header {
  background-color: #1e2a38;
  padding: 15px 0;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo img {
  max-width: 120px;
  height: auto;
}

/* NAV */
.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  transition: 0.3s;
}

.nav a:hover {
  color: #00c3ff;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #fff;
  transition: 0.3s;
}

/* HERO */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* CARDS */
.card {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: 0.2s;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* INPUTS */
input, textarea {
  padding: 10px;
  margin: 5px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* BOTÕES */
button {
  padding: 10px 20px;
  background-color: #1e2a38;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #00c3ff;
}

/* BLOG IMAGE */
.blog-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.blog-image img {
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* FOOTER */
.footer {
  background-color: #1e2a38;
  color: white;
  padding: 30px 0;
  margin-top: 50px;
  text-align: center;
}

.footer a {
  color: #00c3ff;
  text-decoration: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1e2a38;
    height: 0;
    overflow: hidden;
    transition: 0.3s;
  }

  .nav.active {
    height: auto;
    padding: 20px 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav ul li a {
    font-size: 18px;
  }

  input, button {
    width: 90%;
  }

  h1 {
    font-size: 24px;
  }

  p {
    text-align: left;
    padding: 0 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  /* ANIMAÇÃO MENU */
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }

  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

.formula-container {
    background-color: #f8f9fa;
    padding: 0px;
    border-radius: 8px;
    text-align: left;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #333;
}

.formula-box {
        background-color: #f4f7f9; /* Tom suave de azul/cinza */
        border-left: 5px solid #2c3e50; /* Destaque lateral */
        padding: 25px;
        border-radius: 8px;
        text-align: center;
        margin: 20px 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
.formula-box p {
        margin-bottom: 10px;
        font-weight: bold;
        color: #555;
    }

.table-container {
    overflow-x: auto; /* Permite rolar para o lado no telemóvel */
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.imc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a; /* Fundo escuro como na imagem */
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.imc-table th {
    background-color: #262626;
    text-align: left;
    padding: 15px;
    font-weight: bold;
    border-bottom: 2px solid #333;
}

.imc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
}

/* Efeito ao passar o rato (Hover) */
.imc-table tbody tr:hover {
    background-color: #2d2d2d;
    transition: 0.3s;
}

/* Destaque opcional para o "Peso Normal" */
.highlight-green {
    color: #4cd137;
    font-weight: bold;
}

/* Responsividade para ecrãs pequenos */
@media screen and (max-width: 600px) {
    .imc-table th, .imc-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}

.social-table-container {
    overflow-x: auto;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 10px;
}

.social-limits-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #121212; /* Fundo levemente mais escuro */
    color: #e0e0e0;
    font-family: 'Inter', sans-serif; /* Fonte moderna para leitura */
}

.social-limits-table th {
    background-color: #1f1f1f;
    color: #ffffff;
    text-align: left;
    padding: 18px;
    font-size: 1rem;
    border-bottom: 2px solid #333;
}

.social-limits-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #252525;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Linhas alternadas para melhor escaneabilidade */
.social-limits-table tbody tr:nth-child(even) {
    background-color: #181818;
}

/* Efeito Hover */
.social-limits-table tbody tr:hover {
    background-color: #222222;
    transition: background 0.2s ease;
}

/* Estilo para as plataformas em destaque */
.social-limits-table strong {
    color: #3498db; /* Azul suave para destacar as marcas */
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .social-limits-table th, .social-limits-table td {
        padding: 12px;
        font-size: 0.85rem;
    }
}