/* ============================================================
   Váz – stílus/színek később. Itt most csak a szerkezet van.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #111;
  color: #fff;
}

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: #fff;
  color: #111;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Fejléc ---------- */

/* Horgonyra ugráskor a rögzített fejléc alatt maradna a szekció teteje,
   ezért minden horgonycél kap felső görgetési margót. */
:target { scroll-margin-top: clamp(72px, 7vw, 104px); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 400ms ease, backdrop-filter 400ms ease;
}
/* Görgetés közben halvány alátét, hogy fotó fölött is olvasható maradjon */
.site-header.is-stuck {
  background: #E1DAD0f2;
  backdrop-filter: saturate(1.1) blur(6px);
  color: var(--ink, #3F352E);
}
.site-header.is-stuck .nav__link,
.site-header.is-stuck .logo { color: var(--ink, #3F352E); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1720px;
  margin: 0 auto;
  padding: 22px clamp(20px, 4vw, 54px);
  transition: padding 400ms ease;
}
.site-header.is-stuck .site-header__inner { padding-top: 14px; padding-bottom: 14px; }

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: opacity 200ms ease;
}
.logo:hover { opacity: 0.72; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { position: relative; }

.nav__row { display: inline-flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
/* finom, alulról kinövő aláhúzás hoverre és aktív állapotra */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease, ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav__chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 200ms ease;
}
.nav__item--has-sub.is-open .nav__chevron { transform: translateY(1px) rotate(-135deg); }

/* Almenü – asztali nézet */
.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: #1a1a1a;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__item--has-sub.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sublink {
  display: block;
  padding: 9px 22px;
  font-size: 14px;
  white-space: nowrap;
  transition: opacity 200ms ease, padding-left 260ms var(--ease, ease);
}
.nav__sublink:hover { padding-left: 27px; }
.nav__sublink.is-active { text-decoration: underline; text-underline-offset: 4px; }

.burger { display: none; }

/* ---------- Tartalom ---------- */

.page {
  min-height: 100vh;
  padding-top: 96px; /* fejléc helye */
}

/* ---------- Mobil ---------- */

.site-footer__social {
  display: flex;
  gap: 12px;
  margin: clamp(18px, 1.8vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}
.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #E1DAD03d;
  border-radius: 999px;
  color: #E1DAD0cc;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.site-footer__social svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.site-footer__social a:hover {
  color: #2A241F;
  background: var(--beige, #E1DAD0);
  border-color: var(--beige, #E1DAD0);
}
.site-footer__social a:focus-visible {
  outline: 2px solid var(--beige, #E1DAD0);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social a { transition: none; }
}

@media (max-width: 900px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    z-index: 60;
  }
  .burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    margin: 0 auto;
    background: currentColor;
  }

  .nav {
    position: fixed;
    inset: 0;
    display: flex;
    padding: 96px 32px 32px;
    background: #111;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 250ms ease, visibility 250ms;
  }
  .is-nav-open .nav { opacity: 1; visibility: visible; }

  /* Nyitott menünél a fejléc elmosása kikapcsol: a backdrop-filter
     ugyanis befogadó dobozzá teszi a fejlécet a position:fixed
     gyerekeknek, amitől a teljes képernyős panel a fejléc méretére
     zsugorodna. A görgetett fejléc sötét szövegszínét is felül kell
     írni, különben sötét panelen sötét betűk lennének. */
  .is-nav-open .site-header,
  .is-nav-open .site-header.is-stuck {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Átmenet nélkül: amíg az elmosás fokozatosan tűnne el, addig még
       mindig a fejléc szabná meg a panel méretét, ezért ugrana egyet. */
    transition: none;
  }
  .is-nav-open .site-header .logo,
  .is-nav-open .site-header.is-stuck .logo,
  .is-nav-open .burger,
  .is-nav-open .nav__link,
  .is-nav-open .site-header.is-stuck .nav__link,
  .is-nav-open .nav__sublink,
  .is-nav-open .nav__toggle { color: #fff; }
  /* a panel a fejléc gyereke, ezért a logót külön a panel fölé kell emelni */
  .is-nav-open .logo { position: relative; z-index: 60; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .nav__item { width: 100%; }
  .nav__row { display: flex; justify-content: space-between; width: 100%; }
  .nav__link { padding: 12px 0; font-size: 20px; }
  .nav__toggle { width: 44px; height: 44px; }

  .nav__sub {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 16px;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__item--has-sub.is-open .nav__sub { display: block; }

  .nav__sublink { padding: 10px 0; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Beúszó megjelenés ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease, cubic-bezier(.22,.61,.36,1)),
              transform 700ms var(--ease, cubic-bezier(.22,.61,.36,1));
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Lábléc ---------- */

.site-footer {
  background: var(--ink, #3F352E);
  color: #E1DAD0;
  padding: clamp(48px, 5.6vw, 96px) clamp(20px, 6vw, 84px) clamp(20px, 2vw, 34px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 3vw, 56px);
  padding-bottom: clamp(32px, 3.4vw, 60px);
}

.site-footer__name {
  margin: 0 0 0.6em;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.012em;
}
.site-footer__claim {
  margin: 0;
  max-width: 22em;
  font-size: clamp(0.85rem, 0.95vw, 0.94rem);
  line-height: 1.6;
  color: #E1DAD0b3;
}

.site-footer__label {
  margin: 0 0 1.1em;
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E1DAD08c;
}
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li + li { margin-top: 0.6em; }
.site-footer__list a {
  font-size: clamp(0.85rem, 0.95vw, 0.94rem);
  color: #E1DAD0;
  text-decoration: none;
  transition: opacity 200ms ease;
}
.site-footer__list a:hover { opacity: 0.66; }
.site-footer__list a:focus-visible { outline: 2px solid #E1DAD0; outline-offset: 3px; }

.site-footer__bottom {
  padding-top: clamp(18px, 1.8vw, 30px);
  border-top: 1px solid #E1DAD029;
}
.site-footer__bottom p {
  margin: 0;
  font-size: clamp(0.72rem, 0.8vw, 0.8rem);
  color: #E1DAD08c;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
