/* =====================================================
   MÉRITO GALARDOADO — Sistema base + 3 variações
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ------- tokens base (default = editorial) ------- */
:root {
  --gold: #C9A24B;
  --gold-soft: #E4C583;
  --gold-deep: #96762E;

  --bg: #0E0E0E;
  --bg-2: #161616;
  --surface: #1B1B1B;
  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.45);
  --text: #F4EFE4;
  --text-dim: #B7B0A2;
  --text-mute: #6D665A;

  --serif: "Playfair Display", "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

em { font-style: italic; color: var(--gold); font-family: var(--serif); font-weight: 500; }
::selection { background: var(--gold); color: #111; }

/* =====================================================
   HEADER
   ===================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 100;
  transition: all .3s var(--ease);
}
#site-header.scrolled {
  background: rgba(251,247,238,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex; align-items: center; gap: 32px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.brand-logo {
  height: 92px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease), height .3s var(--ease);
}
/* Fallback caso as imagens do logo não carreguem (ex: erro no upload/servidor).
   Aparece automaticamente se os <img> falharem via onerror. */
.brand-fallback {
  display: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand:hover .brand-logo { transform: translateY(-2px) scale(1.02); }

/* Alternância light/dark do logo consoante fundo da variação */
.brand-logo-dark, .brand-logo-light { display: none; }
/* Editorial (fundo escuro) → logo com texto claro */
body[data-variation="editorial"] .brand-logo-light { display: block; }
/* Dynamic e Industrial (fundos claros) → logo com texto escuro */
body[data-variation="dynamic"] .brand-logo-dark,
body[data-variation="industrial"] .brand-logo-dark { display: block; }

/* Header fica mais compacto quando scrolla — logo diminui um pouco */
#site-header.scrolled .brand-logo {
  height: 64px;
}

@media (max-width: 700px) {
  .brand-logo { height: 60px; }
  #site-header.scrolled .brand-logo { height: 48px; }
}

#site-header nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
#site-header nav a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 100px;
  transition: color .2s;
  position: relative;
}
#site-header nav a:hover { color: var(--text); }
#site-header nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease), left .3s var(--ease);
}
#site-header nav a:hover::after { width: 20px; left: calc(50% - 10px); }

.cta {
  padding: 10px 20px;
  background: var(--gold);
  color: #111;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  transition: transform .2s var(--ease), box-shadow .3s;
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201,162,75,.35);
}

#menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
#menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s;
}

@media (max-width: 900px) {
  #site-header nav { display: none; }
  .cta { display: none; }
  #menu-toggle { display: flex; margin-left: auto; }
  #site-header.nav-open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin: 0;
  }
  #site-header.nav-open .cta {
    display: block;
    position: absolute;
    top: calc(100% + 260px);
    left: 16px; right: 16px;
    text-align: center;
  }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) contrast(1.05) brightness(.55);
  transform: scale(1.05);
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.12) translateX(-2%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(201,162,75,.12), transparent 50%),
    linear-gradient(180deg, rgba(14,14,14,.55) 0%, rgba(14,14,14,.85) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .1s forwards;
}
.hero-eyebrow .line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 132px);
  line-height: .92;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.hero-title span {
  display: block;
  opacity: 0;
  animation: fadeUp 1s var(--ease) forwards;
}
.hero-title .hero-t1 { animation-delay: .2s; }
.hero-title .hero-t2 { animation-delay: .35s; padding-left: 3vw; }
.hero-title .hero-t3 { animation-delay: .5s; }

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

.hero-lead {
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  margin: 0 0 40px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .7s forwards;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) .85s forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 100px;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: #111;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201,162,75,.4);
}
.btn-ghost {
  border-color: rgba(255,255,255,.2);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-block { width: 100%; justify-content: center; }

.hero-stats {
  display: flex; gap: clamp(24px, 5vw, 64px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-dim);
  font-weight: 500;
}
body[data-variation="industrial"] .hero-stats span {
  color: var(--gold-deep, #6B5017);
  font-weight: 600;
}

.hero-scroll {
  position: absolute; bottom: 32px; right: var(--pad);
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-mute);
  writing-mode: vertical-rl;
}
.hero-scroll svg { animation: bounce 2s infinite; writing-mode: horizontal-tb; }
@keyframes bounce { 0%,100% { transform: translateY(0) } 50% { transform: translateY(6px) } }

/* =====================================================
   SECÇÕES GENÉRICAS
   ===================================================== */
section { position: relative; }
.section-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}
.section-eyebrow .line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
}

/* =====================================================
   SOBRE
   ===================================================== */
.about {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy p { color: var(--text-dim); margin: 0 0 18px; }
.about-copy .lead { color: var(--text); font-size: 20px; margin: 16px 0 28px; }

.values {
  margin-top: 48px;
  display: grid;
  gap: 24px;
}
.value {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.value:last-child { border-bottom: 1px solid var(--line); }
.vnum {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--gold);
}
.value h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 4px;
}
.value p { margin: 0; color: var(--text-dim); font-size: 14px; }

.about-img {
  position: relative;
  aspect-ratio: 4/5;
}
.about-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%);
}
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line-strong);
  transform: translate(16px, 16px);
  pointer-events: none;
}
.about-badge {
  position: absolute;
  bottom: -32px; left: -32px;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  max-width: 260px;
}
.badge-num {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 8px;
}
.badge-txt {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { position: relative; bottom: 0; left: 0; margin-top: 24px; max-width: none; }
}

/* =====================================================
   SERVIÇOS
   ===================================================== */
.services {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-head {
  max-width: var(--wrap);
  margin: 0 auto 64px;
}
.services-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg-2);
  padding: 48px;
  transition: background .3s;
  position: relative;
}
.service:hover { background: var(--surface); }
.service-num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 24px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 12px;
  line-height: 1.15;
}
.service > p {
  color: var(--text-dim);
  margin: 0 0 24px;
}
.service ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 8px;
}
.service li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.service li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--gold);
}

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 32px 24px; }
}

/* =====================================================
   PRODUTOS
   ===================================================== */
.products {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
}
.products-head { margin-bottom: 64px; max-width: 720px; }
.products-head a { color: var(--gold); border-bottom: 1px solid var(--gold); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.product {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform .4s var(--ease), border-color .3s;
}
.product:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.product.big { grid-column: span 2; grid-row: span 2; }
.product.wide { grid-column: span 2; }
.p-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(15%);
  transition: transform .8s var(--ease), filter .3s;
}
.product:hover .p-img { transform: scale(1.08); filter: grayscale(0%); }
.product::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  pointer-events: none;
}
.p-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 1;
}
.p-cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.p-info h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
  line-height: 1.1;
}
.product.big .p-info h3 { font-size: 32px; }
.p-info p { font-size: 13px; color: var(--text-dim); margin: 6px 0 0; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .product.big, .product.wide { grid-column: span 2; }
  .product.big { grid-row: span 2; }
}

/* =====================================================
   EPOXY (secção destaque)
   ===================================================== */
.epoxy {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.epoxy-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.epoxy-copy .lead { margin-bottom: 32px; }
.epoxy-where, .epoxy-benefits { margin-top: 32px; }
.epoxy-where h4, .epoxy-benefits h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  transition: all .2s;
}
.chips span:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.epoxy-benefits ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
}
.epoxy-benefits li {
  color: var(--text-dim);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}
.epoxy-benefits li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 2px;
  background: var(--gold);
}
.epoxy-benefits li b { color: var(--text); font-weight: 600; }

.epoxy-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1/1.05;
}
.epoxy-tile {
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.epoxy-tile:hover { transform: translateY(-4px); }
.epoxy-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75) 100%);
}
.epoxy-tile span {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: #FFF;
  z-index: 1;
  letter-spacing: -0.01em;
}
.epoxy-tile:nth-child(1) { border-top-left-radius: 4px; }
.epoxy-tile:nth-child(2) { border-top-right-radius: 4px; margin-top: 32px; }
.epoxy-tile:nth-child(3) { border-bottom-left-radius: 4px; }
.epoxy-tile:nth-child(4) { border-bottom-right-radius: 4px; margin-top: -32px; }

@media (max-width: 800px) {
  .epoxy-inner { grid-template-columns: 1fr; }
  .epoxy-gallery { aspect-ratio: 1/1; }
  .epoxy-tile:nth-child(2), .epoxy-tile:nth-child(4) { margin-top: 0; }
}

/* =====================================================
   COMPROMISSO
   ===================================================== */
.promise {
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.promise-inner {
  max-width: var(--wrap);
  margin: 0 auto;
}
.promise .section-title { max-width: 720px; margin-bottom: 64px; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.p-item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.p-num {
  display: inline-block;
  font-family: var(--serif);
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.p-item b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
}
.p-item p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 4px 0 0;
}

@media (max-width: 800px) {
  .promise-grid { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================
   FAIXA DE MARCAS
   ===================================================== */
.brands {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.brands-inner { display: flex; align-items: center; gap: 32px; }
.brands-label {
  padding-left: var(--pad);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  flex-shrink: 0;
}
.brands-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.brands-track span {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  font-style: italic;
  color: var(--text-mute);
  letter-spacing: -0.01em;
  transition: color .3s;
}
.brands-track span:hover { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   CONTACTO
   ===================================================== */
.contact {
  padding: clamp(80px, 12vw, 160px) var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.cm {
  display: flex; align-items: center; gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
a.cm:hover { border-color: var(--gold); background: rgba(201,162,75,.04); }
.cm-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
}
.cm b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 2px;
}
.cm span { font-size: 12px; color: var(--text-dim); }

.contact-form {
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.contact-form h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 8px;
}
.form-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 32px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  display: block;
  margin-bottom: 20px;
}
.contact-form label span {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.contact-form label span i {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-mute);
  opacity: .7;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  border-radius: 2px;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; font-family: inherit; }
.form-note {
  font-size: 11px;
  color: var(--text-mute);
  margin: 16px 0 0;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px var(--pad) 0;
}
.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}
.foot-brand { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-logo {
  height: 108px;
  width: auto;
  margin-bottom: 20px;
  display: none;
}
/* No footer preto (editorial + dynamic + industrial todos com foot preto/escuro) usa versão light */
.foot-logo-light { display: block; }
.foot-logo-dark { display: none; }
.foot-brand em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.foot-brand p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 12px 0 0;
  max-width: 320px;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h5 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 600;
}
.foot-col a, .foot-col span {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s;
}
.foot-col a:hover { color: var(--gold); }

.footer-strip {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: .1em;
}
.footer-strip b { color: var(--gold); font-weight: 500; }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* =====================================================
   VARIAÇÃO 02 — MODERNO DINÂMICO (claro + gradientes + animação)
   ===================================================== */
body[data-variation="dynamic"] {
  --gold: #B8873A;
  --gold-soft: #E4C583;
  --gold-deep: #7A5820;

  --bg: #FAF8F3;
  --bg-2: #FFFFFF;
  --surface: #F3EFE5;
  --line: rgba(184, 135, 58, 0.18);
  --line-strong: rgba(184, 135, 58, 0.4);
  --text: #1A1613;
  --text-dim: #605850;
  --text-mute: #9A9184;

  --shadow: 0 20px 60px rgba(184,135,58,.12);
}
body[data-variation="dynamic"] .hero-img {
  filter: grayscale(0%) contrast(1.02) brightness(.8);
}
body[data-variation="dynamic"] .hero-overlay {
  background:
    radial-gradient(circle at 80% 20%, rgba(184,135,58,.25), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255,230,180,.3), transparent 45%),
    linear-gradient(180deg, rgba(250,248,243,.4) 0%, rgba(250,248,243,.75) 100%);
}
body[data-variation="dynamic"] .hero-title {
  background: linear-gradient(135deg, #1A1613 0%, #1A1613 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-variation="dynamic"] em {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
body[data-variation="dynamic"] .services {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F3EA 100%);
}
body[data-variation="dynamic"] .services-grid {
  background: transparent;
  border: none;
  gap: 16px;
}
body[data-variation="dynamic"] .service {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: 0 2px 20px rgba(0,0,0,.02);
}
body[data-variation="dynamic"] .service:hover {
  background: #FFFFFF;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(184,135,58,.15);
  border-color: var(--gold);
}
body[data-variation="dynamic"] .product {
  border-radius: 16px;
  overflow: hidden;
}
body[data-variation="dynamic"] .contact-form {
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 30px 80px rgba(184,135,58,.1);
}
body[data-variation="dynamic"] .contact-form input,
body[data-variation="dynamic"] .contact-form select,
body[data-variation="dynamic"] .contact-form textarea {
  border-radius: 10px;
  background: #FAF8F3;
}
body[data-variation="dynamic"] .cm { border-radius: 14px; }
body[data-variation="dynamic"] .btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}
body[data-variation="dynamic"] .cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}
body[data-variation="dynamic"] .brand-mark {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #FFF;
  border: none;
}
body[data-variation="dynamic"] #site-header.scrolled {
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid var(--line);
}
body[data-variation="dynamic"] #footer {
  background: #1A1613;
  color: #F4EFE4;
}
body[data-variation="dynamic"] #footer .foot-col a,
body[data-variation="dynamic"] #footer .foot-col span,
body[data-variation="dynamic"] #footer .foot-brand p {
  color: #B7B0A2;
}
body[data-variation="dynamic"] #footer .foot-brand b { color: #F4EFE4; }

/* orbes flutuantes dinâmico */
body[data-variation="dynamic"] .hero::before,
body[data-variation="dynamic"] .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}
body[data-variation="dynamic"] .hero::before {
  width: 400px; height: 400px;
  background: rgba(184,135,58,.25);
  top: 20%; right: -100px;
}
body[data-variation="dynamic"] .hero::after {
  width: 500px; height: 500px;
  background: rgba(255,220,160,.2);
  bottom: -100px; left: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* =====================================================
   VARIAÇÃO 03 — INDUSTRIAL CONFIANTE (bege quente + prático)
   ===================================================== */
body[data-variation="industrial"] {
  --gold: #A8802A;
  --gold-soft: #C9A24B;
  --gold-deep: #6B5017;

  --bg: #F5F0E6;
  --bg-2: #FBF7EE;
  --surface: #EDE5D3;
  --line: rgba(107, 80, 23, 0.18);
  --line-strong: rgba(107, 80, 23, 0.4);
  --text: #2A2419;
  --text-dim: #4F4A3E;      /* escurecido para melhor contraste */
  --text-mute: #6B6558;      /* escurecido para labels pequenos serem legíveis */

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
}
body[data-variation="industrial"] .hero {
  min-height: 90vh;
}
body[data-variation="industrial"] .hero-img {
  filter: sepia(15%) contrast(1.05) brightness(.85);
}
body[data-variation="industrial"] .hero-overlay {
  background: linear-gradient(90deg, rgba(245,240,230,.92) 0%, rgba(245,240,230,.55) 60%, rgba(245,240,230,.2) 100%);
}
body[data-variation="industrial"] .hero-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(48px, 8vw, 108px);
}
body[data-variation="industrial"] .hero-title .hero-t2 { padding-left: 0; }
body[data-variation="industrial"] em { font-weight: 700; }

body[data-variation="industrial"] .section-title {
  font-family: var(--serif);
  font-weight: 600;
}
body[data-variation="industrial"] .services {
  background: var(--surface);
}
body[data-variation="industrial"] .services-grid {
  grid-template-columns: repeat(4, 1fr);
}
body[data-variation="industrial"] .service {
  padding: 32px 28px;
}
body[data-variation="industrial"] .service h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}
body[data-variation="industrial"] .service-num {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold);
  color: #FFF;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .1em;
}
body[data-variation="industrial"] .brand-mark {
  background: var(--gold);
  color: #FFF;
  border: none;
  border-radius: 4px;
  font-family: var(--serif);
}
body[data-variation="industrial"] .cta {
  border-radius: 4px;
  background: var(--gold);
  color: #FFF;
}
body[data-variation="industrial"] .btn { border-radius: 4px; }
body[data-variation="industrial"] .btn-primary {
  background: var(--gold);
  color: #FFF;
}
body[data-variation="industrial"] .products-grid {
  grid-auto-rows: 220px;
}
body[data-variation="industrial"] .product {
  border-radius: 6px;
}
body[data-variation="industrial"] .contact-form {
  border-radius: 6px;
  background: #FFF;
}
body[data-variation="industrial"] .cm {
  background: #FFF;
  border-radius: 6px;
}
body[data-variation="industrial"] #footer {
  background: #2A2419;
  color: #F5F0E6;
}
body[data-variation="industrial"] #footer .foot-col a,
body[data-variation="industrial"] #footer .foot-col span,
body[data-variation="industrial"] #footer .foot-brand p,
body[data-variation="industrial"] #footer .foot-brand em {
  color: #B0A793;
}
body[data-variation="industrial"] #footer .foot-brand b { color: #F5F0E6; }
body[data-variation="industrial"] .brands {
  background: var(--surface);
}
body[data-variation="industrial"] .hero-stats b { font-family: var(--serif); font-weight: 700; }

body[data-variation="industrial"] .about-badge {
  background: var(--gold);
  color: #FFF;
  border: none;
  border-radius: 6px;
}
body[data-variation="industrial"] .about-badge .badge-num,
body[data-variation="industrial"] .about-badge .badge-txt { color: #FFF; }

/* =====================================================
   REVEAL ON SCROLL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   BOTÃO FLUTUANTE WHATSAPP (canto inferior direito)
   Injetado por site-overrides.js
   ================================================================ */
#mg-wa-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35),
              0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: mg-wa-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

#mg-wa-fab:hover {
  transform: scale(1.08) translateY(-2px);
  background: #22c65d;
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5),
              0 4px 12px rgba(0, 0, 0, 0.2);
}

#mg-wa-fab:active {
  transform: scale(0.96);
}

#mg-wa-fab svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

/* Pulse subtil — anel a expandir */
#mg-wa-fab .mg-wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.6;
  animation: mg-wa-pulse 2.2s ease-out infinite;
  z-index: 1;
}

@keyframes mg-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes mg-wa-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Responsive — mais pequeno no mobile */
@media (max-width: 600px) {
  #mg-wa-fab {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  #mg-wa-fab svg {
    width: 27px;
    height: 27px;
  }
}

/* Respeitar preferência do sistema por menos movimento */
@media (prefers-reduced-motion: reduce) {
  #mg-wa-fab { animation: none; }
  #mg-wa-fab .mg-wa-pulse { animation: none; opacity: 0; }
}
