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

:root {
  /* Colors */
  --light1: #f2f4f5;
  --brand: #0578fb;
  --black1: #5a606c;
  --black2: #252528;
  --black3: #1d1c21;
  --brand-2: #6abc1c;
  --white: #ffffff;
  --light2: #d0d7da;
  --light3: #b5bfc4;
  --dark-graphite: #252525;

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

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

/* 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: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

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

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

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

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

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

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

.text-32px-title {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 38.4px;
  letter-spacing: -0.025em;
}

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

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

/* UI signature — derived from the design; every component honours these:
   1) Primary CTA is a full GREEN (--brand-2) PILL with asymmetric padding (more left than
      right) and a trailing white arrow inside a circle that hugs the right edge ("Bezpłatna
      wycena"); height ~58px.
   2) Secondary is a NEUTRAL white pill with a thin --light3 outline + dark text, no fill
      ("Więcej usług" / "Więcej realizacji") — clearly lower-priority than the green CTA.
   3) Inline "read more" links are brand-BLUE (--brand) bold with a trailing arrow ("Zobacz
      więcej →") — blue is the LINK accent, green is the CONVERSION accent (two accents by role).
   4) Cards are white with a soft drop-shadow PLUS a 1px hairline ring (no hard border), ~16px
      radius, image flush to the top edge, text in a generously padded body; large media tiles
      use a bigger 32px radius with a thin --light3 border.
   5) Feature / step icons sit inside a circular white chip with a thin --light3 border; small
      blue dot bullets precede list items and section headings. */

/* Base styles — shared interactive primitives for INSTEC (buttons, links, cards, inputs, hovers).
   Single source of truth: section builds inline these rules (via base-styles.md) and the live
   showcase page (hub-baza.astro) reads this file directly. Colours come from tokens.css. */

:root {
  /* The design's PRIMARY CTA (hero "wycena" submit button) is GREEN, not the blue --brand. */
  --accent: var(--brand-2);          /* #6abc1c green — every CTA / primary button fill */
  --accent-contrast: var(--white);   /* readable text on the accent */

  /* Radius scale — designs round by element size; the Figma --border-radius token is 0 and wrong. */
  --radius-sm: 10px;                 /* inputs / small chips */
  --radius-md: 16px;                 /* service cards / tiles */
  --radius-lg: 32px;                 /* large media tiles (projects/portfolio) — bigger corner */
  --radius-pill: 999px;              /* fully-rounded buttons / icon buttons */

  /* ONE button height for the whole site, seeded from the design's primary CTA. */
  --btn-height: 52px;
}

/* ------------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--btn-height);   /* height is fixed here — vertical centring is min-height */
  padding-block: 0;                /* + align-items, NOT padding, so any label size keeps one height */
  padding-inline: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  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 — solid green accent (hero "Odbierz bezpłatną wycenę" CTA). Lift + darken on hover. */
.btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent);
    filter: brightness(0.95);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: none; filter: brightness(0.92); }
/* Every CTA carries a trailing arrow in a white circle that hugs the right edge (per Figma) →
   tighten the right padding by default, and auto-render the arrow when the markup omits one. */
.btn-primary { padding-right: 16px; }
.btn-primary .arrow,
.btn-primary:not(:has(.arrow))::after {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background-color: var(--accent-contrast);   /* paints the white arrow-in-circle glyph */
  -webkit-mask: url("/figma/process/cd33b38320b3c3f6f2c25d69678f6dbeae1f0956.svg") center / contain no-repeat;
          mask: url("/figma/process/cd33b38320b3c3f6f2c25d69678f6dbeae1f0956.svg") center / contain no-repeat;
}
.btn-primary:not(:has(.arrow))::after { content: ""; display: block; }

/* Secondary — neutral white pill with a thin light border + dark text ("Więcej usług").
   Reads as lower priority than the green CTA. Hover: lift + border/text darken. */
.btn-secondary {
  background-color: var(--white);
  color: var(--black2);
  border-color: var(--light3);
}
@media (hover: hover) {
  .btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--black2);
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
  }
}
.btn-secondary:active { transform: translateY(0); box-shadow: none; }

/* Ghost / text — no chrome until hover. */
.btn-ghost {
  background-color: transparent;
  color: var(--black1);
  padding-inline: 12px;
}
@media (hover: hover) {
  .btn-ghost:hover { background-color: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--black2); }
}
.btn-ghost:active { background-color: color-mix(in srgb, var(--accent) 18%, transparent); }

/* Icon button — round accent target (slider arrows, lightbox close). */
.btn-icon {
  width: 48px; height: 48px; padding: 0; gap: 0; min-height: 0;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: var(--accent-contrast);
  border: none;
}
@media (hover: hover) { .btn-icon:hover { transform: scale(1.08); filter: brightness(0.95); } }
.btn-icon:active { transform: scale(0.96); }

/* ------------------------------------------------------------------ Links */

/* Animated underline — nav links & inline links. Grows from the left, blue brand. */
.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%; }

/* Inline "read more" — blue brand text + trailing arrow ("Zobacz więcej →"). */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transition: color 200ms ease;
}
.link-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.link-more .arrow { transition: transform 200ms ease; }
@media (hover: hover) { .link-more:hover .arrow { transform: translateX(4px); } }

/* ------------------------------------------------------------------ Hover utilities */

.hover-scale { transition: transform 200ms ease; }
@media (hover: hover) { .hover-scale:hover { transform: scale(1.04); } }
.hover-scale:active { transform: scale(0.99); }

.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); }

.hover-fill { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
@media (hover: hover) {
  .hover-fill:hover { background-color: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
}

/* Moving arrow — wrap an inline label so only the arrow glyph nudges on hover. */
.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: translateX(4px); } }

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

/* Image inside a fixed frame — zoom the image, clip the box. */
.media { overflow: hidden; border-radius: var(--radius-md); }
.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); } }

/* ------------------------------------------------------------------ Content icons */

/* Monochrome service / feature icons come in as single-colour black assets. Render
   them as a CSS mask so the shape is PAINTED by background-color and the section
   can recolour per band (accent on a light card, --accent-contrast on a dark band). */
.svc-icon {
  display: inline-block;
  width: 32px; height: 32px;       /* size from the design (why-us icons are 32px) */
  background-color: var(--accent); /* the paint — change per band */
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  transition: background-color 200ms ease;
}

/* Circular white icon chip — feature/step icons sit inside it (process step icons, 80px). */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--light3);
}

/* ------------------------------------------------------------------ Cards / tiles */

/* White card, medium radius, soft shadow + 1px hairline (service-card). Lift + image zoom +
   arrow nudge from the SAME hover. */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 36px 0 rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.06);
  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 18px 40px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  }
  .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; }

/* Padded inner body — content must never sit flush to the card edge (service-card-containter). */
.card-body { padding: 32px var(--padding-horizontal); }

/* ------------------------------------------------------------------ Inputs (forms) */

.field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light3);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black2);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 22.4px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3); }
.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:user-invalid { border-color: #e5484d; }
.field:disabled { opacity: 0.5; cursor: not-allowed; background: var(--light1); }

/* ------------------------------------------------------------------ Missing-data placeholder */

.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ------------------------------------------------------------------ Reduced motion */

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