/**
 * @file layout.css
 * Oldalváz: fix fejléc/navigáció, mobil menü, szekció-keret, belső oldal
 * fejléc-sáv (page-header) és a lábléc.
 */

/* ---- NAVIGÁCIÓ (fix fejléc) ---- */
.szlp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(247, 243, 237, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow .3s;
  display: flex;
  align-items: center;
}
.szlp-nav.scrolled { box-shadow: 0 2px 20px rgba(30, 22, 16, .08); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.cross-svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav-title strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mahogany);
  letter-spacing: .02em;
  line-height: 1.2;
  display: block;
}
.nav-title span {
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links li a {
  display: block;
  padding: .5rem 1rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links li a:hover { color: var(--mahogany); }
.nav-links li a:hover::after,
.nav-links li a.is-active::after { transform: scaleX(1); }
.nav-links li a.is-active { color: var(--gold); }

/* CTA gomb a navigációban. */
.nav-cta {
  background: var(--gold) !important;
  color: var(--mahogany) !important;
  padding: .5rem 1.25rem !important;
  margin-left: .5rem;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger gomb (mobil). */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--mahogany);
  transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobil teljes képernyős menü. */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 190;
  padding: 2rem;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--parchment);
  font-size: 1.1rem;
  color: var(--mahogany);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
}

/* ---- Szekciók ---- */
.szlp-main { padding-top: 0; }
section.szlp-section { padding: 5rem 2rem; }

/* ---- Belső oldal fejléc-sáv (galéria, GYIK, hír) ---- */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  background: var(--mahogany);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border: 1px solid rgba(184, 145, 58, .08);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -120px;
  width: 350px; height: 350px;
  border: 1px solid rgba(184, 145, 58, .12);
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 1; }
.page-header .section-label { color: var(--gold-lt); }
.page-header .section-label::before { background: var(--gold-lt); }
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
}
.page-header h1 em { font-style: italic; color: var(--gold-lt); }
.page-header p { color: var(--stone); font-size: 15px; max-width: 480px; margin-top: .75rem; }

/* ---- LÁBLÉC ---- */
.szlp-footer { background: var(--ink); color: var(--stone); padding: 4rem 2rem 2rem; }
.ft-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(201, 187, 168, .12);
}
.ft-brand strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: .5rem;
}
.ft-brand p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.ft-brand .ft-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.ft-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(201, 187, 168, .2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.ft-social a:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
.ft-col h4 {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 400;
}
.ft-col ul { list-style: none; }
.ft-col ul li { margin-bottom: .5rem; }
.ft-col ul li a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.ft-col ul li a:hover { color: var(--white); }
.ft-col address { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.8; }
.ft-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Adminisztrációs segédelemek (üzenetek, fülek a highlighted régióban) ---- */
.szlp-highlighted { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }
.szlp-highlighted:not(:empty) { padding-top: calc(var(--nav-h) + 1rem); }

/* ---- „Vissza a tetejére” gomb ---- */
.szlp-totop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--mahogany);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(30, 22, 16, .25);
  /* Alapból rejtve; a szlp.js a .visible osztállyal jeleníti meg görgetéskor. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.szlp-totop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.szlp-totop:hover { background: var(--gold-lt); }
.szlp-totop:focus-visible { outline: 2px solid var(--mahogany); outline-offset: 2px; }
.szlp-totop svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .szlp-totop { bottom: 1rem; right: 1rem; width: 42px; height: 42px; }
}

/* ---- Védett e-mail link (spamvédelem) ---- */
.szlp-email { cursor: pointer; }
a.szlp-email { text-decoration: none; }
.szlp-email:hover { text-decoration: underline; }
.ft-col .szlp-email { color: var(--gold-lt); font-size: 12px; word-break: break-word; }
.k-val .szlp-email { color: var(--gold); }
