/* ==========================================================================
   Lahe Baar — shared public-site design system (2026 redesign)
   Linked from every public page (index/menu/events/about/contact/reservations).
   Keep page-specific CSS minimal and additive to this file.
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-soft: #121114;
  --surface: #16151a;
  --surface-2: #1c1b21;
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(212, 175, 55, 0.35);
  --gold: #d4af37;
  --gold-light: #e8c766;
  --text: #f5f3ef;
  --text-muted: #a7a3ac;
  --text-faint: #706c76;
  --danger: #ef6b67;
  --success: #4fc383;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1240px;
  --font-display: 'Archivo Black', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.lb {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.lb img { max-width: 100%; display: block; }
.lb a { color: inherit; }

.lb .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 640px) { .lb .container { padding: 0 1.25rem; } }

/* ---------- Typography helpers ---------- */

.lb .eyebrow {
  font-family: var(--font-body);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
}

.lb .section-title, .lb .page-hero-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.lb .page-hero-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }

.lb .section-subtitle, .lb .page-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
}
.lb .page-hero-subtitle { color: var(--gold); font-size: 1.1rem; }

.lb .heading-rule {
  width: 56px; height: 3px; background: var(--gold); border: none; margin: 1.4rem 0;
}

.lb .tagline-corner {
  position: absolute; top: 2.4rem; right: 2rem; text-align: right;
  color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; line-height: 1.7; z-index: 3;
}
@media (max-width: 900px) { .lb .tagline-corner { display: none; } }

/* ---------- Buttons ---------- */

.lb .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.9rem; font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem;
  border-radius: 4px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.lb .btn-solid { background: var(--gold); color: #17130f; border-color: var(--gold); }
.lb .btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.lb .btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.lb .btn-outline:hover { background: var(--gold); color: #17130f; }
.lb .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.lb .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.lb .btn-block { width: 100%; }
.lb .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lb .btn-link {
  background: none; border: none; padding: 0; color: var(--gold);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem;
}

/* ---------- Header / Nav ---------- */

.lb .site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.lb .site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 0; gap: 2rem;
}
.lb .brand {
  font-family: var(--font-display); color: #fff; text-decoration: none;
  font-size: 1.05rem; letter-spacing: 0.14em; white-space: nowrap; text-transform: uppercase;
}
.lb .main-nav { display: flex; align-items: center; gap: 2.4rem; flex: 1; justify-content: center; }
.lb .nav-link {
  color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.92rem;
  letter-spacing: 0.02em; position: relative; padding-bottom: 5px; transition: color 0.2s ease;
}
.lb .nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.lb .nav-link:hover { color: #fff; }
.lb .nav-link:hover::after, .lb .nav-link.active::after { transform: scaleX(1); }
.lb .nav-link.active { color: var(--gold); }
.lb .nav-cta { flex-shrink: 0; }

.lb .nav-toggle {
  display: none; position: relative; width: 28px; height: 22px;
  background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0;
}
.lb .nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--gold);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.lb .nav-toggle span:nth-child(1) { top: 1px; }
.lb .nav-toggle span:nth-child(2) { top: 10px; }
.lb .nav-toggle span:nth-child(3) { top: 19px; }
.lb .nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.lb .nav-toggle.open span:nth-child(2) { opacity: 0; }
.lb .nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.lb .mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 360px;
  background: #0d0c10; border-left: 1px solid var(--border-gold);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 1100; padding: 6.5rem 2.2rem 2.5rem; overflow-y: auto;
}
.lb .mobile-nav.open { transform: translateX(0); }
.lb .mobile-nav a {
  display: block; color: #fff; text-decoration: none; font-size: 1.05rem;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.lb .mobile-nav a:hover { color: var(--gold); }
.lb .mobile-nav .btn { margin-top: 1.75rem; }

.lb .nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease; z-index: 1090;
}
.lb .nav-overlay.show { opacity: 1; pointer-events: auto; }

@media (max-width: 1150px) {
  .lb .main-nav, .lb .nav-cta { display: none; }
  .lb .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.lb .hero {
  position: relative; padding: 6.5rem 0 4rem; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top left, #17151a 0%, var(--bg) 60%);
}
.lb .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lb .hero-bg.has-image { opacity: 0.55; }
.lb .hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,0.97) 10%, rgba(10,10,10,0.82) 50%, rgba(10,10,10,0.55) 100%);
}
.lb .hero-inner { position: relative; z-index: 2; }
.lb .hero-content { max-width: 660px; }
@media (max-width: 640px) { .lb .hero { padding: 5.5rem 0 3rem; } }

/* ---------- Feature cards ---------- */

.lb .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 2rem; }
.lb .feature-icon {
  width: 52px; height: 52px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--gold);
  font-size: 1.2rem; margin-bottom: 1.1rem; flex-shrink: 0;
}
.lb .feature-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.lb .feature-heading h3 { font-size: 1.15rem; margin: 0; color: #fff; }
.lb .feature-block p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Section rhythm ---------- */

.lb .section { padding: 5rem 0; }
.lb .section-tight { padding: 3rem 0; }
.lb .section-alt { background: var(--bg-soft); }
.lb .section-head { margin-bottom: 3rem; max-width: 720px; }
.lb .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */

.lb .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lb .card-media { aspect-ratio: 16 / 10; background: var(--surface-2); background-size: cover; background-position: center; position: relative; }
.lb .card-body { padding: 1.5rem; }

/* ---------- Image slot placeholders ---------- */

.lb .image-slot { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: rgba(212, 175, 55, 0.04); }
.lb .image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb .image-placeholder-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem;
  width: 100%; height: 100%; min-height: 220px; padding: 1.5rem; text-align: center;
  border: 1.5px dashed rgba(212, 175, 55, 0.35); border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.03); color: rgba(255, 255, 255, 0.55);
}
.lb .image-placeholder-box i { font-size: 1.6rem; color: rgba(212, 175, 55, 0.55); }
.lb .image-placeholder-box .placeholder-label { font-size: 0.9rem; font-weight: 600; color: rgba(212, 175, 55, 0.75); }
.lb .image-placeholder-box .placeholder-suggestion { font-size: 0.78rem; line-height: 1.4; max-width: 300px; color: rgba(255,255,255,0.4); }

/* ---------- Gallery loading state ----------
   While a gallery's photos are being looked up, the group shows ONE neutral
   "Pildid laadivad…" line -- never a fixed number of fake picture cards, so
   the page never pretends there are more photos than really exist.
   image-slots.js switches data-slots-state to "ready". */
.lb .slot-group-loading { display: none; }
.lb [data-slots-state="loading"] [data-image-slot] { display: none !important; }
.lb [data-slots-state="loading"] .slot-group-loading,
.lb .pe-gallery-loading {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  grid-column: 1 / -1; width: 100%; min-height: 220px;
  color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; letter-spacing: 0.02em;
}
.lb .lb-spinner {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.25); border-top-color: rgba(212, 175, 55, 0.85);
  animation: lbSpin 0.8s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lb .lb-spinner { animation-duration: 2.4s; } }

/* ---------- Estonian date / time pickers (assets/js/lb-pickers.js) ---------- */
.lb .lbp-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden; }
.lb .lbp-field { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.lb .lbp-field.is-empty .lbp-text { color: rgba(245, 243, 239, 0.4); }
.lb .lbp-field[aria-expanded="true"] { border-color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.lb .lbp-icon svg, .lbp-pop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; display: block; }
.lb .lbp-icon { color: var(--gold); opacity: 0.85; flex: none; }
.lbp-pop {
  position: fixed; z-index: 3000; width: 312px; padding: 16px;
  background: #15171b; color: #f2eee7; font-family: inherit;
  border: 1px solid rgba(212, 175, 55, 0.28); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: lbpIn 0.14s ease-out;
}
@keyframes lbpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lbp-grab { display: none; }
.lbp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lbp-title { font-size: 1rem; font-weight: 700; letter-spacing: 0.01em; }
.lbp-title span { color: rgba(242, 238, 231, 0.55); font-weight: 500; margin-left: 2px; }
.lbp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: #f2eee7; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.lbp-nav:hover:not(:disabled) { background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.45); }
.lbp-nav:disabled { opacity: 0.25; cursor: default; }
.lbp-week, .lbp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.lbp-week span { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: rgba(242, 238, 231, 0.45); padding: 4px 0 8px; }
.lbp-day { aspect-ratio: 1; width: 100%; border: 0; border-radius: 50%; background: transparent; color: #f2eee7; font: inherit; font-size: 0.9rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.12s, color 0.12s; }
.lbp-day.is-weekend { color: rgba(242, 238, 231, 0.75); }
.lbp-day:hover:not(:disabled):not(.is-selected) { background: rgba(212, 175, 55, 0.14); }
.lbp-day.is-today { box-shadow: inset 0 0 0 1.5px rgba(212, 175, 55, 0.7); }
.lbp-day.is-selected { background: linear-gradient(135deg, #c9a24f, #e8c766); color: #16130c; font-weight: 700; box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3); }
.lbp-day:disabled { color: rgba(242, 238, 231, 0.2); cursor: default; }
.lbp-day.is-blank { pointer-events: none; }
.lbp-day:focus-visible, .lbp-tlist button:focus-visible, .lbp-link:focus-visible, .lbp-done:focus-visible, .lbp-nav:focus-visible { outline: 2px solid #e8c766; outline-offset: 1px; }
.lbp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lbp-link { background: none; border: 0; color: rgba(242, 238, 231, 0.6); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.lbp-link:hover { color: #f2eee7; background: rgba(255, 255, 255, 0.05); }
.lbp-link.is-strong { color: #e8c766; font-weight: 600; }
.lbp-link:disabled { opacity: 0.3; cursor: default; }
.lbp-pop.lbp-time { width: 236px; }
.lbp-tcols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: start; }
.lbp-tlabel { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 238, 231, 0.45); text-align: center; margin-bottom: 6px; }
.lbp-tsep { font-size: 1.4rem; font-weight: 700; color: rgba(242, 238, 231, 0.35); padding-top: 48px; }
.lbp-tlist { display: grid; gap: 3px; max-height: 232px; overflow-y: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.35) transparent; scroll-behavior: smooth; }
.lbp-tlist.is-short { max-height: none; }
.lbp-tlist button { border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #f2eee7; font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; padding: 8px 0; cursor: pointer; transition: background 0.12s; }
.lbp-tlist button:hover:not(.is-selected) { background: rgba(212, 175, 55, 0.14); }
.lbp-tlist button.is-selected { background: linear-gradient(135deg, #c9a24f, #e8c766); color: #16130c; font-weight: 700; }
.lbp-done { border: 0; border-radius: 8px; padding: 8px 16px; background: linear-gradient(110deg, #b99557, #dec17e); color: #16130c; font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; }
.lbp-backdrop { position: fixed; inset: 0; z-index: 2999; background: rgba(0, 0, 0, 0.55); animation: lbpFade 0.15s ease-out; }
@keyframes lbpFade { from { opacity: 0; } }
@media (max-width: 600px) {
  .lbp-pop.is-sheet, .lbp-pop.lbp-time.is-sheet { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; border-radius: 20px 20px 0 0; border-bottom: 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: lbpUp 0.18s ease-out; }
  @keyframes lbpUp { from { transform: translateY(30%); opacity: 0.4; } to { transform: none; opacity: 1; } }
  .lbp-grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); margin: 0 auto 14px; }
  .lbp-day { font-size: 1rem; }
  .lbp-tlist { max-height: 260px; }
  .lbp-tlist button { padding: 11px 0; font-size: 1.1rem; }
  .lbp-done { padding: 11px 22px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .lbp-pop, .lbp-backdrop { animation: none; } .lbp-tlist { scroll-behavior: auto; } }

/* ---------- Forms ---------- */

.lb .form-field { margin-bottom: 1.3rem; }
.lb .form-field label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; letter-spacing: 0.03em; color: var(--text-muted); }
.lb .form-field input, .lb .form-field select, .lb .form-field textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.98rem; transition: border-color 0.2s ease;
}
.lb .form-field input::placeholder, .lb .form-field textarea::placeholder { color: var(--text-faint); }
.lb .form-field input:focus, .lb .form-field select:focus, .lb .form-field textarea:focus { outline: none; border-color: var(--gold); }
.lb .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 640px) { .lb .form-row { grid-template-columns: 1fr; } }

.lb .checkbox-field { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.lb .checkbox-field input { width: 18px; height: 18px; margin-top: 0.2rem; accent-color: var(--gold); flex-shrink: 0; }
.lb .checkbox-field a { color: var(--gold); text-decoration: underline; }

/* ---------- Footer ---------- */

.lb .site-footer { background: #08080a; border-top: 1px solid var(--border-gold); padding-top: 3.5rem; }
.lb .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .lb .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lb .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.lb .footer-col h4 { color: var(--gold); font-size: 0.95rem; margin: 0 0 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.lb .footer-col p { margin: 0 0 0.6rem; color: var(--text-muted); font-size: 0.92rem; }
.lb .footer-col a { text-decoration: none; color: var(--text-muted); }
.lb .footer-col a:hover { color: var(--gold); }
.lb .footer-col .brand { display: inline-block; margin-bottom: 1rem; }
.lb .hours-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.lb .hours-row-closed { padding-top: 0.4rem; margin-top: 0.2rem; border-top: 1px solid var(--border); font-style: italic; opacity: 0.75; }
.lb .footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; color: var(--text-faint); font-size: 0.82rem;
}
.lb .footer-bottom a { color: var(--text-faint); text-decoration: underline; }
.lb .footer-bottom a:hover { color: var(--gold); }

.lb .secret-access {
  position: fixed; bottom: 18px; right: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(212, 175, 55, 0.3); z-index: 500; transition: all 0.3s ease;
}
.lb .secret-access:hover { background: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,0.6); transform: scale(1.3); }

/* ---------- Misc shared ---------- */

.lb .badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.7rem; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(212,175,55,0.14); color: var(--gold);
}
.lb .muted { color: var(--text-muted); }
.lb .divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.lb .icon-row { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.lb .icon-row .icon-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.88rem; color: var(--text-muted); }
.lb .icon-row .icon-item i { color: var(--gold); }
