/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --saffron: #1a3a5c;
  --saffron-light: #a8c0d8;
  --deep-red: #0f2a4a;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --cream: #f8f9fb;
  --cream-dark: #edf1f5;
  --text: #1a2332;
  --text-light: #4a5568;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  background: var(--deep-red);
  padding: 0.8rem 1.5rem;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-logo {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav-title {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--deep-red) 0%, var(--saffron) 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  color: var(--cream);
}

.hero h1 {
  font-size: 2.8rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.hero-detail {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* === Sections === */
.section {
  padding: 3.5rem 1.5rem;
}

.section-alt {
  background: var(--cream-dark);
}

.container {
  max-width: 750px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  color: var(--deep-red);
  text-align: center;
  margin-bottom: 0.5rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.section-intro {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-style: italic;
}

p + p {
  margin-top: 1rem;
}

/* === Invite Dropdown === */
.invite-dropdown {
  border: 2px solid var(--saffron-light);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.invite-toggle {
  display: block;
  padding: 1rem 1.5rem;
  background: var(--deep-red);
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

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

.invite-toggle::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 0.6rem;
  font-size: 0.8rem;
  transition: transform 0.2s;
}

details[open] > .invite-toggle::before {
  transform: rotate(90deg);
}

.invite-toggle:hover {
  background: var(--saffron);
}

.invite-viewer {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--saffron-light);
  border-radius: 4px;
}

.invite-download {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--deep-red);
  color: var(--cream);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s;
}

.invite-download:hover {
  background: var(--saffron);
}

/* === History Highlight === */
.history-highlight {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.history-highlight h3 {
  color: var(--saffron);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* === Timeline / Events === */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.event-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--deep-red);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0.2rem;
}

.event-content h3 {
  font-size: 1.1rem;
  color: var(--deep-red);
  margin-bottom: 0.1rem;
}

.event-subtitle {
  color: var(--gold);
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.event-content p:last-child {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === Video === */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.video-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 6px;
}

.video-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}

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

.video-link:hover img {
  opacity: 0.85;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(15, 42, 74, 0.85);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.video-link:hover .video-play-btn {
  background: rgba(15, 42, 74, 1);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border: 2px dashed var(--saffron-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-style: italic;
}

/* === Distance Cards === */
.distance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.distance-card {
  text-align: center;
  padding: 1.2rem 0.8rem;
  background: var(--cream-dark);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.distance-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-red);
}

.distance-label {
  font-size: 0.9rem;
  color: var(--text);
}

.distance-time {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
}

/* === Region === */
.region-block {
  margin-bottom: 2rem;
}

.region-block:last-child {
  margin-bottom: 0;
}

.region-block h3 {
  color: var(--deep-red);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

/* === Map === */
.map-embed {
  margin-top: 1.5rem;
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 6px;
}

/* === Footer === */
.footer {
  background: var(--deep-red);
  color: var(--cream);
  text-align: center;
  padding: 2rem 1.5rem;
}

.footer-small {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === Mobile === */
@media (max-width: 600px) {
  .hero {
    padding: 3.5rem 1.2rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 2.5rem 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .event {
    gap: 0.8rem;
  }

  .event-number {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .history-highlight {
    padding: 1.2rem 1.2rem;
  }

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

  .nav-logo {
    height: 30px;
  }

  .pdf-embed {
    height: 400px;
  }
}
