/* A Fazenda Pizzaria — tokens, reset, header, hero, faixa pedido */

:root {
  --leather: #3B2A1E;
  --charcoal: #1C1712;
  --brick: #B23A2E;
  --cream: #F7F1E4;
  --cream-deep: #EDE4D2;
  --olive: #6B7353;
  --gold: #C89B3C;
  --ink: #241B14;
  --mute: rgba(36, 27, 20, 0.64);
  --line: rgba(36, 27, 20, 0.14);
  --ember: #D4653A;
  --max: 1100px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 900px 480px at 10% -10%, rgba(200, 155, 60, 0.09), transparent 55%),
    radial-gradient(ellipse 700px 420px at 100% 20%, rgba(178, 58, 46, 0.06), transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(107, 115, 83, 0.07), transparent 55%),
    linear-gradient(180deg, #F9F4EA 0%, var(--cream) 35%, #F3EBD9 100%);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

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

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-solid {
  position: sticky;
  background: rgba(247, 241, 228, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color 0.25s var(--ease);
}

.logo-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(247, 241, 228, 0.72);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.site-header.is-solid .logo-name {
  color: var(--leather);
}

.site-header.is-solid .logo-sub {
  color: var(--olive);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(247, 241, 228, 0.78);
  transition: color 0.25s var(--ease);
}

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

.site-header.is-solid .nav a {
  color: var(--mute);
}

.site-header.is-solid .nav a:hover {
  color: var(--brick);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  background: var(--brick);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(178, 58, 46, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.header-cta:hover {
  background: #9a3127;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: background 0.25s var(--ease);
}

.site-header.is-solid .nav-toggle span {
  background: var(--ink);
}

/* —— Hero full-bleed (referência: Reis Magos / La Braciera) —— */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  color: var(--cream);
  background-color: #0e0a08;
  background-image: var(--hero-image, url("../imagens/hero-pizza.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(14, 10, 8, 0.88) 0%,
      rgba(14, 10, 8, 0.62) 48%,
      rgba(14, 10, 8, 0.42) 100%
    ),
    linear-gradient(180deg, rgba(14, 10, 8, 0.25) 0%, rgba(14, 10, 8, 0.78) 100%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-grain svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8.5rem 0 4.5rem;
  max-width: 640px;
  text-align: left;
}

.brand-mark {
  width: 72px;
  height: 72px;
  margin: 0 0 1.5rem;
  border: 1.5px solid rgba(200, 155, 60, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(28, 23, 18, 0.3);
  box-shadow:
    inset 0 0 0 4px rgba(28, 23, 18, 0.25),
    0 0 48px rgba(212, 101, 58, 0.18);
  animation: seal-in 1.1s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.85rem;
  animation: rise 0.9s 0.08s var(--ease) both;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 228, 0.65);
  margin-bottom: 0.9rem;
  font-weight: 500;
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  animation: rise 0.95s 0.18s var(--ease) both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

.hero-lead {
  font-size: 1.12rem;
  color: rgba(247, 241, 228, 0.86);
  max-width: 28em;
  margin: 0 0 2rem;
  line-height: 1.65;
  animation: rise 1s 0.28s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s 0.38s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brick);
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(178, 58, 46, 0.32);
}

.btn-primary:hover {
  background: #9a3127;
}

.btn-ghost {
  border: 1px solid rgba(247, 241, 228, 0.4);
  color: var(--cream);
  background: rgba(247, 241, 228, 0.05);
}

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

/* Faixa pedido (referência: Village) */
.pedido-strip {
  background: var(--brick);
  color: var(--cream);
  padding: 1.15rem 0;
}

.pedido-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pedido-strip p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
}

.pedido-strip a {
  display: inline-flex;
  padding: 0.7rem 1.25rem;
  background: var(--cream);
  color: var(--brick);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.pedido-strip a:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-1px);
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: scale(0.86) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .brand-mark,
  .hero-brand,
  .hero-kicker,
  .hero h1,
  .hero-lead,
  .hero-actions,
  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

.page-inner .site-header {
  position: sticky;
  background: rgba(247, 241, 228, 0.94);
  border-bottom-color: var(--line);
}

.page-inner .logo-name {
  color: var(--leather);
}

.page-inner .logo-sub {
  color: var(--olive);
}

.page-inner .nav a {
  color: var(--mute);
}

.page-inner .nav-toggle span {
  background: var(--ink);
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    background: rgba(247, 241, 228, 0.94);
    border-bottom-color: var(--line);
  }

  .logo-name {
    color: var(--leather);
  }

  .logo-sub {
    color: var(--olive);
  }

  .nav a {
    color: var(--mute);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle span {
    background: var(--ink);
  }

  .nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--mute);
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 92vh;
    place-items: center;
  }

  .hero-content {
    padding: 6.5rem 0 3.5rem;
    text-align: center;
    max-width: none;
  }

  .brand-mark {
    margin-inline: auto;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(14, 10, 8, 0.45) 0%,
        rgba(14, 10, 8, 0.55) 40%,
        rgba(14, 10, 8, 0.82) 100%
      );
  }
}
