/* =========================================================================
   Biffy's Bar — Clean Mobile-first CSS (continuous background)
   - Single gradient on the page (html/body)
   - Transparent header & slides (continuous background)
   - Mobile burger drawer remains dark
   - Reveal-on-scroll utilities
   - Hero: welcome.svg drop-in + notes sweep-in
   ========================================================================= */


/* =============================
   === GLOBAL RESET & VARS ===
============================= */
:root{
  --mobile-header-height: 100px;
  --header-height: 140px;
  --footer-height: 40px;
  --visible-header-height: var(--mobile-header-height);

  /* Background */
  --biffy-gradient:
    radial-gradient(1200px 600px at 20% 15%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, #0f1222 0%, #1a1f3a 50%, #0f1222 100%);

  /* Nav dividers */
  --nav-divider-w: 1.5px;
  --nav-divider-h: 30px;
  --nav-divider-color: #ffffff;
}

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

html,body{
  margin:0; padding:0; height:100%; width:100%;
  font-family: Arial, sans-serif;
  background: var(--biffy-gradient);
  color:#eee;
  overflow:hidden; /* slides scroll internally */
}

/* =============================
   === REDUCED MOTION SAFETY ===
============================= */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal-stagger > *,
  .hero .hero-wrapper,
  .hero .btn-primary,
  .footer-notes img{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =============================
   === REVEAL UTILITIES ===
============================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
  transition: opacity .45s ease-out, transform .45s cubic-bezier(.22,.8,.32,1);
}
.reveal.in-view{ opacity:1; transform:none; }

.reveal-stagger > *{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s cubic-bezier(.22,.8,.32,1);
}
.reveal-stagger.in-view > *{ opacity:1; transform:none; }
.reveal-stagger.in-view > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.in-view > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.in-view > *:nth-child(3){ transition-delay:.18s; }
.reveal-stagger.in-view > *:nth-child(4){ transition-delay:.24s; }


/* =============================
   === HEADER (fixed top) ===
============================= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between;
  height:var(--mobile-header-height);
  padding:0 1rem;
  background: transparent; /* continuous background */
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; width:100%;
}

/* Logo */
.logo-box{
  display:flex; align-items:center; justify-content:flex-start;
  height:var(--mobile-header-height);
  min-width:100px; overflow:visible; position:relative; z-index:1002;
}
.logo-img{
  max-height:100px; height:auto; width:auto; display:block; margin:0;
  transition:transform .2s ease, filter .2s ease;
}
.logo-box:hover .logo-img{
  transform:translateY(-2px);
  filter:drop-shadow(0 0 6px rgba(255,255,255,.3)) drop-shadow(0 0 10px rgba(255,255,255,.2));
}

/* Burger (mobile) */
.menu-toggle{
  appearance:none; background:none; border:none; padding:0; margin:0;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; position: relative; z-index:1003;
}
.menu-toggle .burger-icon{
  width:48px; height:48px; display:block;
  --rot:0deg; --scale:1;
  transform: rotate(var(--rot)) scale(var(--scale));
  transition: transform .35s ease;
}
.menu-toggle:hover .burger-icon{ --scale:1.05; }
.menu-toggle.is-active .burger-icon{ --rot:180deg; }


/* =============================
   === MOBILE NAV DRAWER (≤768px)
============================= */
@media (max-width: 768px){
  :root{ --visible-header-height: var(--mobile-header-height); }

  .site-nav{
    position: fixed;
    top: var(--visible-header-height); left: 0; right: 0; bottom: var(--footer-height);
    display: flex !important; flex-direction: column; align-items: stretch; justify-content:flex-start;
    overflow-y: auto;
    background: #000; /* dark for readability */
    border-top: 1px solid rgba(255,255,255,.07);
    z-index: 999;

    opacity:0; transform: translateY(-6px);
    clip-path: inset(0 0 100% 0);
    pointer-events:none; visibility:hidden;

    transition: clip-path .45s cubic-bezier(.22,.8,.32,1),
                transform .45s cubic-bezier(.22,.8,.32,1),
                opacity .25s ease,
                visibility 0s linear .45s;
    padding-bottom: env(safe-area-inset-bottom, 0);
    will-change: clip-path, transform, opacity;
  }
  .site-nav.is-open,
  .site-nav.show{
    opacity:1; transform:none; clip-path: inset(0 0 0 0);
    pointer-events:auto; visibility:visible;
    transition: clip-path .45s cubic-bezier(.22,.8,.32,1),
                transform .45s cubic-bezier(.22,.8,.32,1),
                opacity .25s ease, visibility 0s;
  }

  .site-nav a{
    display:flex; justify-content:center; align-items:center;
    min-height:64px; padding:1rem 1.25rem;
    border-bottom:1px solid rgba(255,255,255,.08);
    text-decoration:none;
  }
  .site-nav img{ width:180px; height:auto; display:block; transition: transform .3s ease, filter .3s ease; }
  .site-nav a:hover{ transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.2); }

  @supports not (clip-path: inset(0 0 100% 0)){
    .site-nav{
      max-height:0; overflow-y:hidden;
      transition: max-height .45s cubic-bezier(.22,.8,.32,1),
                  opacity .25s ease, transform .45s cubic-bezier(.22,.8,.32,1),
                  visibility 0s linear .45s;
    }
    .site-nav.is-open, .site-nav.show{
      max-height: calc(100vh - var(--visible-header-height) - var(--footer-height));
      overflow-y:auto;
      transition: max-height .45s cubic-bezier(.22,.8,.32,1),
                  opacity .25s ease, transform .45s cubic-bezier(.22,.8,.32,1),
                  visibility 0s;
    }
  }

  @media (prefers-reduced-motion: reduce){
    .site-nav{ transition:none; transform:none; clip-path:none; opacity:1; visibility:visible; }
    .site-nav.is-open, .site-nav.show{ transition:none; }
  }
}


/* =============================
   === NAV ICON HOVERS (shared)
============================= */
.site-nav img{
  width:180px; height:auto; display:block;
  transition: transform .3s ease, filter .3s ease;
}
.about-link:hover img{  transform: scale(1.05); filter: drop-shadow(0 0 8px #ff8c1a) drop-shadow(0 0 16px #ffb347); }
.drinks-link:hover img{ transform: scale(1.05); filter: drop-shadow(0 0 8px #3cd416) drop-shadow(0 0 14px #45dd27); }
.whats-on-link:hover img{ transform: scale(1.05); filter: drop-shadow(0 0 8px #ff66ff) drop-shadow(0 0 14px #ff99ff); }
.contact-link:hover img{ transform: scale(1.05); filter: drop-shadow(0 0 8px #6da7f3) drop-shadow(0 0 14px #b3d9ff); }
.book-table-link:hover img{ transform: scale(1.05); filter: drop-shadow(0 0 8px #fef15d) drop-shadow(0 0 14px #f5ee19); }
.food-link:hover img{   transform: scale(1.05); filter: drop-shadow(0 0 8px #27dadd) drop-shadow(0 0 14px #33c4e1); }


/* =============================
   === CAROUSEL VIEWPORT ===
============================= */
/* Viewport */
.section-carousel{
  position:relative; overflow:hidden;
  height:calc(100dvh - var(--visible-header-height) - var(--footer-height));
  margin-top:var(--visible-header-height);
}

/* Track just holds slides; no transform animation needed */
.carousel-track{
  position:relative;
  height:100%;
}

/* Stack slides on top of each other; fade via .is-active */
.carousel-slide{
  position:absolute; inset:0;
  opacity:0;
  pointer-events:none;
  transition: opacity .45s ease;
  background: transparent;
}

/* The currently visible slide */
.carousel-slide.is-active{
  opacity:1;
  pointer-events:auto;
}


/* =============================
   === HOME (SVG text hero) — drop-in + notes sweep-in
============================= */
.home-slide{
  display:flex; justify-content:center; align-items:center; text-align:center;
  color:#fff; padding:0 16px;
}
.hero{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0; transform: translateY(-140px);
}

/* Anchor for left accent without shifting layout */
.hero-wrapper{
  position: relative; display:inline-block; line-height:0;
  z-index: 1; /* sits above background notes, below button */
}
.hero-img{
  display:block; max-width:40%; height:auto; margin:0 auto;
  pointer-events:none; /* purely decorative */
}

/* Left accent (smaller) */
.hero-img-left{
  position:absolute;
  left:10%;
  top:50%;
  transform:translateY(-50%);
  width:25%;        /* ↓ reduced from 75% to 50% */
  height:auto;
  pointer-events:none;
  z-index:0;
}

/* Right accent */
.hero-img-right{
  position: absolute;
  right: 60%;            /* mirror of left: -22% */
  top: 50%;
  transform: translateY(-50%);
  width: 25%;             /* same scale as left */
  height: auto;
  pointer-events: none;   /* purely decorative */
}

@media (min-width:1024px){
  .hero-img-right{
    right: 10%;          /* mirror of left: -60% */
    width: 25%;
  }
}

/* Button tucked under artwork */
.btn-primary{
  position: relative;
  z-index: 2;            /* ensure it's above images if overlapping */
  display:inline-block; margin-top:-24px; padding:10px 16px;
  border-radius:999px; background:#ff3b6b; color:#fff; text-decoration:none; font-weight:700; letter-spacing:.2px;
  box-shadow:0 6px 20px rgba(255,59,107,0.35);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 28px rgba(255,59,107,0.45); }
.btn-primary:focus-visible{ outline:2px solid #fff; outline-offset:3px; }

/* --- Visible by default (no JS dependency) --- */
.hero .hero-wrapper,
.hero .btn-primary{
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Keyframes */
@keyframes dropIn{
  0%{   opacity:0; transform: translateY(-24px) scale(.985); }
  60%{  opacity:1; transform: translateY(6px)  scale(1.006); }
  100%{ opacity:1; transform: none; }
}
@keyframes fadeUp{
  0%{ opacity:0; transform: translateY(10px); }
  100%{ opacity:1; transform: none; }
}

/* Triggered by JS adding .hero-in */
.hero.hero-in .hero-wrapper{ animation: dropIn .7s cubic-bezier(.22,.8,.32,1) .05s both; }
.hero.hero-in .btn-primary{  animation: fadeUp .45s ease-out .22s both; }

/* =============================
   === GENERIC SECTION LAYOUT ===
============================= */
.section-content{
  display:flex; flex-direction:column; gap:2em; padding:2em;
  align-items:center; text-align:center;
}
.section-content.reverse{ flex-direction:column-reverse; }
.section-image,.section-text,.menu-text,.menu-image{ flex:1; }

.section-image img{ width:100%; max-width:400px; height:auto; object-fit:cover; border-radius:8px; }
.menu-image img{   width:50%; max-height:750px; object-fit:cover; border-radius:10px; }

.section-text{
  max-width:600px; font-size:1.1em; color:#eee; font-family:'Dancing Script', cursive;
}
.section-text h2{ font-size:2.2em; color:#fff; margin-bottom:.5em; font-family:'Lobster', cursive; }


/* =============================
   === GENERIC SECTION LAYOUT ===
============================= */
.section-content{
  display:flex; flex-direction:column; gap:2em; padding:2em;
  align-items:center; text-align:center;
}
.section-content.reverse{ flex-direction:column-reverse; }
.section-image,.section-text,.menu-text,.menu-image{ flex:1; }

.section-image img{ width:100%; max-width:400px; height:auto; object-fit:cover; border-radius:8px; }
.menu-image img{   width:50%; max-height:750px; object-fit:cover; border-radius:10px; }

.section-text{
  max-width:600px; font-size:1.1em; color:#eee; font-family:'Dancing Script', cursive;
}
.section-text h2{ font-size:2.2em; color:#fff; margin-bottom:.5em; font-family:'Lobster', cursive; }


/* =============================
   === ABOUT SLIDE — two images (SVG left, PNG right) + global banner ===
============================= */
#about.carousel-slide {
  background: transparent; /* keep continuous site background */
  display: block;
  height: 100%;
  overflow-y: auto;
}

.about-foh {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr; /* left SVG / right PNG */
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(20px, 5vw, 60px);
  min-height: clamp(420px, 70vh, 820px);
}

.about-left,
.about-right {
  display: block;
  width: min(92%, 820px);
  height: auto;
}

.about-left-wrap,
.about-image {
  background: transparent;
}

/* Position tweaks */
.about-left {
  width: min(92%, 840px);
  transform: translateY(-55%);
}

.about-right {
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  transform: translateY(-18%);
}

/* (Removed) Legacy About-only banner
   .about-banner { display: none; }
   #about.is-active .about-banner { ... }
   — Now handled globally by .footer-banner
*/

/* =============================
   === GLOBAL BANNER (same geometry as About banner) ===
============================= */
.footer-banner{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--footer-height) + max(12px, env(safe-area-inset-bottom)));
  z-index: 30;                   /* footer is z=40; keep banner below */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;           /* decorative */
  padding: 0 16px;
  width: 100%;
}

/* Use the same image sizing you had */
.footer-banner-img {
  display: block;
  max-width: min(95vw, 1400px);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

/* Hide banner on Home only */
body.is-home .footer-banner{ display: none; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .about-foh { grid-template-columns: 1fr; }
  .about-left, .about-right { width: min(95%, 560px); }
  .about-left { transform: translateY(-8%); }
}

@media (max-width: 480px){
  .footer-banner{
    bottom: calc(var(--footer-height) + 8px);
  }
}

/* =============================
   === FOOTER (fixed bottom) ===
============================= */
footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-height);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  box-sizing: border-box;
  font-size: 1.25em;
  font-family: 'Lobster', cursive;
  background: #333;
  color: #5ce1e6;
  z-index: 40;
}
footer p{
  margin: 0;
  position: absolute;
  left: 1rem;
}
footer .social-links a{
  display: inline-block;
  margin: 0 0.5rem;
}
footer .social-links img{
  width: 28px;
  height: 28px;
  vertical-align: middle;
  transition: transform .2s ease;
}
footer .social-links img:hover{
  transform: scale(1.2);
}

/* =============================
   === Decorative notes above footer (GIF overlay)
============================= */
.footer-notes{
  position: fixed;
  left: 0; right: 0;
  bottom: var(--footer-height);
  width: 100%;
  z-index: 20;
  pointer-events: none;
}
.footer-notes img{
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.4; /* subtle, so content still reads well */
  filter: drop-shadow(0 -2px 10px rgba(0,0,0,0.4));
}

/* =============================
   === ACCESSIBILITY: Skip Link ===
============================= */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 1100;
  background: #111; color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus{ left: 12px; top: 12px; outline: 2px solid #fff; }


/* =============================
   === DESKTOP (≥769px) ===
============================= */
@media (min-width: 769px){
  :root{ --visible-header-height: var(--header-height); }
  .menu-toggle{ display:none; }

  .site-header{ height: var(--header-height); background: transparent; }

  .header-inner{
    display:grid; grid-template-columns:240px 1fr; align-items:center; gap:0;
    width:100%; height:var(--header-height);
  }

  .logo-box{
    grid-column:1 / 2; width:180px; height:100%; margin:0; display:flex;
    align-items:center; justify-content:flex-start; overflow:visible; z-index:2000; position:relative;
  }
  .logo-img{ max-height:160px; height:auto; width:auto; display:block; z-index:3000; margin-top:0; }

  .site-nav{
    grid-column:2 / 3; display:flex !important; flex-wrap:nowrap;
    align-items:center; justify-content:space-evenly;
    height:100%; width:100%; position:static; background:none; gap:0;
    margin-left:-20px; margin-top:-50px; padding-top:0; align-self:center;
  }
  .site-nav a{
    flex:1 1 0; display:flex; align-items:center; justify-content:center;
    padding:.25rem .75rem; margin:0; border:0; text-align:center; white-space:nowrap; position:relative;
  }
  .site-nav a + a::before{
    content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:var(--nav-divider-w); height:var(--nav-divider-h); background:var(--nav-divider-color);
    pointer-events:none; z-index:1;
  }
  .site-nav img{ width:auto; max-height:140px; max-width:140px; height:auto; }

  /* Avoid 1px seam between header and content on some DPIs */
  .section-carousel{ margin-top: calc(var(--visible-header-height) - 1px); }
}

/* =============================
   === Z-INDEX / NAV CLICK FIX (safe) ===
============================= */

/* Keep the header fixed; only raise its stacking level */
.site-header{
  z-index: 2000; /* above slides */
}

/* Nav items can keep their own positioning; just ensure they accept clicks */
.site-nav,
.site-nav a{
  pointer-events: auto;
}

/* Ensure slides are below the header in the stack */
.section-carousel,
.carousel-slide{
  z-index: 0;
}
