/* ============================================
   MG Uniformes Bordados — Stylesheet
   Preto & Branco · Montserrat
   ============================================ */

:root {
  --black: #0a0a0a;
  --ink: #141414;
  --graphite: #2a2a2a;
  --mid: #6b6b6b;
  --line: #e6e6e6;
  --paper: #f5f5f3;
  --white: #ffffff;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.skip-nav { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-nav:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; padding: 8px 16px; background: var(--white); color: var(--black); font-size: 14px; font-weight: 700; z-index: 10000; outline: 3px solid var(--black); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-brand__name { font-weight: 700; font-size: 15px; color: var(--white); margin-bottom: 8px; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
   scroll-behavior: smooth; }

body {
  overflow-x: hidden;
  
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand__text {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.brand__text small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--mid);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  padding: 6px 0;
  position: relative;
  transition: color .2s var(--ease);
}

.nav a:hover { color: var(--black); }

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--black);
}

a.nav-phone, .nav-phone {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--black);
  padding-left: 24px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: var(--black);
  color: var(--white);
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .nav.open { max-height: 600px; }
  .nav a {
    padding: 18px var(--gutter);
    border-top: 1px solid var(--line);
  }
  .nav a.active::after, .nav a:hover::after { display: none; }
  a.nav-phone, .nav-phone {
    padding: 18px var(--gutter);
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--black);
    color: var(--white);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gutter);
  align-items: stretch;
  min-height: clamp(420px, 52vh, 580px);
}

.hero__copy {
  padding: clamp(36px, 5vw, 64px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  display: inline-block;
  border-bottom: 4px solid var(--white);
  padding-bottom: 4px;
}

.hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  max-width: 46ch;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__media {
  position: relative;
  background: var(--black);
  border-left: none;
  overflow: hidden;
}

.hero__stats {
  position: absolute;
  left: 32px;
  bottom: 32px;
  right: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  z-index: 2;
}

.hero__stat .num {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
}

.hero__stat .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 8px;
  color: rgba(255,255,255,0.65);
  display: block;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 320px; border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: all .2s var(--ease);
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--white);
  color: var(--black);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
}

.btn--light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn--light:hover {
  background: transparent;
  color: var(--white);
}

.btn svg { width: 14px; height: 14px; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: clamp(48px, 6vw, 88px) 0; }
section.tight { padding: clamp(36px, 4.5vw, 64px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.section-head .eyebrow { color: var(--graphite); opacity: 1; }
.section-head .eyebrow::before { background: var(--black); }

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--mid);
  max-width: 58ch;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ============================================
   SEGMENT GRID (produtos / serviços)
   ============================================ */
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.segment {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .25s var(--ease);
  position: relative;
}

.segment:hover { background: var(--black); color: var(--white); }
.segment:hover .segment__num { color: rgba(255,255,255,0.4); }
.segment:hover .segment__arrow { transform: translateX(6px); }

.segment--dark { background: var(--black); color: var(--white); }
.segment--dark .segment__num { color: rgba(255,255,255,0.4); }
.segment--dark p { color: rgba(255,255,255,0.7); }
.segment--dark .segment__media { background: #1a1a1a; }

.segment__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--mid);
  transition: color .25s var(--ease);
}

.segment__media {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  margin: 4px 0 12px;
  position: relative;
  overflow: hidden;
}

.segment:hover .segment__media { background: #1a1a1a; }

.segment h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.segment p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
}

.segment:hover p { color: rgba(255,255,255,0.7); }

.segment__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: transform .25s var(--ease);
}

.segment__arrow svg { width: 16px; height: 16px; }

@media (max-width: 1100px) { .segments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .segments { grid-template-columns: 1fr; } }

/* ============================================
   PLACEHOLDER (sem fotos reais ainda)
   ============================================ */
.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.04) 14px 15px),
    var(--paper);
  color: var(--mid);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.placeholder--dark {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 15px),
    #1a1a1a;
  color: rgba(255,255,255,0.5);
}

.placeholder span { max-width: 70%; line-height: 1.5; }

/* ============================================
   FEATURE / DIFERENCIAIS
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature:last-child { border-right: 0; }

.feature__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg { width: 22px; height: 22px; stroke: var(--black); fill: none; stroke-width: 1.6; }

.feature h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.feature p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(1), .feature:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
}

/* ============================================
   PROCESS / ETAPAS
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  padding-top: 24px;
  border-top: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.step h4 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.step p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}

/* ============================================
   ABOUT SPLIT
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.split__media {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  position: relative;
}

.split__copy h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-wrap: balance;
}

.split__copy p {
  font-size: 16px;
  color: var(--graphite);
  margin-bottom: 18px;
  line-height: 1.7;
  max-width: 56ch;
}

.split__copy .eyebrow { color: var(--graphite); opacity: 1; margin-bottom: 20px; }
.split__copy .eyebrow::before { background: var(--black); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 9vw, 120px) 0;
}

.cta-banner__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gutter);
  align-items: center;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.cta-banner p {
  margin-top: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  max-width: 50ch;
}

.cta-banner__contact {
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: var(--gutter);
}

.cta-banner__contact .label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 8px;
}

.cta-banner__contact .phone {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 24px;
}

@media (max-width: 860px) {
  .cta-banner__inner { grid-template-columns: 1fr; }
  .cta-banner__contact { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 32px; }
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 12vw, 160px) 0 clamp(40px, 9vw, 120px);
  border-bottom: 1px solid #1f1f1f;
}

.page-hero__crumbs {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
}

.page-hero__crumbs a { color: rgba(255,255,255,0.7); }
.page-hero__crumbs a:hover { color: var(--white); }

.page-hero h1 {
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

.page-hero__lead {
  margin-top: 28px;
  font-size: clamp(16px, 1.4vw, 19px);
  max-width: 90ch;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.product-grid__media .placeholder {
  aspect-ratio: 4 / 5;
}

.product-grid__copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.product-grid__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 16px;
}

.spec-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 18px;
}

.spec-list dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* gallery of product variants */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  background: var(--white);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile__media {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.tile__media img { transition: transform 0.45s var(--ease); }

a.tile { text-decoration: none; color: inherit; }
a.tile:hover .tile__media img { transform: scale(1.04); }

.tile h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.tile p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.55;
}

.tile__cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 860px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tile-grid { grid-template-columns: 1fr; } }

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.legal h2:first-of-type { margin-top: 0; }

.legal p, .legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
  margin-bottom: 14px;
}

.legal ul { padding-left: 22px; margin-bottom: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
}

.footer-brand h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 36ch;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color .2s var(--ease);
}

.footer-col a:hover { color: var(--white); }

.footer-col p { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }

.footer-col .phone-large {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-top: 4px;
  display: block;
}

.site-footer__bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__bottom a { color: rgba(255,255,255,0.7); }
.site-footer__bottom a:hover { color: var(--white); }

.site-footer .footer-map {
  display: block;
  margin-top: 40px;
  padding-bottom: 0;
  border-bottom: 0;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: 12px;
  filter: grayscale(0.25) contrast(1.05);
}

@media (max-width: 860px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-map iframe { height: 220px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
}

.faq__intro h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.faq__intro p {
  font-size: 15px;
  color: var(--mid);
  margin-top: 20px;
  line-height: 1.6;
}

.faq__intro .eyebrow {
  color: var(--graphite);
  opacity: 1;
  margin-bottom: 24px;
}
.faq__intro .eyebrow::before { background: var(--black); }

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 26px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color .2s var(--ease);
}

.faq__q:hover { color: var(--black); }

.faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}

.faq__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  transition: transform .25s var(--ease);
}

.faq__item[open] .faq__icon {
  background: var(--black);
  color: var(--white);
}

.faq__item[open] .faq__icon svg {
  transform: rotate(45deg);
}

.faq__a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--graphite);
  padding: 0 80px 28px 0;
  max-width: 64ch;
}

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__a { padding-right: 48px; }
}

/* ============================================
   WORK / GALLERY EDITORIAL
   ============================================ */
.work {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

.work__tile {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

/* Editorial asymmetric layout */
.work__tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.work__tile:nth-child(2) { grid-column: span 2; }
.work__tile:nth-child(3) { grid-column: span 2; }
.work__tile:nth-child(4) { grid-column: span 2; }
.work__tile:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.work__tile:nth-child(6) { grid-column: span 2; }

.work__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  padding: 6px 10px;
  z-index: 2;
}

@media (max-width: 860px) {
  .work { grid-template-columns: repeat(2, 1fr); }
  .work__tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .work__tile:nth-child(1) { grid-column: span 2; }
}

/* ============================================
   MOSAIC PHOTO GRID
   ============================================ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mosaic__item {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--paper);
}
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.45s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.04); }
/* Feature: 2 colunas × 2 linhas */
.mosaic__item--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
}
/* Wide: 2 colunas × 1 linha */
.mosaic__item--wide {
  grid-column: span 2;
  aspect-ratio: 8/5;
}
/* Full: faixa de rodapé, ocupa todas as 4 colunas */
.mosaic__item--full {
  grid-column: span 4;
  aspect-ratio: 21/9;
}
@media (max-width: 768px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .mosaic__item--feature { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/5; }
  .mosaic__item--wide { grid-column: span 2; aspect-ratio: 4/3; }
  .mosaic__item--full { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ============================================
   FEATURED PRODUCT (Mustang)
   ============================================ */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.featured__media {
  position: relative;
  background: var(--paper);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: opacity .35s var(--ease);
}

.featured__media .tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--black);
  color: var(--white);
  padding: 8px 12px;
  z-index: 2;
}

.featured__view-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  z-index: 2;
}

.view-btn {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--mid);
  transition: all .2s var(--ease);
}

.view-btn.is-active {
  background: var(--black);
  color: var(--white);
}

.view-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.featured__caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  z-index: 2;
}

.featured__copy .eyebrow {
  color: var(--graphite);
  opacity: 1;
  margin-bottom: 24px;
}
.featured__copy .eyebrow::before { background: var(--black); }

.featured__copy h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 24px;
}

.featured__copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--graphite);
  margin-bottom: 16px;
  max-width: 54ch;
}

.featured__swatches {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.featured__swatches-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
}

.swatches {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
}

.swatch__chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all .2s var(--ease);
  position: relative;
}

.swatch:hover .swatch__chip {
  transform: scale(1.06);
}

.swatch.is-active .swatch__chip {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--white) inset;
}

.swatch__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}

.swatch.is-active .swatch__label { color: var(--black); }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
}

/* ============================================
   VIDEO SHOWCASE — horizontal em cima + shorts verticais abaixo
   (usado em index.html via .video-grid e nas sub-páginas via .vid-mosaic)
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.video-grid .video-tile:nth-child(1) {
  grid-column: span 3;
}
.video-grid .video-tile:nth-child(1) .video-iframe {
  aspect-ratio: 16/9;
  height: auto;
}

.video-tile {
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.video-iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
  border: 0;
  display: block;
}

.video-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.85);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

@media (max-width: 860px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-grid .video-tile:nth-child(1) {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .video-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .video-grid .video-tile:nth-child(1) { grid-column: span 2; }
}

/* hero overlay para fotos reais */
.hero__media-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.55) 100%);
}

.page-hero-photo {
  position: relative;
  overflow: hidden;
}
.page-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.page-hero-photo > .container { position: relative; z-index: 1; }

/* ============================================
   VIDEO SHOWCASE — páginas de segmento
   3 Shorts em grid editorial fundo escuro
   ============================================ */
.vid-section {
  background: var(--black);
  color: var(--white);
  padding: clamp(48px, 10vw, 140px) 0;
}

.vid-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: clamp(40px, 6vw, 64px);
}

.vid-section__head h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 16px;
  color: var(--white);
  text-wrap: balance;
}

.vid-section__head p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  max-width: 48ch;
  line-height: 1.65;
  align-self: flex-end;
}

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

.vid-item { position: relative; }

.vid-item__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,0.82);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

.vid-item__frame {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 */
  height: 0;
  overflow: hidden;
  background: #111;
}

.vid-item__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .vid-grid { grid-template-columns: repeat(2, 1fr); }
  .vid-grid .vid-item:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .vid-grid { grid-template-columns: 1fr; }
  .vid-grid .vid-item:nth-child(2),
  .vid-grid .vid-item:nth-child(3) { display: none; }
  .vid-section__head { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   UTIL
   ============================================ */
.muted { color: var(--mid); }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: fadeUp .8s var(--ease) both; }

/* ============================================
   ANIMATIONS — KEYFRAMES
   ============================================ */

@keyframes mg-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@keyframes mg-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mg-slideRight {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes mg-slideLeft {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   ANIMATIONS — HERO LOAD (index)
   ============================================ */

.hero__copy .eyebrow {
  animation: mg-slideRight .55s cubic-bezier(.22,1,.36,1) .08s both;
}
.hero__copy h1 {
  animation: mg-fadeUp .7s cubic-bezier(.22,1,.36,1) .2s both;
}
.hero__copy p:not(.eyebrow) {
  animation: mg-fadeUp .65s cubic-bezier(.22,1,.36,1) .34s both;
}
.hero__copy .hero__cta {
  animation: mg-fadeUp .55s cubic-bezier(.22,1,.36,1) .48s both;
}
.hero__media {
  animation: mg-slideLeft .8s cubic-bezier(.22,1,.36,1) .14s both;
}
.hero__stat:nth-child(1) { animation: mg-fadeUp .5s cubic-bezier(.22,1,.36,1) .52s both; }
.hero__stat:nth-child(2) { animation: mg-fadeUp .5s cubic-bezier(.22,1,.36,1) .64s both; }
.hero__stat:nth-child(3) { animation: mg-fadeUp .5s cubic-bezier(.22,1,.36,1) .76s both; }

/* ============================================
   ANIMATIONS — PAGE HERO LOAD (sub-páginas)
   ============================================ */

.page-hero .page-hero__crumbs {
  animation: mg-fadeUp .45s cubic-bezier(.22,1,.36,1) .05s both;
}
.page-hero .eyebrow {
  animation: mg-slideRight .5s cubic-bezier(.22,1,.36,1) .15s both;
}
.page-hero h1 {
  animation: mg-fadeUp .65s cubic-bezier(.22,1,.36,1) .28s both;
}
.page-hero .page-hero__lead {
  animation: mg-fadeUp .6s cubic-bezier(.22,1,.36,1) .42s both;
}

/* ============================================
   ANIMATIONS — SCROLL-REVEAL (.sr → .visible)
   ============================================ */

.sr {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}

.sr.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   ANIMATIONS — TILE HOVER LIFT
   ============================================ */

.tile {
  transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease;
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.1);
}

/* ============================================
   ANIMATIONS — HEADER SCROLL BEHAVIOUR
   ============================================ */

.site-header {
  transition: background .3s ease, box-shadow .3s ease, transform .35s cubic-bezier(.22,1,.36,1);
}
.site-header.header--scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.site-header.header--hidden {
  transform: translateY(-100%);
}

/* ============================================
   ANIMATIONS — BTN HOVER LIFT
   ============================================ */

.btn--primary:hover,
.btn--ghost:hover {
  transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS — NAV UNDERLINE SMOOTH
   ============================================ */

.nav a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav a:hover::before { width: 100%; }

/* ============================================
   ANIMATIONS — SEGMENT CARD HOVER
   ============================================ */

.segment__item {
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.segment__item:hover {
  transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS — VID-ITEM HOVER GLOW
   ============================================ */

.vid-item__frame {
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.vid-item:hover .vid-item__frame {
  transform: scale(1.015);
}

/* Smooth scroll global */
html {
  overflow-x: hidden;
   scroll-behavior: smooth; }

/* ============================================
   VID-MOSAIC — 1 horizontal em cima + shorts verticais embaixo
   ============================================ */
.vid-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vid-mosaic .video-tile:first-child {
  grid-column: span 3;
}
.vid-mosaic .video-tile:first-child .video-iframe {
  aspect-ratio: 16/9;
  height: auto;
}
@media (max-width: 860px) {
  .vid-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .vid-mosaic .video-tile:first-child {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .vid-mosaic {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .vid-mosaic .video-tile:first-child {
    grid-column: span 2;
  }
}

/* ============================================
   MOBILE UX — ajustes responsivos
   ============================================ */

/* Link ativo visível no menu mobile */
@media (max-width: 1100px) {
  .nav a.active {
    font-weight: 800;
    color: var(--black);
    background: var(--paper);
  }
}

/* Swatches: área de toque mínima 44px */
@media (max-width: 860px) {
  .swatch {
    min-height: 44px;
    justify-content: center;
    padding: 6px 10px;
  }
}

/* Tile media: 4:3 em vez de 1:1 no mobile — economiza rolagem */
@media (max-width: 520px) {
  .tile__media {
    aspect-ratio: 4 / 3;
  }
}

/* Botões CTA no hero: largura total em telas pequenas */
@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    justify-content: center;
    text-align: center;
  }
}

/* Hero stats: fonte menor em telas muito pequenas */
@media (max-width: 480px) {
  .hero__stats {
    left: 16px;
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .hero__stat .num {
    font-size: clamp(20px, 5.5vw, 28px);
  }
  .hero__stat .label {
    font-size: 9px;
    letter-spacing: 0.16em;
  }
}

/* Padding interno menor em cards pequenos */
@media (max-width: 480px) {
  .feature { padding: 28px 20px; }
  .segment { padding: 32px 20px; }
}

/* FAQ: padding-right desnecessário em tela estreita */
@media (max-width: 480px) {
  .faq__a { padding-right: 16px; }
  .faq__q { font-size: 15px; }
}

/* Cookie banner: padding lateral reduzido */
@media (max-width: 520px) {
  #cookieBanner { padding: 16px 20px !important; }
}

/* Fonte do h1 nas sub-páginas em telas muito pequenas */
@media (max-width: 380px) {
  .page-hero h1 { font-size: 34px; letter-spacing: -0.025em; }
  .hero h1 { font-size: 34px; }
}

/* ============================================
   OTIMIZAÇÃO DE CORE WEB VITALS E PERFORMANCE B2B
   ============================================ */

/* 1. YouTube Facade Style */
.video-facade {
  position: relative;
  background-color: var(--black);
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: filter 0.25s var(--ease);
}
.video-facade:hover {
  filter: brightness(1.1);
}
.video-facade svg {
  width: 68px;
  height: 48px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  z-index: 3;
}
.video-facade:hover svg {
  transform: scale(1.1);
  opacity: 1;
}

/* 2. Modal Overlay & Content */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 16px;
}
.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--white);
  color: var(--black);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 5vw, 44px);
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--black);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(24px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--black);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease);
  z-index: 10;
}
.modal-close:hover {
  opacity: 1;
}
.modal-close svg {
  width: 20px;
  height: 20px;
}

/* 3. Form Steps & Inputs */
.modal-content h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.modal-content .modal-subtitle {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
  line-height: 1.4;
}
.form-step {
  display: none;
}
.form-step.is-active {
  display: block;
  animation: modalFadeIn 0.25s var(--ease);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
}
.form-group label span {
  color: #ff3333;
}
.form-input, .form-select {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.form-input:focus, .form-select:focus {
  border-color: var(--black);
  background: var(--white);
}
.form-input.is-invalid {
  border-color: #ff3333;
}
.form-error-msg {
  color: #ff3333;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* Steps Indicator */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}
.form-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 1;
  transform: translateY(-50%);
}
.form-progress__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--black);
  z-index: 1;
  transform: translateY(-50%);
  transition: width 0.3s var(--ease);
}
.form-progress__step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--mid);
  position: relative;
  z-index: 2;
  transition: all 0.3s var(--ease);
}
.form-progress__step.is-active {
  border-color: var(--black);
  color: var(--black);
  font-weight: 800;
}
.form-progress__step.is-complete {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Navigation Buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.form-nav .btn {
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.form-nav .btn-back {
  background: transparent;
  color: var(--black);
  border-color: var(--line);
}
.form-nav .btn-back:hover {
  border-color: var(--black);
  background: var(--paper);
}
.form-nav .btn-next {
  margin-left: auto;
}

/* Fallback & Success UI styles */
.form-success-state, .form-error-fallback {
  text-align: center;
  padding: 16px 0;
  animation: modalFadeIn 0.3s var(--ease);
}
.form-success-state svg, .form-error-fallback h3 {
  margin-bottom: 16px;
}
.form-success-state p, .form-error-fallback p {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.55;
  margin-bottom: 24px;
}
.form-success-state h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.form-error-fallback h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}
.form-success-state .btn-close-modal {
  margin-top: 8px;
}

/* Exit intent popup trigger on mobile scroll helper */
.exit-triggered-marker {
  display: none;
}

/* ============================================================
   SYSTEM PREMIUM DE CAPTURA E QUALIFICAÇÃO DE LEADS B2B
   ============================================================ */

/* 1. Botão Flutuante do WhatsApp com Pulso GPU-Friendly */
.btn-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
  z-index: 999;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(.2, .7, .2, 1);
  text-decoration: none;
}

.btn-whatsapp-float:hover {
  transform: scale(1.08) translate3d(0, -2px, 0);
}

.btn-whatsapp-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #25d366;
  opacity: 0;
  will-change: transform, opacity;
  animation: whatsapp-pulse-gpu 2s cubic-bezier(.16, 1, .3, 1) infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes whatsapp-pulse-gpu {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.45) translate3d(0, 0, 0);
    opacity: 0;
  }
}

/* 2. Modal Overlay B2B de Qualificação */
.q-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.2, .7, .2, 1), visibility 0.35s;
  padding: 20px;
  will-change: opacity;
}

.q-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.q-modal-content {
  background: var(--white);
  color: var(--black);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 40px);
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--black);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  transform: translate3d(0, 24px, 0);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}

.q-modal-overlay.is-active .q-modal-content {
  transform: translate3d(0, 0, 0);
}

/* Botão Fechar Modal */
.q-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  color: var(--black);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.q-modal-close:hover {
  opacity: 1;
}

.q-modal-close svg {
  width: 20px;
  height: 20px;
}

/* Barra de Progresso */
.q-progress-bar {
  height: 3px;
  background: var(--line);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.q-progress-fill {
  height: 100%;
  background: var(--black);
  width: 33.33%;
  transition: width 0.35s cubic-bezier(.2, .7, .2, 1);
}

/* Etapas e Formulário */
.q-step {
  display: none;
}

.q-step.is-active {
  display: block;
  animation: qFadeIn 0.35s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes qFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.q-title {
  font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.2;
}

.q-subtitle {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
  line-height: 1.45;
}

.q-form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q-form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.q-form-group label span {
  color: #ff3333;
}

.q-input {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  min-height: 46px; /* Acessibilidade tap targets */
}

.q-input:focus {
  border-color: var(--black);
  background: var(--white);
}

.q-input.is-invalid {
  border-color: #e65c00;
  background: rgba(230, 92, 0, 0.03);
}

/* 3. Seletores e Botões de Opção Exclusivos (Chips) */
.q-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.q-option {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  line-height: 1.4;
  color: var(--graphite);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  min-height: 48px; /* Target de toque móvel premium */
  width: 100%;
}

.q-option:hover {
  border-color: var(--black);
  background: rgba(0, 0, 0, 0.02);
}

.q-option.is-selected {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Ações de Navegação */
.q-nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius);
  min-height: 46px;
  flex: 1;
}

.q-btn:disabled {
  cursor: not-allowed;
}

.q-btn-back {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 46px;
}

.q-btn-back:hover {
  border-color: var(--black);
  background: var(--paper);
}

/* 4. Efeito Hover Shimmer para Botões Principais */
.q-btn-shimmer {
  position: relative;
  overflow: hidden;
}

.q-btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: none;
}

.q-btn-shimmer:hover::after {
  left: 150%;
  transition: left 0.85s cubic-bezier(.2, .7, .2, 1);
}

/* 5. Link de Bypass */
.q-bypass-container {
  text-align: center;
  margin-top: 24px;
}

.q-bypass-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--mid);
  text-decoration: underline;
  transition: color 0.2s ease;
  padding: 6px 12px;
  display: inline-block;
}

.q-bypass-link:hover {
  color: var(--black);
}

/* Responsividade de Dispositivos Móveis */
@media (max-width: 480px) {
  .q-modal-content {
    padding: 24px 20px;
    max-height: 95vh;
  }
  .q-nav-actions {
    flex-direction: column;
    gap: 8px;
  }
  .q-btn, .q-btn-back {
    width: 100%;
  }
  .q-btn {
    order: 1;
  }
  .q-btn-back {
    order: 2;
  }
}



.site-footer__legal {
  display: block !important;
  width: 100% !important;
  margin: 0 auto;
}

/* ============================================
   BLOG & ARTICLE COMPONENTS
   Identidade Preto & Branco · Montserrat
   ============================================ */

/* Filtros de Categoria */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.blog-filter__btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s var(--ease);
}

.blog-filter__btn:hover {
  color: var(--black);
  border-color: var(--black);
  background: var(--white);
}

.blog-filter__btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Artigo em Destaque (Featured) */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 72px);
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.blog-featured:hover {
  border-color: var(--black);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.blog-featured__media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--black);
}

.blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}

.blog-featured:hover .blog-featured__img {
  transform: scale(1.03);
}

.blog-featured__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.2);
}

.blog-featured__body {
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.blog-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-meta span.dot {
  opacity: 0.5;
}

.blog-featured__title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  transition: color .2s var(--ease);
}

.blog-featured:hover .blog-featured__title {
  color: var(--black);
}

.blog-featured__desc {
  font-size: 15px;
  line-height: 1.65;
  color: #4a4a4a;
}

.blog-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--black);
  margin-top: 8px;
}

.blog-cta-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s var(--ease);
}

.blog-featured:hover .blog-cta-link svg,
.blog-card:hover .blog-cta-link svg {
  transform: translateX(5px);
}

/* Grid de Artigos */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 40px);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--black);
  box-shadow: 0 16px 36px rgba(0,0,0,0.06);
}

.blog-card__media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--paper);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius);
  z-index: 2;
}

.blog-card__body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  gap: 14px;
}

.blog-card__title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color .2s var(--ease);
}

.blog-card:hover .blog-card__title {
  color: var(--black);
}

.blog-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Responsividade do Blog */
@media (max-width: 960px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__media {
    min-height: 280px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-filter {
    gap: 8px;
  }
  .blog-filter__btn {
    padding: 8px 14px;
    font-size: 10px;
  }
}

/* ============================================
   ARTIGO ESPECÍFICO (LAYOUT EDITORIAL)
   ============================================ */
.article-layout {
  padding: clamp(48px, 6vw, 96px) 0;
}

.article-container {
  max-width: 820px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-header .eyebrow {
  color: var(--graphite);
  opacity: 1;
  margin-bottom: 16px;
}
.article-header .eyebrow::before {
  background: var(--black);
}

.article-header h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--black);
  text-wrap: balance;
}

.article-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--graphite);
  font-weight: 500;
  border-left: 3px solid var(--black);
  padding-left: 20px;
  margin-bottom: 28px;
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--mid);
  padding-top: 16px;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.article-author-name {
  font-weight: 700;
  color: var(--ink);
}

.article-author-role {
  font-size: 11px;
  color: var(--mid);
}

.article-hero-media {
  margin-bottom: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.article-hero-media img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #242424;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 48px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.article-content h3 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 14px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px 24px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-content strong {
  font-weight: 700;
  color: var(--black);
}

.article-callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--black);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
}

.article-callout h4 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--black);
}

.article-callout p:last-child {
  margin-bottom: 0;
}

/* Tabela Comparativa do Artigo */
.article-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--white);
}

.article-table th {
  background: var(--black);
  color: var(--white);
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.article-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.article-table tr:nth-child(even) td {
  background: var(--paper);
}

/* Compartilhamento e Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: var(--radius);
}

/* CTA Box no Final do Artigo */
.article-cta-box {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.article-cta-box h3 {
  color: var(--white);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.article-cta-box p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}

/* ==========================================================================
   KILL BROKEN GLYPHS / FONT ICONS (TOFU / MISSING CHARS FROM EXTERNAL SCRIPTS)
   ========================================================================== */
[class*="fa-"]::before,
[class*="fa-"]::after,
.fa::before,
.fa::after,
.fa-whatsapp::before,
.fa-whatsapp::after,
.btnatendimento::before,
.btnatendimento::after,
.phone::before,
.phone::after,
.phone-large::before,
.phone-large::after,
.nav-phone::before,
.nav-phone::after,
.q-btn::before,
.q-btn::after,
.q-bypass-link::before,
.q-bypass-link::after {
  content: none !important;
  display: none !important;
}


