/*
Theme Name: Jamie's Lakeside
Template: generatepress
Description: Child theme for Jamie's Lakeside Cafe & Restaurant. Customisations live here.
Author: Jamie's Lakeside
Version: 1.16.0
Text Domain: jamies-lakeside
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Cormorant+Garamond:wght@400;500;600&display=swap');

/* ----- Brand tokens ----- */
:root {
  --jl-cobalt: #1f3aa8;
  --jl-mid: #2c4dc7;
  --jl-light: #5a85d9;
  --jl-pale: #bcd0ee;
  --jl-navy: #0e1d4a;
  --jl-navy-deep: #08123a;
  --jl-cream: #f5efe4;
  --jl-gold: #B1A27E;          /* warm gold from the divider + opening-times panel */
  --jl-display: "Anton", "Impact", "Helvetica Neue", system-ui, sans-serif;
  --jl-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --jl-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ============================================================
   HOMEPAGE FRAME — keyed off body.page-id-8 (stable WP class)
   ============================================================ */
body.page-id-8 { background: var(--jl-navy); color: #ffffff; overflow-x: hidden; }
html.page-id-8 { overflow-x: hidden; }
/* Page wrapper clips any decorative overflow (e.g. wave extension past the footer) */
body.page-id-8 .jl-page-wrap { overflow: hidden; }

body.page-id-8 .site-header,
body.page-id-8 .entry-header,
body.page-id-8 .entry-title,
body.page-id-8 header.page-header { display: none !important; }

/* All GP frame WRAPPERS: zero out constraints on the homepage.
   Selectors mirror or exceed GP's own descendant chains so we beat its specificity.
   GP uses things like ".container .site-content .content-area" (0,3,0) — we go to (0,4,1). */
body.page-id-8 #page,
body.page-id-8 .site,
body.page-id-8 #page.grid-container,
body.page-id-8 #page.container,
body.page-id-8 .site .site-content,
body.page-id-8 .container .site-content,
body.page-id-8 .container .site-content .content-area,
body.page-id-8 #page #content,
body.page-id-8 #page #content #primary,
body.page-id-8 .site-content,
body.page-id-8 .content-area,
body.page-id-8 .site-main,
body.page-id-8 .content-area .site-main,
body.page-id-8 article.page,
body.page-id-8 .inside-article,
body.page-id-8 .entry-content {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 100% !important;
  box-shadow: none !important;
  border: 0 !important;
  overflow: visible !important;
}

/* For direct children of entry-content (our bands): keep their own padding,
   just kill block-default vertical margins so bands butt up against each other. */
body.page-id-8 .entry-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

body.page-id-8 .site-footer { background: var(--jl-navy-deep); color: rgba(255,255,255,0.7); }
body.page-id-8 .site-info { color: rgba(255,255,255,0.7); }
body.page-id-8 .site-info a { color: rgba(255,255,255,0.9); }

/* ============================================================
   FULL-BLEED BANDS — explicit class combos for high specificity.
   The hero is .wp-block-cover.alignfull.jl-hero (3 classes = beats GP's .alignfull).
   ============================================================ */
body.page-id-8 section.jl-hero,
body.page-id-8 section.jl-modal-section,
body.page-id-8 section.jl-tiles-section,
body.page-id-8 section.jl-social-section,
body.page-id-8 section.jl-cta-section,
body.page-id-8 footer.jl-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}

/* ============================================================
   HERO — plain <section> with background image div + overlay div + inner.
   No WP cover block, no .alignfull conflict.
   ============================================================ */
section.jl-hero {
  position: relative !important;
  min-height: 88vh;
  display: flex !important;
  align-items: flex-start;       /* anchors content to top of the hero */
  justify-content: center;
  overflow: hidden !important;
  padding-top: clamp(70px, 11vh, 160px);   /* tweak this if too high/low */
}
.jl-hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-dusk.jpg');
  background-size: cover;
  background-position: center 30%;     /* shifts image up so nav doesn't sit over the bright reflections */
  background-repeat: no-repeat;
  z-index: 1;
}
.jl-hero-overlay {
  position: absolute;
  inset: 0;
  /* 5% overlay through the upper portion (image reads clearly),
     then darkening to FULLY OPAQUE navy by the bottom so the lake reflections
     don't bleed through into the body and create a visible seam. */
  background: linear-gradient(180deg,
    rgba(8,18,58,0.05) 0%,
    rgba(8,18,58,0.05) 50%,
    rgba(14,29,74,0.55) 75%,
    rgba(14,29,74,1) 95%,
    rgba(14,29,74,1) 100%);
  z-index: 2;
}
.jl-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
  text-align: center;
}

/* JAMIES wordmark — clean transparent PNG */
.jl-wordmark {
  margin: 0 !important;
  padding: 0;
  display: flex;
  justify-content: center;
}
.jl-wordmark img {
  display: block;
  width: 100%;
  max-width: clamp(320px, 56vw, 720px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.55));
}

/* Stroke divider between wordmark and tagline.
   Inline SVG with stroke-linecap:round for a proper "stroke" feel (rounded ends,
   not a CSS rectangle). Width matches the JAMIES wordmark exactly. */
.jl-divider {
  display: block;
  width: clamp(320px, 56vw, 720px);   /* same clamp as .jl-wordmark img max-width */
  height: 8px;
  margin: 22px auto !important;
  overflow: visible;
}

.jl-tagline {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff !important;
  margin: 0 0 36px !important;
  text-align: center;
  opacity: 0.96;
}

.jl-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  width: fit-content;          /* shrink so the borders match the nav width, not the whole hero */
  max-width: 100%;
  margin: 18px auto 0;         /* auto margins keep it centered */
  padding: 14px 22px;
  border-top: 1px solid rgba(255,255,255,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.28);
}
.jl-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
  justify-content: center;
}
.jl-nav li { margin: 0; }
.jl-nav a {
  font-family: var(--jl-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.jl-nav a:hover { border-bottom-color: #ffffff; }

/* Book a Table button — slide animation: text up, fork-knife icon in from below */
.jl-hero .jl-book-btn,
.entry-content a.jl-book-btn,
a.jl-book-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jl-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jl-navy) !important;
  background: #ffffff !important;
  padding: 0 22px;
  border-radius: 2px;
  text-decoration: none !important;
  border: 0;
  overflow: hidden;
  min-width: 180px;
  height: 44px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.jl-hero .jl-book-btn:hover,
.entry-content a.jl-book-btn:hover,
a.jl-book-btn:hover {
  background: var(--jl-gold) !important;
  transform: translateY(-1px);
}

.jl-book-btn-text,
.jl-book-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.jl-book-btn-text { position: relative; z-index: 1; }
.jl-book-btn-icon {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
  background-image: url('assets/icon-fork-knife.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 22px 22px;
}
.jl-book-btn:hover .jl-book-btn-text { transform: translateY(-110%); }
.jl-book-btn:hover .jl-book-btn-icon { transform: translateY(0); }

/* ============================================================
   FLOATING MODAL CARD (venue + opening hours)
   Overlaps the hero/body boundary.
   ============================================================ */
.jl-modal-section {
  position: relative;
  z-index: 4;
  margin-top: clamp(-300px, -24vh, -200px); /* pull further up so card sits just below the nav */
  padding: 0 24px clamp(50px, 7vw, 90px);   /* consistent gap below modal card */
  background: transparent;
}
.jl-modal-card {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(8,18,58,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.jl-modal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jl-modal-hours {
  padding: clamp(28px, 4vw, 48px);
  color: #ffffff;
  background: linear-gradient(180deg, #B1A27E 0%, #9b8c66 100%);
  position: relative;
}
/* Clock watermark — large white clock that clips off the bottom-right edge of the panel */
.jl-modal-hours::after {
  content: '';
  position: absolute;
  right: -226px;
  bottom: -165px;
  width: clamp(240px, 36vw, 500px);
  height: clamp(240px, 36vw, 500px);
  background-image: url('assets/clock-watermark.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.jl-modal-hours > * { position: relative; z-index: 1; }
.jl-modal-hours h3 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.05em;
  margin: 0 0 22px !important;
  color: #ffffff;
}
.jl-modal-hours dl {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.jl-modal-hours dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--jl-sans);
  font-size: 15px;
  padding: 7px 0;
  /* darker gold-on-gold separator — visible but understated */
  border-bottom: 1px solid rgba(0,0,0,0.14);
}
.jl-modal-hours dl > div:last-child { border-bottom: 0; }
.jl-modal-hours dt { font-weight: 600; color: #ffffff; }
.jl-modal-hours dd { margin: 0; color: #ffffff; }
.jl-hours-foot {
  font-family: var(--jl-serif);
  font-style: italic;
  font-size: 15px;
  margin: 20px 0 0 !important;
  color: rgba(245, 239, 228, 0.92);
}

/* ============================================================
   SQUARE TILES
   ============================================================ */
.jl-tiles-section {
  padding: clamp(50px, 7vw, 90px) 24px clamp(50px, 7vw, 90px);  /* matched gaps top + bottom */
  text-align: center;
  overflow: visible;       /* let the waves spill out the top of the section */
}
/* Decorative water-flow waves behind the section content — extends above the section */
.jl-tiles-section::before {
  content: '';
  position: absolute;
  top: -800px;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('assets/waves.svg');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.jl-tiles-section > * { position: relative; z-index: 1; }

.jl-section-heading {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 52px);
  letter-spacing: 0.04em;
  margin: 0 0 48px !important;
  color: #ffffff;
}
.jl-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: 1180px;
  margin: 0 auto;
}
.jl-tile {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: #ffffff !important;
  background: var(--jl-navy-deep);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}
.jl-tile img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.jl-tile-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0) 100%);
  text-align: left;
}
.jl-tile-body h3 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0 !important;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.02em;
  position: relative;
  display: inline-block;
}
/* Animated underline under the tile heading on hover */
.jl-tile-body h3::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}
.jl-tile:hover .jl-tile-body h3::after { width: 100%; }

/* SVG border that draws around the tile perimeter on hover */
.jl-tile-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;   /* let the stroke straddle the SVG/tile edge */
}
.jl-tile-border rect {
  transition: stroke-dashoffset 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.jl-tile:hover .jl-tile-border rect { stroke-dashoffset: 0; }

.jl-tile:hover { transform: translateY(-4px); }
.jl-tile:hover img { transform: scale(1.04); }

/* Video tile: video sits over the static img and fades in on hover */
.jl-tile-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.jl-tile-video:hover .jl-tile-video-el { opacity: 1; }
.jl-tile-video:hover img { transform: none; } /* no zoom on the still while video plays */

/* ============================================================
   CTA STRIP
   ============================================================ */
.jl-cta-section {
  background: var(--jl-navy);                  /* solid navy, blends with body — keeps the flow */
  padding: clamp(50px, 7vw, 90px) 24px;        /* matches tiles section padding — consistent gaps */
  text-align: center;
  overflow: visible;                           /* wave can extend down behind the footer for seamless blend */
}
/* Decorative waves — flipped vertically + extending DOWN, mirrors the tiles section above */
.jl-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: -800px;
  left: 0;
  background-image: url('assets/waves.svg');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.10;
  transform: scaleY(-1);
  pointer-events: none;
  z-index: 0;
}
.jl-cta-section > * { position: relative; z-index: 1; }

.jl-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.jl-cta-inner h2 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 14px !important;
  color: #ffffff;
}
.jl-cta-inner p {
  font-family: var(--jl-sans);
  font-size: 16px;
  margin: 0 0 28px !important;
  color: rgba(255,255,255,0.88);
}
.jl-book-btn-large {
  min-width: 240px !important;
  height: 60px !important;
  padding: 0 36px !important;
  font-size: 14px !important;
}
.jl-book-btn-large .jl-book-btn-icon {
  background-size: 30px 30px;
}

/* ============================================================
   FACEBOOK FEED SECTION
   ============================================================ */
.jl-social-section {
  background: var(--jl-navy);
  padding: clamp(50px, 7vw, 90px) 24px;
  position: relative;
  overflow: hidden;
}
/* Decorative waves — same SVG as the tiles + CTA sections, horizontally mirrored
   to feel like a fresh variation rather than a repeat. */
.jl-social-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/waves.svg');
  background-size: 100% auto;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0.10;
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 0;
}
.jl-social-section > * { position: relative; z-index: 1; }

.jl-social-card {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(8,18,58,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.jl-social-text {
  padding: clamp(28px, 4vw, 56px);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(180deg, #B1A27E 0%, #9b8c66 100%);
  position: relative;
  overflow: hidden;
}
/* Facebook watermark — matches the clock-watermark on the opening times panel */
.jl-social-text::after {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -140px;
  width: clamp(240px, 36vw, 460px);
  height: clamp(240px, 36vw, 460px);
  background-image: url('assets/icon-facebook.svg');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.jl-social-text > * { position: relative; z-index: 1; }
.jl-social-text .jl-section-heading {
  text-align: left;
  color: #ffffff;
  margin: 0 0 18px !important;
}
.jl-social-sub {
  font-family: var(--jl-sans);
  font-size: clamp(15px, 1.2vw, 17px);
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px !important;
}

/* Navy variant of the book-btn used on the FB card.
   On hover, fork-knife icon is replaced by the Facebook icon. */
a.jl-book-btn.jl-social-link {
  background: var(--jl-navy) !important;
  color: #ffffff !important;
  align-self: flex-start;
}
a.jl-book-btn.jl-social-link:hover {
  background: #1877F2 !important; /* Meta brand blue */
}
.jl-social-link .jl-book-btn-icon {
  background-image: url('assets/icon-facebook.svg');
  background-size: 20px 20px;
}

.jl-fb-feed {
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}
.jl-fb-feed iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 620px;
  border: 0;
}

@media (max-width: 900px) {
  .jl-social-card { grid-template-columns: 1fr; }
  .jl-social-text { text-align: center; }
  .jl-social-text .jl-section-heading { text-align: center; }
  a.jl-book-btn.jl-social-link { align-self: center; }
  .jl-fb-feed { min-height: 580px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.jl-footer {
  background: transparent;                     /* let the CTA wave flow through; body bg is already navy */
  padding: clamp(56px, 7vw, 90px) 24px clamp(28px, 3vw, 42px);
  text-align: center;
  color: rgba(255,255,255,0.78);
  position: relative;
  z-index: 1;
}
.jl-footer-inner { position: relative; z-index: 2; }
.jl-footer-inner {
  max-width: 720px;
  margin: 0 auto;
}
.jl-footer-brand {
  display: inline-block;
  margin: 0 auto 26px;
}
.jl-footer-brand img {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
}
.jl-footer-contact { margin: 0 0 22px; }
.jl-footer-line {
  font-family: var(--jl-sans);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin: 6px 0 !important;
  color: rgba(255,255,255,0.85);
}
.jl-footer-line a {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.jl-footer-line a:hover { border-bottom-color: rgba(255,255,255,0.5); }

.jl-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 36px);
  margin: 24px 0 26px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.jl-footer-nav a {
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.jl-footer-nav a:hover { border-bottom-color: #ffffff; }

.jl-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}
.jl-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease;
}
.jl-footer-social a:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.jl-footer-copy {
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 0 !important;
}

/* ============================================================
   FRAME OVERRIDE — extend the homepage frame rules to other pages too.
   We use the body.page-template-page-standalone class which is added by WP
   automatically when our standalone template is used.
   ============================================================ */
body.page-template-page-standalone { background: var(--jl-navy); color: #ffffff; overflow-x: hidden; }
html:has(body.page-template-page-standalone) { overflow-x: hidden; }
body.page-template-page-standalone .site-header,
body.page-template-page-standalone .entry-header,
body.page-template-page-standalone .entry-title,
body.page-template-page-standalone header.page-header { display: none !important; }
body.page-template-page-standalone .jl-page-wrap { overflow: hidden; }
body.page-template-page-standalone section.jl-hero,
body.page-template-page-standalone section.jl-page-hero,
body.page-template-page-standalone section.jl-modal-section,
body.page-template-page-standalone section.jl-tiles-section,
body.page-template-page-standalone section.jl-menus-section,
body.page-template-page-standalone section.jl-social-section,
body.page-template-page-standalone section.jl-cta-section,
body.page-template-page-standalone footer.jl-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box !important;
}

/* ============================================================
   GENERIC PAGE HERO (used on /menu/, /gallery/, /about/, /contact/)
   Shorter than the homepage hero, same vocabulary.
   ============================================================ */
section.jl-page-hero {
  position: relative !important;
  min-height: 52vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  padding: clamp(60px, 9vh, 120px) 24px clamp(40px, 6vh, 80px);
}
.jl-page-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
}
.jl-page-hero-menu .jl-page-hero-photo {
  background-image: url('assets/hero-menu.jpg');
  background-position: center 55%;
}
.jl-page-hero-gallery .jl-page-hero-photo {
  background-image: url('assets/hero-gallery.jpg');
  background-position: center 60%;
}
.jl-page-hero-about .jl-page-hero-photo {
  background-image: url('assets/hero-about.jpg');
  background-position: center 60%;
}
.jl-page-hero-contact .jl-page-hero-photo {
  background-image: url('assets/hero-contact.jpg');
  background-position: center 55%;
}
.jl-page-hero-404 .jl-page-hero-photo {
  background-image: url('assets/hero-dusk.jpg');
  background-position: center 50%;
}
.jl-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8,18,58,0.55) 0%,
    rgba(8,18,58,0.65) 60%,
    rgba(14,29,74,1) 100%);
  z-index: 2;
}
.jl-page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 980px;
  padding: 0 24px;
  text-align: center;
}
.jl-page-hero-title {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.04em;
  margin: 0 !important;
  color: #ffffff;
  text-shadow: 0 4px 22px rgba(0,0,0,0.4);
}
.jl-page-hero-sub {
  font-family: var(--jl-sans);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin: 0 0 32px !important;
}

/* ============================================================
   MENU PAGE — text-only buttons in a 2x2 grid
   ============================================================ */
section.jl-menus-section {
  padding: clamp(60px, 9vw, 120px) 24px;
  background: var(--jl-navy);
  position: relative;
}
/* Waves decoration behind the menu cards (same SVG as homepage) */
section.jl-menus-section::before {
  content: '';
  position: absolute;
  top: -800px;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('assets/waves.svg');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
section.jl-menus-section > * { position: relative; z-index: 1; }
.jl-menus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
}
.jl-menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: clamp(40px, 6vw, 64px) 28px;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.jl-menu-card-title {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.04em;
  margin: 0 0 10px !important;
  color: #ffffff;
}
.jl-menu-card-sub {
  font-family: var(--jl-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 22px !important;
  color: rgba(255,255,255,0.7);
}
.jl-menu-card-cta {
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jl-gold);
  position: relative;
  padding-bottom: 4px;
}
.jl-menu-card-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--jl-gold);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.08s;
}
.jl-menu-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.05); }
.jl-menu-card:hover .jl-menu-card-cta::after { width: 100%; }
.jl-menu-card:hover .jl-tile-border rect { stroke-dashoffset: 0; }

@media (max-width: 720px) {
  .jl-menus-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MODAL (used for menu previews; reusable for other pages)
   ============================================================ */
.jl-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.jl-modal[hidden] { display: none !important; }
.jl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 58, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
  cursor: pointer;
}
.jl-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  /* Subtle navy depth — lighter at top, darker at bottom */
  background: linear-gradient(180deg, #142766 0%, var(--jl-navy) 55%, #050d2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  transition:
    opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.jl-modal-open .jl-modal-backdrop { opacity: 1; }
.jl-modal-open .jl-modal-dialog { opacity: 1; transform: scale(1) translateY(0); }

.jl-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  font-family: var(--jl-sans);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.jl-modal-close:hover { background: rgba(255,255,255,0.12); color: #ffffff; }
.jl-modal-close:focus-visible { outline: 2px solid var(--jl-gold); outline-offset: 2px; }

.jl-modal-title {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  margin: 0 0 18px !important;
  color: #ffffff;
  padding-right: 40px; /* leave room for close button */
}
.jl-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  margin: 0 -8px 18px;
  padding: 0 8px;
  border-radius: 6px;
}
.jl-modal-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.jl-modal-download { align-self: center; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .jl-modal-card { grid-template-columns: 1fr; }
  .jl-modal-photo { aspect-ratio: 16 / 10; }
  .jl-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .jl-hero { min-height: 80vh; }
  .jl-nav { flex-direction: column; gap: 14px; padding: 14px 16px; }
  .jl-nav ul { gap: 14px 22px; }
  .jl-modal-section { margin-top: -60px; padding: 0 16px 60px; }
  .jl-tile-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   GALLERY PAGE — uniform square tiles + lightbox
   ============================================================ */
section.jl-gallery-section {
  padding: clamp(60px, 9vw, 120px) 24px;
  background: var(--jl-navy);
  position: relative;
}
section.jl-gallery-section::before {
  content: '';
  position: absolute;
  top: -800px;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('assets/waves.svg');
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
section.jl-gallery-section > * { position: relative; z-index: 1; }
.jl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
}
.jl-gallery-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4%;
  background: var(--jl-navy-deep);
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.jl-gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1), filter 0.3s ease;
  filter: saturate(0.96);
}
.jl-gallery-tile:hover img { transform: scale(1.06); filter: saturate(1.05); }
.jl-gallery-tile:hover .jl-tile-border rect { stroke-dashoffset: 0; }
.jl-gallery-tile:focus-visible { outline: 2px solid var(--jl-gold); outline-offset: 3px; }

/* Lightbox: bare image floating over the backdrop — no panel, no caption */
.jl-modal-dialog.jl-modal-lightbox {
  max-width: none;
  max-height: none;
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.jl-modal-lightbox .jl-modal-body {
  margin: 0;
  padding: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jl-modal-lightbox .jl-modal-body img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.jl-modal-lightbox .jl-modal-close {
  top: -42px;
  right: -6px;
  background: rgba(0,0,0,0.4);
}
.jl-modal-lightbox .jl-modal-close:hover {
  background: rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .jl-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .jl-gallery-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE — story prose + values strip
   ============================================================ */
section.jl-about-section {
  padding: clamp(48px, 6vw, 80px) 24px clamp(36px, 5vw, 60px);
  background: var(--jl-navy);
  position: relative;
}
.jl-about-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  color: #ffffff;
}
.jl-about-photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}
.jl-about-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.jl-about-text { text-align: left; }
.jl-about-heading {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: 0.04em;
  margin: 0 0 22px !important;
  color: #ffffff;
}
.jl-about-body p {
  font-family: var(--jl-sans);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,0.86);
  margin: 0 0 20px !important;
}
.jl-about-body p:last-child {
  font-family: var(--jl-serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px);
  color: #ffffff;
  margin-top: 28px !important;
}
@media (max-width: 820px) {
  .jl-about-inner { grid-template-columns: 1fr; }
  .jl-about-photo { max-width: 460px; margin: 0 auto; }
  .jl-about-text { text-align: center; }
}

section.jl-values-strip {
  padding: clamp(32px, 4.5vw, 56px) 24px;
  background: var(--jl-navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.jl-values-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  text-align: center;
}
.jl-value-item {
  color: #ffffff;
}
.jl-value-item h3 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.06em;
  margin: 0 0 10px !important;
  color: var(--jl-gold);
}
.jl-value-item p {
  font-family: var(--jl-sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  margin: 0 !important;
}
@media (max-width: 720px) {
  .jl-values-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   CONTACT PAGE — info + enquiry form, then map
   ============================================================ */
section.jl-contact-section {
  padding: clamp(48px, 6vw, 80px) 24px clamp(40px, 5vw, 64px);
  background: var(--jl-navy);
}
.jl-contact-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 4.5vw, 60px);
  align-items: start;
  color: #ffffff;
}
.jl-contact-info h2,
.jl-contact-form h2 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: 0.04em;
  margin: 0 0 22px !important;
  color: #ffffff;
}
.jl-contact-info-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 0 18px !important;
  font-family: var(--jl-sans);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.jl-contact-info-line a {
  color: rgba(255,255,255,0.88) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(177, 162, 126, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.jl-contact-info-line a:hover {
  color: var(--jl-gold) !important;
  border-color: var(--jl-gold);
}
.jl-contact-info-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.jl-contact-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--jl-gold);
}

/* Form fields */
.jl-form-row { margin-bottom: 16px; }
.jl-form-row.jl-form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.jl-form-row label {
  display: block;
  font-family: var(--jl-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 6px !important;
}
.jl-form-row input,
.jl-form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 4px;
  padding: 12px 14px;
  font-family: var(--jl-sans);
  font-size: 15px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
/* Kill the white background Chrome paints on autofilled fields */
.jl-form-row input:-webkit-autofill,
.jl-form-row textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px rgba(8,18,58,0.92) inset;
  caret-color: #ffffff;
}
.jl-form-row input::placeholder,
.jl-form-row textarea::placeholder {
  color: rgba(255,255,255,0.40);
}
.jl-form-row input:focus,
.jl-form-row textarea:focus {
  outline: none;
  border-color: var(--jl-gold);
  background: rgba(255,255,255,0.10);
}
.jl-form-row textarea {
  resize: vertical;
  min-height: 130px;
}
.jl-form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.jl-form-submit {
  display: inline-block;
  margin-top: 8px;
  background: var(--jl-gold);
  color: var(--jl-navy-deep) !important;
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.jl-form-submit:hover {
  background: #C5B68F;
  transform: translateY(-1px);
}

/* Map */
section.jl-map-section {
  background: var(--jl-navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.jl-map-frame {
  display: block;
  width: 100%;
  height: clamp(280px, 40vh, 460px);
  border: 0;
}

@media (max-width: 820px) {
  .jl-contact-inner { grid-template-columns: 1fr; }
  .jl-form-row.jl-form-row-split { grid-template-columns: 1fr; }
}

/* ============================================================
   BOOKING MODAL — ResDiary widget host
   ============================================================ */
.jl-modal-dialog.jl-modal-book {
  max-width: 680px;
  padding: clamp(16px, 2vw, 24px);
}
.jl-modal-book .jl-modal-title {
  text-align: center;
  margin: 4px 0 14px !important;
}
.jl-resdiary-host {
  background: #ffffff;
  border-radius: 6px;
  padding: 12px;
  min-height: 420px;
  overflow-y: auto;
  max-height: calc(92vh - 100px);
}
.jl-resdiary-host iframe {
  width: 100% !important;
  border: 0;
  display: block;
}

/* ============================================================
   PRIVATE HIRE STRIP — slim band on the homepage
   ============================================================ */
section.jl-hire-strip {
  padding: clamp(44px, 6vw, 76px) 24px;
  background: var(--jl-navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  color: #ffffff;
}
.jl-hire-inner {
  max-width: 720px;
  margin: 0 auto;
}
.jl-hire-eyebrow {
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jl-gold);
  margin: 0 0 14px !important;
}
.jl-hire-strip h2 {
  font-family: var(--jl-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: 0.03em;
  margin: 0 0 14px !important;
  color: #ffffff;
}
.jl-hire-strip p {
  font-family: var(--jl-sans);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
  margin: 0 0 26px !important;
}
a.jl-hire-btn {
  display: inline-block;
  font-family: var(--jl-sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jl-gold) !important;
  background: transparent;
  border: 1px solid var(--jl-gold);
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
a.jl-hire-btn:hover {
  background: var(--jl-gold);
  color: var(--jl-navy-deep) !important;
  transform: translateY(-1px);
}

/* ============================================================
   404 PAGE
   ============================================================ */
section.jl-404-section {
  padding: clamp(48px, 7vw, 90px) 24px clamp(60px, 8vw, 110px);
  background: var(--jl-navy);
  text-align: center;
}
.jl-404-inner {
  max-width: 620px;
  margin: 0 auto;
  color: #ffffff;
}
.jl-404-body {
  font-family: var(--jl-sans);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 28px !important;
}
.jl-404-cta { display: inline-flex; }

/* ============================================================
   SCROLL-IN REVEALS — gentle fade + slide-up on key blocks
   Disabled entirely when the user prefers reduced motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .jl-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s cubic-bezier(0.2, 0, 0.2, 1),
                transform 0.75s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: opacity, transform;
  }
  .jl-reveal.jl-reveal-in {
    opacity: 1;
    transform: translateY(0);
  }
}
