/* Clem's Cafe — Red & Black BBQ Theme */

:root {
  --red: #c41e1e;
  --red-dark: #8b0000;
  --red-bright: #e83030;
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --charcoal: #2a2a2a;
  --cream: #f5f0e8;
  --gold: #d4a843;
  --text: #e8e0d4;
  --text-muted: #a89f94;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --header-height: 80px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(13, 13, 13, 0.92), rgba(13, 13, 13, 0.92)),
    url('/images/dark-wood-wall.jpeg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

body.page-entering {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  height: 60px;
  width: auto;
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--red);
  color: var(--cream);
}

/* Main */
main {
  flex: 1;
}

.section {
  padding: 4rem 0;
}

.section-dark {
  background: rgba(0, 0, 0, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--cream);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--red);
  margin: 0.75rem auto 0;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-height));
  max-height: 700px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--black-soft) 100%);
  border-right: 4px solid var(--red);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-image {
  position: relative;
  overflow: hidden;
}

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

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 30%);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--red-bright);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 30, 0.4);
}

/* Welcome */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.welcome-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--cream);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.welcome-text p {
  margin-bottom: 1rem;
  color: var(--text);
}

.welcome-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.welcome-images img {
  border-radius: 8px;
  border: 3px solid var(--charcoal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.welcome-images img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.highlight-card {
  background: var(--black-soft);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--charcoal);
  transition: transform var(--transition), border-color var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
}

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

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  padding: 1rem 1.25rem 0.25rem;
  letter-spacing: 0.05em;
}

.highlight-card p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Info Banner */
.info-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 2.5rem 0;
}

.info-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.info-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.info-item p {
  color: var(--cream);
  opacity: 0.95;
}

.info-item a {
  color: var(--cream);
  font-weight: 700;
  font-size: 1.2rem;
}

.info-item a:hover {
  color: var(--gold);
}

.info-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Page Hero */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 0, 0, 0.3) 0%, transparent 100%);
  border-bottom: 2px solid var(--red);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* Menu Boards */
.menu-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.menu-board {
  background: var(--black-soft);
  border: 2px solid var(--charcoal);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.board-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.board-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.board-subtitle {
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.board-content {
  padding: 1.5rem 1.75rem 2rem;
}

.menu-category {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px dashed var(--charcoal);
}

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

.menu-category h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}

.menu-item-size {
  color: var(--text);
  flex: 1;
}

.menu-item-price {
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
}

.menu-item-price::before {
  content: '$';
}

.menu-options {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--red);
}

.menu-options-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.menu-option {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.15rem 0;
}

.menu-option::before {
  content: '• ';
  color: var(--red);
}

/* About */
.about-story {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--cream);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

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

.about-story-image img {
  border-radius: 8px;
  border: 3px solid var(--red);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

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

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--charcoal);
}

.gallery-item-large {
  grid-row: span 2;
}

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

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--cream);
}

/* T-Shirt */
.tshirt-section {
  background: rgba(139, 0, 0, 0.15);
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.tshirt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.tshirt-image img {
  border-radius: 8px;
  border: 3px solid var(--charcoal);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  margin: 0 auto;
}

.tshirt-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.tshirt-info p {
  margin-bottom: 1rem;
}

.tshirt-cta {
  font-weight: 600;
  color: var(--gold);
}

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.visit-card {
  background: var(--black-soft);
  border: 1px solid var(--charcoal);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-bright);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--black);
  border-top: 3px solid var(--red);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  height: 50px;
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer-inner p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.footer-inner a {
  color: var(--cream);
}

.copyright {
  margin-top: 1rem;
  font-size: 0.8rem !important;
  opacity: 0.6;
}

/* Flame overlay */
#flame-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

#flame-overlay.active {
  pointer-events: all;
  opacity: 1;
}

#flame-overlay canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .hero-content {
    border-right: none;
    border-bottom: 4px solid var(--red);
    padding: 2.5rem 1.5rem;
    min-height: 50vh;
  }

  .hero-image {
    height: 40vh;
    min-height: 250px;
  }

  .hero-image::after {
    background: linear-gradient(to top, var(--black) 0%, transparent 40%);
  }

  .welcome-grid,
  .about-story,
  .tshirt-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .welcome-images {
    grid-template-columns: 1fr 1fr;
  }

  .welcome-images img:first-child {
    grid-row: span 1;
  }

  .highlights-grid,
  .menu-boards,
  .info-banner-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

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

  .gallery-item-large {
    grid-row: span 1;
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 3px solid var(--red);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    position: relative;
  }

  .logo {
    height: 48px;
  }

  .welcome-images {
    grid-template-columns: 1fr;
  }

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

  .gallery-item-large {
    grid-column: span 1;
  }

  .section {
    padding: 2.5rem 0;
  }

  .menu-item {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 0;
  }
}
