/* ============================================================
   BASE COMPARTILHADA — Churras de Quinta
   Reset, paleta, tipografia, menu, header, seções e rodapé.
   Usada por todas as páginas (index, ranking, 404 e as próximas).
   ============================================================ */

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

:root {
  /* Paleta oficial */
  --red: #85010B;        /* fundo do site */
  --cream: #FBE8D3;      /* logo, texto sobre o vermelho, cartões */
  --dark: #1C1009;       /* header, menu e rodapé */

  /* Derivadas */
  --red-deep: #5C0008;   /* vermelho mais fechado (sombras, hover) */
  --cream-2: #F2D8BB;    /* creme um tom abaixo: fundos secundários dentro dos cartões */
  --kraft: #E3C4A3;      /* bordas e trilhos dentro dos cartões */
  --fire: #D4380D;       /* laranja de destaque sobre o marrom */
  --muted: #7A6C52;      /* texto secundário sobre o creme */
  --gold: #C8963C;
  --silver: #8A9BA8;
  --bronze: #A0693A;

  /* Sobre o vermelho */
  --on-red: rgba(251, 232, 211, 0.72);
  --line-on-red: rgba(251, 232, 211, 0.28);
}

html { -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--red);
  font-family: 'Lato', sans-serif;
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Textura de papel por cima de tudo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
}

:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }

/* ---- MENU DO SITE ---- */
.site-nav {
  background: var(--dark);
  border-bottom: 1px solid #2e2010;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 8px;
  overflow-x: auto;
}

.site-nav a {
  display: block;
  padding: 12px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--on-red);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { color: var(--cream); }

.site-nav a[aria-current="page"] {
  color: var(--fire);
  border-bottom-color: var(--fire);
}

/* ---- HEADER ---- */
.header {
  background-color: var(--dark);
  padding: 36px 20px 28px;
  text-align: center;
  position: relative;
  border-bottom: 5px solid var(--fire);
}

.header-top {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.header-title {
  font-family: 'Abril Fatface', serif;
  font-size: clamp(40px, 11vw, 64px);
  color: var(--cream);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.header-title span { color: var(--fire); }

.header-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--on-red);
  text-transform: uppercase;
  margin-top: 10px;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.header-divider::before,
.header-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--muted);
}

.header-icon { font-size: 22px; }

/* ---- SEÇÕES (sobre o fundo vermelho) ---- */
.section {
  padding: 32px 16px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--on-red);
  text-align: center;
  margin-bottom: 6px;
}

.section-heading {
  font-family: 'Abril Fatface', serif;
  font-size: 32px;
  text-align: center;
  color: var(--cream);
  margin-bottom: 24px;
  line-height: 1;
}

.section-heading em {
  font-style: normal;
  color: var(--gold);
}

.ornament {
  text-align: center;
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--on-red);
}

/* ---- LINK "VOLTAR" ---- */
.voltar {
  display: inline-block;
  margin-top: 26px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 3px;
}

.voltar:hover { color: var(--gold); border-color: var(--gold); }

/* ---- RODAPÉ ---- */
.footer {
  margin-top: auto;
  background: var(--dark);
  color: var(--muted);
  text-align: center;
  padding: 24px 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-top: 4px solid var(--fire);
}

.footer span { color: var(--fire); }

/* ---- ANIMAÇÕES ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
