/* Paleta do site: apenas preto, vermelho e branco */
:root {
  --black: #000000;
  --red: #e10600;
  --white: #ffffff;
  --radius: 10px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Header / menu superior ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--black);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--black);
}
.logo span { color: var(--red); }
.logo-light { color: var(--white); }

.main-nav ul { display: flex; gap: 32px; }

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--black);
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { border-bottom-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  width: 26px;
  margin-inline: auto;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero e secções ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 110px 0;
  border-bottom: 8px solid var(--red);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; max-width: 760px; }
.hero p { margin-top: 18px; font-size: 1.15rem; max-width: 600px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.page-title {
  background: var(--black);
  color: var(--white);
  padding: 48px 0;
  border-bottom: 6px solid var(--red);
}
.page-title h1 { text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.4rem); }

.section { padding: 64px 0; }
.section h2 { color: var(--black); margin-bottom: 28px; text-transform: uppercase; }
.section p + p { margin-top: 14px; }

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--black); border-color: var(--black); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.center .btn, p.center .btn { margin-top: 28px; }

/* ---------- Grelhas e cartões ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card h3 { color: var(--black); margin-bottom: 8px; }
.card p { font-size: 0.95rem; }
.link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--red); }
.link:hover { color: var(--black); }

.product { padding: 0; overflow: hidden; }
.product h3, .product p { padding-inline: 18px; }
.product h3 { margin-top: 16px; }
.product p { padding-bottom: 18px; }
.product-img { aspect-ratio: 4 / 3; background: var(--black); border-bottom: 4px solid var(--red); }

.partner {
  display: grid;
  place-items: center;
  min-height: 110px;
  font-weight: 600;
}

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sim-preview { border: 2px solid var(--black); border-radius: var(--radius); padding: 24px; background: var(--white); }
.sim-preview svg { width: 100%; max-width: 420px; display: block; margin-inline: auto; }
.sim-controls { display: grid; gap: 18px; }
.sim-controls label { display: grid; gap: 6px; font-weight: 600; color: var(--black); }
.sim-controls input[type='text'],
.sim-controls input[type='number'] {
  padding: 10px 12px;
  border: 2px solid var(--black);
  border-radius: 8px;
  font: inherit;
  color: var(--black);
  background: var(--white);
}
.sim-controls input[type='text']:focus,
.sim-controls input[type='number']:focus { outline: none; border-color: var(--red); }
.sim-controls input[type='color'] {
  width: 100%;
  height: 44px;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 2px;
  background: var(--white);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding-top: 48px; border-top: 8px solid var(--red); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-links li + li { margin-top: 6px; }
.footer-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--white); padding: 16px 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 20px 20px; }
  .main-nav li a { display: block; padding: 16px 0; font-size: 1.05rem; border-bottom: 0; }

  .sim { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0; }
}

.hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.product-img {
  width: 100%;
  display: block;
  object-fit: cover;
}