/* Clean stylesheet for Bluue's Sensual Kitchen */

:root {
  --bg: #f4fbff;
  /* very light blue page background */
  --primary: #0094FB;
  /* site accent */
  --accent: #0094FB;
  --muted: #0a0a0a;
  --card: #ffffff;
  --max-width: 1100px;
}

:root[data-theme='dark'] {
  --bg: #061025;
  --primary: #66b2ff;
  --accent: #66b2ff;
  --muted: #eaf4ff;
  --card: #071127;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: var(--bg);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* Full-page background image layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.55)),
    url('https://images.unsplash.com/photo-1511690743698-d9d85f2fbf38?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem
}

/* header styles and sticky wrapper */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

header {
  background: transparent;
  color: #fff;
  border-bottom: 0;
}

/* Topbar as a pill-shaped band */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0.6rem 1rem;
  background: #000000;
  /* keep topbar black per request */
  border-radius: 999px;
  margin: 0.6rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  gap: 1rem;
}

/* Center the topbar content within the container on wide screens */
.container>.topbar {
  max-width: calc(var(--max-width) - 2rem);
  margin-left: auto;
  margin-right: auto;
  /* ensure the pill itself is horizontally centered */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* If the same element carries both classes ("container topbar"), center it */
.container.topbar {
  /* when the same element has both classes ("container topbar"),
     align the pill with the page container so it matches the hero below.
     We intentionally do NOT set `display` here so the `.topbar` rule
     (which defines the grid) remains in effect. */
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* match the container inner width (accounting for container padding) */
  max-width: calc(var(--max-width) - 2rem);
  margin: 0.6rem auto;
  padding: 0.6rem 1rem;
  box-sizing: border-box;
}

.topbar .nav a {
  color: #ffffff;
  opacity: 0.95;
  padding: 0 .5rem;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
}

.topbar .brand div>div {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.topbar .cta {
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: .45rem .9rem;
}

.brand {
  display: flex;
  gap: .75rem;
  align-items: center
}

/* place children into grid columns */
.container>.topbar>.brand {
  grid-column: 1;
}

.container>.topbar>.nav {
  grid-column: 2;
  justify-self: center;
}

.container>.topbar>#nav-toggle {
  grid-column: 3;
  justify-self: end;
}

/* prevent brand text from wrapping and allow truncation */
.topbar .brand {
  min-width: 0;
}

.topbar .brand div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent
}

.logo img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block
}

/* title and subtitle inside brand */
.topbar .brand div>div:first-child {
  color: #ffffff;
  font-weight: 800;
}

.topbar .brand div>div:nth-child(2) {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* theme toggle and nav-toggle contrast */
#theme-toggle,
#nav-toggle {
  background: transparent;
  border: 0;
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  /* allow nav to take available center space */
}

/* nav stays in normal flow (no absolute centering) */

/* Make the layout: brand | centered-nav | controls (toggle/cta) */
.container>.topbar>.brand {
  flex: 0 0 auto;
}

.container>.topbar>.nav {
  order: 2;
}

.container>.topbar>#nav-toggle {
  order: 3;
  margin-left: .5rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 .5rem;
  color: #fff
}

.hero p {
  color: rgba(255, 255, 255, .95);
  margin: 0 0 1.25rem
}

.hero .btns {
  display: flex;
  gap: .75rem
}

.btn {
  background: var(--primary);
  color: #fff;
  padding: .8rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 148, 251, .18)
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 148, 251, .06);
  transition: transform .18s ease, box-shadow .18s ease
}

.card:hover {
  transform: translateY(-3px)
}

main {
  padding: 2.5rem 0
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem
}

.menu-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .75rem;
  border-radius: 10px;
}

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

.menu-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  cursor: pointer;
}

/* Stack modifier: image on top for a single card */
.menu-item.stack {
  flex-direction: column;
  align-items: stretch;
}

.menu-item.stack img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
}

@media (min-width:1024px) {

  /* show a little more of the stacked image on wide screens */
  .menu-item.stack img {
    height: 220px;
  }

  /* slightly adjust thumbnail size on wide screens */
  .menu-item img {
    width: 120px;
    height: 120px;
  }
}

/* Responsive menu grid: 1 column default, 2 cols at medium, 3 cols on wide screens */
@media (min-width:700px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
  }
}

@media (min-width:1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
  }
}

.menu-item h4 {
  margin: 0 0 .25rem;
  color: var(--primary)
}

.price {
  font-weight: 700;
  color: var(--primary)
}

/* Force description text white (overrides inline color) */
.menu-item .desc,
.menu-item p,
.menu-item div>div[style] {
  color: #ffffff !important
}

.about {
  display: flex;
  gap: 1.5rem;
  align-items: center
}

.about img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px
}

footer {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: transparent
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, .6);
  z-index: 1200
}

.lightbox.open {
  display: flex
}

.lightbox .inner {
  max-width: 900px;
  width: calc(100% - 48px);
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
}

.lightbox img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px
}

.lightbox .caption {
  margin-top: .5rem;
  color: var(--muted)
}

/* Video in hero */
.hero video {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: .75rem
}

/* Social links */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  text-decoration: none
}

.social-link svg {
  color: var(--primary)
}

.social-link:hover {
  text-decoration: underline
}

/* Responsive */
@media (max-width:900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  /* keep hero layout for mobile */

  .hero h1 {
    font-size: 2.4rem;
    margin: 0 0 .5rem;
    color: #fff;
  }

  .hero p {
    color: rgba(255, 255, 255, .95);
    margin: 0 0 1.25rem;
  }

  .topbar .nav {
    display: flex;
    gap: .5rem;
    justify-content: center;
  }

  #nav-toggle {
    display: inline-block;
  }
}

/* Two-column hero on wider screens: text left, video card right */
@media (min-width:768px) {

  /* Updated layout for hero section */
  .container.hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 1.5rem;
  }

  /* left column: headings and buttons remain in the first child */
  .container.hero>.card {
    /* right column: video card */
    justify-self: end;
    width: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* slightly reduce the video height on narrow desktops so it fits the card */
  .container.hero .card video {
    height: 220px;
  }

}

/* Hero background layer (applies at all sizes) */
.container.hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 1.25rem;
}

.container.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/cornbread.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45) saturate(0.9);
  z-index: -1;
}

@media (max-width:560px) {
  .hero h1 {
    font-size: 1.6rem
  }
}

/* --- Redesign overrides (non-breaking) --- */
:root {
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.75rem;
  --font-xxl: clamp(2.5rem, 6vw, 3.5rem);
  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-loose: 1.7;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-card: 0 10px 28px -4px rgba(0, 148, 251, .25);
}

body {
  font-size: var(--font-base);
  line-height: var(--leading-normal);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: .5px;
}

h1 {
  font-size: var(--font-xxl);
}

h2 {
  font-size: var(--font-xl);
}

h3 {
  font-size: var(--font-lg);
}

h4 {
  font-size: var(--font-base);
}

/* Section rhythm */
main>section,
.section {
  padding-block: var(--space-7);
}

main>section:first-child {
  padding-top: var(--space-6);
}

/* Updated hero layout wrapper */
.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0, 148, 251, .18), rgba(0, 148, 251, .05));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero .tagline {
  font-size: var(--font-lg);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  color: #fff;
}

.hero .highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-4);
}

.badge {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: .45rem .75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .15);
}

/* Buttons refinement */
.btn {
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Card improvements */
.card {
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: var(--shadow-card);
}

.card:hover {
  box-shadow: 0 16px 40px -6px rgba(0, 148, 251, .35);
}

/* Menu cards redesign */
.menu-grid .menu-item.stack {
  position: relative;
  overflow: hidden;
}

.menu-grid .menu-item.stack img {
  border-radius: var(--radius-md);
}

.menu-item.stack h4 {
  font-size: var(--font-lg);
  margin-top: var(--space-4);
}

.menu-item.stack .price {
  display: inline-block;
  margin-top: var(--space-2);
  background: var(--primary);
  color: #fff;
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  letter-spacing: .5px;
}

.menu-item.stack {
  transition: transform .3s ease, box-shadow .3s ease;
}

.menu-item.stack:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -6px rgba(0, 148, 251, .45);
}

.menu-item.stack:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Image reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Footer redesign (non-breaking; apply if class added) */
.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-col h4 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.footer-col a {
  display: block;
  padding: .4rem 0;
  color: rgba(255, 255, 255, .85);
  font-size: var(--font-sm);
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

/* Focus outline for interactive elements */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Lazy images style */
img[loading=lazy] {
  filter: blur(4px);
  transition: filter .5s ease;
}

img[loading=lazy].loaded {
  filter: blur(0);
}

@media (min-width:900px) {
  .hero h1 {
    font-size: clamp(3rem, 7vw, 4rem);
  }

  .hero .tagline {
    font-size: 1.35rem;
  }
}