:root {
    --bg-dark: #202020;
    --surface: #202020;
    --accent: #d4af37; /* Gold accent */
    --text: #f5f5f5;
    --text-dim: #b0b0b0;
    /* Fluid Typography: min size, preferred, max size */
    --fs-h1: clamp(2.5rem, 8vw, 4.5rem);
    --fs-h2: clamp(1.8rem, 5vw, 2.5rem);
    --fs-body: clamp(1rem, 2vw, 1.125rem);
    --fs-h3: clamp(1.8rem, 3vw, 1.5rem);

    /* Z-INDEX */
    /* Lower layers */
    --zi-below: -1;
    --zi-base: 1;
    /* UI Components */
    --zi-sticky-nav: 200;
    /* Overlays & Modals */
    --zi-overlay: 1000;
    --zi-modal-content: 1010;
    /* System Level (Popups, Tooltips) */
    --zi-tooltip: 2000;
    --zi-max: 9999;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Responsive Navbar (No JS) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background:#202020;/* rgba(10, 10, 10, 0.95);*/
    z-index: var(--zi-sticky-nav);
}

.logo-text { 
  font-weight: bold; 
  font-size: 1.5rem; 
  letter-spacing: 2px; 
  color: var(--accent); 
}

.logo { 
  max-width: 300px;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text); text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.menu-toggle, .hamburger { display: none; }

/* --- Hero Section --- */
.hero {
  height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;


  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), 
              url('../resources/background/pulling-spaghetti.jpg') center/cover no-repeat;
  background-attachment: scroll; 
  position: relative;
  overflow: hidden;
}

h1 { 
  font-size: var(--fs-h1); 
  text-transform: uppercase; 
  margin-bottom: 1rem; 
}

/* --- Grid Section (Responsive via Auto-fit) --- */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    min-height: 60vh;
    align-items: center;
}

.card { padding: 10%; background: var(--surface); }
.card-image {
    height: 100%;
    min-height: 400px;
    background: url('menu-image.jpg') center/cover;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px; /* 40px vertical gap, 20px horizontal */
    padding: 5%;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;    
}

.staff-card {
    text-align: center; /* Centers all text under the image */
}

.image-container {
    width: 80%;
    aspect-ratio: 1 / 1; /* Keeps the image box a perfect square */
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 0; /* Space between image and text */

    margin-left: auto;
    margin-right: auto;
    
    /* Also, to center the <img> inside this container: */
    display: flex;
    align-items: center;
    justify-content: center;    
}

.image-container img {
    width: 60%;
    height: 60%;
    object-fit: cover; /* No stretching */
    object-position: center;
}
.staff-info{
    margin-top: -60px; /* Pulls the text up by 20px */
    position: relative; /* Ensures it sits "on top" of the container if they overla*/
}

.staff-info h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    
}

.staff-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

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

.socials-section{
  text-align: center;
  color: var(--accent);
  margin-top: 3rem;
  font-size: var(--fs-h2);

  display: flex;
  justify-content: center; /* Centers the group horizontally */
  align-items: center;     /* Aligns them vertically */
  gap: 20%;               /* This creates the perfect space between each item */
  flex-wrap: wrap;         /* Ensures they stack neatly on tiny mobile screens */  
}

.social-icon svg {
    width: 56px; /* Match the size of your other icons */
    height: 56px;
    fill: var(--accent); /* This colors the SVG */
    transition: transform 0.3s ease, fill 0.3s ease;
    vertical-align: middle;
}


/* 1. Set the transition on the base element (not the hover) */
.socials-section a {
    display: inline-block; /* Required for transform/translate to work on <a> tags */
    transition: transform 0.3s ease, fill 0.3s ease;
}

/* 2. Apply the effect specifically when that <a> is hovered */
.socials-section a:hover {
    transform: translateY(-5px);
}

/* 3. If you are using that SVG inside the link, target the fill there */
.socials-section a:hover svg {
    fill: var(--text);
}


.menu-section {
    padding: 4rem 5%;
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    color: var(--accent);
    margin-bottom: 3rem;
    font-size: var(--fs-h2);
    text-transform: uppercase;
}

.menu-grid {
    display: grid;
    /* 2 columns on desktop */
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    height: 220px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    
}

/* Dark overlay for text readability */
.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.menu-card:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card span {
    position: relative;
    z-index: var(--zi-base);
    color: var(--text);
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Desktop Images */
.item-1 { background-image: url('../resources/img/menus/a-la-carte.png'); }
.item-2 { background-image: url('../resources/img/menus/mid-week-offer.png'); }
.item-3 { background-image: url('../resources/img/menus/dessert.png'); }
.item-4 { background-image: url('../resources/img/menus/wine-list.png'); }
.item-5 { background-image: url('../resources/img/menus/cocktails.png'); }
.item-6 { background-image: url('../resources/img/menus/valentines.png'); }


.promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9); /* Deep dark background */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: var(--zi-overlay);
}

.promo-content {
    background: var(--surface);
    width: 90%;
    max-width: 600px;
    padding: 3rem;
    border: 2px solid var(--accent);
    text-align: center;
    position: relative;
    display: none; /* Hide all content initially */
    animation: zoomIn 0.5s ease;
}

.promo-content.show { display: block; }

.promo-body h1 { 
    color: var(--accent); 
    /* Min: 1.8rem (~28px), Ideal: 8vw of screen width, Max: 3rem (~48px) */
    font-size: clamp(1.8rem, 8vw, 3rem); 
    margin: 1rem 0; 
    line-height: 1.1; /* Keeps lines tight if the text wraps */
    word-wrap: break-word; /* Safety net for very long words */
}
.promo-body h2 { color: var(--text-dim); font-size: 1rem; letter-spacing: 3px; }
.promo-body p { margin-bottom: 2rem; color: var(--text); }

.promo-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-dim);
    cursor: pointer;
}

.opening-times-container {
    display: none; /* Hidden initially */
    position: fixed;
    top: 100px;
    left: 50%;
    width: 50%;
    height: 50vh;
    transform: translateX(-50%);
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--accent);
    z-index: var(--zi-overlay);
    text-align: center;
  font-size: clamp(0.95rem, 4vw, 1.125rem);
}

/* This class will be added by JavaScript */
.opening-times-container.show {
    display: block;
    animation: fadeInTop 0.5s ease forwards;
}


/* Container that hides the overflow */
.gallery-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--surface);
    padding: 20px 0;
    margin: auto;
    width: 95%;
}

.close-gallery {
    position: fixed; /* Stays in the corner even when you scroll the images */
    top: -10px;
    right: 25px;
    color: var(--accent);
    cursor: pointer;
    z-index: var(--zi-overlay);
    transition: transform 0.3s ease;
}

.close-gallery:hover {
    transform: scale(1.2);
}


/* The moving track */
.gallery-track {
    display: flex;
    width: calc(250px * 20); /* Adjust based on image count */
    animation: scroll 60s linear infinite;
}

.gallery-item {
    width: 200px; /* Fixed size */
    aspect-ratio: 1/1;
    margin: 0 10px;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
}

.full-gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--zi-overlay);
    overflow-y: auto;
    padding: 80px 5% 50px 5%; /* Top padding increased to make room for X */
    animation: fadeIn 0.4s ease;
}

.private-room-full-gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--zi-modal-content);
    overflow-y: auto;
    padding: 0 5% 50px 5%; /* Top padding increased to make room for X */
    animation: fadeIn 0.4s ease;
}

.private-room-full-gallery-overlay.show {
    display: block;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Cols Desktop */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Centering the divs horizontally in the column */
}

.grid-container .gallery-item {
    width: 75%;
    max-width: 500px; /* Prevents images from getting too huge on giant screens */
    display: flex;
    justify-content: center;
}

.grid-container .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1; /* Optional: keeps them uniform in the grid */
    object-fit: cover;
    border-radius: 4px;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves halfway through the doubled list */
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translate(-50%, -30px); /* Start slightly higher */
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0); /* End at natural position */
    }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.private-content {
    background: #000; /* Fallback */
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.private-body {
    position: relative; /* Essential for absolute video positioning */
    min-height: 400px; /* Adjust this to control how "short" the section is */
    display: flex;
    align-items: center;
}



/* Make video cover the entire body */
.body-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: var(--zi-base);
}

/* Darken the video so text remains readable */
.video-overlay-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* Adjust 0.7 to make it darker or lighter */
    z-index: calc(var(--zi-base) + 1);
}


.private-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: var(--zi-overlay);
    padding: 20px;
}

.private-content {
    background: var(--surface);
    width: 100%;
    max-width: 800px;
    border: 1px solid var(--accent);
    position: relative;
    animation: zoomIn 0.4s ease forwards;
}


/* Text Container stays on top */
.private-text-container {
    position: relative;
    z-index: calc(var(--zi-overlay) + 2);
    padding: 2.5rem;
    width: 100%;
}

.private-text-container h1 {
    font-size: clamp(2.0rem, 6vw, 1.5rem);
}

.private-cta {
    display: flex;
    gap: 12px; /* Space between buttons */
    align-items: center;
}

.intro-p {
    padding: 0 !important; /* Overriding your previous clamp padding */
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}


.private-notes {
    margin: 0;
    text-align: left;
    display: block;
}

.private-notes p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}


.private-notes i {
    color: var(--accent);
    width: 25px; /* Aligns the text perfectly */
    text-align: center;
    margin-right: 10px;
}


.close-private {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: var(--zi-modal-content);
    line-height: 1;
}

/* Show class added by JS */
.private-overlay.show {
    display: flex;
}

.private-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}


@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: 1fr; /* Stack one per row */
        gap: 50px; /* More breathing room between stacked profiles */
    }

  .image-container img {
      width: 80%;
      height: 80%;
      object-fit: cover; /* No stretching */
      object-position: center;
  }

    .hamburger { 
        display: block; 
        cursor: pointer;
        z-index: var(--zi-sticky-nav); 
    }

    /* This hides the links off-screen to the right */
    .nav-links {
        position: fixed;
        top: 0; 
        right: -100%; /* Hidden state */
        flex-direction: column;
        justify-content: center;
        background: var(--surface);
        width: 70%; /* Slide-out drawer width */
        height: 100vh;
        padding: 2rem;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    /* When the hidden checkbox is checked, slide the menu in */
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    /* Visual for the hamburger icon lines (Simple Version) */
    .hamburger span, .hamburger span::before, .hamburger span::after {
        content: '';
        display: block;
        background: var(--accent);
        height: 3px;
        width: 25px;
        margin: 5px 0;
        transition: 0.3s;
    }
    .menu-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 15px;
    }

    .menu-card {
        height: 70px; /* Slim text-only buttons */
        background-image: none !important; /* Removes images */
        background-color: var(--surface);
    }

    .menu-card::before {
        display: none; /* No overlay needed for solid color */
    }

    .menu-card span {
        font-size: 1.1rem;
        color: var(--accent); /* Gold text on dark buttons */
    }

    .social-icon svg {
        width: 32px; /* Match the size of your other icons */
        height: 32px;
    }

    .opening-times-container {
        top: 20px;
        left: 50%;
        width: 90%;
        height: 70vh;
        padding: 0;
        padding-top: 1rem;

    }

    .grid-container {
        grid-template-columns: 1fr; /* 1 Column Mobile */
    }

    .close-gallery {
        top: -10px;
        right: 10px;
    }

    .grid-container .gallery-item {
        width: 100%;
    }

    .private-footer-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .private-notes {
        text-align: left;
        margin-bottom: 1rem;
    }

    .private-cta {
        flex-direction: column; /* Stacks them */
        width: 100%;
    }

    .private-cta .btn {
        width: 100%;
        display: block;
    }

}