/* =============================================
   THE FUNNY FARM RESTAURANT — Demo Site Styles
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #1A1A1A;
  --gold:      #F5A623;
  --orange:    #E8690A;
  --cream:     #FAF6EF;
  --warm-white:#FFFDF8;
  --green:     #3B6B3B;
  --red:       #C0392B;
  --gray:      #6B6B6B;
  --light-gray:#E8E4DC;
  --font-head: 'Oswald', 'Impact', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --radius:    6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

/* ---- Utility ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-weight: 700;
}
.btn-primary:hover { background: #e09410; transform: translateY(-2px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: var(--radius);
  border: 2px solid var(--cream);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-weight: 700;
}
.btn-secondary:hover { background: var(--cream); color: var(--black); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-order {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
}
.nav-order:hover { background: #e09410 !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--black);
  border-top: 1px solid rgba(245,166,35,0.3);
  padding: 16px 24px 24px;
  gap: 4px;
}
.nav-mobile a {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  opacity: 0.35;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.6) 60%, rgba(232,105,10,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: white;
  margin-bottom: 8px;
  line-height: 0.95;
}

.hero-title .gold { color: var(--gold); }

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   MARQUEE STRIP
   ============================================================ */
.marquee-strip {
  background: var(--gold);
  color: var(--black);
  overflow: hidden;
  padding: 12px 0;
  white-space: nowrap;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.marquee-track {
  display: inline-block;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 20px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FACEBOOK LIVE EMBED SECTION
   ============================================================ */
.fb-live-section {
  background: var(--warm-white);
  padding: 80px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.fb-live-inner {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 64px;
  align-items: center;
}

.fb-live-text .section-label { color: var(--orange); }
.fb-live-text .section-title { margin-bottom: 16px; }

.fb-live-text p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

.fb-live-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
  border: 1px solid var(--light-gray);
}

@media (max-width: 900px) {
  .fb-live-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fb-live-embed iframe {
    max-width: 100% !important;
  }
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.brands-section {
  background: var(--black);
  padding: 80px 0;
  color: white;
}

.brands-header {
  text-align: center;
  margin-bottom: 56px;
}

.brands-header .section-title { color: white; }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.brand-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.brand-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.brand-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.brand-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ============================================================
   FOOD GALLERY
   ============================================================ */
.gallery-section {
  padding: 80px 0;
  background: var(--cream);
}

.gallery-header {
  text-align: center;
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 10px;
  background: var(--light-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; height: 420px; }
.gallery-item:nth-child(2) { grid-column: span 5; height: 204px; }
.gallery-item:nth-child(3) { grid-column: span 5; height: 204px; }
.gallery-item:nth-child(4) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(5) { grid-column: span 4; height: 260px; }
.gallery-item:nth-child(6) { grid-column: span 4; height: 260px; }

/* ============================================================
   ABOUT / STORY SECTION
   ============================================================ */
.about-section {
  padding: 80px 0;
  background: var(--warm-white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 20px; }

.about-text p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p strong { color: var(--black); }

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

.stat-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border-left: 4px solid var(--gold);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.about-image-stack {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-img-accent {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: 48%;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: var(--shadow);
}

/* ============================================================
   FACEBOOK CAROUSEL SECTION
   ============================================================ */
.fb-section {
  background: var(--black);
  color: white;
  padding-bottom: 64px;
  overflow: hidden;
}

.fb-header-wrap {
  padding: 64px 0 40px;
}

.fb-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.fb-header-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 8px;
}

.fb-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877F2;
  color: white;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.fb-cta-link:hover { background: #1565d8; }
.fb-cta-link svg { width: 20px; height: 20px; fill: white; }

/* Carousel outer wrapper — positions scroll buttons */
.fb-carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0 16px;
}

/* The scrollable track */
.fb-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 24px 16px;
  flex: 1;
  min-width: 0;
}
.fb-carousel::-webkit-scrollbar { display: none; }

/* Individual post card */
.fb-post-card {
  flex: 0 0 300px;
  width: 300px;
  background: #242424;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: white;
  display: flex;
  flex-direction: column;
}
.fb-post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.4);
}

.fb-post-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #333;
  flex-shrink: 0;
}
.fb-post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.fb-post-card:hover .fb-post-img-wrap img { transform: scale(1.04); }

.fb-post-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fb-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.fb-post-name {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: white;
  letter-spacing: 0.03em;
}

.fb-post-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1px;
}

.fb-post-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  flex: 1;
}

.fb-post-tags {
  font-size: 0.78rem;
  color: #1877F2;
  line-height: 1.5;
}

.fb-post-reactions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.fb-reaction {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* CTA card at the end of the carousel */
.fb-post-cta-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(24,119,242,0.3);
  cursor: default;
}
.fb-post-cta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24,119,242,0.6);
}

.fb-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 16px;
  height: 100%;
  min-height: 360px;
}

.fb-cta-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fb-cta-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* Scroll arrow buttons */
.fb-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245,166,35,0.9);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: background 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.fb-scroll-btn:hover { background: var(--gold); }

.fb-scroll-left  { left: 4px; }
.fb-scroll-right { right: 4px; }

/* ============================================================
   VISIT / CONTACT SECTION
   ============================================================ */
.visit-section {
  padding: 80px 0;
  background: var(--cream);
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-info .section-title { margin-bottom: 32px; }

.info-block {
  margin-bottom: 28px;
}

.info-block-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.info-block-value {
  font-size: 1.05rem;
  color: var(--black);
  line-height: 1.6;
}

.info-block-value a { color: var(--orange); }
.info-block-value a:hover { text-decoration: underline; }

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.visit-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
  background: var(--light-gray);
}

.visit-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 32px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--black); }

.footer-col-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .fb-header { flex-direction: column; align-items: flex-start; }

  .about-inner,
  .visit-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-accent { display: none; }

  .gallery-item:nth-child(1) { grid-column: span 12; height: 300px; }
  .gallery-item:nth-child(2) { grid-column: span 6; height: 200px; }
  .gallery-item:nth-child(3) { grid-column: span 6; height: 200px; }
  .gallery-item:nth-child(4) { grid-column: span 12; height: 220px; }
  .gallery-item:nth-child(5) { grid-column: span 6; height: 200px; }
  .gallery-item:nth-child(6) { grid-column: span 6; height: 200px; }

  .fb-embed-wrap { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-actions { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
