/*
Theme Name: BBG Clean Theme
Theme URI: https://betterbuyguide.online/
Author: Better Buy Guide
Description: Tema limpo para o projeto Better Buy Guide. Sem menu automático, sem cabeçalho pesado e preparado para funcionar com o plugin BBG Presell Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bbg-clean-theme
*/

:root {
  --bbg-bg: #f7faf8;
  --bbg-paper: #ffffff;
  --bbg-text: #102016;
  --bbg-muted: #5d6f64;
  --bbg-line: rgba(16, 32, 22, .10);
  --bbg-green: #25c566;
  --bbg-dark: #06130e;
  --bbg-max: 920px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bbg-bg);
  color: var(--bbg-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: #0d7a3b;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

img {
  max-width: 100%;
  height: auto;
}

.bbg-skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 99999;
}

.bbg-skip-link:focus {
  left: 10px;
}

/*
  Tema sem cabeçalho/menu visual.
  O plugin BBG Presell Builder renderiza suas presells com template próprio.
  As páginas normais ficam limpas, sem menu automático.
*/
.bbg-site-header {
  display: none;
}

.bbg-main {
  width: min(var(--bbg-max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 88px 0 64px;
}

.bbg-page {
  background: var(--bbg-paper);
  border: 1px solid var(--bbg-line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 18px 60px rgba(5, 20, 12, .06);
}

.bbg-page-title {
  margin: 0 0 28px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--bbg-text);
}

.bbg-page-content h1,
.bbg-page-content h2,
.bbg-page-content h3 {
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--bbg-text);
}

.bbg-page-content h1 { font-size: clamp(34px, 5vw, 52px); }
.bbg-page-content h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 34px; }
.bbg-page-content h3 { font-size: 24px; margin-top: 28px; }

.bbg-page-content p {
  margin: 0 0 18px;
  color: var(--bbg-muted);
}

.bbg-page-content ul,
.bbg-page-content ol {
  color: var(--bbg-muted);
  padding-left: 24px;
}

.bbg-page-content .bbg-basic-page,
.bbg-page-content .bbg-legal-page {
  max-width: 760px;
}

.bbg-site-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: #789083;
  font-size: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--bbg-line);
}

.bbg-footer-links {
  display: flex;
  gap: 14px 20px;
  flex-wrap: wrap;
}

.bbg-footer-links a {
  color: #496557;
  text-decoration: none;
  font-weight: 700;
}

.bbg-footer-links a:hover {
  color: #0d7a3b;
}

.bbg-blank-note {
  color: var(--bbg-muted);
}

@media (max-width: 700px) {
  .bbg-main {
    width: min(100%, calc(100vw - 28px));
    padding: 48px 0 40px;
  }

  .bbg-page {
    border-radius: 22px;
  }

  .bbg-site-footer {
    width: min(100%, calc(100vw - 28px));
    align-items: flex-start;
    flex-direction: column;
  }
}
