/* Universal Layout Template for PizzaDojo2Go */
:root {
  --overlay-top: 0.25;   /* lighter up top so the flame pops */
  --overlay-bot: 0.65;   /* a bit darker near the bottom for contrast */
  --title-size: clamp(2rem, 6vw, 4rem);
  --tagline-size: clamp(1.1rem, 3.2vw, 2rem);
  --content-size: clamp(1rem, 2.5vw, 1.5rem);
  
  /* Warm Japanese Dojo Color Palette */
  --dojo-gold: #d4af37;
  --dojo-gold-light: #f4d03f;
  --dojo-gold-dark: #b8941f;
  --dojo-brown: #8b6f47;
  --dojo-brown-light: #a68b5b;
  --dojo-brown-dark: #6b5433;
  --dojo-cream: #f5e6d3;
  --dojo-cream-light: #faf5ed;
  --dojo-wood: #5d4037;
  --dojo-text: #fff;
  --dojo-text-shadow: rgba(0, 0, 0, 0.8);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Bangers', cursive;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background video/image styles */
#bgVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -2;
  background: #000; /* in case video takes a moment to start */
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  background: #000;
}

/* Soft gradient overlay so text is readable */
.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,var(--overlay-top)),
    rgba(0,0,0,var(--overlay-bot))
  );
  z-index: -1;
  pointer-events: none;
}

/* Main layout container */
.container {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  padding: 4dvh 5vw;
  padding-top: calc(4dvh + 60px); /* Account for fixed navigation */
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Menu */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(93, 64, 55, 0.85); /* dojo-wood with transparency */
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--dojo-gold);
  z-index: 1000;
  padding: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--dojo-cream);
  text-decoration: none;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  position: relative;
  letter-spacing: 0.05em;
}

.nav-menu a:hover {
  color: var(--dojo-gold-light);
  background: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.nav-menu a.active {
  color: var(--dojo-gold);
  border-bottom: 2px solid var(--dojo-gold);
}

/* Header styles */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: var(--title-size);
  font-weight: 400;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.05em;
  text-transform: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}

/* Main content area */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 50vh;
}

.headline {
  margin: 0;
  font-size: var(--tagline-size);
  font-weight: 400;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}

.content {
  font-size: var(--content-size);
  font-family: 'Bangers', cursive;
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Navigation and actions */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 2px solid #fff;
  padding: .7rem 1.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  transition: all .25s ease;
  border-radius: .4rem;
  background: rgba(0,0,0,.15);
  backdrop-filter: blur(2px);
  font-family: 'Bangers', cursive;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* Footer styles */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: auto;
}

.footer-content {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    padding: 0.9rem 0;
  }
  
  .nav-menu ul {
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    justify-content: space-between;
    padding: 0.3rem 1rem;
    align-content: flex-start;
  }
  
  .nav-menu li {
    flex: 0 0 auto;
  }
  
  .nav-menu a {
    font-size: 1.9rem;
    padding: 0.35rem 0.5rem;
    white-space: nowrap;
    display: block;
  }
  
  .container {
    padding: 2dvh 4vw;
    padding-top: calc(2dvh + 85px); /* Account for fixed navigation on mobile */
    gap: 1.5rem;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  main {
    min-height: 40vh;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    padding: 0.85rem 0;
  }
  
  .nav-menu ul {
    gap: 0.4rem 0.8rem;
    justify-content: space-between;
    padding: 0.3rem 0.8rem;
    align-content: flex-start;
  }
  
  .nav-menu li {
    flex: 0 0 auto;
  }
  
  .nav-menu a {
    font-size: 1.8rem;
    padding: 0.3rem 0.4rem;
    display: block;
  }
  
  .container {
    padding: 1dvh 3vw;
    padding-top: calc(1dvh + 80px); /* Account for fixed navigation on small mobile */
    gap: 1rem;
  }
  
  .btn {
    padding: .6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

