/*
Theme Name: Linea Editora
Theme URI: https://lineaeditora.com.br
Author: Linea Editora
Description: Tema do site da Linea Editora — serviços editoriais (diagramação, e-book, projeto gráfico, revisão, impressão e digitalização). Inclui portfólio editável, páginas de orçamento e formulário de contato.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: linea
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; }
a { color: #24588d; }
a:hover { color: #163c63; }
img, video { max-width: 100%; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #ffffff; color: #24588d; padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.site { font-family: 'Figtree', system-ui, sans-serif; color: #1b2733; background: #ffffff; width: 100%; max-width: 100%; overflow-x: clip; }
.site--soft { background: #f3f7fa; min-height: 100vh; }
[hidden] { display: none !important; }

/* ---------- Cabeçalho ---------- */
.hdr-nav::-webkit-scrollbar { display: none; }
.nav-arrow { display: none; }
.menu-btn { display: none; }
.hdr-nav a { text-decoration: none; color: #1b2733; padding: 12px 0; }
.hdr-nav a[aria-current="page"] { color: #24588d; border-bottom: 2px solid #66c0be; }
.side-nav a { text-decoration: none; color: #1b2733; font-weight: 700; font-size: 17px; padding: 12px; border-left: 3px solid transparent; }
.side-nav a[aria-current="page"] { color: #24588d; border-left-color: #66c0be; background: #f3f7fa; }
body.menu-aberto { overflow: hidden; }

/* ---------- Componentes ---------- */
.svc:hover { border-color: #24588d !important; }
.wcard { transition: transform .15s ease; }
.wcard:hover { transform: translateY(-3px); }
.wcard.is-focus { box-shadow: 0 0 0 4px #66c0be, 0 12px 32px rgba(14,42,69,0.22) !important; transform: translateY(-4px); }
.inp { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #b9c6d2; border-radius: 10px; background: #ffffff; color: #1b2733; width: 100%; box-sizing: border-box; }
.inp:focus, .field:focus { outline: 2px solid #24588d; outline-offset: 1px; border-color: #24588d; }

/* Botões de filtro e de escolha (estado via aria-pressed) */
.fpill { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: #ffffff; color: #24588d; border: 1.5px solid #b9cde0; }
.fpill[aria-pressed="true"] { background: #24588d; color: #ffffff; border-color: #24588d; }
.fpill .cnt { font-size: 12px; font-weight: 700; min-width: 22px; padding: 2px 6px; border-radius: 999px; box-sizing: border-box; text-align: center; background: #eef3f8; color: #24588d; }
.fpill[aria-pressed="true"] .cnt { background: #66c0be; color: #0e2a45; }
.fpill--sm { font-size: 14px; }

.qpill { font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; padding: 12px 22px; min-height: 48px; border-radius: 999px; cursor: pointer; text-align: left; background: #ffffff; color: #24588d; border: 2px solid #b9cde0; }
.qpill[aria-pressed="true"] { background: #24588d; color: #ffffff; border-color: #24588d; }
.qfmt { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 8px 16px; border-radius: 14px; cursor: pointer; background: #ffffff; color: #24588d; border: 2px solid #b9cde0; }
.qfmt[aria-pressed="true"] { background: #24588d; color: #ffffff; border-color: #24588d; }
.qfmt .shape { display: block; box-sizing: border-box; border-radius: 2px 4px 4px 2px; background: #dbe6f0; box-shadow: inset 3px 0 0 #b9cde0; }
.qfmt[aria-pressed="true"] .shape { background: #66c0be; box-shadow: none; }
.qfmt .shape--outro { background: transparent; box-shadow: none; border: 2px dashed #b9cde0; }
.qfmt[aria-pressed="true"] .shape--outro { background: transparent; border-color: #66c0be; }
.qtab { font: inherit; font-size: 15px; font-weight: 700; padding: 12px 20px; min-height: 46px; border: none; border-radius: 999px; cursor: pointer; background: transparent; color: #ffffff; }
.qtab[aria-selected="true"] { background: #ffffff; color: #24588d; }
.qmode { font: inherit; display: flex; align-items: center; gap: 16px; padding: 20px 22px; min-height: 84px; border-radius: 16px; cursor: pointer; text-align: left; background: #ffffff; color: #24588d; border: 2px solid #b9cde0; }
.qmode[aria-pressed="true"] { background: #24588d; color: #ffffff; border-color: #24588d; }
.qmode .ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f3f7fa; color: #24588d; }
.qmode[aria-pressed="true"] .ico { background: #66c0be; color: #0e2a45; }
.qcard--cond { box-shadow: inset 0 0 0 2px #66c0be; }
.field { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #b9c6d2; border-radius: 10px; color: #1b2733; background: #ffffff; }

/* Textos legais (conteúdo editável no painel) */
.legal h2 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 28px; color: #24588d; margin: 40px 0 12px; line-height: 1.2; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.75; color: #2c3a47; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* Avisos do formulário de contato */
.aviso { border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.aviso--erro { background: #fdecea; color: #8a1c12; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hdr-logo img { height: 30px !important; }
  .sec { padding-left: 20px !important; padding-right: 20px !important; }
  .h1 { font-size: 38px !important; }
  .ed-h1 { font-size: 38px !important; }
}
@media (max-width: 760px) {
  .hdr-row { gap: 12px !important; padding: 12px 16px !important; }
  .hdr-logo img { height: 30px !important; }
  .hdr-actions { margin-left: auto; }
  .hdr-navwrap { display: none !important; }
  .menu-btn { display: flex !important; }
  .login-label { display: none; }
  .sec { padding-left: 16px !important; padding-right: 16px !important; }
  .hero-h1 { font-size: 40px !important; }
  .h2 { font-size: 32px !important; }
  .page-h1 { font-size: 36px !important; }
  .qcard { padding: 24px 20px !important; }
  .box { padding: 20px !important; }
}
