@font-face {
  font-family: 'Timepiece';
  src: url('fontes/Timepiece.otf') format('opentype');
}

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

/* Fonte limpa em todo o texto comum */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #e8d8b8;
  background: #0f0a05;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden !important;
}

/* Força fonte legível em tudo que não é título */
p, .button, nav a, footer, .about, .service-box h3, .service-box p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-weight: 500;
}

/* Títulos grandes mantêm a fonte steampunk */
h1, h2 {
  font-family: 'Timepiece', 'UnifrakturCook', cursive !important;
}

/* BACKGROUND STEAMPUNK */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(139, 69, 19, 0.18), transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(160, 82, 45, 0.15), transparent 60%),
    url('https://images.unsplash.com/photo-1558592073-2f7f2c57a938?auto=format&fit=crop&q=80') center/cover repeat,
    url('https://raw.githubusercontent.com/mkrl/img/main/steampunk-drawings-light.png') center/cover no-repeat;
  background-blend-mode: overlay, soft-light;
  opacity: 0.8;
  filter: blur(1.8px) contrast(1.15);
  z-index: -2;
  animation: slowPan 180s linear infinite;
}

@keyframes slowPan {
  0% { background-position: 0 0, center; }
  100% { background-position: 300px 300px, center; }
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://raw.githubusercontent.com/mkrl/img/main/gears-faint.png') repeat;
  opacity: 0.04;
  animation: gears 300s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gears { from { background-position: 0 0; } to { background-position: 1200px 1200px; } }

/* BORDA STEAMPUNK */
.steampunk-border {
  position: relative;
  background: linear-gradient(145deg, #2b1b12, #1a0f08);
  border: 8px solid transparent;
  border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="%23110d08"/><circle cx="6" cy="6" r="4" fill="%23b87333"/><circle cx="34" cy="6" r="4" fill="%23b87333"/><circle cx="6" cy="34" r="4" fill="%23b87333"/><circle cx="34" cy="34" r="4" fill="%23b87333"/><rect x="15" y="0" width="10" height="40" fill="%23664422"/><rect x="0" y="15" width="40" height="10" fill="%23664422"/></svg>') 12 stretch;
  box-shadow: 0 0 20px rgba(184, 115, 51, 0.6), 0 0 40px rgba(184, 115, 51, 0.3), inset 0 0 30px rgba(0,0,0,0.8);
  border-radius: 20px;
  overflow: hidden;
}

.steampunk-border::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, #b87333, #e8d8b8, #b87333);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.4;
  animation: copperGlow 10s ease-in-out infinite alternate;
}

@keyframes copperGlow { from { opacity: 0.3; } to { opacity: 0.6; } }

header {
  background: rgba(15, 10, 5, 0.95);
  backdrop-filter: blur(8px);
  padding: 20px 20px;
  text-align: center;
  border-bottom: 4px double #b87333;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav { 
  display: flex; 
  justify-content: center; 
  gap: 40px; 
  flex-wrap: wrap; 
  padding: 10px 10px;
}

nav a { 
  color: #e8d8b8; 
  font-size: 1.6rem; 
  text-decoration: none; 
  text-transform: uppercase; 
  letter-spacing: 3px; 
  position: relative; 
  white-space: nowrap;
}

nav a::after { 
  content: ''; 
  position: absolute; 
  width: 0; 
  height: 3px; 
  bottom: -10px; 
  left: 50%; 
  background: #b87333; 
  transition: all 0.4s; 
}

nav a:hover { 
  color: #fff; 
  text-shadow: 0 0 10px #b87333; 
}

nav a:hover::after { 
  width: 100%; 
  left: 0; 
}

.hero { 
  text-align: center; 
  padding: 120px 40px 80px; 
}

.logo {
  max-width: 420px;
  margin-bottom: 60px;
  animation: infinityPath 10s linear infinite, neonGlowCycle 6s linear infinite;
  filter: drop-shadow(0 0 40px #00ffff);
}

@keyframes infinityPath {
  0%    { transform: translate(0px, 0px); }
  12.5% { transform: translate(25px, -18px); }
  25%   { transform: translate(50px, 0px); }
  37.5% { transform: translate(25px, 18px); }
  50%   { transform: translate(0px, 0px); }
  62.5% { transform: translate(-25px, -18px); }
  75%   { transform: translate(-50px, 0px); }
  87.5% { transform: translate(-25px, 18px); }
  100%  { transform: translate(0px, 0px); }
}

@keyframes neonGlowCycle {
  0%    { filter: drop-shadow(0 0 50px #ffff00); }
  25%   { filter: drop-shadow(0 0 50px #00ff00); }
  50%   { filter: drop-shadow(0 0 50px #00ffff); }
  75%   { filter: drop-shadow(0 0 50px #ff00ff); }
  100%  { filter: drop-shadow(0 0 50px #ffff00); }
}

h1 {
  font-family: 'Timepiece', 'UnifrakturCook', cursive;
  font-size: 9.5rem;
  color: #e8d8b8;
  text-shadow: 4px 4px 0 #000, 8px 8px 0 #b87333, 0 0 20px rgba(184, 115, 51, 0.8);
  letter-spacing: 12px;
  line-height: 0.85;
  margin: 0;
  font-weight: 900;
}

h1 .top { display: block; font-size: 1em; letter-spacing: 12px; }
h1 .bottom { display: block; font-size: 1em; letter-spacing: 20px; margin-top: 20px; }

.buttons-container { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 22px; 
  margin-top: 80px; 
  width: 100%;
}

.button {
  background: linear-gradient(145deg, #3a2518, #5d3a28);
  color: #e8d8b8;
  padding: 22px 60px;
  border: 5px double #b87333;
  border-radius: 50px;
  font-size: 2rem;
  width: 400px;
  max-width: 90%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: all 0.4s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.7);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.button:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 40px rgba(184, 115, 51, 0.6); 
}

.whatsapp:hover     { border-color: #00ff00; box-shadow: 0 0 40px #00ff00; }
.instagram:hover    { border-color: #ff00ff; box-shadow: 0 0 40px #ff00ff; }
.amazon:hover       { border-color: #ff9900; box-shadow: 0 0 40px #ff9900; }
.shopee:hover       { border-color: #ee2a24; box-shadow: 0 0 40px #ee2a24; }
.mercadolivre:hover { border-color: #d46a1e; box-shadow: 0 0 40px #d46a1e, 0 0 60px rgba(212, 106, 30, 0.5); }
.aliexpress:hover   { border-color: #ff6600; box-shadow: 0 0 40px #ff6600; }

section { padding: 100px 20px; text-align: center; }

h2 {
  font-family: 'Timepiece', 'UnifrakturCook', cursive;
  font-size: clamp(3.8rem, 8vw, 5.5rem) !important;
  color: #e8d8b8;
  text-shadow: 4px 4px 0 #000, 8px 8px 0 #b87333, 0 0 25px rgba(184, 115, 51, 0.9);
  letter-spacing: 10px;
  line-height: 0.9;
  margin-bottom: 80px;
  font-weight: 900;
}

.services { 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 40px; 
  max-width: 1400px; 
  margin: 0 auto; 
}

.service-box { 
  width: 320px; 
  padding: 40px 25px; 
  transition: transform 0.4s; 
}

.service-box:hover { 
  transform: translateY(-20px); 
}

.service-box i { 
  font-size: 4.5rem; 
  color: #b87333; 
  margin-bottom: 20px; 
  filter: drop-shadow(0 0 15px #b87333); 
}

.about { 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 50px; 
  font-size: 1.5rem; 
  line-height: 1.8; 
}

footer {
  background: linear-gradient(to top, #0f0a05, #1a0f08);
  padding: 50px 20px;
  text-align: center;
  border-top: 6px double #b87333;
  color: #e8d8b8;
  font-size: 1.6rem;
}

footer a { 
  color: #b87333; 
  text-decoration: none; 
  margin: 0 15px; 
}

footer a:hover { 
  text-decoration: underline; 
  color: #fff; 
}

/* ============================================================= */
/* RESPONSIVO CELULAR – 100% PERFEITO (testado em iPhone/Android) */
/* ============================================================= */

@media (max-width: 768px) {
  /* 1. MENU – sempre centralizado, pequeno e com rolagem suave */
  header { padding: 15px 10px !important; }
  nav {
    justify-content: center !important;     /* centraliza */
    gap: 20px;
    padding: 10px 15px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  nav a {
    font-size: 0.85rem !important;
    letter-spacing: 2px;
  }
  nav::-webkit-scrollbar { display: none; }
  nav { -ms-overflow-style: none; scrollbar-width: none; }

  /* 2. HERO – sem padding lateral, tudo centralizado */
  .hero {
    padding: 80px 0 60px !important;   /* remove padding lateral */
    margin: 0 !important;
  }

  /* 3. LOGO – menor e perfeitamente centralizada */
  .logo {
    max-width: 38vw !important;
    height: auto;
    margin: 0 auto 50px auto !important;
    display: block;
  }

  h1,
  h1 .top,
  h1 .bottom {
    font-size: 3.4rem !important;
    letter-spacing: 2px;
    line-height: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 5. BOTÕES – menores, centralizados, bonitos */
  .buttons-container {
    gap: 18px !important;
    margin-top: 60px !important;
    padding: 0 15px;
  }

  .button {
    width: 88% !important;
    max-width: 340px !important;
    font-size: 1.55rem !important;
    padding: 18px 20px !important;
    border-width: 4px;
  }

  /* 6. SEÇÕES – sem padding lateral */
  section {
    padding: 80px 0 !important;
  }

  h2 {
    font-size: 3.4rem !important;
    letter-spacing: 2px;
    line-height: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .service-box {
    width: 88% !important;
    max-width: 340px !important;
    margin: 20px auto;
  }

  .about {
    padding: 50px 20px !important;
    font-size: 1.05rem !important;
  }
  
  .about.steampunk-border {
    padding: 40px 25px !important;   /* mesmo padding interno */
    width: 88% !important;
    max-width: 360px !important;
    margin: 30px auto !important;
  }
  
  footer {
    font-size: 1.1rem !important;   /* ← texto menor e elegante no celular */
    padding: 50px 20px !important;
    line-height: 1.6;
  }

  footer p {
    font-size: 1.1rem !important;
    margin-bottom: 15px;
  }

  footer a {
    font-size: 1rem !important;
    margin: 0 10px !important;
  }
}

/* Telas muito pequenas (iPhone SE, etc) */
@media (max-width: 480px) {
  h1,
  h1 .top,
  h1 .bottom {
    font-size: 2.8rem !important;
  }
  .logo { max-width: 42vw !important; }
  .button { font-size: 1.5rem !important; }
  h2 { font-size: 4rem !important; }
}