/* ===== RESET ===== */
body, h1, h2, h3, h4, p, ul, li {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}
body {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== NAV ===== */
.main-header {
  /* background: linear-gradient(90deg, #007bff, #0056b3);*/
  background: #fff;
  padding: 15px 0;
  color: white;
  box-shadow: 0 3px 24px rgba(0, 0, 0, .08);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav h1 a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 700;
}
.nav nav a {
  color: rgb(0, 0, 0);
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav nav a:hover {
  opacity: 0.8;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
  padding: 80px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 30px 0;
}
.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #444;
}
.hero .btn {
  background: #007bff;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.hero .btn:hover {
  background: #0056b3;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.2s ease-in-out;

  /* Centralização */
  display: block;        /* ocupa a linha toda */
  margin: 20px auto;     /* centraliza horizontalmente */
  width: fit-content;    /* botão fica do tamanho do texto */
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ===== GRID (conversores) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s, background 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  background: #f1f7ff;
}

/* ===== UPLOAD BOX (nas páginas de conversão) ===== */
.upload-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 450px;
  margin: 0 auto;
  text-align: center;
}
.upload-box input[type="file"] {
  padding: 8px;
}
.upload-box button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.upload-box button:hover {
  background: #0056b3;
}

/* ===== BENEFÍCIOS ===== */
.benefits {
  margin: 40px 0;
  padding: 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.benefits h2 {
  margin-bottom: 15px;
  text-align: center;
}
.benefits ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}
.benefits li {
  font-size: 1rem;
  color: #333;
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  margin: 50px 0;
}
.cta .btn {
  background: #007bff;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.cta .btn:hover {
  background: #0056b3;
}

/* ===== FAQ ===== */
.faq {
  margin-top: 40px;
}
.faq h3 {
  margin-bottom: 15px;
  text-align: center;
}
details {
  background: white;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
}

/* ===== CONVERTER PAGE ===== */
.converter-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.converter-page h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-align: center;
}

.converter-page p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 30px;
  text-align: center;
}

/* Upload form estilizado */
.upload-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  margin: 0 auto 40px auto;
  text-align: center;
}

.upload-box input[type="file"] {
  border: 2px dashed #007bff;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  background: #f9f9f9;
  transition: border-color 0.3s;
}
.upload-box input[type="file"]:hover {
  border-color: #0056b3;
}

.upload-box button {
  background: #007bff;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.upload-box button:hover {
  background: #0056b3;
  transform: scale(1.03);
}

/* FAQ */
.faq {
  margin-top: 50px;
}
.faq h3 {
  text-align: center;
  margin-bottom: 20px;
}
details {
  background: white;
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
details summary {
  font-weight: 600;
  cursor: pointer;
  color: #007bff;
}
details p {
  margin-top: 10px;
  color: #444;
  font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  margin: 50px 0;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.step {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.step h3 {
  color: #007bff;
  margin-bottom: 10px;
}

/* ===== FORMATS ===== */
.formats {
  margin: 50px 0;
  text-align: center;
}
.formats .grid {
  margin-top: 20px;
}
.formats .card {
  font-size: 1.1rem;
  padding: 20px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;   /* alinha ícone e texto no centro */
  justify-content: center; /* centraliza no header */
  gap: 10px; /* espaço entre ícone e texto */
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit; /* usa a cor do tema */
  font-size: 1.4rem;
  font-weight: 700;
}

.logo-img {
  width: 40px;  /* ajuste o tamanho do ícone */
  height: auto;
}

.logo-link span {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(90deg, #00c6ff, #0072ff); /* azul clarinho → azul escuro */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== MENU DESKTOP ===== */
.menu-desktop {
  display: flex;
  gap: 20px;
}
.menu-desktop a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-weight: 500;
}
.menu-desktop a:hover {
  opacity: 0.8;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  cursor: pointer;
}

/* ===== MENU MOBILE ===== */
.menu-mobile {
  display: none;
  flex-direction: column;
  background: #0056b3;
  padding: 15px;
}
.menu-mobile a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.menu-mobile a:last-child {
  border: none;
}
.menu-mobile.open {
  display: flex;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* ===== PÁGINAS INSTITUCIONAIS ===== */
.page {
  max-width: 800px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page h2 {
  margin-bottom: 20px;
  color: #007bff;
}

.page h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #0056b3;
}

/* ===== BLOG ===== */
.blog-post h1, .blog-post h2, .blog-post h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #007bff;
}
.blog-post p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.blog-post code {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
}
.blog-post pre {
  background: #222;
  color: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
}

/* ===== BLOG INDEX ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.blog-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card h3 {
  margin-bottom: 10px;
  color: #007bff;
}

.blog-card p {
  flex-grow: 1;
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.blog-card .btn {
  align-self: flex-start;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.blog-card .btn:hover {
  background: #0056b3;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.converter-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: #007bff;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.converter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.success-message {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  max-width: 400px;
  margin: 10px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.success-box {
  background: #EEE; /* verde bem claro */
  border: 1px solid #c3e6cb;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.6s ease-in-out;
}

.success-box img {
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.success-box .btn {
  margin-top: 15px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ad-banner {
  display: flex;
  justify-content: center;  /* centraliza horizontal */
  margin: 20px 0;
  position: relative;       /* para o <a> absoluto funcionar */
}

.ad-banner iframe {
  max-width: 100%;          /* responsivo em telas menores */
  height: auto;
}


/* ===== FOOTER ===== */
.main-footer {
  background: #222;
  color: #bbb;
  padding: 40px 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
}
.footer-grid h4 {
  color: white;
  margin-bottom: 10px;
}
.footer-grid p {
  color: #bbb;
}
.footer-grid a {
  color: #bbb;
  text-decoration: none;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.copy {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #777;
}
