/* ============================================================
   PTLAB Site — chrome.css
   Layout da página (header, 3 colunas, footer, seção SEO, modal).
   Zero dependência de Elementor / WordPress.
   ============================================================ */

/* ── Reset mínimo ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Design tokens (brand verde PTLAB) ──────────────────────── */
:root {
  --pt-bg:          #0b0f14;
  --pt-surface:     rgba(15, 18, 22, 0.85);
  --pt-text:        #ffffff;
  --pt-muted:       #9ca3af;
  --pt-green:       #3fb950;
  --pt-green-hover: #4ec55c;
  --pt-green-soft:  rgba(63, 185, 80, 0.15);
  --pt-border:      rgba(255, 255, 255, 0.08);
  --pt-whatsapp:    #25d366;
  --pt-radius:      10px;
}

body {
  background: var(--pt-bg) url('https://ptlab.com.br/wp-content/uploads/2024/01/bg-priston.jpg') center top no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--pt-text);
  font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ── Header fixo ────────────────────────────────────────────── */
.pt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(10, 13, 17, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pt-border);
}
.pt-header__logo img { height: 44px; width: auto; }
.pt-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pt-header__link {
  color: var(--pt-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s;
}
.pt-header__link:hover { color: var(--pt-green); }
.pt-header__link.is-active {
  background: var(--pt-green);
  color: #0b0f14;
}

/* ── Layout principal: 3 colunas ────────────────────────────── */
/* Padrão (monitores >1365px): laterais 330px cada, centro até 890px.
   330 + 890 + 330 + gap(24*2) = 1598px → max-width 1600px. */
.pt-main {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 890px) minmax(0, 330px);
  justify-content: center;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}
.pt-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.pt-sidebar__title {
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 4px 0;
}
.pt-sidebar__banner { width: 100%; }
.pt-sidebar__banner img { border-radius: var(--pt-radius); width: 100%; }

/* ── Coluna central ─────────────────────────────────────────── */
.pt-center { display: flex; flex-direction: column; gap: 24px; }

/* ── Hero banner ─────────────────────────────────────────────── */
.pt-hero__banner {
  display: block;
  width: 100%;
  border-radius: var(--pt-radius);
  overflow: hidden;
}
.pt-hero__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Mobile hero (só em telas pequenas) ─────────────────────── */
.pt-sidebar__mobile-hero { display: none; }
.pt-sidebar__mobile-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pt-green);
  color: #0b0f14;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 12px;
}
.pt-sidebar__mobile-cta svg { fill: currentColor; }

/* ── Live banner (Bruxao com selo LIVE ON sobreposto) ───────── */
.pt-live-banner {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 30px;   /* espaço pra o selo poder descer */
  line-height: 0;
}
.pt-live-banner__gif {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pt-radius);
}
.pt-live-banner__selo {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(1);
  transform-origin: center center;
  transition: opacity 0.35s ease-in-out;
  filter: drop-shadow(0 0 6px rgba(233, 69, 96, 0.5));
}
.pt-live-banner.is-live .pt-live-banner__selo {
  opacity: 1;
  animation: pt-live-pulse 1.6s ease-in-out infinite;
}
@keyframes pt-live-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 0 6px rgba(233, 69, 96, 0.5));
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    filter: drop-shadow(0 0 14px rgba(233, 69, 96, 0.9));
  }
}

/* Container do conteúdo central: sem fundo/borda (visual limpo, igual à
   home atual). O widget AgeLab fica direto sobre o background do body. */
.pt-content-card {
  padding: 0;
}
.pt-content-card h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 4px;
}
.pt-content-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 24px;
}

/* ── Seção SEO ──────────────────────────────────────────────── */
.pt-seo {
  max-width: 1200px;
  margin: 24px auto;
  padding: 48px 24px;
  color: var(--pt-text);
}
.pt-seo h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
}
.pt-seo h2:first-child { margin-top: 0; }
.pt-seo p { margin: 0 0 16px; color: #cbd5e1; }
.pt-seo ul { padding-left: 24px; margin: 0 0 16px; color: #cbd5e1; }
.pt-seo ul li { margin-bottom: 8px; }
.pt-seo strong { color: var(--pt-text); }

/* ── Footer ─────────────────────────────────────────────────── */
.pt-footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--pt-border);
}
.pt-footer__block h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.pt-footer__block p { color: var(--pt-muted); margin: 0 0 16px; }
.pt-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pt-whatsapp);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  transition: filter 0.2s;
}
.pt-whatsapp-btn:hover { filter: brightness(1.1); }
.pt-whatsapp-btn svg { width: 20px; height: 20px; fill: currentColor; }
.pt-copyright {
  text-align: center;
  padding: 24px;
  color: var(--pt-muted);
  font-size: 12px;
  border-top: 1px solid var(--pt-border);
}

/* ── WhatsApp flutuante ─────────────────────────────────────── */
.pt-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pt-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 90;
  transition: transform 0.2s;
}
.pt-whatsapp-float:hover { transform: scale(1.1); }
.pt-whatsapp-float svg { width: 32px; height: 32px; fill: #ffffff; }

/* ── Modal genérico (reaproveitável) ────────────────────────── */
.pt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pt-modal[hidden] { display: none; }
.pt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.pt-modal__content {
  position: relative;
  background: #1a1f27;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.pt-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: var(--pt-muted);
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.pt-modal__close:hover { color: var(--pt-text); background: var(--pt-border); }
.pt-modal__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-right: 32px;
}
.pt-modal__body { color: #cbd5e1; }

/* ── Modal de CTAs (ex: popup Velacks) — headings centralizados + botões full-width ── */
.pt-cta-modal { text-align: center; }
.pt-cta-modal h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}
.pt-cta-modal h3 b { font-weight: 800; }
.pt-cta-modal h3.pt-cta-modal__sub {
  color: var(--pt-muted);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pt-cta-modal h3.pt-cta-modal__sub b { color: var(--pt-text); }
.pt-cta-modal__sep { margin-top: 20px; }

.pt-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.2;
  transition: filter 0.2s, transform 0.2s;
}
.pt-cta-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pt-cta-btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.pt-cta-btn--whatsapp {
  background: #25D366;
  color: #ffffff;
}
.pt-cta-btn--youtube {
  background: #CC0000;
  color: #ffffff;
}


/* ── Responsivo ─────────────────────────────────────────────── */
/* 1200-1365px: laterais 260px, centro ganha mais espaço */
@media (max-width: 1365px) {
  .pt-main {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px);
    gap: 20px;
    padding: 20px;
  }
}

/* 900-1200px: laterais 220px (notebook pequeno), centro continua respirando */
@media (max-width: 1200px) {
  .pt-main {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px);
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 900px) {
  .pt-main {
    grid-template-columns: 1fr;
  }
  .pt-sidebar { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .pt-sidebar__banner { max-width: 320px; }
  .pt-footer { grid-template-columns: 1fr; gap: 24px; }
  /* Mobile hero aparece só no celular, no topo da sidebar esquerda */
  .pt-sidebar__mobile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
  .pt-sidebar__mobile-hero img { max-width: 260px; border-radius: var(--pt-radius); }
}

@media (max-width: 600px) {
  .pt-header { padding: 10px 12px; }
  .pt-header__link { padding: 6px 8px; font-size: 11px; }
  .pt-content-card h1 { font-size: 24px; }
  .pt-content-card h2 { font-size: 15px; }
  .pt-seo { padding: 32px 16px; }
  .pt-whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .pt-whatsapp-float svg { width: 26px; height: 26px; }
}
