:root {
    /* Color Palette */
    --primary-gold: #D4AF37;
    --deep-red: #8B0000;
    --dark-bg: #1A1A1A;
    --glass-white: rgba(255, 255, 255, 0.1);
    --text-light: #F5F5F5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Fluid Spacing & Sizing */
    --section-padding: clamp(2rem, 5vw, 5rem);
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
}

/* Hero Section Styling */
.hero-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
            image-set(
                url('images/hero-bg.avif') type('image/avif'),
                url('images/hero-bg.webp') type('image/webp'),
                url('images/hero-bg.jpg') type('image/jpeg')
            ) no-repeat center center / cover;

    padding: var(--section-padding);
}

.hero-content {
    animation: fadeInUp 1s ease-out; /* Section 3: Entrance animation */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem); /* Fluid typography */
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-light);
}

.hero-content em{
    color: var(--primary-gold);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-inline: auto;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--dark-bg);
    margin-right: 1rem;
}

.btn-secondary {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #f0c541;
}

/* Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* The Navigation Bar CSS */

/* Sticky navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #222;
  color: #fff;
  padding: 1rem 2rem;

  /* Enable container queries */
  container-type: inline-size;
  container-name: navbar;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo on the left */
.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}

/* Desktop nav centered */
.desktop-only {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.desktop-only a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.desktop-only a:hover {
  color: #f0a500;
}

/* Mobile nav hidden by default */
.mobile-only {
  display: none;
}

/* Hamburger icon */
.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile nav links */
.nav-links-mobile {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  background: #333;
  border-radius: 8px;
}

.nav-links-mobile li {
  border-bottom: 1px solid #444;
}

.nav-links-mobile li:last-child {
  border-bottom: none;
}

.nav-links-mobile a {
  display: block;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
}

.nav-links-mobile a:hover {
  background: #444;
  color: #f0a500;
}

/* ------------------------------
   Global viewport responsiveness
   ------------------------------ */
@media (max-width: 1024px) {
  .desktop-only {
    gap: 1rem;
  }
}

/* ------------------------------
   Component-level responsiveness
   ------------------------------ */
@container navbar (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* Styling for the Menu Section */

.menu-section {
    padding: var(--section-padding);
    container-type: inline-size; /* Enabling Container Queries */
}

.menu-section h2{
    text-align: center;
}

.info{
    text-align: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.bento-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
}

.menu-item {
    background: var(--glass-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

/* Overlay layer */
.menu-item::before {
    content: "";
    position: absolute;
    inset: 0; /* covers the whole item */
    background: rgba(0,0,0,0.4); /* semi-transparent black */
    z-index: 1; /* sits above the image */
}

.menu-item:hover { 
   transform: translateY(-10px); 
}

/* Bento Spanning */
.featured { 
   grid-column: span 2; 
   grid-row: span 2; 
}

.tall { 
  grid-row: span 2; 
}

.menu-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-info {
    position: absolute;
    bottom: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    width: 100%;
    z-index: 2; /* ensures text is above overlay */
}

/* Modern Container Query for responsiveness */
@container (max-width: 900px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@container (max-width: 500px) {
    .bento-grid { grid-template-columns: 1fr; }
    .featured, .tall { grid-column: auto; grid-row: auto; }
}

/* About Section Styles */

.about-section {
    padding: var(--section-padding);
    container-type: inline-size; /* Essential for container queries */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.chef-quote {
    position: relative;
    font-style: italic;
    font-size: 1.2rem;
    padding: 1.5rem 0;
    color: var(--primary-gold);
}

.chef-quote::before {
    content: "“";
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: -20px;
    opacity: 0.2;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Container Query for Stacking Columns */
@container (max-width: 700px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Puts image on top when stacked */
    }
}

/* Styles for Hours Section */

.hours-section {
    padding: var(--section-padding);
    display: flex;
    justify-content: center;
}

.hours-card {
    background: var(--glass-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 600px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums; /* Keeps numbers aligned */
}

.hours-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--primary-gold);
    font-weight: 500;
}

.hours-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.highlight {
    color: var(--text-light);
    font-weight: bold;
    background: rgba(212, 175, 55, 0.05);
}

/* RESERVATION FORM STYLING */

.reservation-section {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.form-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-white);
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: var(--border-radius);
}

.res-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    border-radius: 8px;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

@container (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

/* CONTACT INFORMATION CSS STYLES */

.contact-section {
    padding: var(--section-padding);
    container-type: inline-size;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1.1rem;
}

address a {
    color: var(--primary-gold);
    text-decoration: none;
}

@container (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS For FOOTER SECTION */

.main-footer {
    background: #111;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 2;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.back-to-top {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: bold;
}