/* ——— Maldos namai visoms tautoms — warm light minimalism ——— */

:root {
  --bg: #faf7f2;
  --bg-tint: #f4ede2;
  --card: #ffffff;
  --ink: #2a211b;
  --ink-soft: #5c4f44;
  --muted: #8a7a6c;
  --accent: #b4632f;
  --accent-dark: #94502a;
  --accent-soft: #f0dcc8;
  --line: #e7dccd;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(140, 90, 45, 0.10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1.4rem; }

a { color: var(--accent); text-decoration: none; }

/* ——— Header ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.logo-mark { color: var(--accent); font-size: 1.1rem; }
.logo-text {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.15; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.logo-text em { font-style: italic; color: var(--accent); }
.site-nav { display: flex; gap: 18px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-size: 0.92rem; }
.site-nav a:hover { color: var(--accent); }
.lang-switch { display: flex; gap: 4px; margin-left: 8px; flex: none; }
.lang-switch button {
  font: 600 0.78rem var(--sans); letter-spacing: 0.04em;
  padding: 6px 10px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--muted); cursor: pointer;
}
.lang-switch button:hover { color: var(--accent); }
.lang-switch button.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ——— Hero ——— */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 12% 8%, rgba(228, 168, 106, 0.28), transparent 65%),
    radial-gradient(700px 520px at 88% 30%, rgba(196, 122, 60, 0.16), transparent 65%),
    radial-gradient(560px 480px at 50% 110%, rgba(240, 220, 200, 0.55), transparent 70%);
}
.hero-inner {
  position: relative; text-align: center;
  padding: clamp(70px, 12vh, 130px) 24px clamp(70px, 11vh, 120px);
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.12;
  max-width: 18ch; margin: 0 auto 26px;
}
.hero-verse {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft);
  max-width: 52ch; margin: 0 auto 14px;
}
.verse-ref { font-style: normal; font-family: var(--sans); font-size: 0.8em; color: var(--muted); white-space: nowrap; margin-left: 8px; }
.hero-sub { max-width: 56ch; margin: 0 auto 38px; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(180, 99, 47, 0.32); }
.btn-primary:hover { background: #a05427; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ——— Sections ——— */
.section { padding: clamp(60px, 9vh, 100px) 0; }
.section-tint { background: var(--bg-tint); }
.section-note { margin-top: 26px; font-size: 0.9rem; color: var(--muted); text-align: center; }

.about-text p { margin-bottom: 1.1em; color: var(--ink-soft); font-size: 1.06rem; }
.about-text p:first-child { color: var(--ink); font-size: 1.15rem; }

.about-quote {
  margin-top: 36px; padding: 22px 28px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 14px 14px 0;
}
.about-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.15rem; color: var(--ink); line-height: 1.5;
}
.about-quote cite {
  display: block; margin-top: 8px;
  font-style: normal; font-size: 0.85rem; color: var(--muted);
}

/* ——— Schedule cards ——— */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(231, 220, 205, 0.6);
}
.card .card-icon { font-size: 1.6rem; margin-bottom: 14px; }
.card .card-time {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ——— Expect list ——— */
.expect-list { list-style: none; counter-reset: expect; }
.expect-list li {
  counter-increment: expect;
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.expect-list li:last-child { border-bottom: none; }
.expect-list li::before {
  content: counter(expect, decimal-leading-zero);
  font-family: var(--serif); font-size: 2rem; color: var(--accent);
  opacity: 0.55; line-height: 1;
}
.expect-list h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; margin-bottom: 6px; }
.expect-list p { color: var(--ink-soft); font-size: 0.98rem; }

/* ——— Gallery ——— */
.gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 14px; box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* ——— Lightbox ——— */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(30, 22, 16, 0.92);
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: calc(100vw - 140px); text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 84vh;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: block; margin: 0 auto;
}
.lb-figure figcaption {
  margin-top: 12px; color: #cbbba9; font-size: 0.85rem; letter-spacing: 0.06em;
}
.lb-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #f5ede2;
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close {
  position: absolute; top: 18px; right: 18px;
  font-size: 1.1rem;
}
@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lb-figure { max-width: 100vw; }
  .lb-prev, .lb-next {
    position: absolute; bottom: 18px; top: auto;
  }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .lb-figure img { max-height: 76vh; }
}

/* ——— Contacts ——— */
.contacts-layout {
  display: grid; gap: 36px;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr);
  align-items: start;
}
.contacts-lead { color: var(--ink-soft); margin-bottom: 22px; max-width: 40ch; }
.contacts-info dl { margin-bottom: 28px; }
.contacts-info dt {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 16px;
}
.contacts-info dd { font-size: 1.08rem; margin-top: 2px; }
.contacts-map iframe {
  width: 100%; height: 340px; border: none;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ——— Footer ——— */
.site-footer {
  background: #2a211b; color: #cbbba9; text-align: center;
  padding: 48px 0; margin-top: 20px;
}
.footer-verse { font-family: var(--serif); font-style: italic; margin-bottom: 10px; }
.footer-name { font-size: 0.85rem; opacity: 0.65; }

/* ——— Reveal on scroll ——— */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ——— Responsive ——— */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .contacts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logo-text { font-size: 0.9rem; }
  .expect-list li { grid-template-columns: 44px 1fr; gap: 14px; }
  .expect-list li::before { font-size: 1.5rem; }
}
