/* Mezedofolia – static landing page (no framework) */

:root {
  --bg: #fbf7f2;
  --paper: #ffffff;
  --ink: #1e1a14;
  --muted: #5a5247;
  --olive: #556b2f;
  --olive-2: #3f5223;
  --sand: #efe6df;
  --gold: #b2874b;
  --shadow: 0 18px 60px rgba(17, 14, 10, 0.16);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--ink);
  background: radial-gradient(1200px 700px at 15% 0%, #ffffff 0%, var(--bg) 42%, #f6efe7 100%);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: .6rem .8rem;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 242, 0.72);
  border-bottom: 1px solid rgba(30, 26, 20, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .45rem 0;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { display: block; width: 150px; height: auto; }

.nav { display: flex; align-items: center; }
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: rgba(30,26,20,.9);
  border-radius: 2px;
  margin-inline: 10px;
  transition: transform .4s var(--ease), opacity .2s ease;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 64px;
  min-width: 220px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: top right;
  transform: scale(.98) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .24s var(--ease);
}
.nav__list a {
  display: block;
  padding: .9rem 1rem;
  text-decoration: none;
  color: rgba(30,26,20,.92);
}
.nav__list a:hover { background: rgba(85,107,47,.08); }
.nav.is-open .nav__list { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  border-radius: 999px;
  padding: .25rem .35rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.07);
}
.lang__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  border-radius: 999px;
  background: rgba(85,107,47,.12);
  color: var(--olive-2);
  font-weight: 700;
  letter-spacing: .04em;
}
.lang__hint { color: rgba(30,26,20,.6); font-size: .9rem; }

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__list {
    position: static;
    display: flex;
    gap: 1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    min-width: 0;
  }
  .nav__list a {
    padding: .55rem .75rem;
    border-radius: 999px;
  }
  .nav__list a:hover { background: rgba(85,107,47,.10); }
}

/* Hero */
.hero { position: relative; min-height: 76vh; display: grid; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 20% 20%, rgba(17,14,10,.10), rgba(17,14,10,.62)),
    linear-gradient(180deg, rgba(17,14,10,.35), rgba(17,14,10,.65));
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4rem;
  color: #fff;
}
.hero__eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: rgba(255,255,255,.86);
  margin: 0 0 .75rem;
}
.hero__title {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  line-height: 1.02;
  margin: 0 0 .8rem;
}
.hero__subtitle {
  max-width: 54ch;
  color: rgba(255,255,255,.86);
  font-size: 1.06rem;
  line-height: 1.55;
  margin: 0 0 1.4rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(180deg, rgba(85,107,47,1), rgba(63,82,35,1));
  color: #fff;
  box-shadow: 0 18px 50px rgba(63,82,35,.40);
}
.btn--primary:hover { filter: brightness(1.02); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,255,255,.26);
}
.btn--ghost:hover { background: rgba(255,255,255,.14); }

/* For light sections */
.btn--secondary {
  background: rgba(85,107,47,.10);
  color: var(--olive-2);
  border-color: rgba(85,107,47,.28);
}
.btn--secondary:hover {
  background: rgba(85,107,47,.14);
  transform: translateY(-1px);
}

.badge {
  display: inline-flex;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  font-size: .86rem;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: .55rem; }

/* Sections */
.section { padding: 4.2rem 0; }
.section--tint {
  background: linear-gradient(180deg, rgba(239,230,223,.65), rgba(251,247,242,0));
}
.section__head { margin-bottom: 1.4rem; }
.h2 {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 .55rem;
}
.h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.lead { color: var(--muted); line-height: 1.65; margin: 0; }
.muted { color: rgba(30,26,20,.62); line-height: 1.6; }

.grid2 { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.05fr .95fr; gap: 2.1rem; } }

.card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.media { overflow: hidden; }
.card.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ticks { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .6rem; }
.ticks li {
  padding-left: 1.6rem;
  position: relative;
  color: rgba(30,26,20,.82);
  line-height: 1.55;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(85,107,47,.18);
  border: 1px solid rgba(85,107,47,.35);
}

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cards .card { padding: 1.05rem 1.05rem 1.2rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.08);
}
.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery__btn:focus-visible {
  outline: 3px solid rgba(85,107,47,.65);
  outline-offset: 3px;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.78);
}
.lightbox__content {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 2.5rem 1rem 2rem;
}
.lightbox__figure {
  margin: 0;
  display: grid;
  gap: .75rem;
  justify-items: center;
}
.lightbox__img {
  width: auto;
  height: auto;
  max-width: min(92vw, 1080px);
  max-height: min(78vh, 760px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  background: #111;
}
.lightbox__caption {
  color: rgba(255,255,255,.85);
  font-weight: 600;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible { outline: 3px solid rgba(255,255,255,.65); outline-offset: 2px; }
body.is-locked { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox__content { padding: 1.5rem .75rem 1.25rem; }
  .lightbox__nav--prev { left: .5rem; bottom: 1.25rem; top: auto; }
  .lightbox__nav--next { right: .5rem; bottom: 1.25rem; top: auto; }
  .lightbox__close { top: .5rem; right: .5rem; }
  .lightbox__img { max-width: 94vw; max-height: 72vh; }
}

.video { margin-top: 1.5rem; }
.video__caption {
  max-width: 760px;
  margin: 0 auto .65rem;
  color: rgba(30,26,20,.70);
  font-weight: 650;
}
.video__frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
  background: #000;
  max-width: 760px;
  margin-inline: auto;
}
.video video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.info {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(0,0,0,.08);
}
.info__row { display: grid; grid-template-columns: 120px 1fr; gap: .75rem; padding: .45rem 0; align-items: start; }

.hours { display: grid; gap: .35rem; }
.hours__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.hours__day { color: rgba(30,26,20,.82); }
.hours__time { color: rgba(30,26,20,.92); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .info__row { grid-template-columns: 1fr; }
  .hours__row { grid-template-columns: 1fr; gap: .1rem; }
}
.info__label { color: rgba(30,26,20,.65); font-weight: 650; }
.info__value { color: rgba(30,26,20,.9); }

.actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.contact {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }

.contact__card { padding: 1.1rem; }
.contact__list { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }

.contact__form {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: .35rem; margin-bottom: .85rem; }
label { font-weight: 650; color: rgba(30,26,20,.85); }
input, textarea {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  font: inherit;
  outline: none;
}
input:focus, textarea:focus {
  border-color: rgba(85,107,47,.55);
  box-shadow: 0 0 0 4px rgba(85,107,47,.16);
}

.footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__links { display: flex; gap: 1rem; color: rgba(30,26,20,.7); }
.footer__links a { text-decoration: none; padding: .35rem .55rem; border-radius: 999px; }
.footer__links a:hover { background: rgba(85,107,47,.10); }
.footer__mark { opacity: .9; }

/* Scroll reveal
   Default: visible (works without JS). When JS loads, it adds `.js` on <html> and enables reveal animations.
*/
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .btn--primary:hover { transform: none; }
}
