/* Ruch do Zmian — custom tokens & utilities (DESIGN.md) */

:root {
  --ink: #1c1712;
  --ink-soft: #3a322a;
  --text-muted: #6b6258;
  --surface: #ffffff;
  --surface-warm: #faf6ef;
  --surface-sand: #f2e9da;
  --border: #e6dccb;
  --primary: #c8901f;
  --gold: #c8901f;
  --gold-strong: #a8761a;
  --amber: #e0a93a;
  --yellow: #f2c94c;
  --orange: #e07b2e;
  --rust: #9c3d14;
  --on-primary: #1c1712;
  --focus-ring: #a8761a;
  --success: #5c7a4a;
  --error: #b23a1e;
  --gradient-brand: linear-gradient(90deg, #9c3d14, #e07b2e, #c8901f, #f2c94c);
  --shadow-raised: 0px 1px 2px rgba(28, 23, 18, 0.06);
  --shadow-card: 0px 8px 24px rgba(28, 23, 18, 0.08);
  --shadow-overlay: 0px 16px 48px rgba(28, 23, 18, 0.14);
}

* {
  border-color: var(--border);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--surface);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  font-weight: 300;
}

::selection {
  background-color: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

a {
  color: var(--gold-strong);
  text-decoration: none;
  transition: color 200ms ease;
}

a:hover {
  color: var(--rust);
}

.bg-gradient-brand {
  background-image: var(--gradient-brand);
}

.container-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-wide {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
  line-height: 1.4;
}

.display-xl {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.display-lg {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.headline-md {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.title-sm {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.65; }
.body-sm { font-size: 0.875rem; line-height: 1.55; }

.section-pad {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.shadow-card { box-shadow: var(--shadow-card); }
.shadow-overlay { box-shadow: var(--shadow-overlay); }
.shadow-raised { box-shadow: var(--shadow-raised); }
.rounded-pill { border-radius: 999px; }

.font-display {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 100;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header backdrop — CDN opacity modifier fallback */
.bg-surface-header {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Button variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.btn-md { min-height: 2.75rem; padding: 0.75rem 1.5rem; font-size: 15px; }
.btn-lg { min-height: 3rem; padding: 0.875rem 1.75rem; font-size: 15px; }

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
}
.btn-primary:hover { background-color: var(--gold-strong); color: var(--on-primary); }

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background-color: var(--ink); color: var(--surface); }

.btn-ghost {
  background-color: transparent;
  color: var(--gold-strong);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--rust); }

.btn-ghost-light {
  background-color: transparent;
  color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost-light:hover { background-color: var(--surface); color: var(--ink); }

/* Accordion */
.accordion-panel {
  display: none;
}
.accordion-item.is-open .accordion-panel {
  display: block;
}
.accordion-item.is-open .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-chevron {
  transition: transform 200ms ease;
}

/* Mobile nav */
#mobile-nav { display: none; }
#mobile-nav.is-open { display: block; }

/* Event filter empty state */
.events-empty { display: none; }
.events-empty.is-visible { display: block; }

/* Nav link (header) */
.nav-link {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 200ms ease;
}
.nav-link:hover { color: var(--gold-strong); }
.nav-link[aria-current="page"] { color: var(--gold-strong); font-weight: 600; }

/* Small button variant */
.btn-sm { min-height: 2.25rem; padding: 0.5rem 1rem; font-size: 13px; letter-spacing: 0.02em; }

/* Mobile sticky CTA bar — body padding so content isn't hidden */
@media (max-width: 1023px) {
  body { padding-bottom: 76px; }
}

/* Tab panels (opinie section) */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Hero glassmorphism — amber info box na ciemnym hero */
.glass-amber {
  background: rgba(200, 144, 31, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(224, 169, 58, 0.45);
}

/* Nav dropdown (desktop hover) */
.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  min-width: 220px;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
[data-nav-dropdown]:hover .nav-dropdown-panel,
[data-nav-dropdown]:focus-within .nav-dropdown-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-item {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color 0.1s ease, color 0.1s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background-color: var(--surface-warm);
  color: var(--gold-strong);
  outline: none;
}
