/* ============================================================
   Nutriceptics Poland — shared site styles
   Built on colors_and_type.css tokens. Used by all 3 directions.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px;
  font: 600 15px/1 var(--font-sans); border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px){ .wrap { padding: 0 22px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--muted { color: var(--fg-3); }
.eyebrow .tick { width: 22px; height: 1.5px; background: currentColor; display: inline-block; }

/* ---- focus visibility (WCAG 2.4.7 / 2.4.11) ---- */
a:focus-visible, button:focus-visible, .focusable:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   NAV  — slim, sticky, solid-on-scroll
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,1);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo { height: 50px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 26px; }
.nav__contact {
  font: 500 15px/1 var(--font-sans);
  letter-spacing: .005em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__contact .arrow { color: var(--red); transition: transform var(--dur) var(--ease); }
.nav__contact:hover { color: var(--red); border-bottom-color: var(--red); }
.nav__contact:hover .arrow { transform: translateX(3px); }

/* ============================================================
   BUTTONS / LINKS
   ============================================================ */
.btn {
  font: 600 15px/1 var(--font-sans);
  letter-spacing: .005em;
  border-radius: var(--r-sm);
  padding: 0 22px;
  min-height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:active { background: var(--red-press); transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); padding: 0 4px; }
.btn--ghost .arrow { color: var(--red); transition: transform var(--dur) var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(4px); }
.btn--ink { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ink:hover { border-color: #fff; }

.textlink {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease);
}
.textlink:hover { color: var(--red); }

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.section { padding: clamp(72px, 11vw, 152px) 0; }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

/* ---- What we do ---- */
.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 18em;
  margin: 0;
  text-wrap: balance;
}
.lead .muted { color: var(--fg-3); }
.body {
  font-family: var(--font-sans);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--fg-2);
  max-width: 36em;
  text-wrap: pretty;
}

/* ============================================================
   PILLARS — Science-led / Made in Poland / Built for many markets
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 40px 38px 44px;
  border-left: 1px solid var(--line);
}
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar:last-child { padding-right: 0; }
.pillar__num {
  font: 500 var(--fs-caption)/1 var(--font-mono);
  letter-spacing: .12em;
  color: var(--fg-3);
}
.pillar__icon {
  width: 46px; height: 46px;
  margin: 22px 0 22px;
  color: var(--red);
  display: flex; align-items: center;
}
.pillar__icon svg { width: 30px; height: 30px; }
.pillar__title {
  font: 600 var(--fs-h3)/1.2 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.pillar__body {
  font: 400 var(--fs-body)/var(--lh-body) var(--font-sans);
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 860px){
  .pillars { grid-template-columns: 1fr; border-top: none; }
  .pillar { border-left: none; border-top: 1px solid var(--line); padding: 34px 0; }
  .pillar:first-child { padding-top: 0; border-top: none; }
}

/* ============================================================
   MORE TO COME — faint teaser
   ============================================================ */
.teaser {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0;
  overflow: hidden;
}
.teaser__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.teaser__row > :first-child { flex: 1 1 280px; }
.teaser__label {
  font: 500 var(--fs-eyebrow)/1 var(--font-mono);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
}
.teaser__head {
  font: 300 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--font-sans);
  letter-spacing: var(--tracking-display);
  color: var(--fg-4);
  margin: 18px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.teaser__head b { font-weight: 600; color: var(--ink); }

/* ============================================================
   FOOTER — dark, legal block
   ============================================================ */
.footer { position: relative; background: var(--ink-surface); color: #fff; overflow: hidden; }
.footer__topo {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 78%;
  object-fit: cover; object-position: center bottom;
  filter: invert(1); opacity: .085; pointer-events: none;
}
.footer__inner { position: relative; padding: clamp(56px, 8vw, 88px) 0 36px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.footer__logo { height: 30px; width: auto; }
.footer__tag { font: 400 15px/1.6 var(--font-sans); color: rgba(255,255,255,.6); max-width: 30em; margin: 22px 0 0; text-wrap: pretty; }
.footer__contact a {
  color: #fff; text-decoration: none;
  border-bottom: 1.5px solid var(--red); padding-bottom: 1px;
  font: 500 16px/1 var(--font-sans);
}
.footer__contact a:hover { color: rgba(255,255,255,.8); }
.footer__rule { height: 1px; background: rgba(255,255,255,.12); margin: clamp(40px,6vw,56px) 0 24px; }

/* legal */
.legal {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
  gap: 6px 56px;
}
.legal__name { font: 600 15px/1.5 var(--font-sans); color: rgba(255,255,255,.92); grid-column: 1 / -1; margin-bottom: 4px; }
.legal__item { font: 400 var(--fs-caption)/1.7 var(--font-mono); color: rgba(255,255,255,.5); letter-spacing: .01em; }
.legal__item b { color: rgba(255,255,255,.78); font-weight: 500; }
.legal__k { color: rgba(255,255,255,.38); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 1px; }
.footer__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.footer__base span { font: 400 var(--fs-caption)/1 var(--font-mono); color: rgba(255,255,255,.4); letter-spacing: .02em; }

/* ============================================================
   REVEAL ON SCROLL (gated on reduced-motion)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* shared responsive nav contact tweak */
@media (max-width: 520px){
  .nav__logo { height: 40px; }
}

/* ============================================================
   CONTOUR FIELDS — scroll-triggered topographic motion
   ============================================================ */
.cf-host { position: relative; overflow: clip; }
.cf-above { position: relative; z-index: 1; }
.cfield {
  position: absolute; pointer-events: none; user-select: none;
  color: var(--topo-line); z-index: 0;
  will-change: opacity;
}
.cfield svg { width: 100%; height: 100%; display: block; }
.cfield .ring-red { color: var(--topo-red); }
@media (prefers-reduced-motion: no-preference) {
  .cf-breathe { animation: cfBreathe 9s ease-in-out infinite; }
  @keyframes cfBreathe { 0%, 100% { opacity: .66; } 50% { opacity: 1; } }
}
