/* ============================================================
   PAC BRAZILIAN RESTAURANT — STYLESHEET
   Aesthetic : Playful-bold | Pac-Man × Brazilian warmth
   Fonts     : Abril Fatface (display) + Outfit (body)
   Palette   : Navy #1A2E6B | PAC Yellow #FFD700 | Green #009B3A | Cream #FAFAF5 | Dark #0D0D0D
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ---- CUSTOM PROPERTIES ---- */
:root {
  --color-dominant:  #1A2E6B;
  --color-accent:    #FFD700;
  --color-green:     #009B3A;
  --color-light:     #FAFAF5;
  --color-dark:      #0D0D0D;
  --color-card-bg:   #151515;
  --color-muted:     #888888;
  --font-display:    'Abril Fatface', serif;
  --font-body:       'Outfit', sans-serif;
  --nav-height:      84px;
  --section-pad:     80px 24px;
  --section-pad-lg:  100px 48px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 2px solid var(--color-accent);
}

.nav-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-accent); }

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-dark) !important;
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 700;
}
.nav-cta:hover { background: #e6c200 !important; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-light);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-dark);
  padding: 28px 24px 32px;
  z-index: 999;
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.mobile-menu a {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mobile-menu a:hover { color: var(--color-accent); }

.mobile-menu .menu-cta-row {
  margin-top: 28px;
  display: flex;
  gap: 12px;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary { background: var(--color-accent); color: var(--color-dark); }
.btn-primary:hover { background: #e6c200; }

.btn-secondary { background: transparent; color: var(--color-light); border-color: var(--color-light); }
.btn-secondary:hover { background: var(--color-light); color: var(--color-dark); }

.btn-dark { background: var(--color-dark); color: var(--color-accent); }
.btn-dark:hover { background: #1a1a1a; }

.btn-outline-accent { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline-accent:hover { background: var(--color-accent); color: var(--color-dark); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100dvh;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px 32px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
  display: block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  line-height: 0.95;
  color: var(--color-light);
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--color-accent); }

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #999;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Image */
.hero-image-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ============================================================
   PAC-MAN TRAIL — THE MEMORABLE ELEMENT
   A CSS Pac-Man (border trick) eats yellow dots as it moves
   left to right through the hero-to-story transition zone.
   ============================================================ */
.pac-trail-section {
  background: var(--color-dark);
  padding: 20px 0;
  position: relative;
  overflow: hidden;
}

.pac-trail {
  position: relative;
  height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* The Pac-Man — solid circle + clip-path mouth open/close */
.pac-man {
  position: absolute;
  top: 50%;
  left: -48px;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
  animation:
    pac-move 5s linear infinite,
    pac-chomp 0.28s ease-in-out infinite;
  z-index: 3;
}

@keyframes pac-move {
  from { left: -48px; }
  to   { left: calc(100% + 48px); }
}

/* Clip-path wedge: open = mouth cut from right side; closed = full circle */
@keyframes pac-chomp {
  0%, 100% {
    /* Mouth open wide — wedge removed from right */
    clip-path: polygon(
      50% 50%,
      100% 22%,
      100% 0%, 0% 0%, 0% 100%, 100% 100%,
      100% 78%
    );
  }
  50% {
    /* Mouth almost closed */
    clip-path: polygon(
      50% 50%,
      100% 48%,
      100% 0%, 0% 0%, 0% 100%, 100% 100%,
      100% 52%
    );
  }
}

/* Dark cover that wipes left→right in sync, "eating" the dots */
.pac-eater {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 0;
  background: var(--color-dark);
  animation: eat-wipe 5s linear infinite;
  z-index: 2;
}
@keyframes eat-wipe {
  from { width: 0; }
  to   { width: 100%; }
}

/* Dots row */
.pac-dots {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: 0 24px;
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: space-between;
}
.pac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.55;
  flex-shrink: 0;
}
.pac-dot.big {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}


/* ============================================================
   SHARED SECTION TYPOGRAPHY
   ============================================================ */
section { padding: var(--section-pad); }

.section-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.section-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #666;
  max-width: 580px;
}


/* ============================================================
   OUR STORY
   ============================================================ */
.story {
  background: var(--color-dark);
  color: var(--color-light);
}
.story .section-body { color: #999; }

.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: center;
}

.story-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 3px solid var(--color-accent);
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.stat {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}


/* ============================================================
   SIGNATURE DISHES
   ============================================================ */
.dishes { background: var(--color-light); }

.dish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.dish-card {
  background: #fff;
  overflow: hidden;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: border-color 0.25s;
}
.dish-card:hover { border-color: var(--color-accent); }

.dish-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.dish-body {
  padding: 20px 20px 24px;
}
.dish-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}
.dish-desc {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 14px;
}
.dish-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dominant);
}

.dishes-cta {
  margin-top: 40px;
  text-align: center;
}


/* ============================================================
   PAC PROMO BAND
   ============================================================ */
.pac-band {
  background: var(--color-accent);
  padding: 48px 24px;
  overflow: hidden;
  position: relative;
}

.pac-band-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.pac-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  color: var(--color-dark);
  line-height: 1;
  max-width: 560px;
}
.pac-band p {
  font-size: 1rem;
  color: #333;
  max-width: 420px;
  line-height: 1.6;
}
.pac-band-img {
  width: 100%;
  max-width: 340px;
  height: 240px;
  object-fit: cover;
  object-position: center;
  align-self: center;
  flex-shrink: 0;
}


/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
  background: var(--color-card-bg);
  color: var(--color-light);
}
.reviews .section-body { color: #999; }

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

.review-card {
  padding: 28px 24px;
  background: #1c1c1c;
  border-left: 3px solid var(--color-accent);
}
.review-stars {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.review-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #ccc;
  font-style: italic;
  margin-bottom: 16px;
}
.review-source {
  font-size: 0.72rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}


/* ============================================================
   CATERING & EVENTS
   ============================================================ */
.catering {
  background: var(--color-dominant);
  color: var(--color-light);
}
.catering .section-body { color: rgba(255,255,255,0.65); }

.catering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 44px;
}

.catering-card {
  padding: 28px 24px;
  border: 1px solid rgba(255,215,0,0.2);
  border-left: 3px solid var(--color-accent);
}
.catering-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.catering-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

.catering-cta { margin-top: 40px; }


/* ============================================================
   HOURS & LOCATION
   ============================================================ */
.location {
  background: var(--color-dark);
  color: var(--color-light);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 48px;
}

.hours-list {
  list-style: none;
  margin-top: 20px;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #1e1e1e;
  font-size: 0.9rem;
  gap: 12px;
}
.hours-list .day { color: #888; }
.hours-list .time { font-weight: 600; color: var(--color-light); }
.hours-list .closed { color: #444; font-style: italic; }

.contact-block {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 3px;
}
.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: #ccc;
}
.contact-item a:hover { color: var(--color-accent); }

.delivery-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.delivery-badge {
  padding: 10px 18px;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ccc;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.delivery-badge:hover { border-color: var(--color-accent); color: var(--color-accent); }

.map-wrap {
  width: 100%;
  height: 280px;
  border: 0;
  overflow: hidden;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000;
  padding: 56px 24px 32px;
  border-top: 2px solid var(--color-accent);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
  line-height: 1.5;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 0.875rem;
  color: #666;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-social {
  display: flex;
  gap: 12px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #222;
  border-radius: 22px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
}
.social-pill:hover { border-color: var(--color-accent); color: var(--color-accent); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #111;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #333;
}


/* ============================================================
   STICKY ORDER BAR (mobile only — appears after hero scroll)
   ============================================================ */
.sticky-order-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-dark);
  border-top: 2px solid var(--color-accent);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.sticky-order-bar.visible { transform: translateY(0); }
.sticky-order-bar .btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 12px 10px;
  text-align: center;
}


/* ============================================================
   MENU PAGE — HERO
   ============================================================ */
.menu-page-hero {
  background: var(--color-dark);
  padding: calc(var(--nav-height) + 64px) 24px 60px;
}
.menu-page-hero .section-title { color: var(--color-light); }
.menu-page-hero .section-body { color: #888; margin-top: 12px; }


/* ============================================================
   MENU PAGE — TABS
   ============================================================ */
.menu-tab-bar {
  position: sticky;
  top: var(--nav-height);
  background: var(--color-dark);
  border-bottom: 2px solid var(--color-accent);
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-tab-bar::-webkit-scrollbar { display: none; }

.menu-tab-list {
  display: flex;
  list-style: none;
  min-width: max-content;
  padding: 0 24px;
}

.tab-btn {
  padding: 20px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  min-height: 60px;
}
.tab-btn:hover { color: #ccc; }
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }


/* ============================================================
   MENU PAGE — CONTENT PANELS
   ============================================================ */
.menu-panels {
  background: var(--color-light);
  padding: 60px 24px 80px;
}

.menu-panel { display: none; }
.menu-panel.active { display: block; }

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-dark);
  margin-bottom: 6px;
}
.panel-note {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 44px;
}

/* Menu item rows — 1 col mobile, 2 col desktop */
.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 48px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #e8e4dc;
}
.menu-item:last-child { border-bottom: none; }

.item-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.item-desc {
  font-size: 0.83rem;
  color: #888;
  line-height: 1.55;
}
.item-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dominant);
  white-space: nowrap;
  padding-top: 2px;
}

/* Category sub-headers within a panel */
.menu-category {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-dominant);
  margin-top: 40px;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}
.menu-category:first-of-type { margin-top: 0; }

/* Featured item spotlight */
.menu-spotlight {
  background: var(--color-dark);
  color: var(--color-light);
  padding: 32px 24px;
  margin-bottom: 48px;
  border-left: 4px solid var(--color-accent);
}
.spotlight-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.spotlight-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 10px;
}
.spotlight-desc {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 16px;
}
.spotlight-price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-accent);
}


/* ============================================================
   DESKTOP BREAKPOINTS
   ============================================================ */
@media (min-width: 768px) {
  :root { --section-pad: var(--section-pad-lg); }

  section { padding: var(--section-pad-lg); }

  .site-nav { padding: 0 48px; }
  .hamburger { display: none; }
  .nav-links { display: flex; }

  .hero-content { padding: 80px 48px 40px; }

  .hero {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-content {
    flex: 1;
    max-width: 55%;
    justify-content: center;
  }
  .hero-image-wrap {
    flex: 1;
    height: auto;
    min-height: 100%;
  }

  .story-layout { grid-template-columns: 1fr 1fr; }
  .story-stats { grid-template-columns: repeat(4, 1fr); }

  .dish-grid { grid-template-columns: repeat(2, 1fr); }

  .review-grid { grid-template-columns: repeat(3, 1fr); }

  .catering-grid { grid-template-columns: repeat(3, 1fr); }

  .location-grid { grid-template-columns: 1fr 1fr; }

  .footer-top { flex-direction: row; gap: 60px; }
  .footer-nav ul { flex-direction: row; gap: 28px; }

  .sticky-order-bar { display: none; }

  .pac-trail-section { padding: 24px 0; }

  .menu-panels { padding: 80px 48px 100px; }
  .menu-items { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .menu-item { column-gap: 48px; }

  .pac-band { padding: 64px 48px; }
  .pac-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

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

@media (min-width: 1280px) {
  .hero-content { padding: 80px 80px 40px; }
  .hero-headline { font-size: 8rem; }
}
