/*
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; }
}

/* Imagem destacada do post: recorte panorâmico no desktop, mais alta e compacta
   nas telas menores — o corte de 21/8 fica fino demais no celular. */
.ws-featured-img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

@media (max-width: 980px) {
  .ws-featured-img { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .ws-featured-img { aspect-ratio: 16 / 9; border-radius: 16px; }
}

/* ---------------------------------------------------------------------------
   Gravity Forms com o visual do site.

   O CSS do plugin está desligado nas configurações, então tudo abaixo é o
   estilo próprio — os campos, chips e botão reproduzem o formulário que o
   design definiu, agora alimentado pelo Gravity Forms.
   --------------------------------------------------------------------------- */
.ws-gf .gform_wrapper { margin: 0; }
.ws-gf form { margin: 0; }
.ws-gf .gform_hidden,
.ws-gf .gform_validation_container,
.ws-gf .gfield_visibility_hidden { display: none; }
/* O cabeçalho guarda a nota de campos obrigatórios, que o layout mostra;
   título e descrição do formulário ficam ocultos — a página já os traz. */
.ws-gf .gform_heading { margin: 0; }
.ws-gf .gform_title,
.ws-gf .gform_description { display: none; }

.ws-gf .gform_required_legend {
  font: 400 13px/1.6 'Inter', sans-serif;
  color: #8A8FA6;
  margin: 0 0 22px;
}
.ws-gf .gform_required_legend .gfield_required { color: #FF6B2C; }

/* Campos de texto em duas colunas, como no layout. */
.ws-gf .gform_fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-gf .gfield { margin: 0; min-width: 0; }

/* Blocos largos ocupam a linha inteira.
   gfield--width-full fica de fora de propósito: o Gravity Forms aplica essa
   classe a todo campo sem largura definida, e usá-la aqui empilharia tudo. */
.ws-gf .gfield--type-checkbox,
.ws-gf .gfield--type-radio,
.ws-gf .gfield--type-textarea,
.ws-gf .gfield--type-html,
.ws-gf .gfield--type-fileupload,
.ws-gf .gfield--type-consent,
.ws-gf .gfield--type-section,
.ws-gf .gfield--type-captcha { grid-column: 1 / -1; }

.ws-gf .gfield_label,
.ws-gf legend.gfield_label {
  display: block;
  font: 600 13px/1.4 'Inter', sans-serif;
  color: #1B2450;
  margin: 0 0 7px;
  padding: 0;
  float: none;
  width: auto;
}
.ws-gf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Rótulo de cada chip não herda o estilo de rótulo de campo. */
.ws-gf .gchoice .gform-field-label--type-inline { font-weight: 600; }
.ws-gf .gfield_required { color: #FF6B2C; margin-left: 2px; }
.ws-gf .gfield_required .gfield_required_text { display: none; }

.ws-gf .gfield_description {
  font: 400 12.5px/1.5 'Inter', sans-serif;
  color: #8A8FA6;
  margin: -2px 0 12px;
  padding: 0;
}
/* Com a descrição abaixo das opções, o respiro fica depois dos chips. */
.ws-gf .gfield--type-checkbox .gfield_description,
.ws-gf .gfield--type-radio .gfield_description { margin: 10px 0 0; }

.ws-gf input[type="text"],
.ws-gf input[type="email"],
.ws-gf input[type="tel"],
.ws-gf input[type="url"],
.ws-gf input[type="number"],
.ws-gf select,
.ws-gf textarea {
  width: 100%;
  box-sizing: border-box;
  font: 400 14.5px/1.5 'Inter', sans-serif;
  color: #1B2450;
  padding: 12px 14px;
  border: 1px solid #E2DFF0;
  border-radius: 10px;
  background: #FBFAFE;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ws-gf textarea { min-height: 120px; resize: vertical; }
.ws-gf input:focus,
.ws-gf select:focus,
.ws-gf textarea:focus {
  border-color: #6B46F5;
  box-shadow: 0 0 0 3px rgba(107, 70, 245, .12);
}
.ws-gf ::placeholder { color: #A7ABBD; }

/* Chips de escolha: o input real fica oculto e o rótulo é a pílula. */
.ws-gf .gfield_checkbox,
.ws-gf .gfield_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ws-gf .gchoice { margin: 0; }
.ws-gf .gchoice input[type="checkbox"],
.ws-gf .gchoice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ws-gf .gchoice label {
  display: inline-flex;
  align-items: center;
  font: 600 13px/1.2 'Inter', sans-serif;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid #E2DFF0;
  background: #fff;
  color: #5B6072;
  transition: all .18s ease;
  margin: 0;
}
.ws-gf .gchoice label:hover { border-color: #C9BEF9; color: #1B2450; }
.ws-gf .gchoice input:checked + label {
  background: #6B46F5;
  border-color: #6B46F5;
  color: #fff;
  box-shadow: 0 6px 16px rgba(107, 70, 245, .28);
}
.ws-gf .gchoice input:focus-visible + label { box-shadow: 0 0 0 3px rgba(107, 70, 245, .25); }

/* Upload de currículo. */
.ws-gf input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  font: 400 13.5px/1.5 'Inter', sans-serif;
  color: #5B6072;
  padding: 12px 14px;
  border: 1px dashed #C9BEF9;
  border-radius: 10px;
  background: #FBFAFE;
  cursor: pointer;
}
.ws-gf .gform_fileupload_rules {
  display: block;
  font: 400 12px/1.5 'Inter', sans-serif;
  color: #8A8FA6;
  margin-top: 6px;
}

/* Texto de consentimento (bloco HTML do formulário). */
.ws-gf .gfield--type-html {
  font: 400 12px/1.6 'Inter', sans-serif;
  color: #8A8FA6;
}
.ws-gf .gfield--type-html a { color: #6B46F5; text-decoration: none; }
.ws-gf .gfield--type-html a:hover { text-decoration: underline; }

.ws-gf .gform_footer { margin: 26px 0 0; padding: 0; }
.ws-gf .gform_footer input[type="submit"],
.ws-gf .gform_footer button {
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #6B46F5;
  color: #fff;
  font: 600 15.5px/1.2 'Inter', sans-serif;
  padding: 16px 30px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(107, 70, 245, .28);
  transition: all .2s ease;
}
.ws-gf .gform_footer input[type="submit"]:hover,
.ws-gf .gform_footer button:hover {
  background: #5A38D6;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(107, 70, 245, .34);
}

/* Erros de validação no mesmo tom dos avisos do site. */
.ws-gf .gform_validation_errors {
  background: #FFF1EC;
  border: 1px solid #FFD6C7;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 20px;
  box-shadow: none;
}
.ws-gf .gform_validation_errors > h2,
.ws-gf .gform_validation_errors .gform_submission_error {
  font: 600 14px/1.5 'Inter', sans-serif;
  color: #B23C12;
  margin: 0;
}
.ws-gf .gform_validation_errors ol { margin: 8px 0 0 18px; padding: 0; }
.ws-gf .gform_validation_errors a {
  font: 500 13px/1.6 'Inter', sans-serif;
  color: #B23C12;
}
.ws-gf .gfield_error input,
.ws-gf .gfield_error textarea,
.ws-gf .gfield_error select { border-color: #E8734A; background: #FFF8F5; }
.ws-gf .validation_message {
  font: 500 12.5px/1.5 'Inter', sans-serif;
  color: #B23C12;
  margin-top: 6px;
  padding: 0;
  border: none;
  background: none;
}
.ws-gf .gform_ajax_spinner { margin-left: 10px; }

@media (max-width: 640px) {
  .ws-gf .gform_fields { 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; }
