/* Energy Charge additions: live Meetup events, contact modal, notify block. */
:root { --ec-forest: #0D1A10; --ec-orange: #FF6A07; --ec-cream: #F7F9F4; --ec-line: #06C755; --ec-wa: #1FAF5A; }

html { scroll-behavior: smooth; }
#events, #philosophy, #organizers, #guides, #faq, #corporate, #ecMembership, #hikes, #about { scroll-margin-top: 96px; }

/* ---------- events ---------- */
.ec-events-host { width: 100%; min-height: 520px; }
.ec-ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
@media (max-width: 1199.98px) { .ec-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 809.98px) { .ec-ev-grid { grid-template-columns: 1fr; gap: 16px; } .ec-events-host { min-height: 420px; } }

.ec-ev { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(13, 26, 16, .06), 0 8px 24px -12px rgba(13, 26, 16, .18); color: var(--ec-forest); font-family: inherit; }
.ec-ev-img { position: relative; display: block; aspect-ratio: 676 / 380; background: #E4E9E1; }
.ec-ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-ev-date { position: absolute; left: 12px; top: 12px; background: rgba(247, 249, 244, .94); color: var(--ec-forest); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.ec-ev-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ec-ev-title { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ec-ev-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.ec-ev-price { font-weight: 700; font-size: 16px; }
.ec-ev-price small { font-weight: 400; opacity: .6; font-size: 13px; }
.ec-muted { opacity: .6; font-size: 13px; font-weight: 400; }
.ec-ev-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.ec-btn-line, .ec-btn-wa, .ec-btn-meetup { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: filter .15s ease, transform .15s ease; }
.ec-btn-line { background: var(--ec-line); color: #fff; flex: 1 1 auto; }
.ec-btn-wa { background: #fff; color: var(--ec-forest); border: 1.5px solid rgba(13, 26, 16, .18); flex: 0 1 auto; }
.ec-btn-meetup { background: var(--ec-orange); color: #fff; }
.ec-btn-line:hover, .ec-btn-wa:hover, .ec-btn-meetup:hover { filter: brightness(.95); transform: translateY(-1px); }
.ec-btn-wa svg { color: var(--ec-wa); }
.ec-ev-link { font-size: 13px; color: var(--ec-forest); opacity: .7; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.ec-ev-link:hover { opacity: 1; }
.ec-ev-all { margin: 24px 0 0; text-align: center; font-size: 15px; }
.ec-ev-all a, .ec-ev-status a { color: var(--ec-forest); font-weight: 700; }
.ec-ev-status { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ec-forest); opacity: .75; }

.ec-ev-skel .ec-ev-body i { display: block; height: 14px; border-radius: 7px; background: #E4E9E1; }
.ec-ev-skel .ec-ev-body i:nth-child(1) { width: 80%; height: 18px; }
.ec-ev-skel .ec-ev-body i:nth-child(2) { width: 40%; }
.ec-ev-skel .ec-ev-body i:nth-child(3) { width: 100%; height: 44px; border-radius: 22px; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .ec-ev-skel .ec-ev-img, .ec-ev-skel .ec-ev-body i { animation: ecPulse 1.4s ease-in-out infinite; }
}
@keyframes ecPulse { 50% { opacity: .55; } }

/* ---------- contact modal ---------- */
#ecModalBackdrop { display: none; position: fixed; inset: 0; z-index: 999999; background: rgba(0, 0, 0, .6); align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
#ecModalBackdrop .ec-guide-modal-content { position: relative; max-width: 480px; width: 100%; background: #fff; border-radius: 20px; overflow: hidden; }
#ecModalBackdrop .ec-guide-modal-inner { padding: 28px 24px 24px; }
#ecModalBackdrop .ec-guide-title { margin: 0 32px 8px 0; font-size: 22px; color: var(--ec-forest); }
.ec-modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1F3EF; font-size: 16px; cursor: pointer; color: #333; }
.ec-modal-lead { font-size: 15px; line-height: 1.6; color: #4A524B; margin: 0 0 18px; }
.ec-channels { display: flex; flex-direction: column; gap: 10px; }
.ec-channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff; }
.ec-channel span { display: flex; flex-direction: column; text-align: left; }
.ec-channel b { font-size: 15px; }
.ec-channel small { font-size: 12px; opacity: .9; }
.ec-channel-line { background: var(--ec-line); }
.ec-channel-wa { background: var(--ec-wa); }
.ec-channel-mail { background: var(--ec-cream); color: var(--ec-forest); border: 1px solid #E2E6DF; }
.ec-channel:hover { filter: brightness(.96); }
.ec-modal-foot { margin: 18px 0 0; font-size: 14px; }
.ec-modal-foot a { color: var(--ec-forest); font-weight: 700; }

/* ---------- toast ---------- */
#ecToast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ec-forest); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000000; max-width: calc(100vw - 40px); text-align: center; }
#ecToast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- notify ---------- */
.ec-notify { background: var(--ec-cream); padding: 56px 24px; text-align: center; color: var(--ec-forest); }
.ec-notify > div { max-width: 560px; margin: 0 auto; }
.ec-notify h3 { margin: 0 0 10px; font-size: 24px; }
.ec-notify p { margin: 0 0 22px; font-size: 15px; line-height: 1.6; opacity: .75; }
.ec-notify-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ec-notify-actions a { flex: 0 1 auto; }

/* ---------- language switch (links) ---------- */
#ecLangToggleTop a.ec-lang-btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------- intro loader safety net ----------
   Framer reveals the page after hydration; on slow phones that can take seconds.
   If the intro panel is still up after 3 s, fade it out so the content is readable. */
@keyframes ecLoaderOut { to { opacity: 0; visibility: hidden; } }
[data-framer-name="Load Innitial"] { animation: ecLoaderOut .5s ease 3s forwards; }

/* The Framer theme capitalises link text site-wide; keep our copy (emails, event titles) as written. */
.ec-ev, .ec-ev *, #ecModalBackdrop, #ecModalBackdrop *, .ec-notify, .ec-notify *, #ecChatWidget a, #ecToast { text-transform: none; }

/* On the English homepage the notify block sits on top of the footer photo: no panel, light text. */
#main .ec-notify { background: transparent; color: #fff; }
#main .ec-notify h3 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
#main .ec-notify p { color: #fff; opacity: .95; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
