:root {
  --bg: #f0e6d2;
  --surface: #faf3e3;
  --text: #3b2a1a;
  --muted: #7a5f45;
  --accent: #8b3a1f;
  --accent-dark: #6b2a15;
  --border: #d4c4a8;
  --dark: #2b1f14;
  --font-heading: 'Vollkorn', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(43,31,20,0.35) 0%, rgba(43,31,20,0.7) 100%),
              url('assets/images/hero/hero.jpg') center/cover no-repeat;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(240,230,210,0.85);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  letter-spacing: -0.02em;
}

.hero p {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-style: italic;
  color: rgba(240,230,210,0.9);
  max-width: 640px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(240,230,210,0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ORNAMENT ---------- */
.ornament {
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 10px;
  padding-left: 10px;
  margin: 14px 0 30px;
}
.ornament::before,
.ornament::after {
  content: "───────";
  letter-spacing: 0;
  margin: 0 15px;
  color: var(--border);
  font-size: 0.7rem;
  vertical-align: middle;
}

/* ---------- GALLERY ---------- */
.gallery-section {
  padding: 80px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.gallery-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ede8df;
  border: 1px solid var(--border);
  box-shadow: 3px 3px 0 var(--border);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(43,31,20,0.85));
  color: #f0e6d2;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  pointer-events: none;
}

/* ---------- MAP BUTTONS ---------- */
.map-section {
  background: var(--dark);
  padding: 70px 40px;
  text-align: center;
  border-top: 3px double var(--accent);
}

.map-section h3 {
  color: #f0e6d2;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 10px;
}

.map-section p {
  font-family: var(--font-heading);
  font-style: italic;
  color: rgba(240,230,210,0.75);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.map-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  min-width: 240px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.map-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
}

.map-btn-google {
  background: #f0e6d2;
  color: var(--dark);
}
.map-btn-google:hover {
  background: #fff;
}

.map-btn-mapy {
  background: var(--accent);
  color: #f0e6d2;
}
.map-btn-mapy:hover {
  background: var(--accent-dark);
}

.map-btn i {
  font-size: 1.2rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: #1a130c;
  color: rgba(240,230,210,0.5);
  text-align: center;
  padding: 30px 20px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43,31,20,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 40px;
  cursor: zoom-out;
  animation: lbFade 0.3s ease;
}

@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox img {
  max-width: 92%;
  max-height: 80vh;
  border: 4px solid var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: lbZoom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes lbZoom {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid rgba(240,230,210,0.4);
  color: #f0e6d2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(240,230,210,0.15);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(240,230,210,0.1);
  border: 1px solid rgba(240,230,210,0.3);
  color: #f0e6d2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(240,230,210,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  color: rgba(240,230,210,0.85);
  margin-top: 20px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .gallery-section { padding: 60px 20px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .map-section { padding: 50px 20px; }
  .map-btn {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
    font-size: 0.82rem;
  }
  .lightbox { padding: 20px; }
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ---------- PREFERS REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- ASPECT RATIO FALLBACK ---------- */
@supports not (aspect-ratio: 4 / 3) {
  .gallery-item {
    position: relative;
    padding-bottom: 75%;
    height: 0;
  }
  .gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(43,31,20,0.6);
  border: 1px solid rgba(240,230,210,0.3);
  padding: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(240,230,210,0.8);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 480px) {
  .lang-switcher {
    top: 12px;
    right: 12px;
  }
  .lang-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}