/* Recicle Já — site do projeto (GitHub Pages) */

/* ---------- Base e variáveis ---------- */
:root {
  --bg: #111413;
  --bg-alt: #171b19;
  --surface: #1d2321;
  --border: #2c3531;
  --text: #e8efeb;
  --text-muted: #a9b7b0;
  --primary: #76d7ac;
  --primary-strong: #5cc597;
  --accent: #8acbe8;
  --on-primary: #0b2a1d;
  --radius: 16px;
  --container: 1080px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--primary);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-family: var(--font-display);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 20, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(118, 215, 172, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(138, 203, 232, 0.10), transparent 40%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.hero-shot {
  margin: 0 auto;
  width: min(100%, 280px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ---------- Seções ---------- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  color: var(--text-muted);
  max-width: 44rem;
  margin-bottom: 2rem;
}

.source,
.note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 8px;
}

.list {
  padding-left: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.list li {
  margin-bottom: 0.5rem;
}

/* ---------- Estatísticas ---------- */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

.card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
}

/* ---------- Passos ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps li {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-num {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

/* ---------- Galeria de telas ---------- */
.gallery {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery a {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery a:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.gallery figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gallery figcaption strong {
  color: var(--text);
}

/* ---------- Tags ---------- */
.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Rodapé ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ---------- Responsivo ---------- */
@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .hero-shot {
    margin: 0;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .nav-links {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
