/* A&M Produtos e Serviços - Tema: vermelho, branco e preto */
:root {
  --red: #e50914;
  --red-dark: #b20710;
  --black: #0d0d0d;
  --gray-900: #121212;
  --gray-800: #1f1f1f;
  --gray-700: #2a2a2a;
  --gray-100: #f6f6f6;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --shadow: 0 10px 30px rgba(0,0,0,.15);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* Topbar / Navegação */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: grid;
  grid-auto-flow: column;
  align-items: end;
  gap: .5rem;
  color: var(--white);
  text-decoration: none;
}
.logo-img { display: block; height: 44px; width: auto; object-fit: contain; }
.logo-mark {
  background: var(--red);
  color: var(--white);
  padding: .35rem .6rem;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: .5px;
}
.logo-sub {
  color: #d1d5db;
  font-size: .9rem;
}

.nav { display: flex; gap: 1rem; align-items: center; }
.nav a {
  color: #e5e7eb;
  text-decoration: none;
  padding: .6rem .8rem;
  border-radius: 10px;
  transition: .2s ease;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

.nav-toggle { display: none; background: transparent; color: #fff; font-size: 1.5rem; border: 0; }

/* Botões */
.btn {
  display: inline-block;
  border-radius: 12px;
  padding: .85rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform .06s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border: 2px solid var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #0b0b0b 0%, #171717 100%);
  color: var(--white);
  padding: 72px 0 36px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: -20% -10% auto -10%; height: 60%;
  background: radial-gradient(60% 60% at 20% 30%, rgba(229,9,20,.25), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 3rem); line-height: 1.15; margin: 0 0 14px; }
.hero p { color: #d1d5db; margin: 0 0 22px; }
.hero-cta { display: flex; gap: .7rem; margin: 10px 0 18px; flex-wrap: wrap; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; gap: .7rem; flex-wrap: wrap; }
.badges li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #e5e7eb; padding: .5rem .7rem; border-radius: 999px; font-size: .9rem; }

.hero-media { position: relative; height: 320px; }
.pulse {
  position: absolute; inset: 0; margin: auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(229,9,20,.25) 0, rgba(229,9,20,.12) 40%, transparent 60%);
  box-shadow: 0 0 0 1px rgba(229,9,20,.2) inset;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.08);} }

/* Seções */
.section { padding: 64px 0; background: var(--white); }
.section.alt { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); margin: 0 0 6px; }
.section-header p { color: var(--muted); margin: 0; }

/* Cards de serviços */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid #eee; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-icon { font-size: 1.6rem; }
.card h3 { margin: 8px 0 6px; }
.card p { color: #4b5563; margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 18px; color: #374151; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.about .checks { margin: 10px 0 0; padding-left: 18px; }
.about-media { position: relative; min-height: 260px; }
.grid-brand { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.brand { display: grid; place-items: center; font-weight: 800; font-size: 3rem; border-radius: 16px; }
.b1 { background: var(--black); color: var(--white); }
.b2 { background: var(--red); color: var(--white); }
.b3 { background: #fff; color: var(--black); border: 2px solid var(--black); }

/* Qualidade */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { border: 1px solid #eee; border-radius: var(--radius); padding: 20px; background: #fff; }
.pillar h3 { margin: 4px 0 8px; }
.pillar p { margin: 0; color: #4b5563; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
label { font-weight: 600; }
input, textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  outline: none;
  transition: .2s ease;
  background: #fff;
}
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,9,20,.08); }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 14px; }
.contact-info li { margin-bottom: 8px; }

/* Rodapé */
.footer {
  background: var(--black);
  color: #9ca3af;
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer p { margin: 0; }

/* Responsividade */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { height: 200px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: #0f0f0f; padding: .6rem; display: grid; gap: .4rem; transform: translateY(-12px); opacity: 0; pointer-events: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .logo-img { height: 38px; }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
