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

:root {
  /* Colors */
  --black3: #1c1b1a;
  --black1: #737373;
  --white: #ffffff;
  --brand: #4db601;
  --light2: #dbdedf;
  --light3: #c0c2c3;
  --light1: #f3f3f3;
  --black2: #282827;
  --dark-graphite: #252525;

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

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

/* 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-16px-text {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

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

.text-24px-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.text-14px-text {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.text-48px-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 45px;
  font-weight: 500;
  line-height: 52px;
  letter-spacing: -0.03em;
}

.text-32px-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 38.4px;
  letter-spacing: -0.03em;
}

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

/* UI signature — derived from the design; every component honours these:
   1) Zielony romb (45° kwadrat) jako znak marki — powtarza się jako gwiazdki oceny,
      dzielnik sekcji (linia z rzędem małych zielonych rombów) i narożne dekoracje.
   2) Primary CTA = PŁASKI, SOLIDNY zielony (#4db601 = --brand) miękki prostokąt, mały
      promień ~6px (NIE pigułka), biała etykieta 18px/600 (-0.02em), BEZ cienia, ze
      strzałką (→) która przesuwa się w prawo na hover; wysokość 58px, padding 16/32.
   3) Secondary = białe tło + 1px jasnoszary kontur (--light3) + ciemna etykieta (--black3),
      ta sama wysokość 58px / promień 6px / strzałka — czytelnie NIŻSZY priorytet niż zielone
      CTA, nigdy zielony klon primary.
   4) Karty są PŁASKIE: włoskowaty kontur, BEZ cienia w spoczynku, jeden równy promień na
      wszystkich rogach. Karta usługi = biała, obraz do krawędzi nad body z paddingiem 24px;
      karta „dlaczego my" = jasnoszare tło (--light1) + 1px kontur (--light2). Cień/uniesienie
      pojawia się TYLKO na hover.
   5) Zieleń marki to jedyny łączący akcent — jednokolorowe ikony treści (telefon, zębatka,
      ludzie) malowane na #4db601 na jasnych I ciemnych pasach, plus zielone wyróżnione słowo
      w nagłówku / zielony badge z nazwiskiem / zielone dzielniki. */

:root {
  /* Accent — the design's primary CTA is solid brand green (#4db601). Here --brand IS
     the CTA colour, so --accent aliases it directly. The CTA is FLAT (no gradient, no
     shadow), so --accent-2 = --accent and --btn-shadow: none. */
  --accent: var(--brand);
  --accent-2: var(--brand);
  --accent-contrast: var(--white);
  --btn-shadow: none;

  /* Radius scale — the design rounds gently and SMALL (Figma --border-radius = 6px).
     Buttons/inputs/service-cards ~6px, medium containers ~8px, nav/hero-form ~12px. */
  --radius-sm: 6px;   /* inputs, buttons, service cards */
  --radius-md: 8px;   /* cards / tiles / medium containers */
  --radius-lg: 12px;  /* nav bar, hero form, large containers */
  --radius-pill: 999px;

  /* The primary button's REAL radius — soft-rect 6px (NOT a pill). Also shapes the
     shared Slider.astro prev/next arrow buttons so carousel chrome matches the brand. */
  --btn-radius: var(--radius-sm);
  /* ONE button height for the whole site — the design's CTA is 58px tall. */
  --btn-height: 58px;
}

/* ==========================================================================
   Buttons — ONE shape site-wide (height/radius/padding/type invariant);
   only COLOUR varies per band via --btn-bg / --btn-fg / --btn-accent.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--btn-height, 58px);
  padding-block: 0;
  padding-inline: 32px;
  border: 1px solid transparent;
  border-radius: var(--btn-radius, var(--radius-sm, 6px));
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  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(--brand);
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — flat solid brand-green fill, white label, NO resting shadow. */
.btn-primary {
  background: var(--btn-bg, var(--accent, var(--brand)));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--accent, var(--brand)) 55%, transparent);
    filter: brightness(0.96);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.94); }

/* Secondary — white fill + light-grey outline + dark label; neutral, lower-priority. */
.btn-secondary {
  background-color: var(--btn-bg, var(--white));
  color: var(--btn-fg, var(--black3, #1c1b1a));
  border-color: var(--btn-accent, var(--light3, #c0c2c3));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-hover-bg, var(--light1, #f3f3f3));
    border-color: var(--btn-accent-hover, var(--black3, #1c1b1a));
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover. */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--black1, currentColor));
  padding-inline: 10px;
}
.btn-ghost:hover {
  background-color: color-mix(in srgb, var(--btn-accent, var(--accent, var(--brand))) 10%, transparent);
  color: var(--btn-accent, var(--accent, var(--brand)));
}
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — soft-rect square in accent green (matches the brand's non-pill language). */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--btn-radius, var(--radius-sm, 6px));
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--btn-bg, var(--accent, var(--brand)));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); } }
.btn-icon:active { transform: scale(0.96); }
.btn-icon:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

/* Small size — the ONE deliberate smaller button; only height + inline padding shrink. */
.btn--sm { min-height: var(--btn-height-sm, 44px); padding-inline: 20px; }

/* ==========================================================================
   Hover vocabulary — reusable utilities (combine per component).
   ========================================================================== */

/* 1. Powiększenie — scale up */
.hover-scale { transition: transform 200ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

/* zoom the image inside a fixed, clipped frame (portfolio tile / gallery) */
.media { overflow: hidden; border-radius: var(--radius-md, var(--border-radius, 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 + 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 16px 32px -12px rgba(0, 0, 0, 0.22);
  }
}
.hover-lift:active { transform: translateY(-2px); }

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

/* 4. Ruchoma strzałka — moving arrow (nudge on hover) */
.with-arrow { display: inline-flex; align-items: center; gap: 10px; }
.with-arrow .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .with-arrow:hover .arrow { transform: translateX(4px); } }

/* continuous loop indicator (scroll hint) — keep subtle */
.arrow-loop { animation: arrow-nudge 1.4s ease-in-out infinite; }
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(6px); }
}

/* 5. Dodanie podkreślenia — animated underline (nav links, inline links) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--brand), var(--brand));
  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(--brand); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--brand); }
.link-underline-center { background-position: 50% 100%; }

/* ==========================================================================
   Diamond (romb) brand mark — trait 1. The 45° green square that recurs
   as bullets, rating marks and section dividers.
   ========================================================================== */
.diamond {
  display: inline-block;
  width: 10px; height: 10px;
  background-color: var(--icon-color, var(--accent, var(--brand)));
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.diamond-divider::before,
.diamond-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background-color: var(--light3, #c0c2c3);
}
.diamond-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Content icons (monochrome, recolorable) — painted brand green on BOTH
   light and dark bands (trait 5). Steer paint ONLY via --icon-color.
   ========================================================================== */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-color: var(--icon-color, var(--accent, var(--brand)));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* ==========================================================================
   Step number badge — numbered process steps (green disc, centred digit).
   ========================================================================== */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-pill, 999px);
  background-color: var(--accent, var(--brand));
  color: var(--accent-contrast, var(--white));
}
.step-num {
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ==========================================================================
   Cards / tiles — FLAT: hairline border, NO resting shadow, uniform radius.
   Lift + shadow + inner zoom + arrow nudge appear only on hover.
   ========================================================================== */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--light2, #dbdedf);
  border-radius: var(--radius-md, var(--border-radius, 8px));
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease, border-color 200ms ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.22);
    border-color: transparent;
  }
  .card:hover img { transform: scale(1.05); }
  .card:hover .arrow { transform: translateX(4px); }
}
.card img { transition: transform 400ms ease; }
.card a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* PADLESS card so flush media reaches the edges; text lives in this padded wrapper. */
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* ==========================================================================
   Inputs (forms — contact / hero wycena).
   ========================================================================== */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 16px;
  border: 1px solid var(--light3, #c0c2c3);
  border-radius: var(--radius-sm, var(--border-radius, 6px));
  background: var(--white);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  color: var(--black3, #1c1b1a);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--black1, #737373); }
.field:hover { border-color: var(--brand); }
.field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.field:disabled { opacity: 0.5; cursor: not-allowed; background: var(--light1, #f3f3f3); }
.field:user-invalid { border-color: #e5484d; }

/* ==========================================================================
   Missing-data placeholder — bracketed temporary value for un-filled
   dashboard fields. Render as plain text, never inside an <a>.
   ========================================================================== */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ==========================================================================
   Motion guard — respect reduced-motion everywhere.
   ========================================================================== */
@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; }
