/* ── SHARED SITE CHROME ──
   Loaded LAST on every page so the header/footer are identical everywhere,
   overriding any per-page (older) nav/footer styles. */

:root {
  --gold: #F5B800; --gold-dim: #C99600; --black: #0D0D0D; --dark: #111111;
  --dark2: #1A1A1A; --warm-white: #F4F1EC; --gray: #888880; --light-gray: #2A2A2A;
}

/* Global page defaults — every public page gets the dark brand background,
   even ones whose page-CSS doesn't define body styles (áraink, gyik, blog, jogi oldalak). */
* , *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip prevents horizontal scroll WITHOUT creating a scroll container,
   so position:sticky (circle reveal) keeps working — plain `hidden` here broke it. */
html { overflow-x: clip; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background: #0B0B0B;
  color: var(--warm-white);
  overflow-x: clip;
}

/* NAV */
nav#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 60px; display: flex; align-items: center; justify-content: space-between; transition: background .4s, backdrop-filter .4s, padding .4s; background: transparent; }
nav#nav.scrolled { background: rgba(13,13,13,0.96) !important; padding: 12px 60px; border-bottom: 1px solid rgba(245,184,0,0.12); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
/* FONTOS: a backdrop-filter a nav-on Safari alatt containing blockot csinál,
   ami a fixed mobil menüpanelt a nav sávjába zárná (félbevágott menü).
   Ezért a blur egy pszeudo-elemen él, a nav-on tiltva van. */
nav#nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; }
nav#nav::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); transition: backdrop-filter .4s, -webkit-backdrop-filter .4s; }
nav#nav.scrolled::before { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-logo img { height: 64px; width: auto; display: block; filter: none !important; transition: filter .35s; }
.nav-links { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.82); text-decoration: none; transition: color .2s; position: relative; padding-bottom: 4px; }
/* gold underline sweep on hover (desktop) */
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .32s cubic-bezier(.22,1,.36,1); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
nav#nav.scrolled .nav-links a { color: rgba(244,241,236,0.6); }
.nav-links-cta { display: none; }
.nav-overlay { display: none; }
.nav-cta { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; background: var(--gold); color: #080808 !important; border: none; padding: 12px 28px; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.nav-cta:hover { background: #ffd233; transform: translateY(-1px); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 101; flex-shrink: 0; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--warm-white); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SCROLL PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); z-index: 200; width: 0; box-shadow: 0 0 12px rgba(245,184,0,0.6); }

/* FOOTER */
.site-footer { display: block; background: #0A0A0A; border-top: 1px solid rgba(245,184,0,0.1); padding: 64px 60px 0; }
.sf-brand img { filter: none !important; opacity: 1 !important; }
.sf-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(244,241,236,0.07); }
.sf-brand img { height: 56px; width: auto; margin-bottom: 20px; }
.sf-about { font-size: 14px; line-height: 1.8; color: rgba(244,241,236,0.45); max-width: 340px; font-weight: 300; }
.sf-social { display: flex; gap: 10px; margin-top: 22px; }
.sf-social a { width: 38px; height: 38px; border: 1px solid rgba(244,241,236,0.14); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.sf-social a:hover { border-color: #F5B800; background: rgba(245,184,0,0.08); }
.sf-social svg { width: 16px; height: 16px; stroke: rgba(244,241,236,0.6); fill: none; stroke-width: 1.6; }
.sf-social a:hover svg { stroke: #F5B800; }
.sf-col-title { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #F5B800; margin-bottom: 20px; }
.sf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sf-links a { font-size: 14px; color: rgba(244,241,236,0.55); text-decoration: none; transition: color .2s; }
.sf-links a:hover { color: #F5B800; }
.sf-contact-item { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: rgba(244,241,236,0.55); margin-bottom: 15px; }
.sf-contact-item svg { width: 15px; height: 15px; stroke: #F5B800; fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 3px; }
.sf-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-wrap: wrap; gap: 16px; }
.sf-copy { font-size: 12px; color: rgba(244,241,236,0.3); }
.sf-bottom-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sf-legal { font-size: 12px; color: rgba(244,241,236,0.3); text-decoration: none; }
.sf-legal:hover { color: #F5B800; }
.sf-admin { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(244,241,236,0.4); text-decoration: none; border: 1px solid rgba(244,241,236,0.15); padding: 8px 15px; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.sf-admin:hover { border-color: #F5B800; color: #F5B800; }
.sf-admin svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; }

@media (max-width: 900px) {
  nav#nav { padding: 16px 20px; }
  nav#nav.scrolled { padding: 12px 20px; }
  .nav-logo img { height: 52px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Slide-in mobile menu panel + backdrop */
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-overlay.open { opacity: 1; visibility: visible; }

  #nav .nav-links {
    display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0;
    /* left:auto is vital — old per-page CSS sets left:0 which would pin the panel to the LEFT edge */
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(84vw, 350px);
    border-bottom: none; height: auto;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(245,184,0,0.18);
    padding: 100px 0 32px; z-index: 99; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    /* visibility flips instantly on open (0s), and only after the slide-out on close (.34s delay) */
    transition: transform .34s cubic-bezier(.22,1,.36,1), visibility 0s linear .34s;
    will-change: transform;
    box-shadow: -24px 0 70px rgba(0,0,0,0.6);
  }
  #nav .nav-links.open { transform: translateX(0); visibility: visible; transition: transform .34s cubic-bezier(.22,1,.36,1), visibility 0s; }
  #nav .nav-links li { border: none; border-bottom: 1px solid rgba(244,241,236,0.05); }
  #nav .nav-links li a {
    display: flex; align-items: center; gap: 14px; padding: 18px 30px;
    font-size: 16px; letter-spacing: 2.5px; color: rgba(244,241,236,0.82);
    border-left: 3px solid transparent; transition: color .2s, background .2s, border-color .2s;
  }
  #nav .nav-links li a::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: scale(0); transition: transform .2s; flex-shrink: 0; }
  #nav .nav-links li a:hover, #nav .nav-links li a:active { color: var(--gold); background: rgba(245,184,0,0.07); border-left-color: var(--gold); }
  #nav .nav-links li a:hover::before { transform: scale(1); }
  /* CTA inside the mobile menu */
  #nav .nav-links li.nav-links-cta { display: block; border: none; margin: 22px 26px 0; }
  #nav .nav-links li.nav-links-cta a { justify-content: center; background: var(--gold); color: #0b0b0b; font-weight: 800; padding: 16px; border-left: none; letter-spacing: 2.5px; }
  #nav .nav-links li.nav-links-cta a::before { display: none; }
  #nav .nav-links li.nav-links-cta a:hover { background: #ffd233; }
  /* stagger animation for items when open — snappy, follows the panel */
  #nav .nav-links.open li { animation: navItemIn .28s .06s both ease-out; }
  #nav .nav-links.open li:nth-child(2){animation-delay:.09s}
  #nav .nav-links.open li:nth-child(3){animation-delay:.12s}
  #nav .nav-links.open li:nth-child(4){animation-delay:.15s}
  #nav .nav-links.open li:nth-child(5){animation-delay:.18s}
  #nav .nav-links.open li:nth-child(6){animation-delay:.21s}
  #nav .nav-links.open li:nth-child(7){animation-delay:.24s}
  #nav .nav-links li a::after { display: none; }
  #nav .nav-links li a { padding-bottom: 18px; }
  @keyframes navItemIn { from { opacity:0; transform: translateX(14px); } to { opacity:1; transform: translateX(0); } }
  .site-footer { padding: 48px 20px 0; }
  .sf-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .site-footer { padding: 40px 18px 0; }
  .sf-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; text-align: left; }
  .sf-about { max-width: none; font-size: 13px; }
  .sf-social { justify-content: flex-start; }
  .sf-col-title { font-size: 11px; margin-bottom: 14px; }
  .sf-links { gap: 9px; }
  .sf-links a, .sf-contact-item { font-size: 13px; }
  .sf-contact-item { justify-content: flex-start; text-align: left; margin-bottom: 12px; }
  .sf-bottom { text-align: center; padding-bottom: 12px; }
}

/* ── Szövegkijelölés — arany ── */
::selection { background: var(--gold, #F5B800); color: #0B0B0B; }
::-moz-selection { background: var(--gold, #F5B800); color: #0B0B0B; }

/* ── Lebegő hívás gomb (csak mobilon) ── */
.call-fab { display: none; }
@media (max-width: 900px) {
  .call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9000; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(245,184,0,0.45), 0 4px 12px rgba(0,0,0,0.5); animation: fabPulse 2.6s ease-in-out infinite; }
  .call-fab svg { width: 25px; height: 25px; stroke: #0B0B0B; fill: none; stroke-width: 2; }
  .call-fab:active { transform: scale(.94); }
  @keyframes fabPulse { 0%, 100% { box-shadow: 0 10px 30px rgba(245,184,0,0.45), 0 0 0 0 rgba(245,184,0,0.4); } 50% { box-shadow: 0 10px 30px rgba(245,184,0,0.45), 0 0 0 14px rgba(245,184,0,0); } }
}
