/*
Theme Name: Living Hymn Worship
Version: 1.0.0
Text Domain: kit
*/

:root { --bg: #0d0b14; --bg2: #14111d; --ink: #f6f3ee; --mute: #b9b3c6; --gold: #e8c27a; --line: #ffffff1f; --card: #1a1724; --head: 'Playfair Display', Georgia, serif; --body: Inter, system-ui, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; font-size: 16px; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.15; }
.wrap, .sec > .wp-block-group__inner-container { width: min(1120px, 100% - 32px); margin: 0 auto; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.chip { display: inline-block; font-size: 11px; letter-spacing: .08em; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; margin-left: 8px; }

/* header, theirs: name left, spaced caps menu right, solid on scroll */
.masthead { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(#000a, #0000); transition: background .25s, box-shadow .25s; }
.masthead.fx-scrolled, body:not(.home) .masthead { background: #0d0b14f2; box-shadow: 0 1px 0 #ffffff14; backdrop-filter: blur(8px); }
.masthead-in { width: min(1120px, 100% - 32px); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; }
.brand-name { font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 15px; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; transition: color .2s, opacity .2s; }
.nav-list a:hover { opacity: 1; color: var(--gold); }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #0d0b14f7; padding: 8px 16px 20px; display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* hero, theirs: mark, name, one line, two pills on a dark gradient */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; text-align: center; padding: 110px 16px 80px; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(60% 50% at 50% 42%, #2a2140 0%, #14111d 55%, var(--bg) 100%); }
.hero > .wp-block-group__inner-container { display: contents; }
.hero .glow { position: absolute; z-index: -1; width: 620px; height: 620px; left: 50%; top: 40%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #e8c27a33 0%, #e8c27a10 40%, transparent 70%); animation: drift 14s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: translate(-30px, -10px) scale(1); } to { transform: translate(30px, 16px) scale(1.12); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .lh-mark { color: var(--gold); display: block; margin: 0 auto 10px; }
.hero .lh-mark svg { width: 132px; height: 132px; }
.hero h1 { font-family: var(--body); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: clamp(22px, 3.4vw, 38px); }
.hero .lead { color: var(--mute); max-width: 420px; margin: 14px auto 26px; }
.hero .pills { display: grid; justify-items: center; gap: 14px; }
.pill, .hero .wp-block-button__link { display: inline-block; text-decoration: none; border-radius: 999px; padding: 11px 24px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-family: var(--body); }
.pill.solid, .hero .is-solid .wp-block-button__link { background: var(--ink); color: #111; }
.pill.solid:hover, .hero .is-solid .wp-block-button__link:hover { background: var(--gold); border-color: var(--gold); }
.pill.ghost, .hero .is-quiet .wp-block-button__link { background: none; color: var(--ink); border-color: #ffffff59; text-decoration: none; padding: 11px 24px; }
.pill.ghost:hover, .hero .is-quiet .wp-block-button__link:hover { border-color: var(--gold); color: var(--gold); }
.hero .wp-block-buttons { flex-direction: column; gap: 14px; }

/* sections */
.sec { padding: 88px 0; border-top: 1px solid var(--line); }
.sec h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 26px; }
.ministry { text-align: center; }
.ministry h2 { color: var(--gold); font-size: clamp(26px, 3vw, 34px); }
.ministry p { font-family: var(--head); font-size: 18px; max-width: 640px; margin: 0 auto 18px; }
.ministry .second { font-family: var(--body); font-size: 15px; color: var(--mute); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; max-width: 640px; margin: 28px auto 0; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { text-decoration: none; display: grid; gap: 10px; }
.video-img { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 16/9; box-shadow: 0 30px 50px -30px #000; }
.video-img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s ease; }
.video-card:hover img { scale: 1.05; }
.play { position: absolute; inset: 0; display: grid; place-content: center; }
.play svg { width: 54px; height: 54px; fill: var(--ink); background: #0008; border-radius: 50%; padding: 14px; transition: background .2s; }
.video-card:hover .play svg { background: var(--gold); fill: #111; }
.video-title { font-weight: 600; }

.photos .wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photos .wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; }
.photos .wp-block-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100% !important; border-radius: 10px; }

.events { display: grid; }
.event { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ev-date { display: grid; font-size: 13px; color: var(--mute); }
.ev-date b { color: var(--gold); letter-spacing: .14em; font-size: 13px; }
.ev-what { display: grid; gap: 2px; }
.ev-what strong { font-size: 17px; }
.ev-what span { color: var(--mute); font-size: 14px; }
.ev-what a { text-decoration: underline; text-underline-offset: 3px; }
.empty { color: var(--mute); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.tabs button { border: 1px solid var(--gold); color: var(--gold); background: none; border-radius: 999px; padding: 9px; font: 600 12px var(--body); cursor: pointer; }
.tabs button.on { background: #e8c27a1f; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.tab-pane h3 { font-size: 32px; margin-bottom: 18px; }
.soon { border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; color: var(--mute); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.item { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 50px -30px #000; }
.item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.item-body { padding: 18px; }
.item-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.item h4 { font-family: var(--body); font-size: 18px; }
.item-price { color: var(--gold); font-weight: 600; margin: 4px 0 10px; }
.item-desc { color: var(--mute); font-size: 14px; }

.invite { text-align: center; }
.invite p { color: var(--mute); max-width: 520px; margin: 0 auto 22px; }

/* inner pages */
body:not(.home) main { padding-top: 68px; }
.page-head, .form-page { width: min(640px, 100% - 32px); margin: 0 auto; padding: 56px 0 10px; }
.page-head h1, .form-page h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head .lead, .form-page .lead { font-size: 18px; color: var(--ink); margin: 10px 0; }
.prose { width: min(640px, 100% - 32px); margin: 0 auto; padding: 10px 0 80px; color: var(--mute); }

.lh-form { width: min(640px, 100% - 32px); margin: 0 auto 90px; display: grid; gap: 20px; }
.lh-form label { display: grid; gap: 8px; font-weight: 600; }
.lh-form small { font-weight: 400; color: var(--mute); }
.lh-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .lh-form textarea { width: 100%; background: var(--card); border: 1px solid #ffffff2e; border-radius: 10px; color: var(--ink); padding: 12px 14px; font: 16px var(--body); }
.lh-form input:focus, .lh-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lh-form .drop { border: 1px dashed #ffffff40; border-radius: 12px; padding: 22px; text-align: center; background: var(--card); }
.lh-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.lh-form legend { font-weight: 600; margin-bottom: 8px; }
.lh-form .radio, .lh-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.lh-form .pill { justify-self: start; }
.agreement { border: 1px solid #ffffff2e; border-radius: 12px; overflow: hidden; }
.ag-h { margin: 0; padding: 12px 16px; background: var(--card); font-weight: 600; border-bottom: 1px solid var(--line); }
.ag-text { max-height: 220px; overflow: auto; padding: 4px 16px; color: var(--mute); font-size: 14px; }
.sig { display: grid; gap: 8px; }
.sig-h { display: flex; justify-content: space-between; margin: 0; font-weight: 600; }
.sig-clear { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; }
.sig canvas { width: 100%; height: auto; aspect-ratio: 640/180; background: #f6f3ee; border-radius: 10px; touch-action: none; cursor: crosshair; box-shadow: inset 0 -30px 0 -29px #0004; }
.form-note { padding: 12px 16px; border-radius: 10px; border: 1px solid #ff8a80; color: #ffb4ab; }
.thanks { width: min(640px, 100% - 32px); margin: 0 auto 90px; display: grid; gap: 10px; justify-items: start; }
.order-wrap { width: min(900px, 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.order-wrap .lh-form { width: 100%; margin: 0 0 90px; }
.order-wrap > * { min-width: 0; }
.order-item img { width: 100%; border-radius: 14px; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.order-item h2 { font-size: 26px; }

/* footer, theirs: header repeat, mark, line */
.foot { border-top: 1px solid var(--line); padding: 34px 0 30px; text-align: center; }
.foot-top { width: min(1120px, 100% - 32px); margin: 0 auto 50px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.foot-mark .lh-mark { color: var(--gold); }
.foot-name { font-weight: 800; letter-spacing: .22em; text-transform: uppercase; margin: 6px 0 4px; }
.foot-line { color: var(--mute); margin: 0 0 30px; }
.foot-base { font-size: 13px; color: var(--mute); }

@media (max-width: 781px) {
  .sec { padding: 64px 0; }
  .videos, .photos .wp-block-gallery { grid-template-columns: 1fr !important; }
  .photos .wp-block-gallery { grid-template-columns: 1fr 1fr !important; }
  .event { grid-template-columns: 1fr; gap: 8px; }
  .event .pill { justify-self: start; }
  .order-wrap { grid-template-columns: 1fr; }
  .foot-top { justify-content: center; }
}
.js .rise { opacity: 0; translate: 0 22px; transition: opacity .7s, translate .9s cubic-bezier(.2,.7,.2,1); }
.js .rise.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .hero .glow { animation: none; } .js .rise { opacity: 1; translate: 0 0; } }
