/*
Theme Name: WebShare
Theme URI: https://www.webshare.com.br/
Author: WebShare
Description: Tema proprietário da WebShare — agência de SEO e GEO. Markup server-rendered com estilos inline, fidelidade total ao design aprovado. Sem dependência de page builder.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: webshare
*/

/* O layout vive em estilos inline nos templates, por decisão de fidelidade.
   Este arquivo carrega apenas os resets globais e as animações que não podem ser inline. */

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: #fff; font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; }
a { color: #5B3FE0; font-family: 'Inter', sans-serif; }
a:hover { color: #4429C0; }
nav a { font-family: 'Inter', sans-serif !important; color: #1B2450 !important; text-decoration: none !important; }
nav a:hover { color: #1B2450 !important; }
footer a { text-decoration: none !important; }
img { max-width: 100%; }

@keyframes logo-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes icon-float-a { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(5px, -16px) } }
@keyframes icon-float-b { 0%, 100% { transform: translate(0, 0) } 50% { transform: translate(-5px, -12px) } }
@keyframes testimonial-fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }
@keyframes testimonial-slide-next { from { opacity: 0; transform: translateX(40px) } to { opacity: 1; transform: translateX(0) } }
@keyframes testimonial-slide-prev { from { opacity: 0; transform: translateX(-40px) } to { opacity: 1; transform: translateX(0) } }

@property --shine-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg }
@keyframes shine-spin { to { --shine-angle: 360deg } }
.shine-card { position: relative }
.shine-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--shine-angle), transparent 0%, #6B46F5 12%, #FF6B2C 22%, transparent 38%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.shine-card:hover::before { opacity: 1; animation: shine-spin 3s linear infinite }

/* Estados de hover que no design eram style-hover */
.ws-hover-lift { transition: background .2s ease, transform .2s ease; }
.ws-cta:hover { background: #5A38D6 !important; transform: translateY(-1px); }
.ws-mega-link:hover { background: #F8F7FB; }
.ws-chip:hover { transform: scale(1.06); box-shadow: 0 14px 32px rgba(27, 36, 80, .16) !important; }

/* Corpo do artigo — o conteúdo vem do editor, então a tipografia é definida aqui
   e não inline, na mesma escala usada no design do post. */
.ws-post-body { font-family: 'Inter', sans-serif; color: #5B6072; }
.ws-post-body > *:first-child { margin-top: 0; }
.ws-post-body p { font-weight: 400; font-size: 16.5px; line-height: 1.85; margin: 0 0 22px; }
.ws-post-body h2 { font: 700 24px/1.35 'Plus Jakarta Sans'; color: #1B2450; margin: 40px 0 16px; scroll-margin-top: 100px; }
.ws-post-body h3 { font: 700 19px/1.4 'Plus Jakarta Sans'; color: #1B2450; margin: 32px 0 12px; }
.ws-post-body h4 { font: 700 16.5px/1.45 'Plus Jakarta Sans'; color: #1B2450; margin: 26px 0 10px; }
.ws-post-body ul, .ws-post-body ol { margin: 0 0 26px; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.ws-post-body li { font-size: 16.5px; line-height: 1.75; }
.ws-post-body a { color: #6B46F5; text-decoration: underline; text-underline-offset: 2px; }
.ws-post-body a:hover { color: #5A38D6; }
.ws-post-body strong, .ws-post-body b { color: #1B2450; font-weight: 700; }
.ws-post-body img { height: auto; border-radius: 16px; display: block; margin: 28px 0; }
.ws-post-body figure { margin: 28px 0; }
.ws-post-body figcaption { font-size: 13px; color: #8A8FA6; margin-top: 8px; }
.ws-post-body blockquote { margin: 28px 0; padding: 20px 24px; background: #F5F2FF; border-radius: 16px; }
.ws-post-body blockquote p { margin: 0; font-size: 16px; color: #3A3F55; }
.ws-post-body table { width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
.ws-post-body th, .ws-post-body td { border: 1px solid #ECE9F7; padding: 12px 14px; text-align: left; }
.ws-post-body th { background: #F8F7FB; color: #1B2450; font-weight: 700; }

/* Grids de duas colunas do design.
   O HTML é servido pelo servidor, então o ponto de virada mora aqui — não em JS. */
.ws-grid-contato       { grid-template-columns: 0.85fr 1.15fr; }
.ws-grid-hero-sobre    { grid-template-columns: 1.1fr 1fr; }
.ws-grid-hero-trabalhe { grid-template-columns: 1.05fr 0.95fr; }
.ws-grid-hero-servico  { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.ws-grid-2col          { grid-template-columns: 1fr 1fr; }
.ws-grid-artigo        { grid-template-columns: minmax(0, 1fr) 320px; }

@media (max-width: 980px) {
  .ws-grid-artigo { grid-template-columns: minmax(0, 1fr); }
  .ws-grid-artigo aside { position: static !important; }
}

@media (max-width: 900px) {
  .ws-grid-contato,
  .ws-grid-hero-sobre,
  .ws-grid-hero-trabalhe,
  .ws-grid-hero-servico,
  .ws-grid-2col { grid-template-columns: 1fr; }
}

/* Chips de seleção dos formulários: o input real fica oculto, o rótulo é o chip. */
.ws-chip-opt { position: relative; user-select: none; }
.ws-chip-opt:hover { border-color: #C9BEF7; color: #1B2450; }
.ws-chip-opt:has(input:checked) { background: #6B46F5; border-color: #6B46F5; color: #fff; }
.ws-chip-opt:has(input:focus-visible) { outline: 2px solid #6B46F5; outline-offset: 2px; }
