/* ==========================================================================
   layout.css — Grid, containers, responsividade
   Praticar Juntos — Yoga para Todos
   ========================================================================== */

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 72rem; /* 1152px — max-w-6xl */
  margin-inline: auto;
  padding-inline: 1rem;
}

.container--narrow {
  max-width: 48rem; /* 768px — max-w-3xl */
}

/* ---------- Secoes ---------- */
.section {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 5rem;
  }
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .grid-2--sm {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Fundos de Secoes ---------- */
.bg-hero {
  background: linear-gradient(
    135deg,
    hsl(355 35% 60% / 0.15),
    var(--background) 50%,
    hsl(38 75% 68% / 0.1)
  );
}

.bg-features {
  background: linear-gradient(to bottom, var(--background), hsl(340 15% 13% / 0.2));
}

.bg-author {
  background: var(--background);
}

.bg-access {
  background: linear-gradient(to bottom, var(--background), hsl(340 15% 13% / 0.2));
}

.bg-player {
  background: linear-gradient(to bottom, hsl(340 15% 13% / 0.2), var(--background));
}

.bg-faq {
  background: linear-gradient(to bottom, var(--background), hsl(340 15% 13% / 0.2));
}

.bg-footer {
  background: var(--audio-card);
  border-top: 1px solid var(--audio-border);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(340 18% 8% / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--foreground);
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

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

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav-list.is-open {
    display: flex;
  }
}

/* ---------- Alignment helpers ---------- */
.text-center {
  text-align: center;
}

.items-center {
  align-items: center;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
