/* ============================================================
   f150.one.pl — shared shell (v4: central menu, 2026-11-30)
   Owa: hero, buttons, footer, progress bar, to-top, reveal
   +   central navigation (generated by shell.js)
   ============================================================ */

:root {
  --bg: #1a1714; --bg-card: #252019; --bg-deep: #12100e;
  --text: #e8e0d4; --text-muted: #9a8f80;
  --accent: #d4712c; --accent-light: #e8944a; --border: #3a332a;
  --nav-bg: rgba(26, 23, 20, 0.94);
}

/* ── Progress bar ── */
.pg-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 900; transition: width .1s linear;
}

/* ── Hero (sub-pages) ── */
.hero--page {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(330px, 46vh, 460px); padding: 0 0 44px;
  overflow: hidden; margin-bottom: 0;
}
.hero--page .hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-repeat: no-repeat;
  transform: scale(1.02);
}
.hero--page::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,17,15,.82) 0%, rgba(20,17,15,.35) 34%, rgba(20,17,15,.72) 70%, var(--bg) 99%),
    linear-gradient(90deg, rgba(18,16,14,.92) 0%, rgba(18,16,14,.5) 46%, rgba(18,16,14,0) 78%);
}
.hero--page .hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
}
.hero--page .crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.hero--page .crumbs a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.hero--page .crumbs a:hover { color: var(--accent-light); }
.hero--page .crumbs span.sep { opacity: .5; }
.hero--page .crumbs span.cur { color: var(--accent); font-weight: 700; }
.hero--page h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -1px;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6);
  margin: 0 0 10px; max-width: 900px;
}
.hero--page .hero-sub {
  color: #cfc6b8; font-size: clamp(.95rem, 1.5vw, 1.06rem);
  max-width: 760px; text-shadow: 0 2px 12px rgba(0,0,0,.65);
  margin: 0; line-height: 1.6;
}
.hero--page .hero-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-size: .88rem; font-weight: 600; letter-spacing: .3px;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .18s ease, background .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #1a1714; box-shadow: 0 8px 22px rgba(212,113,44,.25); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost { color: var(--text); border-color: rgba(232,224,212,.3); background: rgba(26,23,20,.45); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }

body.has-hero .container, body.has-hero .wrap { padding-top: 52px; }

/* ── "Czytaj dalej" tiles ── */
.more { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.more-in { margin-top: 70px; border-top: 1px solid var(--border); padding-top: 40px; }
.more h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 18px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-tile {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 150px; padding: 22px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.more-tile:hover { border-color: rgba(212,113,44,.5); transform: translateY(-3px); }
.more-tile h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.more-tile p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }
.more-tile .arrow { margin-top: 14px; font-size: .74rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }

/* ── Footer ── */
.site-foot { margin-top: 84px; padding: 56px 0 40px; border-top: 1px solid var(--border); background: var(--bg-deep); }
.site-foot .foot-grid { max-width: 1120px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-foot .foot-brand h4 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--accent); margin-bottom: 10px; }
.site-foot .foot-brand p { color: var(--text-muted); font-size: .9rem; max-width: 320px; }
.site-foot .foot-col h5 { font-size: .72rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.site-foot .foot-col a { display: block; color: var(--text); text-decoration: none; font-size: .92rem; padding: 5px 0; transition: color .2s; }
.site-foot .foot-col a:hover { color: var(--accent-light); }
.site-foot .foot-legal { max-width: 1120px; margin: 38px auto 0; padding: 20px 32px 0; border-top: 1px solid var(--border); color: #6f6659; font-size: .8rem; line-height: 1.7; }

/* ── To-top button ── */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 350;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(37,32,25,.92); border: 1px solid var(--border);
  color: var(--accent-light); font-size: 1.05rem; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.to-top.on { display: flex; }

/* ── Reveal animations ── */
.rv { transition: opacity .55s ease, transform .55s ease; }
html.js .rv { opacity: 0; transform: translateY(18px); }
html.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   NAVIGATION — central, generated by shell.js
   Desktop (≥900px): top bar, full menu
   Mobile (<900px): hamburger → full-screen panel with categories
   ============================================================ */

/* ── Top bar (desktop) ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 52px;
}
.site-nav .nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900;
  color: var(--accent); text-decoration: none; letter-spacing: -0.5px;
  white-space: nowrap;
}
.site-nav .nav-logo:hover { color: var(--accent-light); }
.site-nav .nav-links {
  display: flex; align-items: center; gap: 1px;
}
.site-nav .nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .7px;
  text-transform: uppercase; padding: 8px 10px; border-radius: 6px;
  transition: .2s; white-space: nowrap;
}
.site-nav .nav-links a:hover { color: var(--accent-light); background: rgba(212,113,44,.08); }
.site-nav .nav-links a.active { color: var(--accent); background: rgba(212,113,44,.12); }

/* ── Hamburger button (mobile) ── */
.nav-burger {
  display: none; width: 40px; height: 40px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 1px;
  transition: .25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile overlay panel ── */
.nav-panel {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(18,16,14,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: none; flex-direction: column;
  padding: 68px 24px 32px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-panel.open { display: flex; }
.nav-panel .np-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.nav-panel .np-brand {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 900;
  color: var(--accent);
}
.nav-panel .np-close {
  width: 36px; height: 36px; background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Category groups */
.nav-panel .np-cat { margin-bottom: 24px; }
.nav-panel .np-cat-label {
  font-size: .68rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px; padding: 6px 14px;
  background: rgba(212,113,44,.06); border-radius: 6px;
}
.nav-panel .np-links { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.nav-panel .np-links a {
  color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 500; letter-spacing: .3px;
  padding: 11px 14px; border-radius: 8px;
  transition: .15s;
}
.nav-panel .np-links a:hover { color: var(--accent-light); background: rgba(212,113,44,.08); }
.nav-panel .np-links a.active { color: var(--accent); background: rgba(212,113,44,.12); font-weight: 600; }

/* Dropdown (mobile, inside panel) */
.nav-panel .np-drop {
  margin-left: 14px; padding-left: 12px;
  border-left: 2px solid var(--border);
}
.nav-panel .np-drop a {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: 8px 12px;
}
.nav-panel .np-drop a:hover { color: var(--accent-light); }
.nav-panel .np-drop a.active { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { padding: 0 16px; }
  .site-nav .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 901px) {
  .nav-panel { display: none !important; }
  .nav-burger { display: none !important; }
  /* Push content below the top nav */
  body { padding-top: 52px; }
}

@media (max-width: 620px) {
  .hero--page { min-height: clamp(300px, 40vh, 400px); padding-bottom: 30px; }
  .hero--page .hero-inner, .more, .site-foot .foot-grid, .site-foot .foot-legal { padding-left: 20px; padding-right: 20px; }
  .hero--page .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .site-foot .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  body.has-hero .container, body.has-hero .wrap { padding-top: 38px; }
}
@media (max-width: 900px) {
  .more-grid { grid-template-columns: 1fr; }
  .site-foot .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Legacy bottom nav (kept for pages that haven't migrated yet) ── */
.nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 2px; padding: 10px 6px 11px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid #3a332a; z-index: 400;
}
.nav a {
  color: #9a8f80; text-decoration: none; font-size: .74rem; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase; padding: 9px 12px;
  border-radius: 8px; transition: .25s; white-space: nowrap;
}
.nav a:hover { color: #e8944a; background: rgba(212,113,44,.1); }
.nav a.active { color: #d4712c; background: rgba(212,113,44,.15); }
@media (max-width: 820px) {
  .nav { gap: 1px; padding: 9px 3px 10px; }
  .nav a { font-size: .66rem !important; letter-spacing: 0 !important; padding: 9px 5px !important; min-height: 30px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .nav a { font-size: .64rem !important; padding: 9px 4px !important; }
}
