/* ============================================================
   LOS PINCHEROS — Authentic Portuguese Espetada
   Brand: charcoal #212120 · flame red #c93e22 · cream #dfd4b9 · ember #cc6100
   ============================================================ */

:root {
  --char: #212120;
  --char-deep: #161615;
  --char-soft: #2b2b29;
  --flame: #c93e22;
  --flame-bright: #e04a2b;
  --ember: #cc6100;
  --cream: #dfd4b9;
  --cream-dim: rgba(223, 212, 185, 0.68);
  --cream-faint: rgba(223, 212, 185, 0.14);

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Jost", "Century Gothic", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --radius: 14px;
  --container: 72rem;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--char);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); margin-bottom: var(--space-3); }

.accent { color: var(--flame-bright); }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-2);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background-color 0.25s, color 0.25s;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn--flame {
  background: linear-gradient(135deg, var(--flame) 0%, #b93317 100%);
  color: #fdf8ec;
  box-shadow: 0 8px 26px -10px rgba(201, 62, 34, 0.65);
}
.btn--flame:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(224, 74, 43, 0.75);
  background: linear-gradient(135deg, var(--flame-bright) 0%, var(--flame) 100%);
}

.btn--ghost {
  border: 1.5px solid rgba(223, 212, 185, 0.45);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(223, 212, 185, 0.08); transform: translateY(-2px); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, gap 0.2s;
}
.link-arrow:hover { color: var(--flame-bright); gap: 0.85rem; }

:where(a, button):focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Nav ============ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.is-scrolled {
  background: rgba(22, 22, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.nav__brand img { height: 70px; width: auto; transition: height 0.3s; }
.nav.is-scrolled .nav__brand img { height: 56px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.nav__links > a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  opacity: 0.85;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.2s, color 0.2s;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.15rem;
  height: 2px;
  background: var(--flame-bright);
  transition: right 0.25s var(--ease-out);
}
.nav__links > a:not(.btn):hover { opacity: 1; }
.nav__links > a:not(.btn):hover::after { right: 0; }
.nav__cta { font-size: 0.82rem; padding: 0.65rem 1.3rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 14s var(--ease-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22,22,21,0.55) 0%, rgba(22,22,21,0.35) 40%, rgba(33,33,32,0.96) 96%),
    radial-gradient(ellipse at 25% 60%, rgba(204, 97, 0, 0.18), transparent 55%);
}

.hero__content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: clamp(8.5rem, 16vh, 10rem) clamp(1.25rem, 5vw, 3rem) var(--space-5);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: var(--space-3);
}
.hero__eyebrow-icon { filter: drop-shadow(0 0 6px rgba(201,62,34,.6)); }

.hero__title {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  color: #f2ead6;
  text-shadow: 0 6px 40px rgba(0,0,0,0.45);
  margin-bottom: var(--space-3);
}
.hero__title em {
  font-style: normal;
  color: var(--flame-bright);
  text-shadow: 0 0 46px rgba(224, 74, 43, 0.5);
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; }

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--cream-dim);
  color: rgba(223, 212, 185, 0.88);
  margin-bottom: var(--space-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  width: 44px;
  height: 64px;
  display: flex;
  justify-content: center;
}
.hero__scroll-line {
  display: block;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cream));
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.45); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Embers */
.hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ember {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb46b 0%, var(--ember) 55%, transparent 75%);
  opacity: 0;
  animation: emberRise linear infinite;
}
@keyframes emberRise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  8%   { opacity: 0.9; }
  60%  { opacity: 0.55; }
  100% { transform: translate3d(var(--drift, 30px), -105vh, 0) scale(0.25); opacity: 0; }
}

/* Load-in reveal */
.reveal-load {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
.line__inner.reveal-load { transform: translateY(110%); }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Marquee ============ */
.marquee {
  background: var(--flame);
  overflow: hidden;
  padding-block: 0.85rem;
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -0.5rem;
  position: relative;
  z-index: 5;
  box-shadow: 0 14px 40px -18px rgba(201, 62, 34, 0.55);
}
.marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fdf3df;
  padding-right: 0.5rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ Story ============ */
.story { background: var(--char); position: relative; }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.story__media { position: relative; }
.story__photo { border-radius: var(--radius); overflow: hidden; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__photo--main {
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}
.story__photo--float {
  position: absolute;
  right: -12%;
  bottom: -3rem;
  width: 58%;
  aspect-ratio: 3 / 2;
  border: 5px solid var(--char);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}
.story__copy p { color: var(--cream-dim); margin-bottom: var(--space-2); max-width: 36rem; }
.story__copy p em { color: var(--cream); font-style: italic; }

.story__points { list-style: none; margin-top: var(--space-3); display: grid; gap: 0.8rem; }
.story__points li { display: flex; align-items: center; gap: 0.8rem; font-weight: 400; }
.story__point-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--flame-bright);
  box-shadow: 0 0 12px rgba(224, 74, 43, 0.8);
}

/* ============ Menu ============ */
.menu { background: var(--char-deep); position: relative; overflow: hidden; }
.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(204, 97, 0, 0.07), transparent 70%);
  pointer-events: none;
}
.menu__head { text-align: center; max-width: 44rem; margin: 0 auto var(--space-5); }
.menu__note { color: var(--cream-dim); }

.menu__skewer {
  position: relative;
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 3.4rem;
}
.menu__spine {
  position: absolute;
  left: 0;
  top: -0.6rem;
  bottom: 0;
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu__spine-icon { flex: 0 0 auto; }
.menu__spine-line {
  flex: 1;
  width: 3px;
  background: linear-gradient(180deg, var(--flame) 0%, rgba(201, 62, 34, 0.75) 100%);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease-out);
}
.menu__spine.is-drawn .menu__spine-line { transform: scaleY(1); }
.menu__spine-tip {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 14px solid var(--flame);
  opacity: 0;
  transition: opacity 0.4s 1.2s;
}
.menu__spine.is-drawn .menu__spine-tip { opacity: 1; }

.menu__items { list-style: none; display: grid; gap: clamp(1.6rem, 3.5vw, 2.4rem); }
.menu__item { position: relative; padding: 0.2rem 0 0.2rem 0.4rem; }
.menu__chunk {
  position: absolute;
  left: calc(-3.4rem + 17px);
  top: 0.75rem;
  width: 16px;
  height: 16px;
  border-radius: 45% 55% 50% 48%;
  background: var(--flame);
  transform: translateX(-50%) rotate(12deg);
  box-shadow: 0 0 0 4px var(--char-deep), 0 0 14px rgba(201, 62, 34, 0.55);
}
.menu__item-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.35rem;
}
.menu__item-head h3 { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #ece2c8; }
.menu__dots { flex: 1; border-bottom: 2px dotted rgba(223, 212, 185, 0.28); transform: translateY(-4px); }
.menu__price {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ember);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu__item p { color: var(--cream-dim); max-width: 32rem; font-size: 0.98rem; }

.menu__item--deluxe {
  background: linear-gradient(120deg, rgba(201, 62, 34, 0.12), rgba(204, 97, 0, 0.06));
  border: 1px solid rgba(201, 62, 34, 0.35);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.menu__item--deluxe .menu__chunk { left: calc(-3.4rem + 17px - 1.5rem); top: 1.85rem; box-shadow: 0 0 0 4px var(--char-deep), 0 0 18px rgba(224, 74, 43, 0.8); }
.menu__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--flame-bright);
  margin-bottom: 0.5rem;
}
.menu__item--extra .menu__chunk { width: 11px; height: 11px; top: 0.85rem; }

/* ============ Gallery ============ */
.gallery { background: var(--char); text-align: center; }
.gallery__grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.12); }
.gallery__more { margin-top: var(--space-4); }

/* ============ Catering ============ */
.catering { position: relative; overflow: hidden; text-align: center; }
.catering__bg { position: absolute; inset: 0; }
.catering__bg img { width: 100%; height: 100%; object-fit: cover; }
.catering__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--char) 0%, rgba(22, 22, 21, 0.88) 18%, rgba(22, 22, 21, 0.88) 82%, var(--char-deep) 100%);
}
.catering__content { position: relative; }
.eyebrow--light { color: var(--ember); }
.catering__sub { max-width: 38rem; margin: 0 auto var(--space-4); color: rgba(223, 212, 185, 0.85); }

.catering__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  max-width: 58rem;
  margin: 0 auto var(--space-4);
  text-align: left;
}
.catering__card {
  background: rgba(33, 33, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(223, 212, 185, 0.14);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.catering__card:hover { transform: translateY(-6px); border-color: rgba(201, 62, 34, 0.55); }
.catering__card h3 { font-size: 1.02rem; color: var(--flame-bright); margin-bottom: 0.6rem; }
.catering__card p { color: var(--cream-dim); font-size: 0.97rem; }

.catering__phone { margin-top: var(--space-2); color: var(--cream-dim); font-size: 0.95rem; }
.catering__phone a { color: var(--cream); text-decoration-color: var(--ember); text-underline-offset: 4px; }
.catering__phone a:hover { color: var(--flame-bright); }

/* ============ Footer ============ */
.footer { background: var(--char-deep); border-top: 1px solid rgba(223, 212, 185, 0.08); }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: var(--space-5);
  align-items: start;
}
.footer__brand img { width: 165px; }
.footer__col { display: grid; gap: 0.55rem; align-content: start; }
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.4rem;
}
.footer__col a, .footer__col span {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.98rem;
  width: fit-content;
}
.footer__col a { padding-block: 2px; transition: color 0.2s; }
.footer__col a:hover { color: var(--flame-bright); }

.footer__bar {
  border-top: 1px solid rgba(223, 212, 185, 0.08);
  padding: 1.2rem 1.2rem calc(1.2rem + 72px);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(223, 212, 185, 0.45);
}

/* ============ WhatsApp FAB ============ */
.whatsapp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-out);
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}

@media (max-width: 860px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(22, 22, 21, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links > a:not(.btn) { font-size: 1.35rem; }
  .nav__cta { font-size: 1rem; padding: 0.9rem 1.8rem; }

  .story__grid { grid-template-columns: 1fr; }
  .story__media { max-width: 26rem; margin-inline: auto 3rem; }
  .story__photo--float { right: -3rem; }

  .catering__cards { grid-template-columns: 1fr; max-width: 30rem; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-4); }

  .whatsapp-fab { display: flex; }
}

@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; padding-inline: 1rem; }
  .gallery__item--tall { grid-row: span 1; }

  .menu__skewer { padding-left: 2.6rem; }
  .menu__chunk { left: calc(-2.6rem + 17px); }
  .menu__item--deluxe .menu__chunk { left: calc(-2.6rem + 17px - 1.25rem); }
  .menu__item--deluxe { padding: 1.1rem 1.25rem; }
  .menu__item-head { flex-wrap: wrap; gap: 0.4rem 0.9rem; }
  .menu__dots { min-width: 2rem; }

  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .line__inner.reveal-load { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero__bg img { animation: none; }
  .marquee__track { animation: none; }
  .hero__scroll-line { animation: none; }
  .ember { display: none; }
  .menu__spine-line { transition: none; transform: scaleY(1); }
  .menu__spine-tip { transition: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
