/* Gostilna Zgornji Kirn — base styles + responsive fixes.
   This file replaces the ad-hoc inline-style-only layout from the original
   export. Structural, breakpoint-dependent rules live here as real CSS;
   one-off decorative styling stays inline in site.js / admin.js, matching
   the original design.
*/

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-body);
  color: var(--text-body);
}
a { color: var(--text-brand); text-decoration: none; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* ---------------------------------------------------------------------
   Header / nav
   Root cause of the mobile bug: the original header put the logo, nav,
   language switch, and reserve button in a single flex row with
   flex-wrap and no breakpoint. Longer Slovenian labels wrapped the row
   onto a second line that sat outside the header's opaque background,
   so it looked like it was floating over the map/body content.
   Fix: a fixed-height bar at all sizes, collapsing to a hamburger menu
   below 880px instead of letting the row wrap unpredictably. The
   dropdown panel below the bar is explicitly opaque itself.
------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}
.site-header__bar {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.site-header__logo { height: 44px; cursor: pointer; flex-shrink: 0; }
.site-header__desktop {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 40px;
}
.site-header__nav { display: flex; align-items: center; height: 36px; gap: 24px; }
.site-header__lang { display: flex; align-items: center; height: 36px; gap: 6px; font-family: var(--font-label); font-size: 12px; }
.site-header__burger {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.site-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header__mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border-hairline);
  padding: 18px 20px 24px;
  flex-direction: column;
  gap: 18px;
}
.site-header__mobile.is-open { display: flex; }
.site-header__mobile-nav { display: flex; flex-direction: column; gap: 16px; }
.site-header__mobile-lang { display: flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 13px; }

@media (max-width: 880px) {
  .site-header__desktop { display: none; }
  .site-header__burger { display: flex; }
}

/* ---------------------------------------------------------------------
   Section grids that used fixed desktop gaps/padding with no mobile
   breakpoint (hero, welcome, specialties, history, visit/booking,
   footer). auto-fit/minmax grids already collapse to one column once
   the container is *wider* than the minmax minimum, but they overflow
   instead of reflowing once the viewport (minus padding) drops below
   that minimum — exactly the mobile overflow reported. Fixing padding
   and gap at the breakpoint, and forcing a single column below it,
   keeps every section inside the viewport.
------------------------------------------------------------------- */
.section-pad { padding-left: 40px; padding-right: 40px; }
.grid-auto { display: grid; gap: 64px; align-items: center; }

@media (max-width: 720px) {
  .section-pad { padding-left: 20px; padding-right: 20px; }
  .grid-auto,
  .grid-history,
  .grid-visit,
  .grid-footer { grid-template-columns: 1fr !important; gap: 32px !important; }
  .hero-media { height: 300px !important; }
}

/* Booking calendar: fixed 7-column grid with desktop-sized gaps —
   tighten spacing and shrink cells on narrow screens instead of
   letting them overflow. */
@media (max-width: 480px) {
  .visit-card { padding: var(--space-4) !important; }
  .cal-grid { gap: 3px !important; }
  .cal-cell { font-size: 12px !important; padding: 6px 0 !important; }
  .time-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .guest-row-2 { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* Notice banner */
.site-notice {
  background: var(--red-900);
  color: #fff;
  padding: 18px 20px;
  text-align: center;
}
.site-notice p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 900px;
  text-wrap: pretty;
}
