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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #24292e;
  display: flex;
  flex-direction: column;
}

/* ── Home ────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding-top: 2rem;
}

.home-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.home-hero > p {
  color: #586069;
  margin-bottom: 2rem;
}

.home-nav {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.home-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a2e;
  text-decoration: none;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.home-nav a:hover {
  background: #1a1a2e;
  color: #fff;
}

/* ── Header ─────────────────────────────────────── */
header {
  background: #1a1a2e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 19px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Main ────────────────────────────────────────── */
main {
  flex: 1;
  min-height: calc(100vh - 60px); /* always push footer below the fold */
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* ── Markdown prose ─────────────────────────────── */
main h1, main h2, main h3, main h4, main h5, main h6 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  font-weight: 600;
}
main h1 { font-size: 2rem; margin-top: 0; }
main h2 { font-size: 1.5rem; border-bottom: 1px solid #e1e4e8; padding-bottom: 0.3rem; }
main h3 { font-size: 1.25rem; }

main p { margin-bottom: 1rem; }

main a { color: #0366d6; }
main a:hover { text-decoration: none; }

main ul, main ol {
  margin-bottom: 1rem;
  padding-left: 1.75rem;
}
main li { margin-bottom: 0.25rem; }

main blockquote {
  margin: 0 0 1rem;
  padding: 0.5rem 1rem;
  border-left: 4px solid #d1d5da;
  color: #586069;
}

main code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  border: 1px solid #e1e4e8;
}

main pre {
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}
main pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

main hr {
  border: none;
  border-top: 1px solid #e1e4e8;
  margin: 2rem 0;
}

main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
main th, main td {
  border: 1px solid #e1e4e8;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
main th { background: #f6f8fa; font-weight: 600; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: #e8eaed;
  color: #586069;
  border-top: 1px solid #d1d5da;
  text-align: center;
  padding: 1.25rem 1.25rem;
  font-size: 0.875rem;
}

/* ── Forms ───────────────────────────────────────── */
.form-page h1 {
  margin-bottom: 0.375rem;
}

.form-page .form-intro {
  color: #586069;
  margin-bottom: 1.75rem;
}

.feedback-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #24292e;
}

.form-group .hint {
  font-size: 0.8rem;
  color: #586069;
  margin-bottom: 0.35rem;
  display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d1d5da;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #24292e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0366d6;
  box-shadow: 0 0 0 3px rgba(3, 102, 214, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #d73a49;
}

.form-group .error-msg {
  display: none;
  color: #d73a49;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group .error-msg.visible {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.required-star {
  color: #d73a49;
}

.required-note {
  font-size: 0.8rem;
  color: #586069;
  margin-bottom: 1.25rem;
}

.required-note .required-star {
  margin-right: 0.2rem;
}

/* Contact fieldset */
.contact-fieldset {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 1rem 1rem 0.25rem;
  margin-bottom: 1.25rem;
}

.contact-fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: #24292e;
  padding: 0 0.35rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.legend-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: #586069;
}

.contact-fieldset > .error-msg {
  display: none;
  color: #d73a49;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.contact-fieldset > .error-msg.visible {
  display: block;
}

footer a {
  color: #586069;
}

.btn-submit {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover {
  background: #2d2d4e;
}

/* ── Embed pages (map, claims) ───────────────────── */
.embed-page h1 {
  margin-bottom: 0.375rem;
}

.embed-page > p {
  color: #586069;
  margin-bottom: 1.25rem;
}

.map-embed,
.video-embed {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1e4e8;
}

.map-embed {
  height: 70vh;
  min-height: 400px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-embed {
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 2rem;
  transition: background 0.15s;
}

.video-link:hover {
  background: #cc0000;
  color: #fff;
}

/* ── Gallery ─────────────────────────────────────── */
.gallery-page h1 {
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.gallery-img-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f6f8fa;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.gallery-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s;
}

.gallery-img-link:hover img {
  transform: scale(1.04);
}

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

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.lightbox-caption {
  color: #e0e0e0;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.lightbox-close:hover {
  opacity: 1;
}

.gallery-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: #586069;
  margin: 0;
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 640px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid #2d2d4e;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #2d2d4e;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
