/* =====================================================
   Marleo Sicilian Streetfood — Styles.css
   Warm, Story-Driven, Sicilian-Inspired Design
   Author: Cozy Pixel
   ===================================================== */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --yellow: #c4ab06;
  --white: #ffffff;
  --text-dark: #222;
  --text-muted: #555;
  --shadow: rgba(0, 0, 0, 0.08);
  --accent-green: #627b31;
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ==================== RESET / BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--yellow);
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ==================== FULL BACKGROUND VIDEO ==================== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  opacity: 0.45;
  filter: brightness(0.9) saturate(1.2);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(196, 171, 6, 0.45);
  mix-blend-mode: multiply;
  z-index: -2;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3 {
  font-family: var(--font-headline);
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==================== NAVIGATION ==================== */
.header {
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ✅ Bigger Logo */
.logo img {
  height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Optional: smaller on phones */
@media (max-width: 600px) {
  .logo img {
    height: 60px;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-green);
}

/* ==================== HERO ==================== */
.hero {
  text-align: center;
  color: var(--white);
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(196, 171, 6, 0.45);
  backdrop-filter: brightness(0.9);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.hero p {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* ==================== HERO BUTTONS LAYOUT ==================== */
.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  flex-direction: row;
  margin-top: 1rem;
}

/* ==================== BUTTONS (Compact Lemon-Themed Marleo Style) ==================== */
.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* 🍋 Primary (Order Direct) */
.btn.primary {
  background: linear-gradient(135deg, #f9e97d, #f5d942);
  color: #3b3a00;
  border: 2px solid #f5d942;
  box-shadow: 0 3px 10px rgba(196, 171, 6, 0.35);
}

.btn.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: rgba(255, 255, 255, 0.45);
  opacity: 0.25;
  pointer-events: none;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #ffe659, #f8cf1a);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(196, 171, 6, 0.45);
}

/* 🫒 Secondary (Deliveroo / Just Eat) */
.btn.secondary {
  background-color: #ffffff;
  color: #4b4b00;
  border: 2px solid #f7e97f;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn.secondary:hover {
  background-color: #f7e97f;
  color: #2b2a00;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(196, 171, 6, 0.3);
}

/* ✨ Animated citrus gleam */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.btn:hover::after {
  left: 120%;
}

/* 🧡 Responsive tweak */
@media (max-width: 500px) {
  .hero-buttons {
    flex-wrap: wrap;
  }
  .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.2rem;
    margin-bottom: 0.4rem;
  }
}

/* ==================== ABOUT ==================== */
.about {
  background-color: var(--white);
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

.about .container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow);
  object-fit: cover;
}

.about-text p {
  font-size: 1.05rem;
}

/* ==================== MENU ==================== */
.menu {
  padding: 4rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  text-align: center;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(3px);
}

.menu h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.menu-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.95);
  font-size: 1.1rem;
}

.menu-category {
  margin-bottom: 3.5rem;
}

.menu-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.menu-item {
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.menu-item:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.18);
}

.menu-item img {
  width: 100%;
  max-width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.menu-item h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.menu-item p {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin: 0;
}

.cta {
  margin-top: 3rem;
}

/* ==================== GALLERY ==================== */
.gallery {
  background: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.gallery h2 {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px var(--shadow);
  transition: var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ==================== FIND US ==================== */
.find-us {
  padding: 4rem 1.5rem;
  background-color: rgba(196,171,6,0.5);
  color: var(--white);
  text-align: center;
  position: relative;
  z-index: 2;
}

.find-us h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.find-us p {
  color: var(--white);
  margin-bottom: 2rem;
  font-weight: 500;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-links a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  transition: var(--transition);
}

.contact-links a:hover {
  color: var(--accent-green);
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--white);
  color: var(--text-dark);
  text-align: center;
  padding: 2rem 1rem;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.footer small {
  color: var(--text-muted);
}

/* 🍋 SOUND TOGGLE — Lemon-themed bottom-right button */
.sound-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999 !important; /* Always above everything */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9e97d, #f5d942);
  border: 2px solid #f5d942;
  box-shadow: 0 6px 18px rgba(196, 171, 6, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease;
  backdrop-filter: blur(5px);
  opacity: 0.95;
}

.sound-toggle:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #ffe659, #f8cf1a);
  box-shadow: 0 8px 20px rgba(196, 171, 6, 0.5);
  opacity: 1;
}

/* Lemon glow outline on active click */
.sound-toggle:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 5px rgba(245, 217, 66, 0.3);
}

/* 🎧 Icon styling */
.sound-toggle svg {
  width: 26px;
  height: 26px;
  fill: #3b3a00; /* warm olive tone for contrast */
  transition: fill 0.3s ease;
}

/* When muted, icon dims slightly */
.sound-toggle.muted svg {
  fill: #8c8700;
  opacity: 0.8;
}

/* Hide/show logic */
.sound-toggle .icon-sound-off {
  display: none;
}

.sound-toggle.muted .icon-sound-on {
  display: none;
}

.sound-toggle.muted .icon-sound-off {
  display: block;
}

/* 📱 Mobile sizing */
@media (max-width: 600px) {
  .sound-toggle {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(196, 171, 6, 0.35);
  }

  .sound-toggle svg {
    width: 22px;
    height: 22px;
  }
}

/* ==================== MEDIA QUERIES ==================== */
@media (min-width: 768px) {
  .about .container {
    flex-direction: row;
    align-items: center;
  }

  .about-img {
    flex: 1;
  }

  .about-text {
    flex: 1;
    padding-left: 2rem;
  }

  .menu-item img {
    height: 200px;
    max-width: 240px;
  }
}

@media (max-width: 480px) {
  .menu-item img {
    height: 160px;
  }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
