/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* Tema escuro (padrão) */
body.theme-dark {
  background-color: #060606;
  color: #ffffff;
}

/* Tema claro */
body.theme-light {
  background-color: #f7f7f7;
  color: #111111;
}

/* =========================
   LAYOUT GERAL
========================= */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

/* Escuro */
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
  color: #ffffff;
}
body.theme-dark p {
  color: #cccccc;
}

/* Claro */
body.theme-light h1,
body.theme-light h2,
body.theme-light h3 {
  color: #111111;
}
body.theme-light p {
  color: #444444;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

p {
  font-size: 0.98rem;
}

/* =========================
   HEADER E LOGO
========================= */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
  backdrop-filter: blur(6px);
}

/* Escuro */
body.theme-dark .site-header {
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid #1e1e1e;
}

/* Claro */
body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #dddddd;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;   /* ajuste aqui se quiser maior/menor */
  width: auto;
  display: block;
}

/* MENU */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* Escuro */
body.theme-dark .main-nav a {
  font-size: 0.9rem;
  color: #dddddd;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
body.theme-dark .main-nav a:hover,
body.theme-dark .main-nav a.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

/* Claro */
body.theme-light .main-nav a {
  font-size: 0.9rem;
  color: #333333;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
body.theme-light .main-nav a:hover,
body.theme-light .main-nav a.active {
  color: #b38600;
  border-bottom-color: #b38600;
}

/* CTA HEADER */

.header-cta {
  background: #d4af37;
  color: #000000;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}

/* =========================
   HERO (CAPA)
========================= */

.page-main {
  padding-top: 90px; /* compensa o header fixo */
}

/* Escuro */
body.theme-dark .hero {
  padding: 60px 0 60px;
  background: radial-gradient(circle at top, #151515 0, #060606 60%);
}

/* Claro */
body.theme-light .hero {
  padding: 60px 0 60px;
  background: radial-gradient(circle at top, #ffffff 0, #f2f2f2 60%);
}

.hero-grid {
  display: block;
}

.hero-subtitle {
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-microcopy {
  font-size: 0.85rem;
  color: #aaaaaa;
}

/* =========================
   BOTÕES
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #d4af37;
  color: #000000;
}
.btn-primary:hover {
  background: #b08d2e;
}

.btn-outline {
  border: 1px solid #d4af37;
  color: #d4af37;
  background: transparent;
}
.btn-outline:hover {
  background: #d4af37;
  color: #000000;
}

.link-more {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #d4af37;
  text-decoration: none;
}
.link-more:hover {
  text-decoration: underline;
}

/* =========================
   SEÇÕES
========================= */

.section {
  padding: 70px 0;
}

/* Escuro */
body.theme-dark .section-alt {
  background: #0d0d0d;
}

/* Claro */
body.theme-light .section-alt {
  background: #ffffff;
}

.section-intro {
  max-width: 650px;
  margin-bottom: 28px;
}

/* GRIDS E CARDS */
.areas-grid,
.cards-grid,
.steps-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* Escuro */
body.theme-dark .area-card,
body.theme-dark .card,
body.theme-dark .step,
body.theme-dark .post-card,
body.theme-dark .article-cta {
  border-radius: 16px;
  border: 1px solid #262626;
  padding: 20px 18px;
  background: #101010;
}

/* Claro */
body.theme-light .area-card,
body.theme-light .card,
body.theme-light .step,
body.theme-light .post-card,
body.theme-light .article-cta {
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 20px 18px;
  background: #ffffff;
}

/* Etapas (se usar em outras páginas) */
.step {
  position: relative;
  padding-left: 40px;
}
.step-number {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #d4af37;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
}

/* SOBRE */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
  align-items: flex-start;
}

/* =========================
   CONTATO
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 30px;
}

.contact-info {
  list-style: none;
  margin-top: 16px;
}

.contact-info li {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* =========================
   ARTIGOS
========================= */

.article-container {
  max-width: 800px;
}

.article-intro {
  margin-bottom: 20px;
}

.article-container h1 {
  margin-bottom: 14px;
}

.article-container h2 {
  margin-top: 26px;
  margin-bottom: 10px;
}

.article-container ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

/* =========================
   BOTÕES FIXOS (TEMA + WHATSAPP)
========================= */

/* Container dos dois botões no canto inferior direito */
.floating-buttons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 16;
}

/* BOTÃO TEMA (FLUTUANTE) */
.theme-toggle-btn {
  width: 160px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
  border: 1px solid transparent;
}

/* Escuro: botão claro com borda dourada */
body.theme-dark .theme-toggle-btn {
  background: #ffffff;
  color: #111111;
  border-color: #d4af37;
}
body.theme-dark .theme-toggle-btn:hover {
  background: #d4af37;
  color: #000000;
  transform: translateY(-1px);
}

/* Claro: botão escuro com borda dourada */
body.theme-light .theme-toggle-btn {
  background: #222222;
  color: #f5f5f5;
  border-color: #b38600;
}
body.theme-light .theme-toggle-btn:hover {
  background: #b38600;
  color: #ffffff;
  transform: translateY(-1px);
}

/* BOTÃO WHATSAPP FIXO */
.whatsapp-btn {
  background: #25d366;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  padding: 18px 0;
  font-size: 0.8rem;
}

/* Escuro */
body.theme-dark .site-footer {
  border-top: 1px solid #1e1e1e;
  background: #050505;
}

/* Claro */
body.theme-light .site-footer {
  border-top: 1px solid #dddddd;
  background: #f5f5f5;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-left p {
  margin-bottom: 4px;
}

.footer-right a {
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.8rem;
}

/* Escuro */
body.theme-dark .footer-right a {
  color: #aaaaaa;
}
body.theme-dark .footer-right a:hover {
  color: #d4af37;
}

/* Claro */
body.theme-light .footer-right a {
  color: #555555;
}
body.theme-light .footer-right a:hover {
  color: #b38600;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 600px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none; /* menu mobile pode ser feito depois */
  }

  .header-cta {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.9rem;
  }

  .header-content {
    padding: 8px 12px;
  }

  .logo-img {
    height: 48px;
  }

  .floating-buttons {
    right: 12px;
    bottom: 12px;
    gap: 6px;
  }

  .theme-toggle-btn,
  .whatsapp-btn {
    width: 150px;
    font-size: 0.9rem;
  }
}