/**
 * global.css — Reset, utilitários, botões e componentes base
 * Caue Possatto — Métodos Bioenergéticos
 * Importar DEPOIS de tokens.css e bootstrap-grid
 */

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-corpo);
  font-weight: 300;
  background: var(--verde-profundo);
  color: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
}

img, svg, video { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   EYEBROW  — rótulo acima dos títulos de seção
═══════════════════════════════════════════════════════════ */
.eyebrow {
  display: block;
  font-family: var(--font-corpo);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.65;
  line-height: 1;
}
.eyebrow--dourado { color: var(--dourado);      }
.eyebrow--marrom  { color: var(--marrom);        }
.eyebrow--verde   { color: var(--verde-claro);   }
.eyebrow--off     { color: var(--off-white);     }
.eyebrow--escuro  { color: var(--texto-escuro);  }

/* ═══════════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════════ */
.divider-dourado {
  width: 40px;
  height: 1px;
  background: var(--dourado);
  opacity: 0.4;
  margin: 18px auto;
}
.divider-dourado--left  { margin-left: 0; }
.divider-dourado--right { margin-right: 0; }

/* ═══════════════════════════════════════════════════════════
   BOTÕES
   Prefixo: .btn-cp (Caue Possatto) para não colidir com Bootstrap
═══════════════════════════════════════════════════════════ */
.btn-cp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-corpo);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  transition: var(--tr-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

/* Sólido dourado */
.btn-cp--dourado-solid {
  padding: 16px 44px;
  background: var(--dourado);
  color: var(--verde-profundo);
}
.btn-cp--dourado-solid:hover {
  background: var(--dourado-suave);
  color: var(--verde-profundo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

/* Outline dourado */
.btn-cp--dourado-outline {
  padding: 14px 36px;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  background: transparent;
}
.btn-cp--dourado-outline:hover {
  background: var(--dourado);
  color: var(--verde-profundo);
}

/* Outline branco/neutro */
.btn-cp--white-outline {
  padding: 14px 36px;
  border: 1px solid rgba(244, 239, 230, 0.3);
  color: var(--off-white);
  background: transparent;
}
.btn-cp--white-outline:hover {
  border-color: var(--dourado);
  color: var(--dourado);
}

/* Link de texto verde */
.btn-cp--verde-text {
  padding: 0 0 2px;
  color: var(--verde-medio);
  border-bottom: 1px solid rgba(26, 92, 66, 0.35);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  background: transparent;
}
.btn-cp--verde-text:hover {
  color: var(--verde-claro);
  border-bottom-color: var(--verde-claro);
}

/* Link com seta → */
.btn-cp--arrow {
  color: var(--dourado);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  gap: 8px;
  background: transparent;
  transition: gap 0.3s ease, color 0.3s ease;
}
.btn-cp--arrow:hover {
  gap: 14px;
  color: var(--dourado-suave);
}

/* ═══════════════════════════════════════════════════════════
   CONTAINER E SEÇÃO
═══════════════════════════════════════════════════════════ */
.container-cp {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sec-pad-h);
}
.container-cp--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--sec-pad-h);
}
.sec-pad {
  padding: var(--sec-pad-v) var(--sec-pad-h);
}

/* ═══════════════════════════════════════════════════════════
   UTILITÁRIOS DE TEXTO
═══════════════════════════════════════════════════════════ */
.text-dourado    { color: var(--dourado); }
.text-dourado-s  { color: var(--dourado-suave); }
.text-off        { color: var(--off-white); }
.text-claro      { color: var(--texto-claro); }
.text-escuro     { color: var(--texto-escuro); }
.text-marrom     { color: var(--marrom); }
.text-verde      { color: var(--verde-medio); }
.font-display    { font-family: var(--font-display); }
.italic          { font-style: italic; }
.fw-300          { font-weight: 300; }
.fw-400          { font-weight: 400; }
.fw-500          { font-weight: 500; }
.fw-600          { font-weight: 600; }
.text-center     { text-align: center; }
.text-left       { text-align: left; }

/* ═══════════════════════════════════════════════════════════
   BADGE / TAG
═══════════════════════════════════════════════════════════ */
.tag-cp {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--verde-medio);
  opacity: 0.75;
  border: 1px solid rgba(26, 92, 66, 0.2);
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  line-height: 1;
}
.tag-cp--dourado {
  color: var(--dourado);
  border-color: rgba(201, 168, 76, 0.28);
  opacity: 1;
}
.tag-cp--roxo {
  color: var(--roxo-medio);
  border-color: rgba(61, 36, 112, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   ANIMAÇÃO FADE-IN  (JS adiciona .visible via IntersectionObserver)
═══════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in--delay-1 { transition-delay: 0.10s; }
.fade-in--delay-2 { transition-delay: 0.20s; }
.fade-in--delay-3 { transition-delay: 0.30s; }
.fade-in--delay-4 { transition-delay: 0.40s; }
.fade-in--delay-5 { transition-delay: 0.50s; }

/* ═══════════════════════════════════════════════════════════
   BOTÃO WHATSAPP FLUTUANTE
═══════════════════════════════════════════════════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-whatsapp);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  font-family: var(--font-corpo);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: var(--tr-hover);
  text-transform: uppercase;
}
.whatsapp-btn:hover {
  background: #1DA851;
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}
.whatsapp-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}
.whatsapp-btn__label { line-height: 1; }

@media (max-width: 640px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 50%;
  }
  .whatsapp-btn__label { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL, SELEÇÃO E ACESSIBILIDADE
═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--verde-hero); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dourado); }

::selection {
  background: rgba(201, 168, 76, 0.22);
  color: var(--off-white);
}

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Reduz motion para quem preferir */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .btn-cp,
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   LAZY LOADING
═══════════════════════════════════════════════════════════ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO — Container e Section padding
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sec-pad-h: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --sec-pad-v: 72px;
    --sec-pad-h: var(--sec-pad-h-sm);
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — componente global (incluso em todas as páginas)
═══════════════════════════════════════════════════════════ */
#footer {
  background: #050C08;
  padding: 56px 48px 36px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,168,76,.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dourado);
  opacity: .8;
  display: block;
  margin-bottom: 6px;
}
.footer-sub {
  font-size: .55rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: .25;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: .78rem;
  line-height: 1.8;
  color: var(--off-white);
  opacity: .3;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 50%;
  transition: all .25s;
  opacity: .5;
}
.footer-social a:hover {
  border-color: var(--dourado);
  opacity: 1;
}
.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--off-white);
}

.footer-col h4 {
  font-size: .58rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--dourado);
  opacity: .5;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col li { list-style: none; }
.footer-col a {
  font-size: .78rem;
  color: var(--off-white);
  opacity: .35;
  text-decoration: none;
  transition: opacity .2s, color .2s;
}
.footer-col a:hover { opacity: .75; color: var(--dourado); }
.footer-col li:not(:has(a)) {
  font-size: .78rem;
  color: var(--off-white);
  opacity: .3;
  line-height: 1.5;
}

.footer-aviso {
  font-size: .72rem;
  line-height: 1.8;
  color: var(--off-white);
  opacity: .22;
  max-width: 680px;
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: .62rem;
  color: var(--off-white);
  opacity: .2;
  letter-spacing: .1em;
}
.footer-copy a {
  color: var(--dourado);
  opacity: .5;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-copy a:hover { opacity: .9; }

.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-legal a {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: .2;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-legal a:hover { opacity: .5; }

/* ── Breadcrumb nav — páginas internas ───────────────────── */
.breadcrumb-nav { margin-bottom: 28px; }
.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.breadcrumb-nav li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-nav li:not(:last-child)::after {
  content: '·';
  opacity: .3;
}
.breadcrumb-nav a {
  color: var(--dourado);
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
}
.breadcrumb-nav a:hover { opacity: 1; }
.breadcrumb-nav [aria-current="page"] {
  color: var(--off-white);
  opacity: .35;
}
