/* ========================================
   Le Pub du Coin — Modern Redesign
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Colors */
  --color-bg:           #0a0a0a;
  --color-bg-card:      #151515;
  --color-bg-nav:       rgba(10, 10, 10, 0.8);
  --color-text:         #f1faee;
  --color-text-muted:   #a8a8a8;
  --color-accent:       #e63946;
  --color-accent-hover: #ff4d5a;
  --color-accent-warm:  #ff6b35;
  --color-border:       rgba(255, 255, 255, 0.06);
  --color-glow:         rgba(230, 57, 70, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Layout */
  --nav-height: 5rem;
  --max-width: 1080px;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ========================================
   Reset
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-lg));
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   Animations
   ======================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ========================================
   Hero Header
   ======================================== */

.site-header {
  position: relative;
  height: 50vh;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.site-header .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-header .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 1;
}

.site-header .hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
}

.site-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.site-header h1 span {
  color: var(--color-accent);
}

.site-header .tagline {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================
   Sticky Nav — Glassmorphism
   ======================================== */

.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.category-nav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.category-nav a {
  display: block;
  padding: 0.6rem 0.5rem;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.category-nav a:hover {
  color: var(--color-text);
}

.category-nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ========================================
   Main Content
   ======================================== */

.menu-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ========================================
   Section Hero Banners
   ======================================== */

.section-hero {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

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

.section-hero .section-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.7) 0%,
    rgba(10, 10, 10, 0.2) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
}

.section-hero h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Menu Section
   ======================================== */

.menu-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.menu-section > h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.menu-section > h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  font-style: italic;
  font-family: var(--font-heading);
}

/* ========================================
   Menu Cards Grid
   ======================================== */

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Card with image */
.menu-card {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}

.menu-card .card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.menu-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .menu-card:hover .card-image img {
    transform: scale(1.05);
  }
}

.menu-card .card-body {
  padding: var(--space-md);
}

.menu-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-sm);
  gap: var(--space-md);
}

.menu-card .card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  font-weight: 600;
}

.menu-card .card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.menu-card .card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  font-family: var(--font-heading);
}

/* Card without image — text-only, compact */
.menu-card.text-only {
  display: flex;
  flex-direction: column;
}

.menu-card.text-only .card-body {
  padding: var(--space-lg);
}

/* ========================================
   Multi-price layout (e.g. ailes de poulet)
   ======================================== */

.card-prices {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}

.card-price-option {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.card-price-option strong {
  color: var(--color-accent);
  font-weight: 700;
}

.card-sauces {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  font-style: italic;
  font-family: var(--font-heading);
}

.card-sauces .sauce-label {
  color: var(--color-accent);
  font-weight: 600;
  font-style: normal;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: #0f0f0f;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
  padding: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

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

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

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

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: var(--space-lg);
}

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

.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-hours-list {
  list-style: none;
}

.footer-hours-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 250px;
  margin: 0 auto;
}

.footer-hours-list li span:last-child {
  color: var(--color-text);
  font-weight: 600;
}

.footer-company-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-credit a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-credit p {
  margin-top: var(--space-xs);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.footer-disclaimer {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto var(--space-sm);
  line-height: 1.6;
  font-style: italic;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ========================================
   Responsive — Tablet (600px+)
   ======================================== */

@media (min-width: 600px) {
  :root {
    --nav-height: 3.5rem;
  }

  .category-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-nav ul {
    display: flex;
    justify-content: center;
    padding: 0 var(--space-sm);
  }

  .category-nav a {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-align: left;
  }

  .site-header {
    height: 75vh;
  }

  .site-header h1 {
    font-size: 4.5rem;
  }

  .site-header .tagline {
    font-size: 1.1rem;
  }

  .menu-card .card-body {
    padding: var(--space-lg);
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-hero {
    height: 320px;
  }

  .section-hero h2 {
    font-size: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col {
    text-align: left;
  }

  .footer-hours-list li {
    margin: 0;
  }

  .footer-restaurant {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
  }
}

/* ========================================
   Responsive — Desktop (900px+)
   ======================================== */

@media (min-width: 900px) {
  .menu-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-header h1 {
    font-size: 5rem;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-restaurant {
    grid-column: auto;
    text-align: left;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-col {
    text-align: left;
  }
}
