/* Generated from Figma variables. Do not edit by hand — re-sync & regenerate from the Tokens tab. */

:root {
  /* Colors */
  --black3: #180e0a;
  --primary: #a9ca0f;
  --black1: #737373;
  --black2: #261c18;
  --white: #ffffff;
  --icon-color: #a9ca0f;
  --text-white: #FFFFFF;
  --white-text: #FFFCFC;
  --secondary: #271914;
  --light2: #dbdedf;
  --light1: #f2f4f5;
  --light3: #c0c2c3;
  --dark-graphite: #252525;

  /* Spacing */
  --cards-gap: 20px;
  --section-gap: 48px;
  --padding-horizontal: 24px;
  --padding-vertical: 24px;
  --section-padding: 100px;

  /* Radius */
  --border-radius: 8px;
}

/* Section vertical rhythm — the ONE canonical top/bottom padding every <section>
   uses (padding-block: var(--section-pad-block)). A single site-wide ladder keeps
   the gaps between sections identical and steps them down on tablet/phone. Desktop
   seeds from the Figma --section-padding token when present, else 96px. */
:root { --section-pad-block: var(--section-padding, 96px); }
@media (max-width: 1023px) { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.7); } }
@media (max-width: 767px)  { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.5); } }

/* Typography */
.text-16-px-button {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
  letter-spacing: -0.02em;
}

.text-22px-title {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 31.2px;
  letter-spacing: -0.02em;
}

.text-48px-title {
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 57.6px;
  letter-spacing: -0.02em;
}

.text-18px-text {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 23.4px;
}

.text-40px-title {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: -0.02em;
}

.text-16px-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

.text-20-px-button {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 23.4px;
  letter-spacing: -0.02em;
}

.text-20px-text {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}

.text-56px-title {
  font-family: "Montserrat", sans-serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 70.4px;
  letter-spacing: -0.02em;
}

.text-28px-title {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 27.4px;
  letter-spacing: -0.02em;
}

.text-18-px-button {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 23.4px;
  letter-spacing: -0.02em;
}

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a FLAT, 0-radius lime-green (#a9ca0f / --primary) rectangle with a white
      uppercase bold ~18px label and a trailing solid white ▶ arrow that nudges right on hover —
      no rounded corners, no soft resting shadow (hard/flat).
   2) Secondary is the exact inverse and clearly lower priority: white fill, dark (#271914) uppercase
      label, a 1px lime-green hairline border, radius 0 — never a second green clone of the primary.
   3) Sharp / flat separation language: buttons radius 0, cards radius 8px, NO soft resting shadows —
      surfaces separate by hard colour steps (near-black #180e0a tiles on light #f2f4f5) and 1px
      hairline borders, not blur.
   4) Lime-green is the SOLE accent at ~10%: CTAs, the thick heading accent-bar, oversized ExtraBold
      numerals (01-06, 125+) and the highlighted half of each heading — never body copy (grey #737373 / white).
   5) Card = sharp dark (#180e0a) tile: full-bleed photo on top + a dark padded body (24px) whose CTA
      is a lime UNDERLINED uppercase text-link + arrow (not a button); on hover it lifts -6px and the
      inner photo zooms, no resting shadow. */

/* ---------------------------------------------------------------------------
   Semantic aliases — derived from the design. Components use THESE, never a raw
   --primary / --border-radius. tokens.css (generated) carries the raw palette.
   --------------------------------------------------------------------------- */
:root {
  /* Accent (the design's PRIMARY CTA colour = --primary, the lime green) */
  --accent: var(--primary, #a9ca0f);
  --accent-2: var(--accent);                  /* solid CTA (no gradient) → gradient end = accent */
  --accent-contrast: var(--white, #ffffff);   /* readable label on the green fill (white) */
  --accent-ink: var(--black3, #180e0a);       /* near-black ink the brand pairs with the accent */
  --btn-shadow: none;                          /* the primary CTA is FLAT — no resting shadow */

  /* Radius scale — read off the design: buttons sharp, cards 8px, inputs/icons small */
  --radius-sm: 4px;                            /* inputs, small chips, icon buttons (slider arrows ≈4px) */
  --radius-md: 8px;                            /* cards / tiles (Figma --border-radius) */
  --radius-lg: 12px;                           /* large containers / panels */
  --radius-pill: 999px;                        /* fallback only — this brand is sharp, not pill */
  --btn-radius: 0px;                           /* the PRIMARY button is a hard-edged rectangle (also shapes Slider arrows) */

  /* Button geometry — from the close-up: ~55px tall, 32px inline padding, 18px uppercase label */
  --btn-height: 55px;
  --btn-height-sm: 44px;
  --btn-pad-inline: 32px;

  /* Neutral borders (never the accent at rest) */
  --border-color: var(--light2, #dbdedf);
  --border-color-strong: var(--light3, #c0c2c3);
}

/* ---------------------------------------------------------------------------
   Buttons — the shared <Button> renders `.btn` + a variant. ONE invariant shape,
   only the COLOUR varies per band (--btn-bg / --btn-fg / --btn-accent).
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--btn-height, 55px);         /* height fixed here — not re-derived from padding */
  padding-block: 0;                            /* vertical centring = min-height + align-items */
  padding-inline: var(--btn-pad-inline, 32px);
  border: 1px solid transparent;               /* reserved so a hover border swap never reflows */
  border-radius: var(--btn-radius, 0px);
  font-family: "Montserrat", sans-serif;
  font-size: var(--btn-font-size, 18px);
  font-weight: var(--btn-weight, 700);
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-tracking, -0.02em);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease,
              border-color 200ms ease, transform 200ms ease,
              box-shadow 200ms ease, filter 200ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--accent-ink, var(--black3, #180e0a));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — flat lime-green fill, white label, NO resting shadow */
.btn-primary {
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);                  /* measured darken step — 2 properties, no reflow */
  }
}
.btn-primary:active { transform: translateY(0); filter: none; }

/* Secondary — the inverse: white box, dark label, lime hairline border */
.btn-secondary {
  background: var(--btn-bg, var(--white, #ffffff));
  color: var(--btn-fg-rest, var(--black2, #261c18));
  border-color: var(--btn-accent, var(--accent));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background: var(--btn-accent, var(--accent));   /* fill swap — 2 properties */
    color: var(--btn-fg, var(--accent-contrast));
  }
}
.btn-secondary:active { filter: brightness(0.97); }

/* Ghost / text — no chrome until hover */
.btn-ghost {
  background: transparent;
  color: var(--btn-fg, var(--black2, #261c18));
  border-color: transparent;
  padding-inline: 8px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background: color-mix(in srgb, var(--btn-accent, var(--accent)) 12%, transparent);
    color: var(--accent-ink, var(--black3, #180e0a));
  }
}
.btn-ghost:active { filter: brightness(0.97); }

/* Icon button — square, sharp (4px, matching the slider arrows) */
.btn-icon {
  width: 48px;
  height: 48px;
  min-height: 0;                               /* override .btn min-height to stay square */
  padding: 0;
  border-radius: var(--radius-sm, 4px);
  background: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  border: 1px solid transparent;
  transition: transform 200ms ease, background-color 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon > svg,
.btn-icon > img { width: 42%; height: 42%; display: block; }

/* Compact size — only height + inline padding shrink */
.btn--sm {
  min-height: var(--btn-height-sm, 44px);
  padding-inline: 18px;
  font-size: 16px;
}

/* ---------------------------------------------------------------------------
   Cards / tiles — sharp (8px) surfaces; lift + image-zoom + arrow-nudge on hover.
   --------------------------------------------------------------------------- */
.card {
  position: relative;
  z-index: 1;
  background: var(--white, #ffffff);           /* solid — never transparent */
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px color-mix(in srgb, var(--black3, #180e0a) 10%, transparent),
                0 14px 28px -12px color-mix(in srgb, var(--black3, #180e0a) 30%, transparent);
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* .card itself is padless so flush media reaches its edges — text goes in .card-body */
.card-body { padding: 24px var(--padding-horizontal, 24px); }

/* ---------------------------------------------------------------------------
   Inputs — white box, hairline border, lime focus ring (radius 4px, sharp brand)
   --------------------------------------------------------------------------- */
.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color-strong, var(--light3, #c0c2c3));
  border-radius: var(--radius-sm, 4px);
  background: var(--white, #ffffff);
  color: var(--black2, #261c18);
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #737373); }
.field:hover { border-color: var(--accent); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field:user-invalid { border-color: #e5484d; }
.field:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------------
   Links
   --------------------------------------------------------------------------- */
/* Inline "read more" — animated lime underline growing from the left */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 220ms ease, color 200ms ease;
  padding-bottom: 2px;
}
@media (hover: hover) {
  .link-underline:hover { background-size: 100% 2px; color: var(--accent); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent); }

/* ---------------------------------------------------------------------------
   Hover vocabulary — reusable utilities (combine them per component)
   --------------------------------------------------------------------------- */
/* 1. Powiększenie — scale up (small, non-text elements) */
.hover-scale { transition: transform 200ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

/* Image inside a fixed, clipped frame — zoom the image, not the box */
.media { overflow: hidden; border-radius: var(--radius-md, 8px); }
.media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
@media (hover: hover) { .media:hover img { transform: scale(1.06); } }

/* 2. Uniesienie — lift (translateY + two-layer tinted shadow) */
.hover-lift { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease; }
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px color-mix(in srgb, var(--black3, #180e0a) 10%, transparent),
                0 14px 28px -12px color-mix(in srgb, var(--black3, #180e0a) 30%, transparent);
  }
}
.hover-lift:active { transform: translateY(-2px); }

/* 3. Zmiana koloru — fill swap */
.hover-fill { transition: background-color 200ms ease, color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast); }
}

/* 4. Ruchoma strzałka — moving arrow (the ▶ nudges in the direction it points) */
.with-arrow { display: inline-flex; align-items: center; gap: 8px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: var(--arrow-nudge, translateX(4px)); } }

/* 5. Dodanie podkreślenia — animated underline → see .link-underline above */

/* ---------------------------------------------------------------------------
   Motion guards
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* hub: straż poziomu — nic nie poszerza strony w bok (base-stylesheet.ts) */
html, body { overflow-x: clip; }
