/*
Theme Name: Buzato Engenharia
Theme URI: https://buzatoengenharia.com.br
Author: Vinicius Gama
Description: Tema WordPress customizado da Buzato Engenharia — reformas e adequações comerciais. Design codado do zero (Archivo + IBM Plex), sem page builder.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buzato
*/

/* =====================================================================
   DESIGN TOKENS
   Paleta derivada da logo (navy + aço). Off-white "azulado" de projeto.
   Acento âmbar hi-vis usado só em marcadores/ticks (parcimônia).
===================================================================== */
:root {
  /* Cores */
  --ink:        #0C1B2A;
  --navy-900:   #0B2545;
  --navy-800:   #0F2E54;
  --navy-700:   #14365C;
  --blue-600:   #1F5FA6;
  --blue-500:   #2E77C4;
  --steel-600:  #55677B;
  --steel-500:  #6B7F94;
  --steel-300:  #A9B8C7;
  --line:       #DCE4EE;
  --line-soft:  #E9EEF4;
  --paper:      #F4F7FB;
  --white:      #FFFFFF;
  --signal:     #E9A23B; /* hi-vis — apenas ticks/eyebrow */

  /* Tipografia */
  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-body:    "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Escala fluida */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 5rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(12, 27, 42, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(12, 27, 42, 0.22);
  --shadow-lg: 0 30px 60px -25px rgba(11, 37, 69, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Feedback */
  --danger: #C0392B;
}

/* =====================================================================
   RESET
===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[role="list"] { list-style: none; padding: 0; }

/* =====================================================================
   TIPOGRAFIA
===================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p  { max-width: 62ch; }

/* Eyebrow técnico (mono) com tick de medição */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--signal);
  flex: none;
}

/* =====================================================================
   LAYOUT
===================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* Malha de planta (blueprint) — assinatura, muito sutil */
.blueprint {
  background-image:
    linear-gradient(to right, rgba(31, 95, 166, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 95, 166, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* =====================================================================
   BOTÕES
===================================================================== */
.btn {
  --_bg: var(--blue-600);
  --_fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--_bg);
  color: var(--_fg);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--navy-900);
  border-color: var(--line);
}
.btn--ghost:hover { --_bg: var(--white); border-color: var(--steel-300); box-shadow: var(--shadow-sm); }
.btn--wa { --_bg: #1FA855; }
.btn--wa:hover { --_bg: #1c9a4e; }
.btn svg { width: 18px; height: 18px; }

/* =====================================================================
   ACESSIBILIDADE
===================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
