/* ============================================================
   SECTION 1: HERO SECTION
   ============================================================ */

.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.8);
    z-index: -2;
    opacity: 0;
    animation: bgFadeIn 1s ease-in-out forwards;
}

@keyframes bgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .hero-section::before {
        transform: translateX(-50%);
        width: 100%;
        max-width: 110%;
        height: 900px;
    }
}

@media (max-width: 724px) {
    .hero-section {
        height: 680px;
    }
}

.hero-section .logo {
    position: fixed;
    top: 100px;
    padding-left: 30px;
    transform: translateX(-50%);
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,1));
    z-index: -1;
    opacity: 0;
    animation: bgFadeIn 1s ease-in-out 0.3s forwards;
}

/* Kui ekraani kõrgus on vähemalt 900px */
@media (max-height: 900px) {
  .hero-section .logo {
    top: 60px;
  }
}

/* Kui ekraani kõrgus on vähemalt 760px */
@media (max-height: 760px) {
  .hero-section .logo {
    top: 50px;
  }
}

@media (max-width: 1400px) {
    .hero-section .logo {
        max-width: 300px;
    }
}

@media (max-width: 1000px) {
    .hero-section .logo {
        max-width: 260px;
    }
}

.hero-section .bottom-elements {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-section .cta-button {
    padding: 10px 26px;
    font-size: 0.9rem;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    font-family: 'Glacial Indifference', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 2;
    opacity: 0;
    animation: bgFadeIn 1s ease-in-out 1s forwards;
}

.hero-section .cta-button:hover {
    transform: translateY(-3px);
    background-color: #f2f2f2;
}

.hero-section .chevron {
    opacity: 0;
    animation: bgFadeIn 1s ease-in-out 1s forwards;
}

.hero-section .chevron svg {
    width: 42px;
    height: 42px;
    stroke: #ffffff;
    animation: bounce 2s infinite 2.5s;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* ============================================================
   SECTION 2: MEIST
   ============================================================ */

.section.meist {
  position: relative;
  background-color: #ffffff;
  z-index: 5;
  padding-top: 20px;
  overflow-x: hidden;
}

.section.meist::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.015) 100%);
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 900px) {
  .section.meist {
    padding-top: 10px;
  }
}

.meist-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.meist-title {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.meist-title .light {
  font-weight: 400;
}

.meist-subtitle, .meist-subtitle * {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #454545ff;
  margin-bottom: 24px;
  line-height: 2;
}
@media (max-width: 768px) {
  .meist-subtitle, .meist-subtitle * {
    white-space: nowrap; /* Tekst ei murru uuele reale */
    overflow: hidden;    /* Peidab üleliigse teksti */
    text-overflow: ellipsis; /* Lisab ... kui tekst liiga pikk */
  }

}
.meist-subtitle strong {
  font-weight: 700 !important;
}

/* Subtitle - mobiil/desktop lahendus */
.meist-subtitle .mobile-subtitle {
  display: none;
}

.meist-subtitle .desktop-subtitle {
  display: inline;
}

@media (max-width: 768px) {
  .meist-subtitle .mobile-subtitle {
    display: inline;
  }
  .meist-subtitle .desktop-subtitle {
    display: none;
  }
}

@media (max-width: 700px) {
  .meist-subtitle, .meist-subtitle * {
    font-size: 0.9rem;
    line-height: 1.9;
    text-align: center;
    white-space: normal;
  }
    .meist-title {

  font-size: 2rem;

}
  .meist-subtitle {
    padding: 0px 20px;
  }

  .meist-title {
    margin-top: 20px;
    text-align: center;
  }
}

.meist-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.meist-images img {
  max-width: 120px;
  margin-bottom: 40px;
  padding-left: 10px;
}

.meist-images .cta-button {
  background: #c7a263;
  color: #fff;
  margin-bottom: 20px;
  padding: 10px 24px;
  font-size: 0.9rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  font-family: 'Glacial Indifference', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.meist-images .cta-button:hover {
  background: #a8863c;
  transform: translateY(-2px);
}






/* ============================================================
   SECTION 3: GALERII
   ============================================================ */

.main-gallery-section {
    position: relative;
    padding: 40px 0;
    text-align: center;
    background: rgba(255, 255, 255, 1);
    z-index: 10;
    overflow-x: hidden;
}

.main-gallery-title {
    font-family: 'Norwester', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
    margin-top: 20px;
    text-transform: lowercase;
}

@media (max-width: 700px) {
    .main-gallery-title {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 50px;
    }
    .main-gallery-close {
        top: 50px;
        right: 20px;
    }
}

.main-gallery-grid {
    column-count: 2;
    column-gap: 8px;
    margin: 0 auto;
    max-width: 1200px;
}

@media (min-width: 600px) {
    .main-gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 1065px) {
    .main-gallery-grid {
        column-count: 4;
    }
}

.main-gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 4px;
    break-inside: avoid;
    cursor: pointer;
    position: relative;
}

.main-gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.25s ease;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: block;
}

.main-gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow 0.25s ease;
    pointer-events: none;
}

.main-gallery-item:hover img {
    transform: scale(1.03) translateZ(0);
    -webkit-transform: scale(1.03) translate3d(0, 0, 0);
}

.main-gallery-item:hover::after {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.main-gallery-btn {
    background: #c7a263;
    margin: 40px 0;
    color: #fff;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    font-family: 'Glacial Indifference', sans-serif;
    letter-spacing: 0.03em;
    display: inline-block;
}

.main-gallery-btn:hover {
    background: #a8863c;
    transform: translateY(-2px);
}

/* --- GALLERY MODAL --- */
.main-gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.main-gallery-modal.active {
    display: flex;
}

.main-gallery-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90vh;
    z-index: 10000;
}

.main-gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    z-index: 10000;
    border-radius: 6px;
}

.main-gallery-close {
    position: fixed; /* Hoidke ekraani suhtes fikseeritud */
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-gallery-close:hover {
    color: #c7a263;
    transform: scale(1.1);
}

.main-gallery-nav {
    position: fixed; /* Hoidke ekraani suhtes fikseeritud */
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10002;
    pointer-events: none;
}

.main-gallery-nav button {
  background: none;
  border: none;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10003;
}

.main-gallery-nav button:hover {
    stroke: #c7a263;
    transform: scale(1.1);
}


.main-gallery-nav button svg {
    width: 50px;
    height: 50px;
}

.main-gallery-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .main-gallery-nav button {
        width: 45px;
        height: 45px;
    }
    
    .main-gallery-nav button svg {
        width: 45px;
        height: 45px;
    }
}
/* ============================================================
   SECTION 4: VIDEOD
   ============================================================ */

.section.videos {
  background: rgba(255,255,255,0.9);
  width: 100%;
  position: relative;
  z-index: 50;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.video-container {
  width: 100%;
  box-sizing: border-box;
  padding-left: calc(20px + env(safe-area-inset-left, 0px));
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
  .video-container {
    padding-left: 0;
    padding-right: 0;
  }
}


.section.videos h2 {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 60px;
  margin-bottom: 60px;
  text-transform: lowercase;
}
@media (max-width: 700px) {
  .section.videos h2 {
  font-size: 2rem;

}
}
.section.videos p {
    font-weight: 200;
    font-size: clamp(8px, 4vw, 18px);
    font-family: 'Montserrat', sans-serif;

}

.video-card {
  width: 400px;
  flex-shrink: 0;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
  text-align: center;
  scroll-snap-align: center;
}

.video-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 12px;
}

.video-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 80px;
  padding-right: 80px;
  width: 100%;
  box-sizing: border-box;
}

.video-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.video-slider::-webkit-scrollbar {
  height: 8px;
  background: transparent;
}

.video-slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.slider-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #292929;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
}

.slider-btn:focus {
  outline: none;
}

@media (max-width: 769px) {
  .video-card {
    width: 280px;
    margin: 0 10px;
  }

  .video-card iframe {
    height: 180px;
  }

  .video-slider-container {
    padding-left: 50px;
    padding-right: 50px;
  }

  .video-slider-container .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    font-size: 2.5rem;
    pointer-events: auto;
  }

  .video-slider-container .slider-btn.prev {
    left: 5px;
  }

  .video-slider-container .slider-btn.next {
    right: 5px;
  }
}

/* ============================================================
   SECTION 5: TAGASISIDE
   ============================================================ */

.section.feedback {
  background: rgba(255,255,255,0.9);
  width: 100%;
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.feedback-container {
  width: 100%;
  box-sizing: border-box;
  padding-left: calc(20px + env(safe-area-inset-left, 0px));
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
  .feedback-container {
    padding-left: 0;
    padding-right: 0;
  }
}

.feedback-card img {
  display: none !important;
}

.feedback-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px;
  padding-left: 80px;
  padding-right: 80px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.feedback-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.feedback-slider::-webkit-scrollbar {
  height: 8px;
  background: transparent;
}

.feedback-slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

.feedback-card img {
  max-height: 40px;
  width: auto;
  display: block;
  margin: 15px auto 0 auto;
  border-radius: 4px;
}

.section.feedback p {
    font-weight: 200;
    font-size: clamp(8px, 4vw, 18px);
    font-family: 'Montserrat', sans-serif;
}
.section.feedback p strong,
.section.feedback p b {
    font-weight: 700 !important;
}


.section.feedback h2 {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 60px;
  margin-bottom: 60px;
  text-transform: lowercase;
}

@media (max-width: 700px) {
.section.feedback h2 {

  font-size: 2rem;

}
}
.feedback-card {
  position: relative;
  width: 400px;
  margin: 0 10px;
  flex-shrink: 0;
  padding: 0px 32px 0px 20px;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
  text-align: center;
  scroll-snap-align: center;
}

.feedback-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0%;
  height: 100%;
  width: 1px;
  background-color: #000;
}

.feedback-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
}

.feedback-card p {
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.6;
}


@media (max-width: 769px) {
  .feedback-card {
    width: 250px;
    margin: 0 10px;
  }


  .feedback-card img {
    max-height: 30px;
  }

  .feedback-slider-container {
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 80px;
  }

  .feedback-slider-container .slider-btn {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    z-index: 100;
    font-size: 2.5rem;
    pointer-events: auto;
  }

  .feedback-slider-container .slider-btn.prev {
    left: 5px;
  }

  .feedback-slider-container .slider-btn.next {
    right: 5px;
  }
}

/* ============================================================
   SECTION 6: ESINEMISED
   ============================================================ */

.section.performances {
  background: #c4a75a;
  width: 100%;
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 20px;
}

.performances-container {
  width: 100%;
  box-sizing: border-box;
  padding-left: calc(20px + env(safe-area-inset-left, 0px));
  padding-right: calc(20px + env(safe-area-inset-right, 0px));
}

@media (max-width: 768px) {
  .performances-container {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 700px) {
  .section.performances h2 {
    font-size: 2rem;
  }
}

.section.performances h2 {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 50px;
  margin-bottom: 10px;
  text-align: center;
  position: relative;
  padding-bottom: 40px;
  text-transform: lowercase;
}

.section.performances h2::after {
  content: "";
  display: block;
  width: 100%;
  max-width: 400px;
  height: 1px;
  background-color: #000;
  margin: 15px auto 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section.performances p {
  font-weight: 200;
  font-size: clamp(8px, 4vw, 18px);
  font-family: 'Montserrat', sans-serif;
}

.performances-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  padding-left: 80px;
  padding-right: 80px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.performances-slider {
  display: flex;
  overflow-x: auto; /* lubab kerida */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}


.performances-slider::-webkit-scrollbar {
  height: 8px;
  background: transparent;
}

.performances-slider::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* Täisekraanil 5 nähtavat kaarti */
.performance-card {
  flex: 0 0 calc(100% / 5);
  box-sizing: border-box;
  padding: 30px;
  text-align: center;
  scroll-snap-align: center;
}

/* h4 ühele reale, container venib vajadusel */
.performance-card h4 {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 1.3rem;
  margin-top: 10px;
  margin-bottom: 10px;
  white-space: nowrap;
  display: inline-block;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: unset;
}

.performance-card p {
  margin: 5px 0;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
}

.performance-card a {
  display: block;
  font-size: 1.3rem;
  color: #000000ff;
  font-family: 'Montserrat', sans-serif;
  text-decoration: underline;
}

.performance-card a:hover {
  text-decoration: underline;
}

/* Mobiilis näita ainult 1 korraga ja luba scroll */
@media (max-width: 768px) {
  .section.performances h2 {
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 2rem;
  }

  .performance-card {
    margin: 0 10px;
    flex: 0 0 100%;
  }

  .performances-slider {
    max-width: 100%;
    overflow-x: auto;
  }

  .performances-slider-container {
    padding-left: 50px;
    padding-right: 50px;
  }

  .performances-slider-container .slider-btn {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    z-index: 100;
    font-size: 2.5rem;
    pointer-events: auto;
  }

  .performances-slider-container .slider-btn.prev {
    left: 5px;
  }

  .performances-slider-container .slider-btn.next {
    right: 5px;
  }
}

.past-performance {
  opacity: 0.6;
  filter: grayscale(40%);
}
.upcoming-performance {
  opacity: 1;
}



/* ============================================================
   SECTION 7: KONTAKT
   ============================================================ */

.section.contact {
    padding-top: 60px;
    padding-bottom: 20px;
    text-align: center;
    background-color: #ffffffff;
    font-family: 'Glacial Indifference', sans-serif;
    position: relative;
    z-index: 999;
    overflow-x: hidden;
}

.section.contact h2 {
  font-family: 'Norwester', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: lowercase;
}

.section.contact p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 0 10px;
    position: relative;
}

.contact-form-wrapper input,
.contact-form-wrapper select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid #0b0b0bff;
    border-radius: 50px;
    font-size: 18px;
    font-family: 'Glacial Indifference', sans-serif;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 18px;
    border: 1px solid #0b0b0bff;
    border-radius: 15px;
    font-size: 18px;
    font-family: 'Glacial Indifference', sans-serif;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    height: 150px;
    transition: height 0.2s ease;
    overflow: hidden;
}

.contact-form-wrapper textarea:focus,
.contact-form-wrapper textarea:not(:placeholder-shown) {
    height: 180px;
}

.contact-form-wrapper .wpcf7-submit {
    background-color: #0e0e0eff;
    color: #fff;
    border: none;
    padding: 12px 10px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 10px auto;
    font-weight: 700;
}

@media (max-width: 769px) {
.section.contact {
    padding-left: 10px;
    padding-right: 10px;

}
  }

  @media (max-width: 700px) {
  .section.contact h2 {

  font-size: 2rem;

}
  }



.contact-form-wrapper .wpcf7-submit:hover {
    background-color: #1a1a1aff;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #999999ff;
    transition: opacity 0.2s ease;
}

.contact-form-wrapper input:focus::placeholder,
.contact-form-wrapper input:invalid::placeholder,
.contact-form-wrapper textarea:focus::placeholder,
.contact-form-wrapper textarea:invalid::placeholder {
    opacity: 0;
}


