/* === Base & resets === */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: #000;
  -ms-overflow-style: none; /* IE/old Edge */
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

:root {
  --header-h: 64px;
  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --leading: 1.65;
  --leading-tight: 1.25;
  /* Colors */
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.8);
  --panel: rgba(0, 0, 0, 0.72);
  --panel-border: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.045);
  --accent: #e86fcc; /* subtle magenta */
  --accent-2: #2fd3c2; /* teal */
  --danger: #e60000;
  /* Layout */
  --container: 68ch; /* comfortable reading measure */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Header fixed & safe stacking */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  isolation: isolate;
}
body {
  padding-top: var(--header-h);
}
html {
  scroll-padding-top: var(--header-h);
}
section {
  scroll-margin-top: var(--header-h);
}

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

/* === Hero slideshow (fixed behind content) === */
.hero {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 20s infinite;
}
.hero .slide:nth-child(1) {
  animation-delay: 0s;
}
.hero .slide:nth-child(2) {
  animation-delay: 5s;
}
.hero .slide:nth-child(3) {
  animation-delay: 10s;
}
.hero .slide:nth-child(4) {
  animation-delay: 15s;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* === Header / Nav === */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.375rem;
  border-radius: 0.5rem;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0.375rem;
  right: 0.375rem;
  bottom: 0.2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}
.nav-menu a.active {
  color: var(--accent-2);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  font-size: 1.1rem;
  background: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }
  .nav-menu {
    position: absolute;
    right: 1rem;
    top: 3.25rem;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.88);
    padding: 0.75rem;
    border: 1px solid var(--panel-border);
    border-radius: 0.75rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open {
    display: flex;
  }
}

/* === Panels / Sections === */
.panel {
  background: var(--panel);
  margin: 2rem auto;
  border-radius: var(--radius);
  width: min(80%, 1200px);
  position: relative;
  z-index: 0;
  box-shadow: var(--shadow);
}
.panel + .panel {
  margin-top: 4rem;
}
.panel--transparent {
  background: transparent;
  box-shadow: none;
}
@media (max-width: 900px) {
  .panel {
    margin: 1.5rem auto;
  }
  .panel + .panel {
    margin-top: 2rem;
  }
}

.container {
  max-width: 1200px;
  padding: 3.5rem 1.25rem;
  margin: 0 auto;
}
.container--center {
  display: grid;
  place-items: center;
  min-height: 80vh;
  text-align: center;
}
.container--narrow {
  max-width: var(--container);
}

/* Type: headings & text */
:where(p, li) {
  line-height: var(--leading);
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(0.95rem, 0.7rem + 0.6vw, 1.25rem);
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.home-sub {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 2.2vw, 2rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  margin: 0 0 0.5rem;
}
.home-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 6vw, 5rem);
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
  line-height: var(--leading-tight);
  margin: 0 0 0.35rem;
}

/* About grid 3×3 */
.grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
}
.img-card {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.img-card:hover img {
  transform: scale(1.03);
}
.card p {
  margin: 0;
  line-height: var(--leading);
  color: var(--muted);
}
@media (max-width: 900px) {
  .grid-3x3 {
    grid-template-columns: 1fr;
  }
  .img-card {
    aspect-ratio: 3/4;
  }
}

/* Galleries */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.gallery figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.gallery img {
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.gallery img:hover {
  transform: scale(1.02);
}
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 20000;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: zoom-out;
}

/* Lists */
.itinerary {
  line-height: 1.8;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.contact-list .label {
  display: inline-block;
  min-width: 6rem;
  opacity: 0.9;
  margin-right: 0.5rem;
}
#contact a {
  color: var(--danger);
}
#contact a:visited {
  color: var(--danger);
}
#contact a:hover {
  color: #ff4040;
}
#contact a:active {
  color: #cc0000;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover {
  border-color: rgba(255, 0, 255, 0.5);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* Footer */
.footer {
  margin-top: 2rem;
  opacity: 0.9;
  font-size: 0.95rem;
}
