/* Bar Landing Page - brewbar.vrgo.dev inspired design */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #f5f5f5;
  --border: #e0e0e0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--black);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-image {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  filter: grayscale(100%) blur(10px);
  animation: quickUnblurAndFade 5s ease-out forwards, slowZoom 20s ease-in-out infinite;
  will-change: transform, filter;
}

@keyframes quickUnblurAndFade {
  0% {
    filter: grayscale(100%) blur(10px);
  }
  20% {
    filter: grayscale(100%) blur(0px);
  }
  100% {
    filter: grayscale(0%) blur(0px);
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid var(--white);
}

.cta-button:hover {
  background: transparent;
  color: var(--white);
}

/* Sections */
section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: #666;
}

/* About Section */
#about {
  background: var(--gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease-out;
}

/* Menu Section */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.menu-category h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--black);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.menu-item-name {
  font-weight: 600;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

.menu-item-price {
  font-weight: 700;
  white-space: nowrap;
  margin-left: 1rem;
}

/* Gallery Section */
#gallery {
  background: var(--black);
  color: var(--white);
}

#gallery .section-title {
  color: var(--white);
}

#gallery .section-subtitle {
  color: #999;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.8s ease-out;
}

.gallery-item.in-view {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item.in-view img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Location Section */
#location {
  background: var(--gray);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.location-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.location-info p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.hours {
  margin-top: 2rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--white);
  transition: all 0.3s;
  opacity: 0.7;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.social-links svg {
  width: 28px;
  height: 28px;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: -100%;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .about-content,
  .location-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  section {
    padding: 4rem 1.5rem;
  }

  .hero {
    margin-top: 72px;
  }
}
