/* ============================================================
   LAYOUT — Containers, Sections, Header, Footer, Grid
   ============================================================ */

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--sm {
  max-width: 640px;
}

.container--md {
  max-width: 820px;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-20);
}

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

.section--dark {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-900) 100%);
}

.section--white {
  background-color: var(--white);
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header--light .section-title,
.section-header--light .section-description {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-3);
}

.section-label--gold { color: var(--gold-500); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  line-height: var(--leading-tight);
  color: var(--brand-800);
  margin-bottom: var(--space-4);
}

.section-title--light { color: var(--white); }

.section-title em {
  color: var(--gold-500);
  font-style: italic;
}

.section-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 500px;
  margin-inline: auto;
  line-height: var(--leading-loose);
}

.section-description--muted {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 100%);
  padding-block: var(--space-12);
  border-top: 1px solid rgba(200, 169, 110, 0.2);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-logo {
  width: 100px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.30));
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--gold-500);
  font-style: italic;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: var(--tracking-wide);
}

/* ---------- Responsivo ---------- */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-4);
  }
  .section {
    padding-block: var(--space-12);
  }
}

@media (max-width: 480px) {
  .section {
    padding-block: var(--space-10);
  }
}

/* ---------- Navegação de scroll (voltar ao topo / descer) ---------- */
.scroll-nav {
  position: fixed;
  right: 10px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(10px, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.scroll-nav.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}
.scroll-nav__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(200, 169, 110, 0.35);
  background: rgba(42, 6, 16, 0.5);
  color: var(--gold-300);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.scroll-nav__btn:hover {
  background: var(--gold-500);
  color: #fff;
  border-color: var(--gold-500);
  transform: translateY(-1px);
}
.scroll-nav__btn svg { width: 17px; height: 17px; }

@media (max-width: 600px) {
  .scroll-nav { right: 8px; gap: 7px; }
  .scroll-nav__btn { width: 42px; height: 42px; }
}
