/* =========================================================================
   ODYSSEY — an interactive museum exhibition
   Style system: soft pastel Greek-museum palette, generous spacing,
   rounded corners, restrained gold accents.
   ========================================================================= */

:root {
  /* ---- palette ---- */
  --bg:        #F8F5EF;
  --ink:       #2B2A28;
  --gold:      #C8A35F;
  --gold-dark: #A9834A;

  /* card backgrounds, cycled per section */
  --card-1: #F5EBDD;
  --card-2: #EAF3F8;
  --card-3: #EEF3E8;
  --card-4: #F8F2EA;
  --card-5: #F0EBF7;
  --card-6: #F8E7DB;

  /* ---- type ---- */
  --font-display: 'Cormorant Garamond', serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'Inter', sans-serif;

  /* ---- layout ---- */
  --content-max: 1000px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --nav-width: 210px;

  --shadow-soft: 0 10px 30px rgba(43, 42, 40, 0.07);
  --shadow-lift: 0 22px 45px rgba(43, 42, 40, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a { color: inherit; }

/* Skip link, visible only on keyboard focus */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Consistent, visible focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--gold); color: #fff; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 163, 95, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(200, 163, 95, 0.5);
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  color: var(--ink);
  font-weight: 500;
  padding: 10px 6px;
  opacity: 0.75;
}
.btn-ghost:hover { opacity: 1; color: var(--gold-dark); }
.btn-ghost:disabled { opacity: 0.25; cursor: not-allowed; }

/* Explore button: arrow shifts on hover */
.explore-btn {
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.explore-btn:hover { border-color: var(--gold-dark); }
.explore-btn .arrow { transition: transform 0.3s var(--ease); }
.explore-btn:hover .arrow { transform: translateX(6px); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-sun { animation: sunPulse 8s ease-in-out infinite; }
@keyframes sunPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.035); }
}

.wave { transform-origin: center; }
.wave-1 { animation: waveDrift 14s ease-in-out infinite; }
.wave-2 { animation: waveDrift 18s ease-in-out infinite reverse; }
.wave-3 { animation: waveDrift 22s ease-in-out infinite; }
@keyframes waveDrift {
  0%, 100% { transform: translateX(0) translateY(0); }
  50%      { transform: translateX(-2%) translateY(4px); }
}

.hero-ship {
  animation: shipBob 6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes shipBob {
  0%, 100% { transform: translate(720px, 610px) rotate(0deg); }
  50%      { transform: translate(720px, 602px) rotate(-1deg); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-70vh) translateX(20px); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
  /* lift the whole text block up so it clears the ship illustration
     lower in the scene */
  transform: translateY(-20vh);
}

@media (max-height: 760px) {
  .hero-content { transform: translateY(-12vh); }
}

@media (max-width: 560px) {
  .hero-content { transform: translateY(-9vh); }
}

/* plain wrapper for the subtitle + description — no background panel,
   just groups them for the fade-in animation and spacing */
.hero-text-panel {
  margin: 18px auto 0;
  max-width: 620px;
}

.hero-text-panel .hero-subtitle { margin-top: 0; }
.hero-cta { margin-top: 20px; }

.hero-eyebrow {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4rem, 12vw, 8.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-top: 18px;
  color: var(--ink);
}

.hero-desc {
  margin: 26px auto 40px;
  max-width: 520px;
  font-size: 1.05rem;
  color: rgba(43, 42, 40, 0.75);
}

/* fade-in choreography, driven by .is-visible from script.js */
[data-anim="fade"] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.hero.is-loaded [data-anim="fade"] { opacity: 1; transform: translateY(0); }
.hero-content [data-anim="fade"]:nth-child(1) { transition-delay: 0.1s; }
.hero-content [data-anim="fade"]:nth-child(2) { transition-delay: 0.25s; }
.hero-content [data-anim="fade"]:nth-child(3) { transition-delay: 0.4s; }
.hero-content [data-anim="fade"]:nth-child(4) { transition-delay: 0.55s; }

.scroll-down {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 163, 95, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.scroll-down:hover { border-color: var(--gold-dark); background: rgba(255,255,255,0.4); }
.scroll-down-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(45deg) translate(-2px, -2px);
  animation: arrowBounce 2.2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: rotate(45deg) translate(-2px, -2px); }
  50%      { transform: rotate(45deg) translate(2px, 2px); }
}

/* =========================================================================
   JOURNEY / SECTIONS
   ========================================================================= */
.journey {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* the vertical golden route line running behind milestones */
.journey-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(200, 163, 95, 0.55) 6%,
    rgba(200, 163, 95, 0.55) 94%,
    transparent 100%);
  z-index: 0;
}

.stop {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.stop.is-visible { opacity: 1; transform: translateY(0); }

.stop:first-child { padding-top: 90px; }

/* milestone circle marking this stop on the golden line */
.stop-milestone {
  width: 64px;
  height: 64px;
  margin: 0 auto 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 0 6px var(--bg);
}
.stop-milestone svg { width: 30px; height: 30px; }

.stop-card {
  background: var(--card-bg, var(--card-1));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.stop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.stop-illustration {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(200, 163, 95, 0.5);
  color: rgba(200, 163, 95, 0.7);
  overflow: hidden;
}
.stop-illustration svg { width: 42%; height: 42%; }
/* once a real image/illustration is dropped in here, this rule keeps it
   filling the circle cleanly — e.g. <div class="stop-illustration"><img ...></div> */
.stop-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stop-eyebrow {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.stop-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

.stop-summary {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(43, 42, 40, 0.78);
  font-size: 1.05rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 24px 160px;
}
.footer-eyebrow {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 24px;
}
.footer-text {
  color: rgba(43, 42, 40, 0.75);
  font-size: 1.05rem;
  margin-bottom: 42px;
}

/* =========================================================================
   MODAL
   ========================================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(43, 42, 40, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 86vh;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(12px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.5;
  z-index: 2;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { opacity: 1; transform: rotate(90deg); }

.modal-scroll {
  overflow-y: auto;
  padding: 56px 48px 20px;
}

.modal-eyebrow {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-align: center;
  margin-bottom: 30px;
}

.modal-illustration {
  width: 100%;
  aspect-ratio: 21 / 9;
  margin: 0 auto 34px;
  border-radius: var(--radius-md);
  background: rgba(200, 163, 95, 0.08);
  border: 1.5px dashed rgba(200, 163, 95, 0.5);
  color: rgba(200, 163, 95, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-illustration svg { width: 15%; height: 15%; min-width: 40px; min-height: 40px; }
/* drop a real <img> in here later — it will fill the banner cleanly */
.modal-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .modal-illustration { aspect-ratio: 16 / 10; }
}

.modal-body p {
  margin-bottom: 18px;
  color: rgba(43, 42, 40, 0.85);
  font-size: 1.02rem;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(200, 163, 95, 0.3);
}
.modal-meta h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.modal-meta ul li {
  padding: 4px 0;
  font-size: 0.95rem;
  position: relative;
  padding-left: 16px;
}
.modal-meta ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.modal-meta p { font-size: 0.95rem; color: rgba(43,42,40,0.8); }

@media (max-width: 560px) {
  .modal-meta { grid-template-columns: 1fr; }
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px 26px;
  border-top: 1px solid rgba(200, 163, 95, 0.2);
}
.modal-counter {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 720px) {
  .stop-card { padding: 40px 26px; }
  .stop { padding: 90px 0; }
  .modal-scroll { padding: 46px 26px 16px; }
  .modal-footer { padding: 16px 26px 22px; }
  .site-footer { padding: 100px 24px 120px; }
}

@media (max-width: 480px) {
  .hero-desc { font-size: 0.98rem; }
  .btn { padding: 14px 26px; font-size: 0.88rem; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@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;
    scroll-behavior: auto !important;
  }
}
