/* Reset e fonte base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #1c1c1c;
  line-height: 1.6;
  padding: 0 1rem;
}

/* Cabeçalho */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.main-header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
}

.main-header .logo span {
  color: #f97316;
}

/* Menu - Mobile first */
.menu-list {
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  position: absolute;
  top: 70px;
  right: 1rem;
  width: 320px !important;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  list-style: none;
  padding-left: 0;
}

.menu-list.active {
  display: flex;
}

.menu-list li {
  margin-bottom: 1rem;
  list-style: none;
}

.menu-list li:last-child {
  margin-bottom: 0;
}

.menu-list a {
  color: #1c1c1c;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding-left: 1rem;
}

.menu-list a:hover {
  color: #f97316;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1e3a8a;
}

/* Desktop: menu horizontal */
@media (min-width: 769px) {
  .menu-list {
    display: flex;
    flex-direction: row;
    position: static;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    width: auto !important;
    border: none;
    list-style: none;
  }

  .menu-list li {
    margin-bottom: 0;
    margin-right: 1.5rem;
  }

  .menu-list li:last-child {
    margin-right: 0;
  }

  .menu-toggle {
    display: none;
  }
}

/* Mobile: mostrar hamburguer */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

/* Container geral */
.container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

#calculator {
  scroll-margin-top: 150px;
}

/* Títulos e subtítulo */
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.subtitle {
  color: #4b5563;
  margin-bottom: 2rem;
}

/* Formulário */
form {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 1rem;
}

input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  padding: 0.75rem;
  background-color: #f97316;
  border: none;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #ea580c;
}

/* Resultado */
.result-box {
  margin-top: 2rem;
  background-color: #f0f9ff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.result-box h2 {
  color: #1e3a8a;
}

.result-box p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.suggestion-link {
  display: inline-block;
  margin-top: 1rem;
  color: #1e3a8a;
  text-decoration: underline;
}

/* Conteúdo adicional */
.content-section {
  margin-top: 3rem;
}

.content-section h2 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.content-section ul {
  list-style: none;
  padding-left: 0;
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

.content-section a {
  color: #1e3a8a;
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Rodapé */
.container-rodape {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #6b7280;
}

.links_rodape {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 1rem;
}

.links_rodape a {
  text-decoration: none;
  color: #6b7280;
}

.links_rodape a:hover {
  color: #f97316;
}

/* Utilitário */
.hidden {
  display: none;
}

/* Contato */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
  background-color: #f97316;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #ea580c;
}

/* Blog - lista de artigos */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.blog-preview {
  padding: 1.5rem 1rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s ease;
}

.blog-preview:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-preview h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

.blog-preview h2 a {
  text-decoration: none;
  color: #1e3a8a;
}

.blog-preview h2 a:hover {
  color: #f97316;
}

.blog-preview p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.blog-preview a {
  font-size: 0.95rem;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
}

.blog-preview a:hover {
  text-decoration: underline;
}

/* Blog - artigo individual */
article {
  padding-top: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

article h1 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

article h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1e3a8a;
}

article ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

article ul li {
  margin-bottom: 0.5rem;
}

article p {
  margin-bottom: 1.25rem;
}

article a {
  color: #1e3a8a;
  text-decoration: underline;
  font-weight: 500;
}

article a:hover {
  color: #f97316;
}

/* Links internos */
.info-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.info-card {
  display: block;
  padding: 1rem;
  background-color: #f9f9f9;
  border-left: 4px solid #f97316;
  border-radius: 6px;
  text-decoration: none;
  color: #1e3a8a;
  transition: background-color 0.2s ease;
}

.info-card:hover {
  background-color: #f0f0f0;
}

.info-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-card span {
  font-size: 0.95rem;
  color: #444;
}

.logo a {
  text-decoration: none;
  color: inherit;
}

.logo a:hover {
  color: #f97316;
}

.promo-box {
  background-color: #f0f9ff;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.promo-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #f97316;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.promo-button:hover {
  background-color: #ea580c;
}