/* ============================================================
   MF FERRAMENTAS — Design System (inspirado no padrão industrial Bosch)
   ============================================================ */

:root {
  --navy-950: #070d1f;
  --navy-900: #0b1330;
  --navy-800: #10213f;
  --navy-700: #16305c;
  --blue-600: #0060ac;
  --blue-500: #0078d4;
  --red-600: #e2001a;
  --red-700: #b8000f;
  --gray-100: #f4f6f9;
  --gray-200: #e6e9ef;
  --gray-400: #9aa3b2;
  --gray-600: #5b6474;
  --white: #ffffff;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-lg: 0 30px 60px -20px rgba(7, 13, 31, 0.35);
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.08;
  color: var(--navy-950);
}

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

.text-accent { color: var(--red-600); }

/* ---------- Reusable pieces ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 10px;
}
.section-tag.center { display: block; text-align: center; }

.section-title {
  font-size: clamp(32px, 4.5vw, 46px);
  margin-bottom: 14px;
}
.section-title.center { text-align: center; }

.section-sub {
  color: var(--gray-600);
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 50px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-cta {
  background: var(--red-600);
  color: var(--white);
  box-shadow: 0 10px 25px -8px rgba(226, 0, 26, 0.55);
}
.btn-cta:hover { background: var(--red-700); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { width: 120px; animation: pulse 1.6s ease-in-out infinite; }
.preloader-bar { width: 180px; height: 3px; background: rgba(255,255,255,0.15); border-radius: 3px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--red-600); animation: loading 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .8; } }
@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(280%); } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 13, 31, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.5);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; transition: height .35s var(--ease); opacity: 0; transform: translateY(-14px); }
.site-header.scrolled .brand img { height: 38px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--white);
  position: relative; padding: 4px 0;
  opacity: .92;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--red-600); transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-insta { display: flex; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  background: var(--navy-950);
}
.hero-pin {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  transform: scale(1.18);
  filter: saturate(1.05) contrast(1.05);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,13,31,.55) 0%, rgba(7,13,31,.35) 40%, rgba(7,13,31,.85) 100%),
    linear-gradient(90deg, rgba(7,13,31,.9) 0%, rgba(7,13,31,.25) 55%);
}

.hero-shutter {
  position: absolute; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
}
.shutter-top { top: 0; height: 52%; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.shutter-bottom { bottom: 0; height: 52%; box-shadow: 0 -20px 40px rgba(0,0,0,.4); }

.shutter-stripes {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, transparent 14px 28px);
}
.shutter-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.shutter-logo { width: clamp(180px, 22vw, 320px); height: auto; }
.shutter-top .shutter-content { transform: translateY(18px); }
.shutter-bottom .shutter-content { transform: translateY(-18px); }
.shutter-label {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(18px,2.4vw,30px);
  letter-spacing: 1px; color: var(--white);
  text-transform: uppercase;
}

.hero-content {
  position: relative; z-index: 10;
  height: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
  opacity: 0;
}
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 3px;
  font-size: 14px; font-weight: 600; color: var(--red-600); margin-bottom: 18px;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 74px);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.75); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ============================================================
   SOBRE
   ============================================================ */
.about { padding: 130px 0; background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center;
}
.about-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 560px; object-fit: cover; }
.about-media-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(7,13,31,0.85); backdrop-filter: blur(6px);
  color: var(--white); padding: 14px 20px; border-radius: 10px;
  font-family: var(--font-head); font-size: 18px;
  border-left: 4px solid var(--red-600);
}
.about-text h2 { font-size: clamp(30px,4vw,42px); margin-bottom: 22px; }
.about-text p { color: var(--gray-600); margin-bottom: 16px; font-size: 16px; }
.about-text strong { color: var(--navy-900); }

.founders { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 30px; }
.founder { display: flex; flex-direction: column; gap: 3px; padding-left: 16px; border-left: 3px solid var(--red-600); }
.founder-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy-950); }
.founder-role { font-size: 13px; color: var(--gray-600); letter-spacing: .3px; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 44px; }
.stat { border-top: 3px solid var(--red-600); padding-top: 12px; }
.stat-number {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(28px,3.4vw,38px);
  color: var(--navy-950);
}
.stat-label { font-size: 13px; color: var(--gray-600); }

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { padding: 130px 0; background: var(--gray-100); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 26px;
  box-shadow: 0 15px 40px -20px rgba(7,13,31,0.18);
  border-bottom: 4px solid transparent;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--red-600);
  box-shadow: 0 25px 50px -20px rgba(7,13,31,0.28);
}
.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); margin-bottom: 22px;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.08); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: 14.5px; }

/* ============================================================
   MARCAS
   ============================================================ */
.brands { padding: 110px 0 120px; background: var(--navy-950); overflow: hidden; }
.brands .section-tag, .brands .section-title { color: var(--white); }
.brands .section-tag { color: var(--red-600); }
.brands-marquee { margin-top: 50px; position: relative; }
.brands-marquee::before, .brands-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.brands-marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-950), transparent); }
.brands-marquee::after { right: 0; background: linear-gradient(270deg, var(--navy-950), transparent); }
.brands-track {
  display: flex; gap: 20px; width: max-content;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.brands-track.is-dragging { cursor: grabbing; }
.brand-pill { -webkit-user-drag: none; }
.brand-pill img { -webkit-user-drag: none; pointer-events: none; }
.brand-pill {
  display: flex; align-items: center; justify-content: center;
  height: 80px; min-width: 160px;
  background: var(--white);
  padding: 16px 36px; border-radius: 999px; border: 2px solid transparent;
  transition: border-color .3s, transform .3s;
}
.brand-pill:hover { border-color: var(--red-600); transform: translateY(-3px); }
.brand-pill img {
  max-height: 42px; max-width: 130px; width: auto; height: auto;
  object-fit: contain; filter: grayscale(1) opacity(0.75);
  transition: filter .3s;
}
.brand-pill:hover img { filter: grayscale(0) opacity(1); }
.brand-pill-text {
  font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: 2px;
  color: var(--navy-950);
}

/* ============================================================
   OFICINA EM AÇÃO
   ============================================================ */
.workshop { padding: 130px 0; background: var(--white); }
.process-steps {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 60px; flex-wrap: wrap;
}
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-900); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-950); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 17px;
}
.step-line { width: 60px; height: 2px; background: var(--gray-200); }

.video-marquee { overflow: hidden; position: relative; }
.video-track {
  display: flex; gap: 26px; width: max-content;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  will-change: transform;
}
.video-track.is-dragging { cursor: grabbing; }
.video-card {
  border-radius: 28px; overflow: hidden;
  background: var(--white);
  flex: 0 0 auto; width: min(420px, 62vw);
  -webkit-user-drag: none;
}
.video-card video { -webkit-user-drag: none; }
.video-media { position: relative; aspect-ratio: 9/12; background: var(--navy-950); cursor: pointer; }
.video-media video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: rgba(226,0,26,0.92); color: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .3s var(--ease), background .3s;
}
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-play:hover { transform: translate(-50%,-50%) scale(1.1); background: var(--red-700); }
.video-card.playing .video-play { opacity: 0; pointer-events: none; }
.video-mute {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(7,13,31,0.65); backdrop-filter: blur(4px); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s, background .25s;
}
.video-card.playing .video-mute { opacity: 1; pointer-events: auto; }
.video-mute:hover { background: var(--red-600); }
.video-mute svg { width: 18px; height: 18px; }
.video-mute .icon-unmuted { display: none; }
.video-mute.is-unmuted .icon-muted { display: none; }
.video-mute.is-unmuted .icon-unmuted { display: block; }

/* ============================================================
   LOCALIZAÇÃO
   ============================================================ */
.location { padding: 130px 0; background: var(--gray-100); }
.location-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.location-info h2 { font-size: clamp(30px,4vw,42px); margin-bottom: 28px; }
.info-list { list-style: none; margin-bottom: 34px; display: flex; flex-direction: column; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--red-600); margin-top: 2px; }
.info-list strong { display: block; font-size: 15px; margin-bottom: 3px; }
.info-list span { color: var(--gray-600); font-size: 15px; }

.location-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; transform: scale(0.9); opacity: 0.6;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-950); color: var(--white); padding: 70px 0 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: var(--gray-400); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--gray-400); font-size: 14.5px; transition: color .25s; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  transition: background .25s, border-color .25s;
}
.footer-social a:hover { background: var(--red-600); border-color: var(--red-600); }
.footer-bottom { text-align: center; padding: 24px 0; color: var(--gray-400); font-size: 13px; }

/* ============================================================
   WHATSAPP FLUTUANTE
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
  animation: float-pulse 2.6s ease-in-out infinite;
}
@keyframes float-pulse {
  0%,100% { box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6); }
  50% { box-shadow: 0 10px 34px -4px rgba(37,211,102,0.9); }
}

/* ============================================================
   SCROLL REVEAL — estado inicial (JS anima para o estado final)
   ============================================================ */
.reveal-up, .reveal-card, .reveal-img, .reveal-map { will-change: transform, opacity; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .about-media img { height: 400px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 30px; }
  .video-track { gap: 18px; }
  .video-card { width: min(340px, 58vw); }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: 78%; max-width: 320px;
    background: var(--navy-950); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 600;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .hero-content { text-align: left; }
  .shutter-logo { width: clamp(140px, 40vw, 220px); }
  .shutter-label { letter-spacing: 4px; font-size: 12px; }
  .cards-grid { grid-template-columns: 1fr; }
  .video-track { gap: 16px; }
  .video-card { width: 80vw; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .process-steps {
    display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center;
    row-gap: 28px; column-gap: 8px;
  }
  .step-line { display: none; }
  .about, .services, .workshop, .location { padding: 90px 0; }
  .footer-inner { flex-direction: column; }
}
