* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #262626;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('images/header.jpg') no-repeat center/cover;
  min-height: min(55vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content {
  max-width: 760px;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  animation: fadeInDown 1s ease forwards;
}

.hero-content p {
  margin-top: 10px;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.5s;
}

/* Navbar */
.navbar {
  background: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.logo {
  font-weight: bold;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: #262626;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 6px;
}

.burger:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 6px;
}

.burger span {
  width: 22px;
  height: 3px;
  background: #262626;
  border-radius: 2px;
  transition: 0.3s;
}

/* Main */
main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 15px;
}

.trip {
  margin-bottom: 60px;
  animation: fadeIn 1s ease;
}

.trip h2 {
  text-align: center;
  margin-bottom: 12px;
}

.trip-info {
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #555;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 15px;
}

.gallery img {
  width: 100%;
  height: clamp(180px, 28vw, 260px);
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

footer {
  background: white;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #777;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal.open {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal img {
  max-width: min(95vw, 1200px);
  max-height: 85vh;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-container {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    width: auto;
    padding: 14px 16px;
    gap: 6px;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero {
    min-height: 48vh;
  }

  main {
    padding: 32px 15px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 42vh;
    padding: 16px;
  }

  .hero-content p {
    margin-top: 6px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }

  .modal {
    padding: 12px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
