/* ============ FONT ============ */
@font-face {
  font-family: "Borjomi";
  src: url("Borjomi-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Borjomi-Regular";
  src: url("Borjomi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Borjomi-Bold";
  src: url("Borjomi-Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  --teal: #007973;
  --teal-deep: #006861;
  --teal-soft: #1a857f;
  --white: #ffffff;
  --ink: #007973;
  --line: rgba(255, 255, 255, 0.45);

  --maxw: 460px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Borjomi", "Noto Sans Georgian", sans-serif;
  background-color: var(--teal);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.intro-open {
  overflow: hidden;
  height: 100vh;
}

/* ============ SCROLLBAR ============ */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--teal-soft) var(--teal-deep);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--teal-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--teal-soft);
  border-radius: 10px;
  border: 2px solid var(--teal-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: #2a948e;
}

/* ============ OPENING SCREEN ============ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--teal);
  background-image: url("backgound.png");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#intro.fade-out {
  opacity: 0;
  visibility: hidden;
}

.intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rem;
  padding: 24px;
}

.intro-logo,
.intro-btn-wrap {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#intro.show .intro-logo,
#intro.show .intro-btn-wrap {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#intro.dismiss .intro-logo,
#intro.dismiss .intro-btn-wrap {
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
}

/* gentle floating bob — runs only once the button has settled in */
@keyframes intro-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.intro-logo {
  width: 168px;
  height: auto;
  display: block;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 30px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-family: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  animation: intro-float 2.8s ease-in-out 1s infinite;
  animation-play-state: paused;
}

#intro.show .intro-btn {
  animation-play-state: running;
}

#intro.dismiss .intro-btn {
  animation-play-state: paused;
}

.intro-btn__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.intro-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
}

/* ----- Intro mountains: slide in on load, slide back out on open ----- */
.intro-mountain {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 116%;
  max-width: 760px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  /* start just below the bottom edge so it rises up into place */
  transform: translateX(-50%) translateY(115%);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.4s ease;
  will-change: transform, opacity;
}

/* slide up to resting position when the intro reveals */
#intro.show .intro-mountain {
  opacity: 0.95;
  transform: translateX(-50%) translateY(0);
}

/* slide back down as the intro is dismissed / the site opens */
#intro.dismiss .intro-mountain {
  opacity: 0;
  transform: translateX(-50%) translateY(115%);
}

/* ============ PANELS ============ */
.panel {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 64px 26px 72px;
  overflow: hidden;
}

.panel--teal {
  background-color: var(--teal);
  /* Layers (top to bottom):
     1) mask: solid teal at the top, transparent in the middle to reveal the
        pattern, then back to solid teal at the very bottom so consecutive
        sections blend without a visible seam.
     2) veil: a constant teal wash that keeps the pattern at the background
        colour (it otherwise fades to a pale, near-white teal) — only the
        faint linework shows through.
     3) the pattern itself, sitting at the bottom of the section. */
  background-image: linear-gradient(
      to bottom,
      var(--teal) 0%,
      var(--teal) 24%,
      rgba(0, 121, 115, 0) 50%,
      rgba(0, 121, 115, 0) 86%,
      var(--teal) 100%
    ),
    linear-gradient(rgba(0, 121, 115, 0.62), rgba(0, 121, 115, 0.62)),
    url("background pattern.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, center bottom;
  background-size: 100% 100%, 100% 100%, cover;
}

.panel--white {
  background-color: var(--white);
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  position: relative;
  z-index: 2;
}

/* ============ ORNAMENTS ============ */
.ornament {
  position: absolute;
  top: 26px;
  width: 34px;
  height: 34px;
  z-index: 2;
  background-image: url("Icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.ornament--left {
  left: 24px;
}
.ornament--right {
  right: 24px;
}

/* ============ WELCOME ============ */
.welcome {
  text-align: center;
  /* always fill the screen — svh keeps it correct on iOS Chrome/Safari
     where the dynamic toolbar changes the viewport height */
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
}

.welcome__title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 26px 0 30px;
  letter-spacing: 0.5px;
  font-family: "Borjomi-Regular";
}

.welcome p {
  font-size: 1.02rem;
  margin: 0 auto 22px;
  max-width: 340px;
}

.welcome__closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
  font-size: 0.98rem;
}

.rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--line);
}

.scroll-down {
  display: block;
  margin: 30px auto 0;
  padding: 6px;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.scroll-down:hover {
  opacity: 1;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

.farewell-div{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 48px auto 0;
}
.farewell-div img{
  width: 14px;
  height: 14px;
  margin-top: 4px;
}

.farewell {
  
  text-align: center;
  font-family: "Borjomi-Bold";
  font-size: 1.6rem;
}

/* ============ PILL TITLE ============ */
.pill {
  display: block;
  width: fit-content;
  margin: 6px auto 44px;
  padding: 11px 30px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  font-family: "Borjomi-Bold";
}

.pill--teal {
  border-color: rgba(0, 121, 115, 0.55);
  color: var(--ink);
}

/* ============ SCHEDULE ============ */
.schedule {
  list-style: none;
}

.schedule li {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.schedule li:last-child {
  margin-bottom: 0;
}

.schedule__time {
  /* fixed-width column so every time and every description line up
     vertically, even when some rows use a wide range like "07:00 – 11:00" */
  flex: 0 0 92px;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.4px;
  white-space: nowrap;
  font-family: "Borjomi-Regular";
}

.schedule__desc {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

.schedule--teal .schedule__time,
.schedule--teal .schedule__desc {
  color: var(--ink);
}

/* ============ TOUR (white) ============ */
.tour {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 150px;
}

.tour .wrap {
  text-align: center;
}

.tour .schedule {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.tour .schedule li {
  justify-content: flex-start;
}

/* in the tour the times are always short (HH:MM) and the rows stand alone,
   so let the time shrink to its content and sit right beside the text
   instead of spanning the wide global 92px column */
.tour .schedule__time {
  flex: 0 0 auto;
}

.tour__subtitle {
  font-size: 1rem;
  margin: -28px 0 30px;
  color: var(--ink);
  font-family: "Borjomi-Regular";
}

.tour__intro {
  font-size: 0.875rem;
  margin: 26px auto 6px;
  max-width: 380px;
  color: var(--ink);
  font-style: italic;
}

.tour__mountains {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 26px auto 30px;
}

.tour__heading {
  font-size: 1.28rem;
  font-weight: 400;
  margin: 8px 0 26px;
  color: var(--ink);
  font-family: "Borjomi-Regular";
}

.topics {
  list-style: none;
  margin: 0 auto 34px;
  max-width: 380px;
}

.topics li {
  font-size: 0.875rem;
  margin-bottom: 20px;
  color: var(--ink);
  line-height: 1.5;
  font-style: italic;
}

/* ============ TOUR GRAPHIC (vector + deer) ============ */
.tour-graphic {
  position: absolute;
  right: 0;
  bottom: -1rem;
  width: 210px;
  height: 150px;
  z-index: 1;
  pointer-events: none;
}

.tour-graphic__line {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 200px;
  height: auto;
  opacity: 0;
  transform: translateY(26px) scale(0.82);
  transition: opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tour-graphic__deer {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 68px;
  height: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.65);
  transition: opacity 0.7s ease 0.55s,
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s;
}

.tour-graphic.in .tour-graphic__line,
.tour-graphic.in .tour-graphic__deer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ SCROLL REVEAL ============ */
/* Only the inner content fades/slides in — the panel keeps its solid
   teal/white background at all times, so there is no white gap between
   sections before they are revealed. */
.reveal .wrap {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in .wrap {
  opacity: 1;
  transform: none;
}

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--teal-deep);
  text-align: center;
  padding: 8px 20px 10px;
}

.credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--white);
  opacity: 0.18;
  font-size: 0.66rem;
  transition: opacity 0.3s ease;
}
.credit:hover {
  opacity: 0.45;
}
.credit img {
  width: 12px;
  height: 12px;
  display: block;
}

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 90;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background-color: rgba(0, 104, 97, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.3s ease;
}
.music-toggle.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}
.music-toggle:hover {
  background-color: rgba(0, 104, 97, 0.85);
}

.music-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}
.music-toggle__bars span {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background-color: var(--white);
  transform-origin: bottom;
}
/* animated equaliser when playing */
.music-toggle.playing .music-toggle__bars span {
  animation: eq 0.9s ease-in-out infinite;
}
.music-toggle.playing .music-toggle__bars span:nth-child(2) {
  animation-delay: 0.25s;
}
.music-toggle.playing .music-toggle__bars span:nth-child(3) {
  animation-delay: 0.5s;
}
/* paused = flat low bars */
.music-toggle:not(.playing) .music-toggle__bars span {
  height: 5px;
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

/* ============ DESKTOP NOTICE ============ */
.mobile-prompt {
  display: none;
}

/* ============ BREAKPOINTS ============ */
@media (min-width: 481px) {
  :root {
    --maxw: 480px;
  }
  .panel {
    padding: 78px 30px 86px;
  }
  .intro-logo {
    width: 188px;
  }
  .welcome__title {
    font-size: 1.65rem;
  }
  .pill {
    font-size: 1.42rem;
  }
  .tour-graphic {
    width: 250px;
    height: 175px;
  }
  .tour-graphic__line {
    width: 240px;
  }
  .tour-graphic__deer {
    width: 56px;
  }
}

@media (min-width: 769px) {
  .panel {
    padding: 96px 30px 104px;
  }
  .welcome p {
    font-size: 1.05rem;
  }
  .intro-logo {
    width: 208px;
  }
  .ornament {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1025px) {
  .ornament--left {
    left: 40px;
  }
  .ornament--right {
    right: 40px;
  }

  .mobile-prompt {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background-color: var(--teal);
    padding: 40px;
    overflow: hidden;
  }

  .mobile-prompt::before {
    content: "";
    position: absolute;
    inset: -80px;
    background-image: url("background pattern.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.05);
    transform: scale(1.15);
    z-index: 0;
  }

  .mobile-prompt__inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
    text-align: center;
    color: var(--white);
  }

  .mobile-prompt__inner img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 20px;
    opacity: 0.8;
  }

  .mobile-prompt__inner p {
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.4px;
  }
}
