/* =====================================================================
   Zorba – Centrum Badań Marketingowych. Kolory zmienisz w sekcji :root.
   Nawiązanie do starej strony: oberżyna + limonkowa zieleń.
   ===================================================================== */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --plum: #2E1A33;        /* oberżyna – kolor ze starej strony */
  --plum-2: #3E2645;
  --plum-soft: #F1ECF2;
  --lime: #C6F04B;        /* zieleń ze starej strony, odświeżona */
  --lime-dark: #4F6B00;   /* zieleń do tekstu na jasnym tle */
  --ink: #1D1420;
  --muted: #5E5463;
  --paper: #FAFAF9;
  --line: #E2DCE4;
  --white: #fff;
  --wrap: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
a { color: var(--plum-2); text-underline-offset: .2em; }
a:hover { color: var(--lime-dark); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .6em; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.25rem; line-height: 1.55; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--lime); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border: 2px solid transparent; border-radius: 999px;
  font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; margin: 0 .4rem .5rem 0;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #D6F77A; color: var(--ink); }
.btn-line { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(46,26,51,.96); color: var(--white); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; fill: #8C7A93; }
.brand-mark .hi { fill: var(--lime); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.brand-sub { font-size: .78rem; color: #CFC2D3; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .8rem; color: #EDE6EF; text-decoration: none; font-weight: 500; border-radius: 999px; }
.site-nav a:hover, .site-nav a.is-active { background: rgba(255,255,255,.1); color: var(--white); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem; padding: .55rem .9rem;
  border: 2px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: var(--white); font: 650 1rem var(--sans); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { background: var(--plum); color: var(--white); padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero--bg {
  /* przyciemnienie od lewej – tekst zawsze czytelny, także na zdjęciu */
  background:
    linear-gradient(90deg, rgba(46,26,51,.95) 0%, rgba(46,26,51,.82) 38%, rgba(46,26,51,.35) 100%),
    var(--hero-bg) center / cover no-repeat,
    var(--plum);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); font-weight: 450; line-height: 1.02; margin: 0 0 1.25rem; }
.hero-lead { font-size: 1.2rem; color: #DCD0E0; max-width: 40ch; }
.hero-actions { margin-top: 1.75rem; }
.hero-chart { margin: 0; }
.hero-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-chart .grid line { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.hero-chart .bars rect { fill: #6A5371; }
.hero-chart .bars rect.hi { fill: var(--lime); }
.hero-chart .labels text { fill: #B9AABE; font: 500 14px var(--sans); text-anchor: middle; }
.hero-chart .note line { stroke: var(--lime); stroke-width: 1.5; stroke-dasharray: 3 4; }
.hero-chart .note circle { fill: var(--plum); stroke: var(--lime); stroke-width: 2; }
.hero-chart .note text { fill: var(--lime); font: italic 500 17px var(--serif); }
.hero-chart figcaption { margin-top: .6rem; font-size: .85rem; color: #A898AD; }

/* ---------- sekcje ---------- */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 4rem; }
.band--tint { background: var(--plum-soft); }
.band--dark { background: var(--plum-2); color: #EFE8F1; }
.band--dark h2 { color: var(--white); }
.band--dark a { color: var(--lime); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; align-items: start; }
.two-col p { max-width: 62ch; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.service {
  background: var(--white); border-radius: 18px; padding: 1.75rem 1.75rem 1.25rem;
  border: 1px solid var(--line); scroll-margin-top: 5rem; position: relative; overflow: hidden;
}
.service::after { content: ""; position: absolute; left: 1.75rem; top: 0; width: 48px; height: 5px; background: var(--lime); border-radius: 0 0 4px 4px; }
.service p { color: var(--muted); }
.service:target { outline: 3px solid var(--lime); }

.steps { list-style: none; counter-reset: krok; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: krok; border-top: 2px solid var(--plum); padding-top: 1rem; }
.steps li::before { content: counter(krok); display: block; font: 500 2.6rem/1 var(--serif); color: var(--lime-dark); margin-bottom: .6rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; }

.contact-big { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-big li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-big li:last-child { border-bottom: 1px solid var(--line); }
.contact-big span { width: 6rem; color: var(--muted); }
.contact-big a { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); color: var(--ink); text-decoration: none; }
.contact-big a:hover { color: var(--lime-dark); }

/* ---------- stopka ---------- */
.site-footer { background: var(--plum); color: #CFC2D3; padding: 2rem 0 1rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1rem; padding-top: 1rem; font-size: .85rem; color: #A898AD; }
.call-bar { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .hero--bg { background: linear-gradient(180deg, rgba(46,26,51,.92), rgba(46,26,51,.8)), var(--hero-bg) center / cover no-repeat, var(--plum); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-chart { max-width: 520px; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 4.4rem; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--plum); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem .75rem 1rem; }
  .site-nav a { padding: .8rem 1rem; border-radius: 8px; }
  .hero-actions .btn { width: 100%; margin-right: 0; }
  .services, .steps { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 1.4rem 1.25rem 1rem; }
  .service::after { left: 1.25rem; }
  .call-bar {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--plum);
  }
  .call-bar .btn { margin: 0; }
  .call-bar .btn-lime { flex: 1; }
}

@media print {
  .site-header, .call-bar { position: static; }
  .site-nav, .nav-toggle, .call-bar { display: none !important; }
  .hero, .band--dark { background: none; color: var(--ink); }
}
