/*
Theme Name: Lockwood
Theme URI: https://www.lockwood.com.br
Author: Lockwood
Author URI: https://www.lockwood.com.br
Description: Tema de blocos (FSE) para a Lockwood — consultoria de gestão e marketing. Estética escura, tipografia monumental e composições de alto contraste.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lockwood
Tags: full-site-editing, block-patterns, one-column, dark, business, portfolio
*/

/* ---------------------------------------------------------------
   Ajustes finos. Cores, tipografia e espaçamento vivem em theme.json.
   --------------------------------------------------------------- */

:root {
  --lw-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
}

/* Header fixo translúcido */
.lw-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--wp--preset--color--base) 82%, transparent);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

/* Navegação */
.wp-block-navigation .wp-block-navigation-item__content {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
}

.wp-block-navigation .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--wp--preset--color--accent);
  transition: width 0.45s var(--lw-ease);
}

.wp-block-navigation .wp-block-navigation-item__content:hover::after,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
  width: 100%;
}

/* Botões */
.wp-block-button__link {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    transform 0.4s var(--lw-ease),
    background-color 0.3s ease,
    color 0.3s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  border-color: var(--wp--preset--color--contrast);
}

/* Eyebrow / kicker */
.lw-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--wp--preset--color--accent);
}

/* Título monumental */
.lw-display {
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

/* Cartões */
.lw-card {
  border: 1px solid var(--wp--preset--color--line);
  transition:
    border-color 0.4s var(--lw-ease),
    background-color 0.4s var(--lw-ease),
    transform 0.4s var(--lw-ease);
}

.lw-card:hover {
  border-color: color-mix(in oklab, var(--wp--preset--color--accent) 60%, transparent);
  background: var(--wp--preset--color--surface);
  transform: translateY(-4px);
}

/* Marquee de credenciais */
.lw-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lw-marquee > .wp-block-group {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: lw-scroll 34s linear infinite;
}

@keyframes lw-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lw-marquee > .wp-block-group {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* Linha divisória fina */
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--wp--preset--color--line);
  opacity: 1;
}

/* Listagem de posts */
.wp-block-post-title a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* Números grandes de índice */
.lw-index {
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--wp--preset--color--contrast) 34%, transparent);
  letter-spacing: -0.02em;
}

/* Formulário de comentários e campos genéricos */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--line);
  color: var(--wp--preset--color--contrast);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  width: 100%;
}

input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

/* Acessibilidade */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
