/* Header details that complement Tailwind utility classes */
.nav-link {
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  color: rgba(47, 47, 47, 0.72);
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(27, 48, 34, 0.08);
  color: #1b3022;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #1b3022;
}

.mobile-nav {
  gap: 0.25rem;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  border-radius: 6px;
  padding: 0.9rem 0.75rem;
  color: #1b3022;
  font-weight: 800;
}

.mobile-nav a:hover {
  background: rgba(27, 48, 34, 0.08);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  border: 1px solid rgba(210, 180, 140, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 244, 239, 0.78)),
    linear-gradient(45deg, rgba(210, 180, 140, 0.24), transparent);
  box-shadow: 0 14px 34px rgba(27, 48, 34, 0.16);
  padding: 0.25rem 0.75rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.logo-mark:hover {
  border-color: rgba(210, 180, 140, 0.9);
  box-shadow: 0 18px 42px rgba(27, 48, 34, 0.22);
  transform: translateY(-1px);
}

.logo-mark img {
  display: block;
  width: auto;
  height: 80px;
  object-fit: contain;
}

/* Header scroll state */
.site-header--scrolled {
  border-color: rgba(27, 48, 34, 0.34) !important;
  background: rgba(27, 48, 34, 0.92) !important;
}

.site-header--scrolled .nav-link,
.site-header--scrolled a,
.site-header--scrolled .mobile-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-header--scrolled .nav-link:hover,
.site-header--scrolled .nav-link.is-active,
.site-header--scrolled .mobile-nav a:hover {
  background: rgba(210, 180, 140, 0.14);
  color: #ffffff;
}

.site-header--scrolled [aria-label="Відкрити меню"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.site-header--scrolled .hamburger-line {
  background: #ffffff;
}

.site-header--scrolled .logo-mark {
  background:
    linear-gradient(135deg, rgba(246, 244, 239, 0.98), rgba(210, 180, 140, 0.2)),
    rgba(255, 255, 255, 0.9);
  border-color: rgba(210, 180, 140, 0.72);
}

/* Gallery grid with masonry-like proportions */
.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 180px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(27, 48, 34, 0.12);
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

/* Booking form */
.booking-section {
  background:
    linear-gradient(135deg, rgba(27, 48, 34, 0.96), rgba(47, 47, 47, 0.94)),
    linear-gradient(45deg, rgba(210, 180, 140, 0.16), transparent 52%);
}

.booking-form {
  border: 1px solid rgba(210, 180, 140, 0.26);
  border-radius: 8px;
  background: rgba(246, 244, 239, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.booking-intro {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.booking-field {
  display: grid;
  gap: 0.55rem;
}

.booking-field span {
  color: #1b3022;
  font-size: 0.92rem;
  font-weight: 800;
}

.booking-field input,
.booking-field select {
  width: 100%;
  border: 1px solid rgba(47, 47, 47, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #2f2f2f;
  font: inherit;
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  outline: 3px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, outline-color 180ms ease, transform 180ms ease;
}

.booking-field select {
  cursor: pointer;
}

.booking-field input:focus,
.booking-field select:focus {
  border-color: #d2b48c;
  box-shadow: 0 14px 30px rgba(27, 48, 34, 0.14);
  outline-color: rgba(210, 180, 140, 0.3);
  transform: translateY(-1px);
}

.booking-submit {
  width: 100%;
  margin-top: 1.35rem;
  border-radius: 8px;
  background: #1b3022;
  color: #ffffff;
  font-weight: 800;
  padding: 1rem 1.25rem;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.booking-submit:hover,
.booking-submit:focus {
  background: #2f2f2f;
  box-shadow: 0 16px 34px rgba(27, 48, 34, 0.22);
  transform: translateY(-1px);
}

.booking-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.booking-feedback {
  min-height: 1.75rem;
  margin-top: 1rem;
  color: #1b3022;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.booking-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.booking-feedback.is-error {
  color: #8f2e1f;
}

/* Footer map placeholder texture */
.map-card {
  background:
    linear-gradient(135deg, rgba(210, 180, 140, 0.16), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
}

/* Fade-in animation used by JavaScript IntersectionObserver */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet and mobile refinements */
@media (max-width: 920px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-auto-rows: 230px;
    grid-template-columns: 1fr;
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }
}
