/* John G. Lake Magyarország — v0.2
   Concept: "living water + the light of the cross".
   Sea-mist paper, deep teal ink, turquoise accent, one warm gold reserved for the light of the cross. */

:root {
  --paper: #f3f7f6;
  --paper-2: #e4efed;
  --card: #fbfdfc;
  --ink: #102d2e;
  --ink-soft: #4b6564;
  --teal: #13615f;
  --teal-deep: #0b3b3c;
  --teal-night: #072a2b;
  --turq: #1fa59c;
  --aqua: #8fd6cc;
  --aqua-soft: #d3eeea;
  --gold: #f3c875;
  --line: #cfe0dd;
  --radius: 20px;
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --wrap: min(1160px, 100% - 40px);
  --shadow: 0 24px 50px -30px rgba(7, 42, 43, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.small { font-size: 14px; color: var(--ink-soft); }

/* placeholders still to fill — visible on purpose while in draft */
.ph { background: repeating-linear-gradient(-45deg, #fff6e0, #fff6e0 6px, #fcebc4 6px, #fcebc4 12px); border: 1px dashed #d9a441; border-radius: 6px; padding: 0 .35em; color: #7a4d14; font-style: normal; }
.draft-banner { background: var(--teal-night); color: var(--aqua); font-size: 13px; text-align: center; padding: 6px 12px; letter-spacing: .02em; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-family: var(--body); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--turq); margin-top: 5px; }
nav.main { display: flex; gap: 28px; }
nav.main a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; position: relative; padding: 4px 0; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }
nav.main a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--turq); border-radius: 2px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 20px; border-top: 1px solid var(--line); }
  nav.main a[aria-current="page"]::after { display: none; }
}

/* ---------- buttons: one size everywhere ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; font: 600 15px/1 var(--body); cursor: pointer; background: var(--teal-deep); color: #fff; transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: var(--teal); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: var(--aqua); color: var(--teal-night); }
.btn.light:hover { background: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn[hidden] { display: none; }

/* ---------- hero: the cross of light ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 600px at 78% 30%, rgba(31,165,156,.35), transparent 60%),
  linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 45%, var(--teal-night) 100%); padding: 96px 0 150px; }
.hero .light-cross { position: absolute; right: 9%; top: -40px; height: calc(100% + 40px); width: auto; pointer-events: none; opacity: 0; animation: dawn 2.6s ease-out .2s forwards; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 20px; }
.eyebrow svg { width: 11px; height: 14px; color: var(--turq); flex: none; }
.hero .eyebrow { color: var(--aqua); }
.hero .eyebrow svg { color: var(--gold); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: var(--aqua); }
.hero .lead { font-size: 19px; color: #cfe6e2; max-width: 33em; margin: 26px 0 34px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.resume { display: none; margin-top: 26px; align-items: center; gap: 14px; text-decoration: none; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 12px 18px 12px 12px; max-width: 460px; backdrop-filter: blur(6px); transition: background .2s; }
.resume.show { display: inline-flex; }
.resume:hover { background: rgba(255,255,255,.14); }
.resume .play { width: 40px; height: 40px; border-radius: 50%; background: var(--aqua); display: grid; place-items: center; flex: none; }
.resume .play svg { width: 16px; height: 16px; color: var(--teal-night); margin-left: 2px; }
.resume small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }
.resume strong { font-weight: 600; font-size: 15px; }
.hero-verse { position: relative; margin-top: 150px; padding: 30px 30px 26px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hero-verse blockquote { font-family: var(--display); font-size: 22px; line-height: 1.45; font-style: italic; color: #f2fbf9; }
.hero-verse cite { display: block; margin-top: 16px; font-style: normal; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.reveal { animation: up .9s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .7s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dawn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero { padding: 64px 0 120px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .light-cross { right: -60px; animation: none; opacity: .5; }
  .hero-verse { margin-top: 0; }
}

/* ---------- sections ---------- */
section.block { padding: 96px 0; position: relative; }
section.block.tint { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head p { max-width: 30em; color: var(--ink-soft); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.02em; }
h2 em { font-style: italic; color: var(--teal); }
h3 { font-family: var(--display); font-weight: 500; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }

/* ---------- the journey (home): five steps in a row ---------- */
.journey { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.journey::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--turq) 30%, var(--teal)); opacity: .6; }
.journey li { position: relative; padding-top: 8px; }
.journey a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 70px 20px 20px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.journey a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--aqua); }
.journey .num { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 2px solid var(--teal); color: var(--teal); font-family: var(--display); font-size: 22px; z-index: 1; }
.journey ol, .journey { padding-top: 24px; }
.journey li:first-child .num { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); box-shadow: 0 0 0 6px rgba(243,200,117,.4); }
.journey .tag { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #8a5a0e; background: #fbecc9; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.journey h3 { font-size: 19px; text-align: center; }
.journey p { font-size: 14.5px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.journey .foot { margin-top: auto; padding-top: 18px; }
.progress { display: block; height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--turq), var(--teal)); border-radius: 9px; transition: width .6s; }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; }
@media (max-width: 1000px) {
  .journey { grid-template-columns: 1fr; gap: 12px; padding-top: 0; }
  .journey::before { top: 20px; bottom: 20px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--gold), var(--turq) 30%, var(--teal)); }
  .journey li { padding-top: 0; }
  .journey a { padding: 18px 18px 18px 80px; }
  .journey .num { top: 18px; left: 8px; transform: none; }
  .journey .tag { position: static; transform: none; align-self: flex-start; margin-bottom: 6px; }
  .journey h3, .journey p { text-align: left; }
  .journey p { margin-top: 4px; }
}

/* ---------- teachings page path (vertical, detailed) ---------- */
.path { list-style: none; position: relative; display: grid; gap: 14px; }
.path::before { content: ""; position: absolute; left: 53px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(var(--gold), var(--turq) 25%, var(--teal)); opacity: .55; }
.path li { position: relative; display: grid; grid-template-columns: 64px 1fr 200px; gap: 24px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px 20px 22px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.path li:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--aqua); }
.path .num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--teal); font-family: var(--display); font-size: 26px; color: var(--teal); position: relative; z-index: 1; }
.path li:first-child .num { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); box-shadow: 0 0 0 6px rgba(243,200,117,.4); }
.path h3 { margin-bottom: 4px; }
.path p { color: var(--ink-soft); font-size: 15.5px; max-width: 46em; }
.path .meta { font-size: 13px; color: var(--ink-soft); }
.path a.row { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
@media (max-width: 760px) { .path li { grid-template-columns: 50px 1fr; padding: 16px; gap: 14px; } .path .num { width: 50px; height: 50px; font-size: 21px; } .path::before { left: 40px; } .path .meta { grid-column: 2; } }

/* ---------- grids, cards & tiles (equal height, link always at the bottom) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card, .tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.card > .btn { margin-top: auto; align-self: flex-start; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 22px; }
.tile { text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--aqua); }
.tile .icon { width: 52px; height: 52px; border-radius: 16px; background: var(--aqua-soft); display: grid; place-items: center; margin-bottom: 20px; }
.tile .icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 24px; }
.tile .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--teal); }
.tile .go svg { width: 18px; height: 18px; transition: transform .25s; }
.tile:hover .go svg { transform: translateX(4px); }

/* testimonies */
.testimony { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 32px 28px; }
.testimony::before { content: "\201E"; position: absolute; top: -40px; left: 26px; font-family: var(--display); font-size: 100px; line-height: 1; color: var(--turq); }
.testimony p { font-family: var(--display); font-size: 19px; line-height: 1.5; font-style: italic; }
.testimony footer { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* team */
.person .photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--paper-2), var(--aqua-soft)); display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line); }
.person .photo svg { width: 54px; height: 54px; stroke: var(--teal); opacity: .45; }
.person .role { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 4px 0 8px; }

/* verse card (about page) */
.verse-card { position: relative; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: 40px 36px 32px; box-shadow: var(--shadow); overflow: hidden; }
.verse-card blockquote { font-family: var(--display); font-size: 24px; line-height: 1.4; font-style: italic; position: relative; }
.verse-card cite { display: block; margin-top: 18px; font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); position: relative; }

/* archive & filters */
.archive { border-top: 1px solid var(--line); }
.archive-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.archive-item time { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.archive-item .tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--aqua-soft); color: var(--teal); }
@media (max-width: 640px) { .archive-item { grid-template-columns: 1fr; gap: 4px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); padding: 7px 15px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.search { width: 100%; max-width: 420px; font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); margin-bottom: 18px; }

/* inner page hero */
.page-hero { padding: 80px 0 40px; }
.page-hero p { color: var(--ink-soft); max-width: 38em; margin-top: 18px; font-size: 18px; }
.page-hero .eyebrow a { color: inherit; }

/* callout with a cross watermark */
.callout { background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 60%, var(--teal-night)); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.callout::after { content: ""; position: absolute; right: 70px; top: -40px; bottom: -40px; width: 200px; opacity: .12; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 170'%3E%3Crect x='45' y='0' width='10' height='170' fill='white'/%3E%3Crect x='5' y='45' width='90' height='10' fill='white'/%3E%3C/svg%3E") center / contain no-repeat; }
.callout h2 em { color: var(--aqua); }
.callout p { color: #cfe6e2; margin-top: 14px; }
.callout .small { color: #a9cdc8; }
.callout > div { position: relative; z-index: 1; }
.callout .btn { background: var(--aqua); color: var(--teal-night); }
.callout .btn:hover { background: #fff; }
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; padding: 36px 26px; } }

/* forms */
form.simple { display: grid; gap: 14px; }
form.simple label { font-size: 14px; font-weight: 600; }
form.simple input, form.simple textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); width: 100%; }
form.simple input:focus, form.simple textarea:focus { outline: 2px solid var(--aqua); border-color: var(--turq); }
form.simple textarea { min-height: 130px; resize: vertical; }

/* footer */
footer.site { background: var(--teal-night); color: #a9c4c0; padding: 0 0 40px; margin-top: 40px; font-size: 15px; }
footer.site .ornament { display: flex; align-items: center; gap: 18px; width: var(--wrap); margin: 0 auto 50px; padding-top: 56px; color: var(--gold); }
footer.site .ornament::before, footer.site .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(143,214,204,.4), transparent); }
footer.site .ornament svg { width: 14px; height: 20px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer.site h4 { color: #fff; font-family: var(--display); font-weight: 500; font-size: 18px; margin-bottom: 12px; }
footer.site a { color: #dcefec; text-decoration: none; display: block; margin: 6px 0; }
footer.site a:hover { color: var(--aqua); }
footer.site .brand { color: #fff; margin-bottom: 14px; }
footer.site .brand-text small { color: var(--aqua); }
footer.site .legal { grid-column: 1 / -1; border-top: 1px solid #1d4544; padding-top: 22px; font-size: 13px; color: #7c9a96; }
@media (max-width: 800px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* ---------- course pages ---------- */
.course-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .course-layout { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--teal-night); box-shadow: var(--shadow); }
.video #player, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.now { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.now h3 { margin-top: 2px; }
.pn { display: flex; gap: 10px; }
.finish { margin-top: 24px; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.finish[hidden] { display: none; }
.finish h3 { color: #fff; }
.finish .small { color: #cfe6e2; }
.finish .btn { background: var(--aqua); color: var(--teal-night); }
.finish .btn:hover { background: #fff; }
.eplist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; max-height: 640px; overflow: auto; position: sticky; top: 90px; }
.eplist ol { list-style: none; }
.eplist button { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; text-align: left; font: inherit; font-size: 14.5px; background: none; border: 0; border-radius: 12px; padding: 10px; cursor: pointer; color: var(--ink); }
.eplist button:hover { background: var(--paper-2); }
.eplist button.cur { background: var(--teal-deep); color: #fff; }
.eplist .lb { font-family: var(--display); font-size: 17px; color: var(--turq); text-align: center; }
.eplist button.cur .lb { color: var(--aqua); }
.eplist .nm { line-height: 1.3; }
.eplist .mn { font-size: 12px; color: var(--ink-soft); }
.eplist button.cur .mn { color: #a9cdc8; }
.eplist button.seen:not(.cur) .lb::after { content: " ✓"; font-family: var(--body); font-size: 12px; color: var(--turq); }
.vtoggle { display: flex; gap: 6px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.vtoggle button { width: auto; display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.vtoggle button.on { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
@media (max-width: 900px) { .eplist { position: static; max-height: 420px; } }

@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .hero .light-cross { opacity: 1; } }
