:root {
  --graphite: #17181a;
  --asphalt: #221f1c;
  --panel: #211e1b;
  --chalk: #ece7dd;
  --chalk-dim: #a89f8f;
  --torque: #d9691f;
  --torque-soft: #e8935a;
  --coolant: #4a8f8a;
  --chrome: #9aa0a6;
  --line: rgba(154, 160, 166, 0.18);

  --font-display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Archivo', -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  background: var(--graphite);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--torque); color: var(--graphite); }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

.mk-icon-inline { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: 0.35em; }
.mk-icon-md { width: 28px; height: 28px; flex-shrink: 0; color: var(--torque-soft); }
.mk-icon-lg { width: 40px; height: 40px; color: var(--torque-soft); }

/* ---------- Buttons ---------- */
.mk-btn-torque {
  background: var(--torque);
  border: none;
  color: #1a0f06;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -10px rgba(217, 105, 31, 0.6);
}
.mk-btn-torque:hover, .mk-btn-torque:focus-visible {
  background: var(--torque-soft);
  color: #1a0f06;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(217, 105, 31, 0.75);
}
.mk-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--chrome);
  color: var(--chalk);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 3px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.mk-btn-ghost:hover, .mk-btn-ghost:focus-visible {
  border-color: var(--torque-soft);
  color: var(--torque-soft);
  transform: translateY(-2px);
}
.mk-btn-ghost .mk-icon-inline { transition: transform 0.15s ease; }
.mk-btn-ghost:hover .mk-icon-inline { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.mk-navbar {
  padding: 16px 0;
  background: linear-gradient(to bottom, rgba(17,18,20,0.85), transparent);
  transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
  z-index: 1000;
}
.mk-navbar.is-scrolled {
  padding: 10px 0;
  background: rgba(23, 24, 26, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid var(--line);
}
.mk-brand { display: flex; align-items: center; gap: 10px; }
.mk-brand-icon { width: 34px; height: 34px; flex-shrink: 0; }
.mk-brand-word {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: 1.15rem; letter-spacing: -0.01em; color: var(--chalk);
}
.mk-brand-word .accent { color: var(--torque); }
.navbar-nav .nav-link {
  color: var(--chalk-dim);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  padding: 8px 14px !important;
  transition: color 0.15s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus-visible { color: var(--chalk); }
.navbar-nav .nav-link.active { color: var(--torque-soft); }
.mk-toggler-icon {
  display: block; width: 24px; height: 2px; background: var(--chalk); position: relative;
}
.mk-toggler-icon::before, .mk-toggler-icon::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--chalk);
}
.mk-toggler-icon::before { top: -7px; }
.mk-toggler-icon::after { top: 7px; }
.navbar-toggler { border: none; padding: 4px; }
.navbar-toggler:focus { box-shadow: none; }
#navMenu { }
@media (max-width: 991.98px) {
  #navMenu { background: rgba(23,24,26,0.97); border-radius: 6px; padding: 14px 18px; margin-top: 12px; }
}

/* ---------- Parallax (used sparingly: hero, one banner, contato) ---------- */
.mk-parallax { position: relative; overflow: hidden; background: var(--graphite); }
.mk-parallax-img {
  position: absolute; left: 0; right: 0; top: -18%; height: 136%;
  background-size: cover; background-position: center;
  will-change: transform; z-index: 0;
}
.mk-parallax-overlay { position: absolute; inset: 0; z-index: 1; }
.mk-parallax > .container,
.mk-parallax .mk-parallax-content { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .mk-parallax-img { top: 0; height: 100%; transform: none !important; }
}
@media (max-width: 767.98px) {
  .mk-parallax-img { background-attachment: scroll; }
}

/* ---------- Hero ---------- */
.mk-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}
.mk-hero .mk-parallax-overlay {
  background:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(217,105,31,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(74,143,138,0.10), transparent 55%),
    linear-gradient(155deg, rgba(23,24,26,0.88) 0%, rgba(23,24,26,0.94) 60%, rgba(23,24,26,0.98) 100%);
}
.mk-hero-mark { width: 130px; height: 130px; margin: 0 auto 22px; position: relative; }
.mk-hero-mark svg { width: 100%; height: 100%; display: block; }
.mk-hero-word {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: 0.92; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #2b2820 0%, #0e0d0c 38%, #a8430f 74%, #d9691f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.4px var(--chrome);
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.5));
}
.mk-hero-word .accent { color: var(--torque); -webkit-text-stroke: 1.4px var(--chrome); }
.mk-hero-tagline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem); letter-spacing: 0.03em; color: var(--torque-soft);
  margin: 10px 0 0;
}
.mk-hero-specs {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--chrome);
}
.mk-hero-specs-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--torque); flex-shrink: 0; }
.mk-hero-desc {
  margin: 12px 0 0; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--chalk-dim);
}
.mk-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.mk-hazard-strip {
  height: 9px;
  background: repeating-linear-gradient(135deg, var(--torque) 0 16px, var(--graphite) 16px 32px);
}
.mk-hazard-strip--top { position: absolute; top: 0; left: 0; right: 0; }
.mk-hazard-strip--hero { margin-top: 56px; }

/* ---------- Sections ---------- */
.mk-section { position: relative; padding: 96px 0; z-index: 1; }
.mk-section-alt { background: var(--asphalt); }
.mk-section-dark { background: var(--graphite); padding-top: 100px; }
.mk-section-dark .mk-parallax-img { opacity: 0.16; }
.mk-section-dark .mk-parallax-overlay {
  background: linear-gradient(180deg, rgba(23,24,26,0.55) 0%, var(--graphite) 70%);
}

/* ---------- Banner (single parallax moment between Sobre and Serviços) ---------- */
.mk-banner { min-height: 420px; display: flex; align-items: center; }
.mk-banner .mk-parallax-overlay {
  background: linear-gradient(100deg, rgba(23,24,26,0.94) 0%, rgba(23,24,26,0.72) 45%, rgba(23,24,26,0.5) 100%);
}
.mk-banner-content { max-width: 46ch; padding: 70px 0; }
.mk-banner-eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--torque-soft); margin-bottom: 12px; display: block;
}
.mk-banner-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; color: var(--chalk); margin-bottom: 16px;
}
.mk-banner-title .accent { color: var(--torque); }
.mk-banner-text { color: var(--chalk-dim); font-size: 1.05rem; max-width: 42ch; }

@media (max-width: 767.98px) {
  .mk-banner { min-height: 340px; }
  .mk-banner .mk-parallax-overlay {
    background: linear-gradient(180deg, rgba(23,24,26,0.6) 0%, rgba(23,24,26,0.94) 75%);
  }
}

.mk-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--torque-soft);
  margin-bottom: 10px;
}
.mk-h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.005em; color: var(--chalk);
  margin-bottom: 18px;
}
.mk-p { color: var(--chalk-dim); font-size: 1.02rem; max-width: 52ch; }
.mk-p-lead { color: var(--chalk-dim); font-size: 1.1rem; max-width: 52ch; margin: 0 auto; }

/* ---------- Feature tiles (Sobre) ---------- */
.mk-feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 20px; height: 100%;
}
.mk-feature-icon { width: 32px; height: 32px; color: var(--torque-soft); margin-bottom: 12px; }
.mk-feature h3 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.02rem; color: var(--chalk); margin-bottom: 6px; letter-spacing: 0.005em;
}
.mk-feature p { color: var(--chalk-dim); font-size: 0.88rem; margin: 0; line-height: 1.5; }

/* ---------- Service cards ---------- */
.mk-service-card {
  background: var(--graphite); border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 24px; height: 100%; position: relative; overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.mk-service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--torque);
  transform: scaleY(0); transform-origin: top; transition: transform 0.25s ease;
}
.mk-service-card:hover { transform: translateY(-4px); border-color: rgba(217,105,31,0.4); }
.mk-service-card:hover::before { transform: scaleY(1); }
.mk-service-icon { width: 40px; height: 40px; color: var(--torque-soft); margin-bottom: 16px; }
.mk-service-card h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.15rem; color: var(--chalk); margin-bottom: 14px; letter-spacing: 0.005em;
}
.mk-svc-list { list-style: none; margin: 0; padding: 0; }
.mk-svc-item { border-bottom: 1px solid var(--line); }
.mk-svc-item:last-child { border-bottom: none; }

.mk-svc-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; padding: 9px 0; margin: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 0.92rem; color: var(--chalk-dim); text-align: left;
  transition: color 0.15s ease;
}
.mk-svc-btn:hover, .mk-svc-btn:focus-visible { color: var(--chalk); }
.mk-svc-btn:focus-visible { outline: 1px solid var(--torque-soft); outline-offset: 2px; }

.mk-svc-bullet { width: 5px; height: 5px; background: var(--torque); flex-shrink: 0; }
.mk-svc-label { flex: 1; line-height: 1.4; }

.mk-svc-caret {
  width: 9px; height: 9px; color: var(--chrome); flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
}
.mk-svc-btn:hover .mk-svc-caret { color: var(--torque-soft); }
.mk-svc-item.is-open .mk-svc-caret { transform: rotate(90deg); color: var(--torque-soft); }

.mk-svc-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}
.mk-svc-item.is-open .mk-svc-panel { max-height: 220px; opacity: 1; }
.mk-svc-panel p {
  font-size: 0.8rem; color: var(--chalk-dim); line-height: 1.5;
  margin: 0 0 12px; padding-left: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .mk-svc-panel, .mk-svc-caret { transition: none; }
}

/* ---------- Localização ---------- */
.mk-address-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 18px 20px; margin-top: 20px; font-size: 0.98rem; color: var(--chalk);
}
.mk-map-frame {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 20px 44px -20px rgba(0,0,0,0.55);
}
.mk-map-frame iframe { width: 100%; height: 380px; border: 0; display: block; filter: saturate(0.85) contrast(1.05); }

/* ---------- Contato ---------- */
.mk-contact-card {
  display: block; text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 30px 20px; height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.mk-contact-card:hover {
  transform: translateY(-4px); border-color: rgba(217,105,31,0.45); background: #262320;
}
.mk-contact-card .mk-icon-lg { margin-bottom: 14px; }
.mk-contact-card h3 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.05rem; color: var(--chalk); margin-bottom: 6px;
}
.mk-contact-card p { color: var(--chalk-dim); font-family: var(--font-mono); font-size: 0.85rem; margin: 0; }

/* ---------- Footer ---------- */
.mk-footer { background: var(--asphalt); padding: 44px 0 0; border-top: 1px solid var(--line); }
.mk-brand--footer .mk-brand-icon { width: 30px; height: 30px; }
.mk-footer-social { display: flex; gap: 18px; }
.mk-footer-social a { color: var(--chrome); transition: color 0.15s ease; }
.mk-footer-social a:hover { color: var(--torque-soft); }
.mk-footer-bottom {
  margin-top: 30px; padding: 18px 0; border-top: 1px solid var(--line);
  text-align: center; color: var(--chalk-dim); font-family: var(--font-mono); font-size: 0.78rem;
}

/* ---------- Floating WhatsApp button ---------- */
.mk-fab {
  position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--torque); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(217,105,31,0.65); z-index: 1200;
  transition: transform 0.2s ease, box-shadow 0.2s ease; opacity: 0; pointer-events: none;
}
.mk-fab.is-visible { opacity: 1; pointer-events: auto; }
.mk-fab svg { width: 28px; height: 28px; color: #1a0f06; }
.mk-fab:hover { transform: scale(1.08); box-shadow: 0 14px 30px -8px rgba(217,105,31,0.8); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mk-service-card, .mk-contact-card, .mk-btn-torque, .mk-btn-ghost, .mk-fab { transition: none; }
}

@media (max-width: 575.98px) {
  .mk-hero { padding: 140px 0 70px; }
  .mk-section { padding: 70px 0; }
  .mk-hero-cta { flex-direction: column; align-items: stretch; }
  .mk-hero-cta .btn { width: 100%; white-space: normal; }
}
