/*
Theme Name: Grampos Sul
Theme URI: https://grampossul.com.br
Author: Grampos Sul
Author URI: https://grampossul.com.br
Description: Tema institucional da Grampos Sul — indústria de grampos para estofados, colchões, embalagens e pallets. Catálogo de produtos editável, formulário de orçamento por e-mail e visual industrial em aço azul/laranja.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grampos-sul
*/

/* ============ GRAMPOS SUL — tema WordPress ============ */
/* Tokens definidos como CSS vars no :root. Editáveis via Customizer (cores). */

:root {
  /* Colors — Steel + Primary + Accent */
  --ink: #0B121C;
  --ink-2: #131C2A;
  --ink-3: #1B2738;
  --ink-line: #243349;
  --steel-50: #F4F5F7;
  --steel-100: #ECEEF2;
  --steel-200: #DEE2E8;
  --steel-300: #C7CDD6;
  --steel-500: #8A95A4;
  --steel-700: #4B5566;
  --steel-900: #1F2733;

  --primary: #1F6FEB;
  --primary-600: #1759C6;
  --primary-300: #5C97F2; /* azul claro p/ texto pequeno sobre fundo escuro (contraste AA) */
  --primary-100: #DCE9FC;
  --primary-tint: rgba(31, 111, 235, 0.10);

  --accent: #FF6A2C;
  --accent-600: #E5571B;

  --success: #18A04A;

  /* Typography */
  --f-display: "Archivo", "Archivo Narrow", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --section-y: var(--space-10);

  --container: 1280px;
  --container-narrow: 980px;

  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,18,28,0.06), 0 1px 1px rgba(11,18,28,0.04);
  --shadow-md: 0 10px 30px rgba(11,18,28,0.08), 0 2px 6px rgba(11,18,28,0.04);
  --shadow-dark: 0 20px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--steel-900);
  background: var(--steel-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Acessibilidade — foco visível para navegação por teclado.
   :where() mantém especificidade baixa para não atropelar componentes. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 3px; }
/* Anel claro quando o foco está sobre fundo escuro */
.dark :focus-visible, .dark-2 :focus-visible, .hero :focus-visible,
.about-hero :focus-visible, .applications :focus-visible,
.site-header :focus-visible, .site-footer :focus-visible,
.contact-card :focus-visible, .lengths-strip :focus-visible {
  outline-color: #9DC2FB;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-y) 0; }

.dark { background: var(--ink); color: #fff; }
.dark-2 { background: var(--ink-2); color: #fff; }

/* ============ Typography ============ */
.display {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.display-xxl { font-size: clamp(56px, 9vw, 132px); }
.display-xl { font-size: clamp(48px, 6.5vw, 96px); }
.display-lg { font-size: clamp(40px, 4.8vw, 72px); }
.display-md { font-size: clamp(32px, 3.6vw, 52px); }

.eyebrow {
  font-family: var(--f-mono);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--steel-500);
}
.dark .eyebrow, .dark-2 .eyebrow { color: var(--steel-300); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 3.6vw, 48px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
h4 { font-size: 18px; }
p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--steel-700);
  max-width: 64ch;
}
.dark .lede, .dark-2 .lede { color: var(--steel-300); }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 2px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); }
.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-600); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--steel-300); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-solid-dark { background: var(--ink); color: #fff; }
.btn-solid-dark:hover { background: var(--ink-2); }

.btn-arrow { width: 18px; height: 12px; display: inline-block; flex-shrink: 0; }
.btn-arrow svg { width: 100%; height: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid var(--ink-line);
}
.site-header.transparent {
  background: transparent;
  position: absolute;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand-logo .mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-logo .wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-logo .wordmark .sul { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color 0.12s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--f-display);
}
.main-nav a:hover { color: #fff; }
.main-nav a.active {
  color: #fff;
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--primary);
}
/* Quando o menu é renderizado como <ul> do WordPress: remove os marcadores
   de lista e mantém os itens em linha, sem quebra. */
ul.main-nav,
ul.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.main-nav li::marker { content: ""; }
.main-nav li { display: flex; align-items: center; }
.main-nav a { white-space: nowrap; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-phone {
  font-family: var(--f-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Container do menu + CTA (vira painel dropdown no mobile) */
.header-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

/* Botão hambúrguer — escondido no desktop, visível no mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 10px 9px;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-locked { overflow: hidden; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 0;
  min-height: 720px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(31,111,235,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,106,44,0.08), transparent 60%),
    linear-gradient(180deg, #0B121C 0%, #0E1825 100%);
  pointer-events: none;
}
.hero::after {
  /* subtle chevron pattern overlay using SVG data uri */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'><path d='M0 30 L40 10 L80 30' stroke='%231F6FEB' stroke-width='1' fill='none' opacity='0.5'/></svg>");
  background-size: 80px 40px;
  opacity: 0.06;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 20px; }
.hero-text h1 { margin-bottom: 24px; }
.hero-text h1 .accent-word { color: var(--primary); }
.hero-text h1 .accent-orange { color: var(--accent); }
.hero-text .lede { margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.stat .num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat .num .unit { font-size: 0.5em; color: var(--primary); font-weight: 600; }
.stat .label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--steel-300);
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Applications strip ============ */
.applications {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 64px 0;
}
.applications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px;
  border-right: 1px solid var(--ink-line);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.app-card:last-child { border-right: none; }
.app-card:hover { background: var(--ink-2); }
.app-card .app-icon {
  width: 48px; height: 48px;
  margin-bottom: 24px;
  color: var(--primary);
}
.app-card .app-num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel-500);
  letter-spacing: 0.15em;
}
.app-card .app-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}
.app-card .app-desc {
  font-size: 13px;
  color: var(--steel-300);
  line-height: 1.5;
}
.app-card .app-link {
  margin-top: 20px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ Products section (light) ============ */
.section-products {
  background: var(--steel-50);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head h2 { max-width: 14ch; }
.section-head .lede { margin-top: 16px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.product-card .card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  background: var(--ink);
  color: #fff;
  padding: 4px 8px;
  text-transform: uppercase;
}
.product-card .card-img {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F5F7 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}
.product-card .card-img svg { max-width: 100%; max-height: 100%; }
.product-card .card-body {
  padding: 20px 22px 24px;
  border-top: 1px solid var(--steel-100);
}
.product-card .card-model {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.product-card .card-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--steel-700);
}
.product-card .card-specs {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--steel-700);
}
.product-card .card-specs .spec-k {
  display: block;
  font-size: 10px;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

/* ============ Catalog filters ============ */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--steel-200);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--steel-300);
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-900);
  transition: all 0.12s;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.chip .count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel-500);
  background: var(--steel-100);
  padding: 1px 6px;
  border-radius: 999px;
}
.chip.active .count { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============ Product detail page ============ */
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--steel-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 24px 0;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }

.pdp-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.pdp-visual {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  padding: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-visual .pdp-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-500);
}
.pdp-visual .pdp-tag-r {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.pdp-info .eyebrow { color: var(--primary); margin-bottom: 16px; }
.pdp-info h1 {
  font-size: clamp(56px, 7vw, 96px);
  margin-bottom: 12px;
}
.pdp-info .pdp-sub {
  font-size: 18px;
  color: var(--steel-700);
  margin-bottom: 32px;
}

.spec-table {
  border-top: 1px solid var(--steel-200);
  margin: 24px 0;
}
.spec-table .row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--steel-200);
}
.spec-table .row .k {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.spec-table .row .v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.lengths-strip {
  margin: 24px 0;
  padding: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}
.lengths-strip .label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel-300);
  margin-bottom: 14px;
}
.lengths-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.length-pill {
  padding: 8px 14px;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  font-family: var(--f-mono);
  font-size: 14px;
  color: #fff;
  border-radius: 2px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.length-pill .u { font-size: 10px; color: var(--steel-500); }

/* ============ About hero ============ */
.about-hero {
  background: var(--ink);
  color: #fff;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 600px;
  height: 600px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M0 80 L50 40 L100 80' stroke='%231F6FEB' stroke-width='3' fill='none'/></svg>");
  background-size: 80px 80px;
  opacity: 0.08;
}
.about-hero h1 { max-width: 18ch; margin-bottom: 24px; }

/* ============ Generic content ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split-3 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.value-card {
  padding: 32px 28px;
  border: 1px solid var(--steel-200);
  background: #fff;
  border-radius: 4px;
}
.value-card .v-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.15em;
}
.value-card h3 { margin: 16px 0 12px; font-size: 22px; }
.value-card p { color: var(--steel-700); font-size: 15px; }

.timeline {
  margin-top: 48px;
  border-top: 1px solid var(--steel-200);
}
.timeline .item {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--steel-200);
  align-items: baseline;
}
.timeline .yr {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.timeline .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
}
.timeline .d {
  color: var(--steel-700);
  font-size: 15px;
}

/* ============ Contact ============ */
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 40px;
}
.contact-card h3 { color: #fff; margin-bottom: 24px; }
.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 36px; height: 36px;
  border-radius: 4px;
  border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-row .k {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel-300);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.contact-row .v { font-size: 16px; color: #fff; margin-top: 2px; }

.form-card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: 4px;
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.form-field input, .form-field textarea, .form-field select {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--steel-200);
  border-radius: 2px;
  background: var(--steel-50);
  color: var(--ink);
  transition: border-color 0.12s, background 0.12s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form-field textarea { min-height: 120px; resize: vertical; }

/* ============ Modal de orçamento + toast ============ */
.gs-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.gs-modal.is-open { display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.gs-modal__overlay { position: absolute; inset: 0; background: rgba(11,18,28,0.62); backdrop-filter: blur(2px); }
.gs-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-dark);
}
.gs-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none; background: transparent;
  font-size: 26px; line-height: 1;
  color: var(--steel-500);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.gs-modal__close:hover { color: var(--ink); background: var(--steel-100); }
@media (prefers-reduced-motion: no-preference) {
  .gs-modal.is-open .gs-modal__dialog { animation: gs-modal-in 0.24s cubic-bezier(0.22,1,0.36,1) both; }
}
@keyframes gs-modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

.gs-toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  z-index: 250;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.gs-toast--ok { background: var(--success); color: #fff; }
.gs-toast--err { background: #FDECEC; color: #A12121; border: 1px solid #F5B5B5; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-grid h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color 0.12s;
}
.footer-grid a:hover { color: var(--primary); }
.footer-brand { max-width: 280px; }
.footer-brand .custom-logo-link { display: inline-flex; align-items: center; }
.footer-brand .custom-logo { max-height: 48px; width: auto; height: auto; }
.footer-brand .blurb { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.6; margin: 16px 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--steel-500);
  letter-spacing: 0.04em;
}

/* ============ Util ============ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
}
.section-label .dot { width: 8px; height: 8px; background: var(--primary); }

.chevron-divider {
  display: block;
  width: 100%;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 6'><path d='M0 5 L20 1 L40 5' stroke='%231F6FEB' stroke-width='1.5' fill='none'/></svg>");
  background-size: 40px 6px;
  background-repeat: repeat-x;
  opacity: 0.5;
}

/* ============ Componentes utilitários (migrados de estilos inline) ============ */
.eyebrow-blue { color: var(--primary-300); }

/* Redes sociais do rodapé */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-300);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.footer-social a:hover { border-color: var(--primary-300); color: #fff; background: rgba(31,111,235,0.12); }

/* Faixa de CTA (laranja) */
.cta-strip { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.cta-strip .cta-eyebrow {
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.16em; opacity: 0.85;
}
.cta-strip h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 8px; color: #fff; }

/* ============ Movimento — reveals ao rolar (scroll-experience) ============ */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada do hero ao carregar (acima da dobra) */
  .has-motion .hero-text > * { animation: gs-rise 0.7s cubic-bezier(0.22,1,0.36,1) both; }
  .has-motion .hero-text > *:nth-child(1) { animation-delay: 0.05s; }
  .has-motion .hero-text > *:nth-child(2) { animation-delay: 0.13s; }
  .has-motion .hero-text > *:nth-child(3) { animation-delay: 0.21s; }
  .has-motion .hero-text > *:nth-child(4) { animation-delay: 0.29s; }
  .has-motion .hero-text > *:nth-child(5) { animation-delay: 0.37s; }
  .has-motion .hero-visual { animation: gs-fade 1s ease both 0.35s; }

  /* Reveal das seções ao entrar na viewport (JS adiciona .is-visible) */
  .has-motion .app-card,
  .has-motion .product-card,
  .has-motion .value-card,
  .has-motion .section-head,
  .has-motion .timeline .item,
  .has-motion .contact-card,
  .has-motion .form-card,
  .has-motion .lengths-strip,
  .has-motion .spec-table {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .has-motion .app-card.is-visible,
  .has-motion .product-card.is-visible,
  .has-motion .value-card.is-visible,
  .has-motion .section-head.is-visible,
  .has-motion .timeline .item.is-visible,
  .has-motion .contact-card.is-visible,
  .has-motion .form-card.is-visible,
  .has-motion .lengths-strip.is-visible,
  .has-motion .spec-table.is-visible {
    opacity: 1;
    transform: none;
  }
}
@keyframes gs-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes gs-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ Página "Quem Somos" (premium) ============ */
.about-overline {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel-300);
}
.about-overline::before { content: ""; width: 28px; height: 1px; background: var(--primary); }

.about-hero h1 .accent-word { color: var(--primary); }

/* Faixa de confiança no hero */
.hero-trust {
  margin-top: 52px; padding-top: 28px;
  border-top: 1px solid var(--ink-line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-trust .stat .num { font-size: clamp(26px, 3vw, 38px); }
.hero-trust .stat .label { margin-top: 6px; }

/* Pull quote da história */
.about-quote { margin-top: 40px; padding: 4px 0 4px 28px; border-left: 3px solid var(--primary); }
.about-quote p {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}
.about-quote .by { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--steel-500); }

/* Grade de métricas */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line); border-left: 1px solid var(--ink-line);
}
.metrics .stat { padding: 32px; border-right: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); transition: background 0.15s; }
.metrics .stat:hover { background: var(--ink-2); }
.metrics .stat .num { font-size: clamp(38px, 4.4vw, 60px); }

/* Princípios */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.principle-card {
  position: relative; padding: 36px 32px; background: #fff;
  border: 1px solid var(--steel-200); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.principle-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.principle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.principle-card:hover::before { transform: scaleX(1); }
.principle-card__icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.principle-card__icon svg { width: 26px; height: 26px; }
.principle-card__num { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; color: var(--steel-500); }
.principle-card h3 { margin: 10px 0 12px; font-size: 22px; }
.principle-card p { color: var(--steel-700); font-size: 15px; }

/* Prova de confiança + garantia */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.proof-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--steel-200); }
.proof-item:first-child { padding-top: 0; }
.proof-item .ck { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.proof-item .ck svg { width: 15px; height: 15px; }
.proof-item .tx strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 16px; margin-bottom: 3px; color: var(--ink); }
.proof-item .tx span { color: var(--steel-700); font-size: 14px; line-height: 1.5; }
.guarantee { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 40px 36px; }
.guarantee__motif { position: absolute; right: -70px; bottom: -70px; opacity: 0.06; pointer-events: none; }
.guarantee .eyebrow { color: var(--primary-300); margin-bottom: 14px; }
.guarantee h3 { color: #fff; font-size: clamp(23px, 2.4vw, 30px); margin-bottom: 14px; max-width: 20ch; position: relative; }
.guarantee p { color: var(--steel-300); font-size: 15px; position: relative; }
.guarantee .sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-500); position: relative; }

/* Timeline premium */
.tl { margin-top: 48px; position: relative; border-top: 1px solid var(--steel-200); }
.tl::before { content: ""; position: absolute; left: 150px; top: 0; bottom: 0; width: 1px; background: var(--steel-200); }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--steel-200); position: relative; }
.tl-item::after { content: ""; position: absolute; left: 150px; top: 38px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--primary-tint); }
.tl-year { font-family: var(--f-display); font-weight: 800; font-size: 34px; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.tl-body { padding-left: 24px; }
.tl-t { font-family: var(--f-display); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.tl-d { color: var(--steel-700); font-size: 15px; max-width: 64ch; }

/* CTA premium */
.about-cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding: 64px 0; }
.about-cta::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'><path d='M0 30 L40 10 L80 30' stroke='white' stroke-width='2' fill='none'/></svg>");
  background-size: 80px 40px;
}
.about-cta .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.about-cta .cta-eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.85; }
.about-cta h2 { font-size: clamp(28px, 3vw, 42px); margin-top: 8px; color: #fff; max-width: 20ch; }

@media (max-width: 900px) {
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; gap: 32px; }
  .tl::before { left: 92px; }
  .tl-item { grid-template-columns: 92px 1fr; gap: 20px; }
  .tl-item::after { left: 92px; }
  .tl-year { font-size: 26px; }
  .tl-body { padding-left: 18px; }
}
@media (max-width: 520px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .tl::before, .tl-item::after { display: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  :root { --section-y: 80px; }
  .container, .container-narrow { padding: 0 20px; }

  /* Colunas colapsam */
  .hero-grid, .pdp-grid, .split, .split-3, .section-head { grid-template-columns: 1fr; }
  .applications-grid { grid-template-columns: 1fr 1fr; }
  .app-card:nth-child(2n) { border-right: none; }
  .app-card { border-bottom: 1px solid var(--ink-line); }
  .products-grid, .catalog-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 24px; }
  .timeline .item { grid-template-columns: 80px 1fr; }
  .timeline .d { grid-column: 1 / -1; }

  /* Rodapé em 2 colunas; marca ocupa a linha toda */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }

  /* Hero mais compacto */
  .hero { min-height: auto; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .hero-grid { gap: 40px; }

  /* Heros internos (sobrepõe padding inline) */
  .about-hero { padding: 96px 0 56px !important; }

  /* Cards com menos respiro */
  .contact-card, .form-card { padding: 28px 24px; }
  .pdp-visual { padding: 36px; }

  /* ===== Menu mobile (hambúrguer) ===== */
  .nav-toggle { display: flex; }
  .header-collapse {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px 0 16px;
    background: var(--ink-2);
    border-top: 1px solid var(--ink-line);
    border-bottom: 1px solid var(--ink-line);
    box-shadow: var(--shadow-dark);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .site-header.nav-open .header-collapse { display: flex; }
  .main-nav, ul.main-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav a { width: 100%; padding: 14px 20px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .main-nav a.active::after { display: none; }
  .header-cta { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px 0; }
  .header-phone { justify-content: flex-start; font-size: 14px; color: rgba(255,255,255,0.85); }
  .header-cta .btn { width: 100%; justify-content: center; padding: 14px 18px !important; }
}

@media (max-width: 600px) {
  :root { --section-y: 56px; }
  .container, .container-narrow { padding: 0 16px; }

  .applications-grid, .products-grid, .catalog-grid, .value-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  /* Tipografia mais contida no celular */
  .display-xxl { font-size: clamp(40px, 12vw, 60px); }
  .display-xl  { font-size: clamp(34px, 10vw, 52px); }
  .display-lg  { font-size: clamp(30px, 8.5vw, 44px); }
  .display-md  { font-size: clamp(26px, 7vw, 36px); }
  h1 { font-size: clamp(32px, 8.5vw, 44px); }
  h2 { font-size: clamp(26px, 7vw, 36px); }
  .lede { font-size: 17px; }
  .pdp-info h1 { font-size: clamp(44px, 14vw, 64px); }

  /* CTAs em largura total */
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }

  /* Espaçamentos internos */
  .applications { padding: 56px 0; }
  .app-card { padding: 24px 20px; }
  .contact-card, .form-card { padding: 22px 18px; }
  .site-footer { padding: 56px 0 28px; }
  .about-hero { padding: 84px 0 44px !important; }

  /* Rodapé: bottom empilhado */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* ============ Density variants (Tweaks) ============ */
[data-density="compact"] {
  --section-y: 64px;
}
[data-density="spacious"] {
  --section-y: 144px;
}

/* Hero layout variants */
[data-hero-layout="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; }
[data-hero-layout="centered"] .hero-text .lede { margin-left: auto; margin-right: auto; }
[data-hero-layout="centered"] .hero-cta-row { justify-content: center; }
[data-hero-layout="centered"] .hero-visual { display: none; }
[data-hero-layout="centered"] .hero-stats { max-width: 800px; margin-left: auto; margin-right: auto; }

[data-hero-layout="full-image"] .hero-visual { display: none; }
[data-hero-layout="full-image"] .hero-grid { grid-template-columns: 1fr; max-width: 720px; }
[data-hero-layout="full-image"] .hero::before { opacity: 0.85; }

/* Font variants */
[data-font-pair="condensed"] {
  --f-display: "Saira Condensed", "Archivo Narrow", system-ui, sans-serif;
}
[data-font-pair="rounded"] {
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Sora", system-ui, sans-serif;
}
[data-font-pair="serif"] {
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
}

/* ============ WordPress — fotos reais e conteúdo ============ */
/* Foto real do produto (imagem destacada) dentro do card */
.product-card .card-img img,
.product-card .card-img .gs-product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.pdp-visual img,
.pdp-visual .gs-product-photo {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* Conteúdo genérico de páginas/posts */
.gs-content { padding: 64px 0; font-size: 17px; color: var(--steel-900); }
.gs-content h2 { margin: 40px 0 16px; }
.gs-content h3 { margin: 32px 0 12px; }
.gs-content p { margin-bottom: 18px; }
.gs-content ul, .gs-content ol { margin: 0 0 18px 1.2em; }
.gs-content li { margin-bottom: 8px; }
.gs-content a { color: var(--primary); text-decoration: underline; }
.gs-content img { border-radius: 4px; margin: 24px 0; }

/* Custom logo no header */
.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo { max-height: 44px; width: auto; }

/* Paginação */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--steel-300); font-family: var(--f-mono); font-size: 14px;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* WordPress admin bar não quebra o header sticky */
@media screen and (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}
