/* ===================================
   Blue Door 304 - Speakeasy Cocktail Bar
   Google Fonts: Bodoni Moda + Outfit
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,700;1,6..96,400&family=Outfit:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg: #0a0a0f;
  --color-bg-alt: #111118;
  --color-surface: #1a1a24;
  --color-surface-light: #242434;
  --color-primary: #2b5797;
  --color-primary-light: #4a7ec5;
  --color-accent: #c8a24e;
  --color-accent-light: #e0be6a;
  --color-text: #e8e4dd;
  --color-text-muted: #9a9590;
  --color-text-dark: #6a6560;
  --color-border: #2a2a38;
  --color-overlay: rgba(10, 10, 15, 0.85);
  --font-heading: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-light);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.accent {
  color: var(--color-accent);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 1.5rem auto;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 1px;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  margin-top: var(--header-height);
}

.breadcrumbs ul {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs li {
  font-size: 0.8rem;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumbs li a {
  color: var(--color-text-muted);
}

.breadcrumbs li a:hover {
  color: var(--color-accent);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-text-dark);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.7) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-filled {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-filled:hover {
  background: var(--color-accent-light);
  color: var(--color-bg);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero .hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.4) 0%,
    rgba(10, 10, 15, 0.8) 100%
  );
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
}

/* --- About Preview (Home) --- */
.about-preview {
  background: var(--color-bg-alt);
}

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

.about-image {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  opacity: 0.3;
  pointer-events: none;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
}

/* --- Cocktails Preview (Home) --- */
.cocktails-preview {
  background: var(--color-bg);
}

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

.cocktail-card {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cocktail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cocktail-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.cocktail-card-body {
  padding: 1.5rem;
}

.cocktail-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.cocktail-card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.cocktail-price {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* --- Experience / Features --- */
.experience {
  background: var(--color-bg-alt);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(10, 10, 15, 0.3);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition);
  z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-accent);
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Menu / Drinks Section --- */
.menu-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 3rem;
  margin-bottom: 3rem;
}

.menu-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.menu-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-accent);
  display: inline-block;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

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

.menu-item-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.menu-item-info p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.menu-item-price {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.contact-item a {
  color: var(--color-accent);
}

.contact-map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 400px;
  background: var(--color-surface);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  filter: grayscale(0.8) brightness(0.7) contrast(1.2);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-section .hero-bg::after {
  background: rgba(10, 10, 15, 0.8);
}

.cta-section h2 {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
}

.cta-section p {
  position: relative;
  z-index: 2;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-section .btn {
  position: relative;
  z-index: 2;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-brand h3 span {
  color: var(--color-accent);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links h4,
.footer-hours h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-hours p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--color-text-dark);
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--color-accent);
}

/* --- About Page --- */
.about-content {
  background: var(--color-bg);
}

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

.about-story.reverse {
  direction: rtl;
}

.about-story.reverse > * {
  direction: ltr;
}

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

.about-story-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.about-story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.about-values {
  background: var(--color-bg-alt);
}

/* --- Events Section --- */
.events-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.events-text h3 {
  margin-bottom: 1rem;
}

.events-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.events-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

/* --- Menu page highlight --- */
.menu-hero-img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 3rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-bg-alt);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    border-left: 1px solid var(--color-border);
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-grid,
  .about-story,
  .about-story.reverse,
  .contact-grid,
  .events-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-story.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: 500px;
  }

  .page-hero {
    min-height: 280px;
    height: 40vh;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

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

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

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.4rem;
  }
}
