/* ================== Reset e básico ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0b0b0b, #121212);
  color: #fff;
  line-height: 1.5;
  font-size: 0.875rem; /* equivalente a 14px */
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  display: none;
}

/* ================== Header ================== */
header {
  background-color: #000;
  padding: 0.75rem 1.5rem;
  border-bottom: 3px solid #28a745;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tryhardnav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-btn::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #28a745;
  transition: width 0.4s ease-in-out;
}

.nav-btn:hover {
  color: #28a745;
}

.nav-btn:hover::after {
  width: 100%;
}

/* ================== Banner ================== */
.banner {
  width: 100%;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bgbanner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: absolute;
  filter: brightness(0.55);
  background-image: url(imagens/bg.png);
}

.banner h1 {
  color: #28a745;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  text-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
  text-align: center;
}

/* ================== Header secundário ================== */
.header {
  background-color: #111;
  padding: 0.75rem 0;
  text-align: center;
  border-bottom: 2px solid #28a745;
}

.header h1 {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: #28a745;
  text-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* ================== Cards ================== */
.box-0 {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0;
}

.box-1 {
  width: 95%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid #28a74522;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(40, 167, 69, 0.5);
  border-color: #28a74588;
}

.title {
  font-size: 1.15rem;
  padding: 0.5rem;
  background: linear-gradient(90deg, #28a745, #1e7e34);
  color: white;
  font-weight: bold;
  text-align: center;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 0.5rem;
  background: #111;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card div {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

/* ================== Botões ================== */
li a {
  display: inline-block;
  background: #28a745;
  color: #fff;
  padding: 0.5rem 1rem;
  margin: 0.25rem 0.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

li a:hover {
  background: #218838;
  color: #fff;
  transform: scale(1.05);
}

li a:focus {
  outline: 2px solid #1e7e34;
}

/* ================== Footer ================== */
footer {
  text-align: center;
  padding: 1rem;
  background: #0b0b0b;
  color: #999;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  border-top: 2px solid #28a745;
  margin-top: 1.25rem;
}

/* ================== Responsividade ================== */
@media (max-width: 768px) {
  .box-1 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }

  .banner h1 {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .nav-btn {
    font-size: 0.85rem;
  }
}