/* iPss — shared stylesheet
 * Covers: reset, tokens, base, layout, buttons, topbar, header,
 *         hamburger, mobile menu, page-hero, footer, animations, breakpoints.
 * Every page links this file; page-specific CSS stays inline.
 */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === DESIGN TOKENS === */
:root {
  --ink:        #0a0a0a;
  --surface:    #161616;
  --surface-2:  #202020;
  --surface-3:  #2a2a2a;
  --border:     rgba(255,255,255,0.08);
  --accent:     #E8FF00;
  --accent-dim: rgba(232,255,0,.12);
  --text:       #F0EDE6;
  --text-muted: #6e6e73;
  --ff-display: 'Clash Display', sans-serif;
  --ff-body:    'Instrument Sans', sans-serif;
  --ease:       cubic-bezier(.4,0,.2,1);
  --spring:     cubic-bezier(.34,1.56,.64,1);
  --r:          16px;
  --r-lg:       22px;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--ink); color: var(--text); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--ff-body); }

/* === LAYOUT === */
.container        { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 820px;  margin: 0 auto; padding: 0 32px; }

/* === REVEAL ANIMATION === */
.reveal         { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* === BUTTONS === */
.btn            { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; border-radius: 100px; padding: 11px 24px; border: none; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease), border-color .18s var(--ease); }
.btn:active     { transform: scale(.96) !important; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-y          { background: var(--accent); color: #0a0a0a; font-weight: 700; box-shadow: 0 4px 20px rgba(232,255,0,.18); }
.btn-y:hover    { background: #f5ff33; box-shadow: 0 6px 32px rgba(232,255,0,.32); transform: translateY(-2px); }
.btn-o          { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-o:hover    { background: var(--surface); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-call       { background: var(--accent); color: #0a0a0a; font-weight: 700; box-shadow: 0 4px 20px rgba(232,255,0,.18); }
.btn-call:hover { background: #f5ff33; box-shadow: 0 6px 32px rgba(232,255,0,.32); transform: translateY(-2px); }
.btn-lg         { font-size: 16px; padding: 14px 32px; }
.btn-sm         { font-size: 13px; padding: 8px 18px; }
.btn-full       { width: 100%; justify-content: center; }

/* === TOPBAR === */
.topbar           { background: #131313; border-bottom: 1px solid rgba(255,255,255,.12); padding: 10px 0; font-size: 12.5px; color: rgba(255,255,255,.72); position: relative; z-index: 110; }
.topbar .container{ display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tb-item          { display: flex; align-items: center; gap: 6px; }
.tb-item svg      { opacity: .65; flex-shrink: 0; }
.tb-center        { display: flex; align-items: center; gap: 10px; }
.tb-sep           { opacity: .3; color: rgba(255,255,255,.5); }
.tb-right         { display: flex; align-items: center; gap: 20px; }
.tb-right a       { color: rgba(255,255,255,.72); transition: color .2s var(--ease); font-weight: 500; }
.tb-right a:hover { color: var(--accent); }

/* === HEADER === */
.header           { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,.65); border-bottom: 1px solid var(--border); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.header.scrolled  { background: rgba(10,10,10,.94); box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 4px 24px rgba(0,0,0,.4); }
.header .container{ display: flex; align-items: center; justify-content: space-between; height: 96px; }
.logo             { display: flex; align-items: center; gap: 4px; }
.logo img         { height: 80px; width: auto; }
.nav              { display: flex; align-items: center; gap: 2px; }
.nav a            { font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 7px 13px; border-radius: 8px; transition: color .2s var(--ease), background .2s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.active     { color: var(--accent); }

/* === HAMBURGER === */
.hamburger                        { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.hamburger span                   { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .28s var(--ease), opacity .22s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE MENU === */
.mob-menu          { display: none; position: fixed; inset: 0; z-index: 99; background: rgba(10,10,10,.97); backdrop-filter: blur(24px); padding: 110px 32px 40px; flex-direction: column; gap: 4px; }
.mob-menu.open     { display: flex; }
.mob-menu a        { font-family: var(--ff-display); font-size: 34px; font-weight: 600; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); transition: color .2s var(--ease); }
.mob-menu a:hover  { color: var(--accent); }
.mob-menu .mob-cta { color: var(--accent) !important; margin-top: 12px; border-bottom: none !important; }

/* === PAGE HERO (inner pages) === */
.page-hero            { padding: 72px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero-eyebrow    { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.page-hero h1         { font-family: var(--ff-display); font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; color: #fff; margin-bottom: 16px; }
.page-hero p, .page-hero-sub { font-size: 16px; color: var(--text-muted); max-width: 520px; line-height: 1.7; }

/* === FOOTER === */
.footer          { background: #070707; border-top: 1px solid var(--border); padding: 64px 0 0; }
.foot-grid       { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.foot-logo img   { height: 68px; width: auto; margin-bottom: 14px; }
.foot-desc       { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.foot-col h4     { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; transition: color .2s var(--ease); }
.foot-col a:hover{ color: var(--text); }
.foot-bottom     { border-top: 1px solid var(--border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); gap: 12px; flex-wrap: wrap; }

/* === ZAPRTJE BANNER === */
#zaprtje-banner { position: relative; z-index: 200; }

/* === SKIP LINK === */
.skip-link { position: absolute; top: -100%; left: 16px; background: var(--accent); color: #0a0a0a; padding: 10px 20px; font-size: 13px; font-weight: 700; border-radius: 0 0 8px 8px; z-index: 99999; transition: top .15s var(--ease); }
.skip-link:focus { top: 0; outline: none; }

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .topbar .container             { flex-direction: column; gap: 5px; text-align: center; }
  .tb-center                     { flex-direction: column; gap: 3px; }
  .tb-sep                        { display: none; }
  .nav, .header .btn-call        { display: none; }
  .hamburger                     { display: flex; }
  .foot-grid                     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom                   { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}
