*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #e79d19;
  --accent-dark: #c8860f;
  --text: #555;
  --heading: #333;
  --border: #ddd;
  --sidebar-bg: #f8f8f8;
}

html {
  scroll-behavior: smooth;
  font: 400 16px/1.6 "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin: 1.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; }

.container {
  width: min(1140px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  color: var(--heading);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.logo:hover { color: var(--accent-dark); text-decoration: none; }

.nav-desktop {
  display: none;
  list-style: none;
  gap: 0.15rem;
}

.nav-desktop a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
}

.nav-desktop a:hover,
.nav-desktop a:focus { color: var(--accent-dark); text-decoration: none; }

.nav-desktop a.is-active {
  color: var(--accent-dark);
  background: rgba(231, 157, 25, 0.12);
}

.nav-toggle { display: block; }

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.9rem;
  user-select: none;
  border-radius: 3px;
}

.nav-toggle summary::-webkit-details-marker { display: none; }

.nav-mobile {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover,
.nav-mobile a.is-active { background: rgba(231, 157, 25, 0.1); text-decoration: none; }

.nav-wrap { position: relative; }

/* Hero slider */
.hero {
  position: relative;
  background: #222;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slide {
  flex: 0 0 100%;
  position: relative;
  aspect-ratio: 16 / 7;
  min-height: 200px;
  max-height: 420px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
}

.hero-caption strong {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  margin-bottom: 0.2rem;
}

.hero-caption span {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-style: italic;
  opacity: 0.95;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}

.hero-btn:hover { background: rgba(0,0,0,0.7); }
.hero-btn--prev { left: 0.75rem; }
.hero-btn--next { right: 0.75rem; }

.hero-progress {
  height: 5px;
  background: rgba(0,0,0,0.5);
}

.hero-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* Layout */
.page-body { padding: 2rem 0 2.5rem; }

.layout {
  display: grid;
  gap: 2rem;
}

.main-content {
  min-width: 0;
}

.main-content p { margin-bottom: 0.85rem; text-align: justify; }

.main-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.main-content li { margin-bottom: 0.35rem; }

.main-content .content-img {
  margin: 1.25rem 0;
  border-radius: 4px;
}

.highlight-red {
  color: #c00;
  font-weight: 700;
}

/* Sidebar */
.sidebar { display: grid; gap: 1.25rem; }

.sidebar-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
}

.sidebar-card h3 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--heading);
}

.sidebar-card img {
  margin: 0 auto 0.6rem;
  max-height: 100px;
  width: auto;
}

.sidebar-card p,
.sidebar-card figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
}

.sidebar-contact p {
  line-height: 1.7;
  font-size: 0.95rem;
}

.sidebar-contact a { font-size: inherit; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery a {
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 3px;
  background: #eee;
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery a:hover img { transform: scale(1.05); }

/* Lightbox */
body.lightbox-open { overflow: hidden; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(95vw, 1100px);
  height: min(85vh, 800px);
  max-width: 100%;
  max-height: 100%;
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(85vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.lightbox-close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav--prev { left: 0.75rem; }
.lightbox-nav--next { right: 0.75rem; }

.lightbox-counter {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  z-index: 1001;
}

/* Map */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 450px;
  margin-top: 1rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.site-footer a { color: #666; }

/* Desktop */
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }

  .hero-slide { aspect-ratio: 21 / 8; max-height: 380px; }

  .layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .lightbox-nav--prev { left: 0.35rem; }
  .lightbox-nav--next { right: 0.35rem; }
  .lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-track { transition: none; }
  .gallery img { transition: none; }
}
