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

:root {
  /* Colors */
  --white: #ffffff;
  --brand2: #8daa91;
  --light2: #dbdedf;
  --brand: #1f3a5f;
  --black3: #1c1b1a;
  --black2: #282827;
  --light3: #c0c2c3;
  --light1: #f2f4f5;
  --black1: #737373;
  --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: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
}

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

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

.text-64px-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 70.4px;
  letter-spacing: -0.02em;
}

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

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

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

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

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

/* UI signature — derived from the design; every component honours these:
   1) Sharp corners everywhere — 0 radius. Every button, card and input is a hard
      rectangle (Figma --border-radius = 0px; confirmed in the pixels). No rounding
      except deliberate circles (icon containers, badges).
   2) Primary CTA = solid deep-navy (--brand #1f3a5f) rectangle, white label, trailing
      arrow that sits inside a filled circle ("Bezpłatna wycena ›", nav phone button).
   3) Secondary = 2px sage-green (--brand2 #8daa91) outline, NO fill ("Więcej realizacji")
      — a different colour family from the navy primary, clearly lower priority.
   4) Sage-green (--brand2) is the link / inline-accent colour, NEVER a fill: "Zobacz
      więcej →" read-more links are green + underlined + arrow; active nav item is green.
   5) Icons / markers live inside filled circles against the all-sharp layout — hero
      trust badges, the CTA's arrow-in-circle, tiny circular heading dots. */

:root {
  /* Accent = the design's PRIMARY CTA colour: solid deep navy (--brand). The CTA is a
     flat solid (no gradient), so --accent-2 == --accent and the resting shadow is none. */
  --accent: var(--brand);            /* #1f3a5f navy — primary CTA fill / active states */
  --accent-2: var(--brand);          /* CTA is solid, not a gradient → same as --accent */
  --accent-contrast: var(--white);   /* readable label on the navy accent */
  --btn-shadow: none;                 /* flat design — buttons carry no resting shadow */

  /* Secondary / link accent = sage green (--brand2). Only ever an outline or text, never a fill. */
  --accent-secondary: var(--brand2); /* #8daa91 — outline buttons + inline links */

  /* Radius is a SCALE, but THIS design is uniformly sharp (0). Circles are the only
     rounded shape — kept on --radius-pill for icon buttons / badges. */
  --radius-sm: 0px;                  /* inputs / small chips */
  --radius-md: 0px;                  /* cards / tiles */
  --radius-lg: 0px;                  /* large containers */
  --radius-pill: 999px;             /* icon buttons / circular badges only */

  --btn-height: 58px;               /* ONE button height site-wide (design: px-32 py-16, h-58) */
  --btn-height-sm: 44px;            /* the one deliberate compact button */
}

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

/* Primary — solid deep-navy fill, white label (signature trait 2). */
.btn-primary {
  background: var(--btn-bg, var(--accent, var(--brand)));
  color: var(--btn-fg, var(--accent-contrast, var(--white)));
  border-color: transparent;
  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(1.12);
  }
}
.btn-primary:active { transform: translateY(0); box-shadow: var(--btn-shadow, none); filter: brightness(0.96); }

/* Secondary — 2px sage-green outline, no fill (signature trait 3). Hover fills green. */
.btn-secondary {
  background-color: transparent;
  color: var(--btn-fg, var(--btn-accent, var(--accent-secondary, var(--brand2))));
  border-color: var(--btn-accent, var(--accent-secondary, var(--brand2)));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--accent-secondary, var(--brand2)));
    color: var(--btn-fg-hover, var(--white));
    transform: translateY(-2px);
  }
}
.btn-secondary:active { transform: translateY(0); }

/* Ghost / text — no chrome until hover; green tint (matches the link accent). */
.btn-ghost {
  background-color: transparent;
  color: var(--btn-fg, var(--accent-secondary, var(--brand2)));
  border-color: transparent;
  padding-inline: 8px;
}
.btn-ghost:hover { background-color: color-mix(in srgb, var(--btn-accent, var(--accent-secondary, var(--brand2))) 12%, transparent); }
.btn-ghost:active { transform: translateY(1px); }

/* Icon button — the one deliberate circle (arrows, close, etc.). */
.btn-icon {
  width: 48px; height: 48px; padding: 0;
  border-radius: var(--radius-pill, 999px);
  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: none; cursor: pointer;
  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:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-icon > svg, .btn-icon > img { width: 42%; height: 42%; display: block; }

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

/* ------------------------------------------------------------------ *
 * Hover vocabulary (reusable utilities)
 * ------------------------------------------------------------------ */

/* 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); }

/* image zoom inside a fixed, clipped frame */
.media { overflow: hidden; border-radius: var(--radius-md, 0px); }
.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 swap */
.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(--accent-secondary, var(--brand2)); border-color: var(--accent-secondary, var(--brand2)); }
}

/* 4. Ruchoma strzałka — moving arrow */
.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); } }
.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 (green accent, trait 4) */
.link-underline {
  position: relative;
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(var(--accent-secondary, var(--brand2)), var(--accent-secondary, var(--brand2)));
  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-secondary, var(--brand2)); }
}
.link-underline:focus-visible { background-size: 100% 2px; outline: none; }
.link-underline[aria-current="page"] { background-size: 100% 2px; color: var(--accent-secondary, var(--brand2)); }
.link-underline-center { background-position: 50% 100%; }

/* ------------------------------------------------------------------ *
 * Cards / tiles
 * ------------------------------------------------------------------ */
.card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-md, 0px);
  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 16px 32px -12px rgba(0,0,0,0.22); }
  .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; }
.card-body { padding: var(--padding-vertical, 24px) var(--padding-horizontal, 24px); }

/* ------------------------------------------------------------------ *
 * Inputs (forms)
 * ------------------------------------------------------------------ */
.field {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid var(--light3, #c0c2c3);
  border-radius: var(--radius-sm, 0px);
  background: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--black3, #1c1b1a);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field::placeholder { color: var(--light3, #c0c2c3); }
.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; }

/* ------------------------------------------------------------------ *
 * Content icons (monochrome, recolorable) — CSS mask
 * ------------------------------------------------------------------ */
.svc-icon {
  display: inline-block;
  width: 40px; height: 40px;
  background-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) — filled circle (trait 5)
 * ------------------------------------------------------------------ */
.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;
}

/* ------------------------------------------------------------------ *
 * 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;
  }
}
