/* =========================================
   KYRIMAI EVENTS — self-contained styles
   Scoped under .page-events so nothing leaks
   into the host theme.
========================================= */

.page-events,
.page-events *,
.page-events *::before,
.page-events *::after {
  box-sizing: border-box;
}

.page-events {
  background: #E0D7E5;
  color: #000;
  overflow: hidden;
}

.page-events img {
  max-width: 100%;
}

/* Layout helpers (prefixed to avoid clashing with the host theme).
   Kept at single-class specificity so the .events-* rules below can
   override width/margin (e.g. .events-stacked width, section spacing). */
.kev-container {
  width: 95%;
  max-width: 1600px;
  margin: 0 auto;
}

.kev-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Hero */
.events-hero {
  display: flex;
  justify-content: center;
}

.events-hero__image {
  width: 58%;
  max-width: 993px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.events-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Intro */
.events-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 55px 0 0;
}

.events-intro__headline {
  font-size: 36px;
  line-height: 47px;
  color: #000;
  margin: auto;
  margin-bottom: 35px;
  width: 100%;
}

/* Text measure now uses the shared .kev-measure / .kev-measure__inner
   (defined in base.css) so titles and text line up the same as the
   restaurant page. */

.events-intro__text {
  font-weight: 500;
 
  color: #000;
  text-align: justify;
  margin: 0;
}

/* Intro vertical rhythm (headline → text → CTA) */
.events-intro .kev-measure + .kev-measure {
  margin-top: 25px;
}

.events-cta-wrap {
  position: relative;
  display: inline-block;
  margin-top: 60px;
}

/* Same styling as .rest-circle-btn (restaurant page). */
.events-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 18px 44px;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1199px) {
  .events-cta { font-size: 16px; }
}

.events-cta-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.events-cta-circle__guide {
  /* JS overrides with the exact path length; gap > dash so the pattern never
     repeats onto the path. Prevents the tail tip flashing before JS runs. */
  stroke-dasharray: 900 1800;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.5, 0, 0.3, 1);
}

/* 3-column image row */
.events-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 80px auto 0;
}

.events-row__img {
  aspect-ratio: 519 / 692;
  overflow: hidden;
}

.events-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text blocks */
.events-text {
  margin: 80px auto 0;
}

.events-text p {
	  color: #000;
  text-align: justify;
  margin: 0 auto 20px;
  

}

.events-text p:last-child {
  margin-bottom: 0;
}

/* Stacked / offset images */
.events-stacked {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 80px auto 0;
  width: 80%;
}

.events-stacked__left,
.events-stacked__right {
  aspect-ratio: 520 / 692;
  overflow: hidden;
}

.events-stacked__right {
  margin-top: 200px;
}

.events-stacked img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Single image */
.events-single {
  max-width: 520px;
  margin: 120px auto 0;
}

.events-single img {
  width: 100%;
  aspect-ratio: 520 / 650;
  object-fit: cover;
  display: block;
}

/* Full-width image */
.events-fullwidth {
  margin: 120px 0 0;
}

.events-fullwidth img {
  width: 100%;
  aspect-ratio: 1700 / 1062;
  object-fit: cover;
  display: block;
}

/* Contact section */
.events-contact {
  padding: 80px 0 120px;
  text-align: center;
}

.events-contact__title {
  font-size: 64px;
  line-height: 70px;
  color: #000;
  margin: 0 auto 40px;
}

/* Contact text — two columns: subtitle (left) | body (right) */
.events-contact__text {
  display: flex;
  gap: 25px;
  text-align: left;
}

.events-contact__subtitle {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: #000;
}



.events-contact__body {
  flex: 1;
}
.events-contact__body p {
  font-size: 15px!important;
  line-height: 25px;
  text-align: center!important;
}

.events-contact__text p {
  font-size: 15px;
  line-height: 25px;
  color: #000;
  text-align: justify;
  margin: 0 0 15px;
}

.events-contact__text p:last-child {
  margin-bottom: 0;
}

.events-contact__form{
  margin-top:40px
}

/* =========================================
   SCROLL REVEAL
   Active only when JS adds .kev-anim to <html>
   (so no-JS / blocked-inline-script users see content).
========================================= */
/* Text reveal now uses the shared .kev-fade-up (base.css). */

/* Images use the shared .kev-fade (base.css), incl. the kevFadeIn keyframe and
   the prefers-reduced-motion handling. Events keeps just one extra: a subtle
   stagger across the 3-image row. */
.kev-anim .events-row .events-row__img:nth-child(2).is-visible { animation-delay: 0.15s; }
.kev-anim .events-row .events-row__img:nth-child(3).is-visible { animation-delay: 0.3s; }

/* — Responsive — */
@media (max-width: 991px) {
  .events-hero {
    padding-top: 150px;
  }

  .events-hero__image {
    width: 100%;
  }

  .events-stacked__right {
    margin-top: 100px;
  }
}

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

  .events-hero {
    padding-top: 100px;
  }

  .events-intro {
    padding: 30px 15px 0;
  }

  .events-intro .kev-measure + .kev-measure {
    margin-top: 20px;
  }

  .events-cta-wrap {
    margin-top: 30px;
  }

  .events-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 60px auto 0;
    padding-top: 100px;
  }

  .events-row__img.left {
    margin-top: -100px;
  }

  .events-text {
    margin: 60px auto 0;
  }

  .events-stacked {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 60px auto 0;
    width: 100vw;
  }

  .events-stacked__right {
    margin-top: 85px;
  }

  .events-single,
  .events-fullwidth {
    margin: 60px auto 0;
  }

  .events-contact {
    padding: 50px 0 80px;
  }

  .events-intro__headline {
    font-size: 20px;
    line-height: 27px;
  }

  .events-contact__title {
    font-size: 28px;
    line-height: 36px;
  }

  

  /* Mobile: body copy centered instead of justified */
  .events-intro__text,
  .events-text p,
  .events-contact__text p {
    text-align: center;
  }

  .events-contact__text {
    flex-direction: column;
    gap: 8px;
  }

  .events-contact__subtitle,
  .events-contact__body  p {
   
  }

  .events-cta {
    padding: 12px 28px;
  }
}

/* Titles at ≤1199px — placed LAST so it wins over the base and ≤768 title
   rules, making 45px/50px apply across the whole range. */
@media screen and (max-width: 1199px) {
  .events-intro__headline,
  .events-contact__title {
    font-size: 45px !important;
    line-height: 55px !important;
    text-decoration: none;
  }
}

/* Phones: smaller titles (after the ≤1199 block so this wins ≤768). */
@media screen and (max-width: 768px) {
  .events-intro__headline,
  .events-contact__title {
    font-size: 24px !important;
    line-height: 33px !important;
  }
}
