:root {
  --stone:   #f4efe6;
  --stone-2: #ece3d4;
  --ink:     #2b2620;
  --muted:   #6f665a;
  --terra:   #b4623f;
  --olive:   #6d7150;
  --aegean:  #35617a;
  --line:    #ddd2bf;
  --maxw:    1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--stone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

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

a { color: var(--aegean); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: url("img/hero-village.jpeg") center 40% / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 58%, rgba(15,20,26,.62) 0%, rgba(15,20,26,.28) 45%, rgba(15,20,26,0) 75%),
    linear-gradient(180deg, rgba(15,20,26,.55) 0%, rgba(15,20,26,.30) 40%, rgba(15,20,26,.65) 100%);
}
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.2rem, 4vw, 3rem);
}
.nav__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem; letter-spacing: .18em; text-transform: uppercase;
}
.nav__links { list-style: none; display: flex; gap: 1.6rem; flex-wrap: wrap; }
.nav__links a {
  color: #fff; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; opacity: .9;
}
.nav__links a:hover { opacity: 1; text-decoration: none; border-bottom: 1px solid #fff; }

.hero__content {
  position: relative; z-index: 2;
  margin: auto; text-align: center; padding: 2rem;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .3em;
  font-size: clamp(.85rem, 1.6vw, 1rem); font-weight: 500;
  opacity: .95; margin-bottom: 1.1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.hero__title {
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: .9; letter-spacing: .02em;
  text-shadow: 0 4px 40px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5);
}
.hero__tagline {
  margin-top: 1.4rem; font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400; max-width: 24ch; margin-inline: auto;
  text-shadow: 0 2px 18px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.6);
}
.hero__scroll {
  position: relative; z-index: 2; color: #fff; text-align: center;
  padding-bottom: 2rem; font-size: 1.5rem; opacity: .85;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(8px);} }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(3.5rem, 9vw, 7rem) clamp(1.2rem, 4vw, 3rem); }
.section--tint { background: var(--stone-2); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .25em; font-size: .75rem;
  color: var(--terra); font-weight: 500; margin-bottom: .8rem;
}
.eyebrow--light { color: #e8c3ae; }
.center { text-align: center; }

h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.2rem; }
.section p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; max-width: 60ch; }
.center + h2 { margin-inline: auto; }
.lede { font-size: 1.2rem !important; color: var(--ink) !important; max-width: 46ch !important; margin: 0 auto 2.5rem !important; }

/* two-column */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.two-col--reverse .two-col__img { order: -1; }
.two-col__img {
  aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(43,38,32,.45);
}
.two-col__text p:last-child { margin-bottom: 0; }

/* grids */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: 0 14px 40px -22px rgba(43,38,32,.5);
}
.card img { aspect-ratio: 4 / 3; }
.card--wide img { aspect-ratio: 16 / 10; }
.card figcaption {
  padding: .9rem 1.1rem; font-size: .9rem; color: var(--muted); line-height: 1.5;
}

/* ---------- FESTIVAL (featured) ---------- */
.festival {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--stone);
}
.festival__media { min-height: 420px; }
.festival__media img { height: 100%; }
.festival__body { padding: clamp(2.5rem, 6vw, 5rem); align-self: center; }
.festival__body h2 { color: #fff; margin-bottom: 1.4rem; }
.festival__body p { color: #cfc6b8; font-size: 1.05rem; max-width: 48ch; margin-bottom: 1.2rem; }
.festival__body strong { color: #fff; font-weight: 500; }
.festival__list {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 0 0 1.6rem;
}
.festival__list li {
  font-size: .82rem; letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.25); border-radius: 100px;
  padding: .35rem .9rem; color: #e6ddcf;
}
.festival__meta {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem !important;
  color: #b4623f !important; margin-bottom: 1.6rem !important;
}
.btn {
  display: inline-block; background: var(--terra); color: #fff;
  padding: .85rem 1.6rem; border-radius: 3px; font-size: .9rem;
  letter-spacing: .05em; transition: background .2s ease;
}
.btn:hover { background: #9c5236; text-decoration: none; }

/* ---------- GALLERY ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.gallery img {
  aspect-ratio: 1 / 1; border-radius: 3px;
  transition: transform .4s ease, filter .4s ease;
  filter: saturate(.95);
}
.gallery img:hover { transform: scale(1.02); filter: saturate(1.1); }

/* ---------- SUBPAGE HERO ---------- */
.subhero {
  position: relative; color: #fff;
  background: url("img/church-panagia.jpeg") center 35% / cover no-repeat;
}
.subhero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,26,.5) 0%, rgba(15,20,26,.45) 55%, rgba(15,20,26,.7) 100%);
}
.subhero .nav { position: relative; z-index: 2; }
.subhero .nav__brand { color: #fff; }
.subhero .nav__brand:hover { text-decoration: none; }
.subhero__content {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(3rem, 9vw, 6rem) 1.5rem clamp(3.5rem, 10vw, 7rem);
  max-width: 40ch; margin: 0 auto;
}
.subhero__title {
  font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; margin: .4rem 0 1rem;
  text-shadow: 0 3px 30px rgba(0,0,0,.5);
}
.subhero__tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,.6);
}
.section__note { margin-top: 2.4rem !important; color: var(--muted); font-size: 1rem !important; }

/* ---------- INTERACTIVE CHURCH MAP ---------- */
.mapsection { padding: clamp(3rem, 8vw, 6rem) clamp(1.2rem, 4vw, 3rem); background: var(--ink); }
.mapsection__head { max-width: var(--maxw); margin: 0 auto 2.4rem; }
.mapsection__head .eyebrow { color: #e8c3ae; }
.mapsection__head h2 { color: #fff; }
.mapsection__head .lede { color: #cfc6b8 !important; }
.mapwrap {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.4rem; align-items: stretch;
}
#church-map {
  height: 62vh; min-height: 460px; border-radius: 6px; z-index: 0;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.8);
  border: 1px solid rgba(255,255,255,.12);
}
/* custom teardrop pins (glyph stays upright) */
.leaflet-div-icon { background: transparent; border: 0; }
.pin {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--terra); color: #fff; font-weight: 600; line-height: 1;
  border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.5);
}
.pin--star { background: #c98a2b; width: 40px; height: 40px; }
.pin__g { transform: rotate(45deg); font-size: .82rem; }
.pin--star .pin__g { font-size: 1.05rem; }
/* popups */
.leaflet-popup-content-wrapper { border-radius: 6px; }
.cpop { width: 230px; }
.cpop img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: .55rem; }
.cpop strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: var(--ink); margin-bottom: .3rem; line-height: 1.15; }
.cpop span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.5; }
/* legend */
.maplegend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; overflow-y: auto; max-height: 62vh; }
.maplegend li {
  display: flex; gap: .8rem; align-items: flex-start; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: .8rem .9rem; transition: background .2s ease, border-color .2s ease;
}
.maplegend li:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.maplegend__n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--terra); color: #fff; font-size: .8rem; font-weight: 600;
}
.maplegend__n.is-star { background: #c98a2b; }
.maplegend__t { font-size: .86rem; color: #cfc6b8; line-height: 1.45; }
.maplegend__t b { display: block; color: #fff; font-weight: 500; margin-bottom: .15rem; }
@media (max-width: 780px) {
  .mapwrap { grid-template-columns: 1fr; }
  .maplegend { max-height: none; }
  #church-map { height: 52vh; }
}

/* ---------- MAP ---------- */
.map {
  aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden;
  box-shadow: 0 18px 50px -25px rgba(43,38,32,.5); background: #dfd7c8;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__link { margin-top: 1rem !important; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- OLDEST OLIVE TREE ---------- */
.oldtree {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-top: 3rem;
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 18px 50px -25px rgba(43,38,32,.5);
}
.oldtree img { aspect-ratio: 4 / 3; }
.oldtree__text { padding: clamp(1.5rem, 4vw, 3rem); }
.oldtree__text h3 {
  font-family: "Cormorant Garamond", serif; font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.1; margin-bottom: 1rem;
}
.oldtree__text p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- ASK MERONAS ---------- */
.ask {
  background: var(--aegean); color: #fff;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.2rem, 4vw, 3rem);
}
.ask__inner { max-width: 640px; margin: 0 auto; }
.ask h2 { color: #fff; }
.ask .eyebrow { color: #bfe0ef; }
.ask__sub { color: #dcecf3 !important; max-width: 46ch; margin: 0 auto 2rem !important; }
.ask__form { display: flex; gap: .7rem; flex-wrap: wrap; }
.ask__input, #ask-input {
  flex: 1 1 260px; min-width: 0;
  padding: .95rem 1.1rem; border: none; border-radius: 3px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff;
}
.ask__form .btn { background: var(--terra); flex: 0 0 auto; cursor: pointer; border: none; }
.ask__form .btn:disabled { opacity: .55; cursor: default; }
.ask__answer {
  margin-top: 1.6rem; text-align: left; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 1.2rem 1.4rem;
}
.ask__answer .ask__q {
  display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: #bfe0ef; margin-bottom: .5rem;
}
.ask__answer .ask__q::before { content: "You asked: "; opacity: .7; }
.ask__answer .ask__a { display: block; color: #fff; font-size: 1.05rem; line-height: 1.65; }
.ask__status { min-height: 1.4em; margin-top: 1rem; text-align: center; font-size: .95rem; }
.ask__status--ok { color: #d6f2dd; }
.ask__status--err { color: #ffd7cc; }

@media (max-width: 640px) { .oldtree { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--olive); color: #f2eee3; text-align: center;
  padding: 3.5rem 1.5rem;
}
.footer__name {
  font-family: "Cormorant Garamond", serif; font-size: 2rem;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .4rem;
}
.footer__tag { letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; opacity: .85; }
.footer__links { margin: 1.2rem 0 .6rem; font-size: .95rem; }
.footer__links a { color: #fff; }
.footer__fine { font-size: .85rem; opacity: .7; font-style: italic; }
.footer__credit { font-size: .72rem; opacity: .6; margin-top: 1rem; max-width: 60ch; margin-inline: auto; }
.footer__credit a { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .two-col, .festival { grid-template-columns: 1fr; }
  .two-col--reverse .two-col__img { order: 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .festival__media { min-height: 300px; }
}
@media (max-width: 540px) {
  .grid--3, .grid--2, .gallery { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: 22vw; }
}

/* Language switcher */
.lang { display: flex; gap: 0.35rem; align-items: center; margin-left: auto; }
.nav__links + .lang { margin-left: 1.2rem; }
.lang__btn {
  background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff;
  font: 500 0.72rem/1 'Inter', sans-serif; letter-spacing: 0.06em;
  padding: 0.34rem 0.55rem; border-radius: 3px; cursor: pointer; opacity: 0.85;
}
.lang__btn:hover { opacity: 1; border-color: #fff; }
.lang__btn.is-on { background: rgba(255,255,255,0.92); color: #1d1d1b; border-color: transparent; opacity: 1; }

/* Festival page (draft) */
.draftbar { background: #8a2f1d; color: #fff; text-align: center; font: 500 0.82rem/1.5 'Inter', sans-serif; padding: 0.55rem 1rem; letter-spacing: 0.03em; }
.subhero--festival { background: url("img/music-workshop.jpeg") center 30% / cover no-repeat; }
.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.fact { background: #fff; border-radius: 4px; padding: 1.3rem 1.4rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.fact h3 { font: 600 0.78rem/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terra); margin-bottom: 0.55rem; }
.fact p { font-size: 0.95rem; margin: 0; }
.tcard { display: flex; flex-direction: column; }
.tcard img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.tcard__body { padding: 1.2rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tcard__inst { font: 600 0.72rem/1 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terra); }
.tcard h3 { margin: 0; font-size: 1.35rem; }
.tcard__bio, .tcard__course { font-size: 0.92rem; margin: 0; }
.tcard__course strong { font-weight: 600; }
.tcard__lv { display: inline-block; align-self: flex-start; font: 500 0.7rem/1 'Inter', sans-serif; letter-spacing: 0.05em; padding: 0.32rem 0.55rem; border-radius: 3px; background: var(--stone-2); }
.tcard__links { margin-top: auto; padding-top: 0.4rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.videogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 2.2rem; }
.videogrid .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.videogrid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.histlist { font-size: 0.92rem; line-height: 2; color: #5a544b; margin-top: 1rem; }
.staylist { list-style: none; padding: 0; margin: 1rem 0 0; font-size: 0.95rem; line-height: 1.9; }
