/* Site chrome: fixed navbar + scroll reveals */
html {
  scroll-behavior: smooth;
}

:root {
  --gradient-warm: linear-gradient(135deg, #f0faf6 0%, #dff3ec 40%, #f5ecd8 72%, #dcefe8 100%);
  --gradient-gold: linear-gradient(120deg, #5ecfb5 0%, #2f9d8a 38%, #d4b06a 100%);
  --gradient-sage: linear-gradient(135deg, #1f8f7a 0%, #3db89f 45%, #9de8d8 100%);
  --gradient-primary: linear-gradient(135deg, #5ecfb5 0%, #2f9d8a 50%, #1a7a6a 100%);
}

#site-header {
  pointer-events: none;
}

#site-header > * {
  pointer-events: auto;
}

#site-header .nav-shell {
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#site-header.is-scrolled {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

#site-header.is-scrolled .nav-shell {
  background-color: color-mix(in oklab, var(--background, #f7f4ef) 88%, transparent);
  border-color: color-mix(in oklab, var(--foreground, #1c1917) 10%, transparent);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@supports not (background-color: color-mix(in oklab, white 50%, transparent)) {
  #site-header.is-scrolled .nav-shell {
    background-color: rgba(247, 244, 239, 0.92);
    border-color: rgba(28, 25, 23, 0.1);
  }
}

.reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.blob {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(48px);
}

/* Mobile drawer styles live in css/site-nav.css */

/* Lightbox */
.cms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(10, 16, 14, 0.82);
  padding: 24px;
}
.cms-lightbox.is-open { display: grid; }
.cms-lightbox img {
  max-width: min(960px, 100%);
  max-height: 85dvh;
  border-radius: 18px;
  object-fit: contain;
}
.cms-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cafe-showcase {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.cafe-showcase-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  max-width: none;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(28, 36, 34, 0.12);
}

.cafe-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cafe-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cafe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cafe-switch {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.cafe-switch-btn {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #2f9d8a;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.cafe-switch-btn:hover {
  filter: brightness(1.06);
}

/* Homepage gallery: prefer separate-page category links */
#gallery button[aria-pressed] {
  display: none !important;
}

.gallery-page-links a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .cafe-showcase {
    max-width: none;
  }

  .cafe-showcase-stage {
    max-width: none;
    height: auto;
    min-height: 0;
  }
}


/* Responsive main nav — show links on desktop/tablet, hamburger on small screens */
.site-nav-desktop {
  display: block !important;
}

.site-nav-desktop ul {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

#site-header .site-nav-desktop a {
  white-space: nowrap;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: var(--nav-ink) !important;
}

#site-header .site-nav-desktop a:hover {
  color: var(--nav-ink) !important;
  background: rgba(26, 36, 33, 0.06) !important;
}

html.dark #site-header .site-nav-desktop a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.site-menu-toggle {
  display: none !important;
}

@media (max-width: 1080px) {
  .site-nav-desktop {
    display: none !important;
  }

  .site-menu-toggle {
    display: grid !important;
  }
}


/* Tighten section spacing — less empty white space between containers */
main > section:not(#hero) {
  padding-top: 3.25rem !important;
  padding-bottom: 3.25rem !important;
}

@media (min-width: 640px) {
  main > section:not(#hero) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

main > section .mt-16 {
  margin-top: 2.25rem !important;
}

main > section .mt-14,
main > section .mt-12 {
  margin-top: 1.75rem !important;
}

main > section .gap-12 {
  gap: 1.75rem !important;
}
