/* =========================================================
   Mūsų giminės svetainė — stilius
   Paletė: šilti rudi tonai, kreminis fonas, samanų žalia,
   ochros akcentas.
   ========================================================= */

:root {
  --cream:      #F3ECDD;   /* fonas */
  --cream-2:    #EAE0CB;   /* šviesiai smėlinė */
  --bark:       #3C2E22;   /* tamsiai ruda (tekstas) */
  --walnut:     #6B4F35;   /* riešuto ruda */
  --clay:       #A9683C;   /* molio / ochros akcentas */
  --moss:       #5A6247;   /* samanų žalia */
  --ink:        #241B13;   /* beveik juoda */
  --line:       rgba(60, 46, 34, 0.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--bark);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ---------- Tipografija ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 0.9rem;
}
.eyebrow--light { color: #D9A56B; }

.section__title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.section__title--light { color: var(--cream); }

.section__lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--walnut);
  margin: 0 0 2.6rem;
}
.section__lead a,
.section__lead a:visited { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.section__lead a:hover { color: var(--walnut); }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--bark); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--clay); color: var(--cream); }
.btn--dark:hover { background: var(--walnut); }

/* ---------- Navigacija ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 236, 221, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav__brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--bark);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav__brand span { color: var(--clay); margin: 0 0.15em; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--walnut);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--clay); }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--bark); transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(120deg, rgba(60,46,34,0.15), rgba(90,98,71,0.2)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36,27,19,0.78) 0%, rgba(36,27,19,0.45) 55%, rgba(36,27,19,0.25) 100%);
}
.hero__content {
  position: relative;
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  color: var(--cream);
  padding: 4rem 0;
}
.hero__eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: #E4C48F; margin: 0 0 1.4rem;
}
.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero__lead {
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(243, 236, 221, 0.9);
  margin: 0 0 2.2rem;
}
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  color: var(--cream); text-decoration: none; font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Sekcijų bendra ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--story { background: var(--cream); }
.section--gallery { background: var(--cream-2); }
.section--tree { background: var(--cream); }
.section--contact { background: var(--cream-2); }

/* ---------- Istorija ---------- */
.story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story__text p { margin: 0 0 1.2rem; }
.story__text em { color: var(--clay); font-style: italic; }

.story__meta {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 2.4rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.story__num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem; font-weight: 600;
  color: var(--moss);
  line-height: 1;
}
.story__label {
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--walnut); margin-top: 0.3rem; display: block;
}
.story__figure { margin: 0; }
.story__figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.story__figure figcaption,
.tree figcaption {
  font-size: 0.85rem; color: var(--walnut);
  margin-top: 0.7rem; font-style: italic;
}
.tree img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* ---------- Vietos rezervai (placeholder) ---------- */
.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 12px, #E2D6BE 12px, #E2D6BE 24px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--walnut);
}
.ph span {
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--cream); padding: 0.4rem 0.9rem; border-radius: 2px;
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 8; }

/* ---------- Galerija ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none; padding: 0; margin: 0;
  cursor: pointer;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream);
}
.gallery__thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 10px, #E2D6BE 10px, #E2D6BE 20px);
  color: var(--walnut);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.gallery__thumb span {
  background: var(--cream); padding: 0.3rem 0.6rem; border-radius: 2px;
  font-size: 0.75rem;
}
.gallery__item:hover .gallery__thumb { transform: scale(1.06); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.7rem 0.6rem;
  background: linear-gradient(transparent, rgba(36,27,19,0.82));
  color: var(--cream);
  font-size: 0.78rem;
  opacity: 0; transition: opacity 0.25s ease;
  text-align: left;
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 15, 10, 0.92);
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: 820px; width: 100%; text-align: center; }
.lightbox__img {
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, #cbbd9e, #cbbd9e 16px, #bcac89 16px, #bcac89 32px);
  border-radius: var(--r);
  color: var(--bark); font-size: 1rem;
}
.lightbox__figure figcaption { color: var(--cream); margin-top: 1rem; font-size: 0.95rem; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(243,236,221,0.12);
  border: 1px solid rgba(243,236,221,0.3);
  color: var(--cream);
  cursor: pointer;
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.5rem; line-height: 1;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(243,236,221,0.28); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ---------- Prieigos užklausa / formos ---------- */
.request {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.8rem, 4vw, 3rem);
}
.request__intro h3 {
  font-size: 1.6rem; margin-bottom: 0.8rem; color: var(--bark);
}
.request__intro p { color: var(--walnut); margin: 0; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.form--contact { max-width: 640px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--walnut); margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  font-family: var(--sans); font-size: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--bark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(169, 104, 60, 0.15);
}
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__status {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0; font-size: 0.9rem; min-height: 1.2em;
}
.form__status.is-ok { color: var(--moss); }
.form__status.is-error { color: #A3402E; }

/* ---------- Susitikimas ---------- */
.section--event { background: var(--ink); }
.event {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.event__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 150px;
  border: 2px solid var(--clay);
  border-radius: 8px;
  color: var(--cream);
}
.event__day { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; line-height: 1; }
.event__month { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: #D9A56B; margin-top: 0.3rem; }
.event__lead { color: rgba(243,236,221,0.9); font-size: 1.12rem; max-width: 54ch; }
.event__lead strong { color: var(--cream); }
.event__facts {
  list-style: none; padding: 0; margin: 1.8rem 0;
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.9rem;
  max-width: 560px;
}
.event__facts li {
  border-left: 2px solid var(--clay);
  padding-left: 0.9rem;
  color: rgba(243,236,221,0.92);
  font-size: 0.98rem;
}
.event__facts span {
  display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #B99266; margin-bottom: 0.15rem;
}
.event__facts a,
.event__facts a:visited { color: #D9A56B; text-decoration: underline; text-underline-offset: 2px; }
.event__facts a:hover { color: var(--cream); }
.event__facts--program {
  grid-template-columns: 1fr;
  max-width: 620px;
}
.event__program-label {
  color: var(--cream);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 1.8rem 0 0.6rem;
}
.event__note { color: rgba(243,236,221,0.6); font-size: 0.92rem; margin: 0 0 0.9rem; max-width: 54ch; }
.event__note:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--bark); color: rgba(243,236,221,0.75); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: #D9A56B; }

/* ---------- Fokusas (prieinamumas) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--clay); outline-offset: 2px;
}

/* ---------- Responsyvumas ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--cream); padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__toggle { display: flex; }
  .story { grid-template-columns: 1fr; }
  .story__figure { order: -1; max-width: 420px; }
  .request { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; text-align: left; }
  .event__date { flex-direction: row; gap: 0.6rem; width: auto; height: auto; padding: 0.8rem 1.4rem; align-self: start; }
  .event__day { font-size: 2.4rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .event__facts { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
